]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--rel--22
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
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 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 XMKMF'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 # Accept the important Cygnus configure options, so we can diagnose typos.
814
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
818
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
823
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
828
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
835
836 --config-cache | -C)
837 cache_file=config.cache ;;
838
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
843
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
850
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
869
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
878
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
887
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
891
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
898
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
903
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
909
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
916
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
921
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
926
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
933
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
938
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
945
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
950
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
954
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
958
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
962
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
971
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
976
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
983
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
990
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 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1007
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1012
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1017
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1021
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1027
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1038
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1043
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1048
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1055
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1060
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1063
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1066
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1075
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1084
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1088
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1095
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1102
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1106 ;;
1107
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1116
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 ;;
1124
1125 esac
1126 done
1127
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1132 fi
1133
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1139 do
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1164 fi
1165 fi
1166
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170 test "$silent" = yes && exec 6>/dev/null
1171
1172
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\).*/{
1206 s//\1/
1207 q
1208 }
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1213 fi
1214 else
1215 ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1243
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1252
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1257
1258 Defaults for the options are specified in brackets.
1259
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1276
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1281
1282 For better control, use the options below.
1283
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1305
1306 cat <<\_ACEOF
1307
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1312
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1316
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1354 motif, gtk, no)
1355 --without-xpm don't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don't use Freetype for local font support
1362 --without-xft don't use XFT for anti aliased fonts
1363 --without-libotf don't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt for text shaping
1365 --without-toolkit-scroll-bars
1366 don't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1371 console
1372 --without-dbus don't compile with D-Bus support
1373
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config for finding GTK and librsvg
1376 --with-x use the X Window System
1377
1378 Some influential environment variables:
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
1386 CPP C preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System
1388
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1391
1392 _ACEOF
1393 ac_status=$?
1394 fi
1395
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" || continue
1400 ac_builddir=.
1401
1402 case "$ac_dir" in
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *)
1405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 esac ;;
1412 esac
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1417
1418 case $srcdir in
1419 .) # We are building in place.
1420 ac_srcdir=.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1427 *) # Relative name.
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 esac
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1437 echo &&
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1442 else
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 fi || ac_status=$?
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1446 done
1447 fi
1448
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1451 cat <<\_ACEOF
1452 emacs configure 23.0.50
1453 generated by GNU Autoconf 2.61
1454
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1461 fi
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1465
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1468
1469 $ $0 $@
1470
1471 _ACEOF
1472 exec 5>>config.log
1473 {
1474 cat <<_ASUNAME
1475 ## --------- ##
1476 ## Platform. ##
1477 ## --------- ##
1478
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1484
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1487
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1495
1496 _ASUNAME
1497
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1500 do
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 echo "PATH: $as_dir"
1504 done
1505 IFS=$as_save_IFS
1506
1507 } >&5
1508
1509 cat >&5 <<_ACEOF
1510
1511
1512 ## ----------- ##
1513 ## Core tests. ##
1514 ## ----------- ##
1515
1516 _ACEOF
1517
1518
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1524 ac_configure_args=
1525 ac_configure_args0=
1526 ac_configure_args1=
1527 ac_must_keep_next=false
1528 for ac_pass in 1 2
1529 do
1530 for ac_arg
1531 do
1532 case $ac_arg in
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1536 continue ;;
1537 *\'*)
1538 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1539 esac
1540 case $ac_pass in
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1542 2)
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1546 else
1547 case $ac_arg in
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 esac
1555 ;;
1556 -* ) ac_must_keep_next=true ;;
1557 esac
1558 fi
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1560 ;;
1561 esac
1562 done
1563 done
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1566
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1574 {
1575 echo
1576
1577 cat <<\_ASBOX
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1581 _ASBOX
1582 echo
1583 # The following way of writing the cache mishandles newlines in values,
1584 (
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1587 case $ac_val in #(
1588 *${as_nl}*)
1589 case $ac_var in #(
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 esac
1593 case $ac_var in #(
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1596 esac ;;
1597 esac
1598 done
1599 (set) 2>&1 |
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1602 sed -n \
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 ;; #(
1606 *)
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1608 ;;
1609 esac |
1610 sort
1611 )
1612 echo
1613
1614 cat <<\_ASBOX
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_vars
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629
1630 if test -n "$ac_subst_files"; then
1631 cat <<\_ASBOX
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1635 _ASBOX
1636 echo
1637 for ac_var in $ac_subst_files
1638 do
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 echo "$ac_var='\''$ac_val'\''"
1644 done | sort
1645 echo
1646 fi
1647
1648 if test -s confdefs.h; then
1649 cat <<\_ASBOX
1650 ## ----------- ##
1651 ## confdefs.h. ##
1652 ## ----------- ##
1653 _ASBOX
1654 echo
1655 cat confdefs.h
1656 echo
1657 fi
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1661 } >&5
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 exit $exit_status
1665 ' 0
1666 for ac_signal in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668 done
1669 ac_signal=0
1670
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1673
1674 # Predefined preprocessor variables.
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1678 _ACEOF
1679
1680
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683 _ACEOF
1684
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698 _ACEOF
1699
1700
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x "$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707 else
1708 set x "$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1710 fi
1711 shift
1712 for ac_site_file
1713 do
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1718 . "$ac_site_file"
1719 fi
1720 done
1721
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1732 fi
1733 else
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1737 fi
1738
1739 ac_header_list="$ac_header_list sys/time.h"
1740 ac_header_list="$ac_header_list unistd.h"
1741 ac_func_list="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1743 # value.
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1751 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1760 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765 echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767 echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted=:
1769 fi;;
1770 esac
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1773 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1780 esac
1781 fi
1782 done
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1789 fi
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820
1821
1822 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1823
1824
1825
1826 test "$program_prefix" != NONE &&
1827 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE &&
1830 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s,x,x', remove it if useless.
1833 cat <<\_ACEOF >conftest.sed
1834 s/[\\$]/&&/g;s/;s,x,x,$//
1835 _ACEOF
1836 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 rm -f conftest.sed
1838
1839
1840 lispdir='${datadir}/emacs/${version}/lisp'
1841 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1842 '${datadir}/emacs/site-lisp'
1843 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1844 etcdir='${datadir}/emacs/${version}/etc'
1845 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir='${datadir}/emacs/${version}/etc'
1847 gamedir='${localstatedir}/games/emacs'
1848
1849 gameuser=games
1850
1851
1852
1853
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1856 withval=$with_pop;
1857 else
1858 with_pop=yes
1859 fi
1860
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h <<\_ACEOF
1863 #define MAIL_USE_POP 1
1864 _ACEOF
1865
1866 fi
1867
1868
1869
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval=$with_kerberos;
1873 else
1874 with_kerberos=no
1875 fi
1876
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h <<\_ACEOF
1879 #define KERBEROS 1
1880 _ACEOF
1881
1882 fi
1883
1884
1885
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval=$with_kerberos5;
1889 else
1890 with_kerberos5=no
1891 fi
1892
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1895 with_kerberos=yes
1896 cat >>confdefs.h <<\_ACEOF
1897 #define KERBEROS 1
1898 _ACEOF
1899
1900 fi
1901
1902 cat >>confdefs.h <<\_ACEOF
1903 #define KERBEROS5 1
1904 _ACEOF
1905
1906 fi
1907
1908
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval=$with_hesiod;
1912 else
1913 with_hesiod=no
1914 fi
1915
1916 if test "$with_hesiod" = yes; then
1917
1918 cat >>confdefs.h <<\_ACEOF
1919 #define HESIOD 1
1920 _ACEOF
1921
1922 fi
1923
1924
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval=$with_sound;
1928 else
1929 with_sound=yes
1930 fi
1931
1932
1933
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval=$with_x_toolkit; case "${withval}" in
1937 y | ye | yes ) val=gtk ;;
1938 n | no ) val=no ;;
1939 l | lu | luc | luci | lucid ) val=lucid ;;
1940 a | at | ath | athe | athen | athena ) val=athena ;;
1941 m | mo | mot | moti | motif ) val=motif ;;
1942 g | gt | gtk ) val=gtk ;;
1943 * )
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1945 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1946 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1947 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1949 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1951 ;;
1952 esac
1953 with_x_toolkit=$val
1954
1955 fi
1956
1957
1958
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1961 withval=$with_xpm;
1962 else
1963 with_xpm=yes
1964 fi
1965
1966
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1969 withval=$with_jpeg;
1970 else
1971 with_jpeg=yes
1972 fi
1973
1974
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1977 withval=$with_tiff;
1978 else
1979 with_tiff=yes
1980 fi
1981
1982
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1985 withval=$with_gif;
1986 else
1987 with_gif=yes
1988 fi
1989
1990
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1993 withval=$with_png;
1994 else
1995 with_png=yes
1996 fi
1997
1998
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2001 withval=$with_rsvg;
2002 else
2003 with_rsvg=yes
2004 fi
2005
2006
2007
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval=$with_freetype;
2011 else
2012 with_freetype=yes
2013 fi
2014
2015
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2018 withval=$with_xft;
2019 else
2020 with_xft=yes
2021 fi
2022
2023
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval=$with_libotf;
2027 else
2028 with_libotf=yes
2029 fi
2030
2031
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval=$with_m17n_flt;
2035 else
2036 with_m17n_flt=yes
2037 fi
2038
2039
2040
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval=$with_toolkit_scroll_bars;
2044 else
2045 with_toolkit_scroll_bars=yes
2046 fi
2047
2048
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval=$with_xaw3d;
2052 else
2053 with_xaw3d=yes
2054 fi
2055
2056
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2059 withval=$with_xim;
2060 else
2061 with_xim=yes
2062 fi
2063
2064
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval=$with_carbon;
2068 else
2069 with_carbon=no
2070 fi
2071
2072
2073
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2076 withval=$with_gpm;
2077 else
2078 with_gpm=yes
2079 fi
2080
2081
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2084 withval=$with_dbus;
2085 else
2086 with_dbus=yes
2087 fi
2088
2089
2090
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2098 fi
2099
2100
2101
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler." >&5
2106 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2109 fi
2110
2111
2112
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval=$with_pkg_config_prog;
2116 fi
2117
2118 if test "X${with_pkg_config_prog}" != X; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG="${with_pkg_config_prog}"
2121 fi
2122 fi
2123
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2127 fi
2128
2129
2130 # Check whether --enable-font-backend was given.
2131 if test "${enable_font_backend+set}" = set; then
2132 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2133 else
2134 USE_FONT_BACKEND=no
2135 fi
2136
2137
2138 # Check whether --enable-asserts was given.
2139 if test "${enable_asserts+set}" = set; then
2140 enableval=$enable_asserts; USE_XASSERTS=$enableval
2141 else
2142 USE_XASSERTS=no
2143 fi
2144
2145
2146 # Check whether --enable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2149 else
2150 USE_MAINTAINER_MODE=no
2151 fi
2152
2153 if test $USE_MAINTAINER_MODE = yes; then
2154 MAINT=
2155 else
2156 MAINT=#
2157 fi
2158
2159
2160 # Check whether --enable-locallisppath was given.
2161 if test "${enable_locallisppath+set}" = set; then
2162 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2163 locallisppath=
2164 elif test "${enableval}" != "yes"; then
2165 locallisppath=${enableval}
2166 fi
2167 fi
2168
2169
2170 #### Make srcdir absolute, if it isn't already. It's important to
2171 #### avoid running the path through pwd unnecessarily, since pwd can
2172 #### give you automounter prefixes, which can go away. We do all this
2173 #### so Emacs can find its files when run uninstalled.
2174 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2175 unset CDPATH
2176 case "${srcdir}" in
2177 /* ) ;;
2178 . )
2179 ## We may be able to use the $PWD environment variable to make this
2180 ## absolute. But sometimes PWD is inaccurate.
2181 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2182 ## but that tested only for a well-formed and valid PWD,
2183 ## it did not object when PWD was well-formed and valid but just wrong.
2184 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2185 then
2186 srcdir="$PWD"
2187 else
2188 srcdir="`(cd ${srcdir}; pwd)`"
2189 fi
2190 ;;
2191 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2192 esac
2193
2194 #### Check if the source directory already has a configured system in it.
2195 if test `pwd` != `(cd ${srcdir} && pwd)` \
2196 && test -f "${srcdir}/src/config.h" ; then
2197 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&5
2203 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2204 as a build directory right now; it has been configured in its own
2205 right. To configure in another directory as well, you MUST
2206 use GNU make. If you do not have GNU make, then you must
2207 now do \`make distclean' in ${srcdir},
2208 and then run $0 again." >&2;}
2209 fi
2210
2211 #### Given the configuration name, set machfile and opsysfile to the
2212 #### names of the m/*.h and s/*.h files we should use.
2213
2214 ### Canonicalize the configuration name.
2215
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 break
2222 elif test -f "$ac_dir/install.sh"; then
2223 ac_aux_dir=$ac_dir
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 break
2226 elif test -f "$ac_dir/shtool"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2229 break
2230 fi
2231 done
2232 if test -z "$ac_aux_dir"; then
2233 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2234 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2235 { (exit 1); exit 1; }; }
2236 fi
2237
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2245
2246
2247 # Make sure we can run config.sub.
2248 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2249 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2250 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2251 { (exit 1); exit 1; }; }
2252
2253 { echo "$as_me:$LINENO: checking build system type" >&5
2254 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2255 if test "${ac_cv_build+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 ac_build_alias=$build_alias
2259 test "x$ac_build_alias" = x &&
2260 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x &&
2262 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2264 { (exit 1); exit 1; }; }
2265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2267 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2268 { (exit 1); exit 1; }; }
2269
2270 fi
2271 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2272 echo "${ECHO_T}$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2274 *-*-*) ;;
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2276 echo "$as_me: error: invalid value of canonical build" >&2;}
2277 { (exit 1); exit 1; }; };;
2278 esac
2279 build=$ac_cv_build
2280 ac_save_IFS=$IFS; IFS='-'
2281 set x $ac_cv_build
2282 shift
2283 build_cpu=$1
2284 build_vendor=$2
2285 shift; shift
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2288 build_os=$*
2289 IFS=$ac_save_IFS
2290 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2291
2292
2293 { echo "$as_me:$LINENO: checking host system type" >&5
2294 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2295 if test "${ac_cv_host+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test "x$host_alias" = x; then
2299 ac_cv_host=$ac_cv_build
2300 else
2301 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2304 { (exit 1); exit 1; }; }
2305 fi
2306
2307 fi
2308 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2309 echo "${ECHO_T}$ac_cv_host" >&6; }
2310 case $ac_cv_host in
2311 *-*-*) ;;
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2313 echo "$as_me: error: invalid value of canonical host" >&2;}
2314 { (exit 1); exit 1; }; };;
2315 esac
2316 host=$ac_cv_host
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_host
2319 shift
2320 host_cpu=$1
2321 host_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 host_os=$*
2326 IFS=$ac_save_IFS
2327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2328
2329
2330 canonical=$host
2331 configuration=${host_alias-${build_alias-$host}}
2332
2333
2334
2335 ### If you add support for a new configuration, add code to this
2336 ### switch statement to recognize your configuration name and select
2337 ### the appropriate operating system and machine description files.
2338
2339 ### You would hope that you could choose an m/*.h file pretty much
2340 ### based on the machine portion of the configuration name, and an s-
2341 ### file based on the operating system portion. However, it turns out
2342 ### that each m/*.h file is pretty manufacturer-specific - for
2343 ### example hp9000s300.h is a 68000 machine;
2344 ### mips.h, pmax.h are all MIPS
2345 ### machines. So we basically have to have a special case for each
2346 ### configuration name.
2347 ###
2348 ### As far as handling version numbers on operating systems is
2349 ### concerned, make sure things will fail in a fixable way. If
2350 ### /etc/MACHINES doesn't say anything about version numbers, be
2351 ### prepared to handle anything reasonably. If version numbers
2352 ### matter, be sure /etc/MACHINES says something about it.
2353 ###
2354 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2355 ### "System V Release 4"; he writes, "The old convention encouraged
2356 ### confusion between `system' and `release' levels'."
2357
2358 machine='' opsys='' unported=no
2359 case "${canonical}" in
2360
2361 ## FreeBSD ports
2362 *-*-freebsd* )
2363 opsys=freebsd
2364 case "${canonical}" in
2365 alpha*-*-freebsd*) machine=alpha ;;
2366 arm*-*-freebsd*) machine=arm ;;
2367 ia64-*-freebsd*) machine=ia64 ;;
2368 sparc64-*-freebsd*) machine=sparc ;;
2369 powerpc-*-freebsd*) machine=macppc ;;
2370 i[3456]86-*-freebsd*) machine=intel386 ;;
2371 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2372 esac
2373 ;;
2374
2375 ## FreeBSD kernel + glibc based userland
2376 *-*-kfreebsd*gnu* )
2377 opsys=gnu-kfreebsd
2378 case "${canonical}" in
2379 alpha*-*-kfreebsd*) machine=alpha ;;
2380 ia64-*-kfreebsd*) machine=ia64 ;;
2381 sparc64-*-kfreebsd*) machine=sparc ;;
2382 powerpc-*-kfreebsd*) machine=macppc ;;
2383 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2384 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2385 esac
2386 ;;
2387
2388 ## NetBSD ports
2389 *-*-netbsd* )
2390 opsys=netbsd
2391 if test -f /usr/lib/crti.o; then
2392
2393 cat >>confdefs.h <<\_ACEOF
2394 #define HAVE_CRTIN
2395 _ACEOF
2396
2397 fi
2398
2399 case "${canonical}" in
2400 alpha*-*-netbsd*) machine=alpha ;;
2401 i[3456]86-*-netbsd*) machine=intel386 ;;
2402 m68k-*-netbsd*)
2403 # This is somewhat bogus.
2404 machine=hp9000s300 ;;
2405 mips-*-netbsd*) machine=pmax ;;
2406 mipsel-*-netbsd*) machine=pmax ;;
2407 mipseb-*-netbsd*) machine=pmax ;;
2408 powerpc-*-netbsd*) machine=macppc ;;
2409 sparc*-*-netbsd*) machine=sparc ;;
2410 vax-*-netbsd*) machine=vax ;;
2411 arm-*-netbsd*) machine=arm ;;
2412 x86_64-*-netbsd*) machine=amdx86-64 ;;
2413 hppa-*-netbsd*) machine=hp800 ;;
2414 esac
2415 ;;
2416
2417 ## OpenBSD ports
2418 *-*-openbsd* )
2419 opsys=openbsd
2420 case "${canonical}" in
2421 alpha*-*-openbsd*) machine=alpha ;;
2422 arm-*-openbsd*) machine=arm ;;
2423 hppa-*-openbsd*) machine=hp9000s300 ;;
2424 i386-*-openbsd*) machine=intel386 ;;
2425 m68k-*-openbsd*) machine=hp9000s300 ;;
2426 powerpc-*-openbsd*) machine=macppc ;;
2427 sparc*-*-openbsd*) machine=sparc ;;
2428 vax-*-openbsd*) machine=vax ;;
2429 x86_64-*-openbsd*) machine=amdx86-64 ;;
2430 esac
2431 ;;
2432
2433 ## LynxOS ports
2434 *-*-lynxos* )
2435 opsys=lynxos
2436 case "${canonical}" in
2437 i[3456]86-*-lynxos*) machine=intel386 ;;
2438 powerpc-*-lynxos*) machine=powerpc ;;
2439 esac
2440 ;;
2441
2442 ## BSDI ports
2443 *-*-bsdi* )
2444 opsys=bsdi
2445 case "${canonical}" in
2446 i[345]86-*-bsdi*) machine=intel386 ;;
2447 sparc-*-bsdi*) machine=sparc ;;
2448 powerpc-*-bsdi*) machine=macppc ;;
2449 esac
2450 case "${canonical}" in
2451 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2452 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2453 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2454 *-*-bsdi3* ) opsys=bsdos3 ;;
2455 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2456 esac
2457 ;;
2458
2459 alpha*-*-linux-gnu* )
2460 machine=alpha opsys=gnu-linux
2461 ;;
2462
2463 arm*-*-linux-gnu* )
2464 machine=arm opsys=gnu-linux
2465 ;;
2466
2467 ## Apple Darwin / Mac OS X
2468 *-apple-darwin* )
2469 case "${canonical}" in
2470 i[3456]86-* ) machine=intel386 ;;
2471 powerpc-* ) machine=powermac ;;
2472 * ) unported=yes ;;
2473 esac
2474 opsys=darwin
2475 # Define CPP as follows to make autoconf work correctly.
2476 CPP="${CC-cc} -E -no-cpp-precomp"
2477 # Use fink packages if available.
2478 if test -d /sw/include && test -d /sw/lib; then
2479 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2480 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2481 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2482 fi
2483 ;;
2484
2485 ## Cubix QBx/386
2486 i[3456]86-cubix-sysv* )
2487 machine=intel386 opsys=usg5-3
2488 ;;
2489
2490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2491 machine=pmax opsys=bsd4-2
2492 ;;
2493 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2494 machine=pmax opsys=bsd4-3
2495 ;;
2496 mips-dec-ultrix* )
2497 machine=pmax opsys=ultrix4-3
2498 ;;
2499 ## HP 9000 series 200 or 300
2500 m68*-hp-bsd* )
2501 machine=hp9000s300 opsys=bsd4-3
2502 ;;
2503 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2504 m68*-hp-hpux* )
2505 case "`uname -r`" in
2506 ## Someone's system reports A.B8.05 for this.
2507 ## I wonder what other possibilities there are.
2508 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2509 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2510 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2511 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2512 *) machine=hp9000s300 opsys=hpux ;;
2513 esac
2514 ;;
2515
2516 ## HP 9000 series 700 and 800, running HP/UX
2517 hppa*-hp-hpux7* )
2518 machine=hp800 opsys=hpux
2519 ;;
2520 hppa*-hp-hpux8* )
2521 machine=hp800 opsys=hpux8
2522 ;;
2523 hppa*-hp-hpux9shr* )
2524 machine=hp800 opsys=hpux9shr
2525 ;;
2526 hppa*-hp-hpux9* )
2527 machine=hp800 opsys=hpux9
2528 ;;
2529 hppa*-hp-hpux10.2* )
2530 machine=hp800 opsys=hpux10-20
2531 ;;
2532 hppa*-hp-hpux10* )
2533 machine=hp800 opsys=hpux10
2534 ;;
2535 hppa*-hp-hpux1[1-9]* )
2536 machine=hp800 opsys=hpux11
2537 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2538 ;;
2539
2540 hppa*-*-linux-gnu* )
2541 machine=hp800 opsys=gnu-linux
2542 ;;
2543
2544 ## HP 9000 series 700 and 800, running HP/UX
2545 hppa*-hp-hpux* )
2546 ## Cross-compilation? Nah!
2547 case "`uname -r`" in
2548 ## Someone's system reports A.B8.05 for this.
2549 ## I wonder what other possibilities there are.
2550 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2551 *.08.* ) machine=hp800 opsys=hpux8 ;;
2552 *.09.* ) machine=hp800 opsys=hpux9 ;;
2553 *) machine=hp800 opsys=hpux10 ;;
2554 esac
2555 ;;
2556 hppa*-*-nextstep* )
2557 machine=hp800 opsys=nextstep
2558 ;;
2559
2560 ## IBM machines
2561 i370-ibm-aix*)
2562 machine=ibm370aix opsys=usg5-3
2563 ;;
2564 s390-*-linux-gnu* )
2565 machine=ibms390 opsys=gnu-linux
2566 ;;
2567 s390x-*-linux-gnu* )
2568 machine=ibms390x opsys=gnu-linux
2569 ;;
2570 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2571 machine=ibmrs6000 opsys=aix3-1
2572 ;;
2573 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2574 machine=ibmrs6000 opsys=aix3-2-5
2575 ;;
2576 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2577 machine=ibmrs6000 opsys=aix4-1
2578 ;;
2579 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2580 machine=ibmrs6000 opsys=aix4-2
2581 ;;
2582 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2583 machine=ibmrs6000 opsys=aix4-2
2584 ;;
2585 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2586 machine=ibmrs6000 opsys=aix4-2
2587 ;;
2588 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2589 machine=ibmrs6000 opsys=aix4-2
2590 ;;
2591 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2592 machine=ibmrs6000 opsys=aix4
2593 ;;
2594 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2595 machine=ibmrs6000 opsys=aix4-1
2596 ;;
2597 rs6000-ibm-aix* | powerpc-ibm-aix* )
2598 machine=ibmrs6000 opsys=aix3-2
2599 ;;
2600
2601 ## Prime EXL
2602 i[3456]86-prime-sysv* )
2603 machine=i386 opsys=usg5-3
2604 ;;
2605
2606 ## ncr machine running svr4.3.
2607 i[3456]86-ncr-sysv4.3 )
2608 machine=ncr386 opsys=usg5-4-3
2609 ;;
2610
2611 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2612 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2613 i[3456]86-ncr-sysv* )
2614 machine=ncr386 opsys=usg5-4-2
2615 ;;
2616
2617 ## Macintosh PowerPC
2618 powerpc*-*-linux-gnu* )
2619 machine=macppc opsys=gnu-linux
2620 ;;
2621
2622 ## Workstations sold by MIPS
2623 ## This is not necessarily all workstations using the MIPS processor -
2624 ## Irises are produced by SGI, and DECstations by DEC.
2625
2626 mips-mips-bsd* )
2627 machine=mips opsys=bsd4-3
2628 ;;
2629 mips-mips-* )
2630 machine=mips opsys=usg5-2-2
2631 ;;
2632
2633 ## NeXT
2634 m68*-next-* | m68k-*-nextstep* )
2635 machine=m68k opsys=nextstep
2636 ;;
2637
2638 ## NEC EWS4800
2639 mips-nec-sysv4*)
2640 machine=ews4800 opsys=ux4800
2641 ;;
2642
2643 ## Siemens Nixdorf
2644 mips-siemens-sysv* | mips-sni-sysv*)
2645 machine=mips-siemens opsys=usg5-4
2646 NON_GNU_CC=/usr/ccs/bin/cc
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 ;;
2649
2650 ## Silicon Graphics machines
2651 ## Iris 4D
2652 mips-sgi-irix6.5 )
2653 machine=iris4d opsys=irix6-5
2654 # Without defining _LANGUAGE_C, things get masked out in the headers
2655 # so that, for instance, grepping for `free' in stdlib.h fails and
2656 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2657 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2658 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2659 ;;
2660
2661 ## Suns
2662 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2663 machine=sparc opsys=gnu-linux
2664 ;;
2665
2666 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2667 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2668 | rs6000-*-solaris2*)
2669 case "${canonical}" in
2670 i[3456]86-*-* ) machine=intel386 ;;
2671 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2672 powerpcle* ) machine=powerpcle ;;
2673 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2674 sparc* ) machine=sparc ;;
2675 * ) unported=yes ;;
2676 esac
2677 case "${canonical}" in
2678 *-sunos5.3* | *-solaris2.3* )
2679 opsys=sol2-3
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2681 ;;
2682 *-sunos5.4* | *-solaris2.4* )
2683 opsys=sol2-4
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 RANLIB="ar -ts"
2686 ;;
2687 *-sunos5.5* | *-solaris2.5* )
2688 opsys=sol2-5
2689 NON_GNU_CPP=/usr/ccs/lib/cpp
2690 RANLIB="ar -ts"
2691 ;;
2692 *-sunos5.6* | *-solaris2.6* )
2693 opsys=sol2-6
2694 NON_GNU_CPP=/usr/ccs/lib/cpp
2695 RANLIB="ar -ts"
2696 ;;
2697 *-sunos5* | *-solaris* )
2698 opsys=sol2-6
2699 emacs_check_sunpro_c=yes
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2701 ;;
2702 * ) opsys=bsd4-2 ;;
2703 esac
2704 ## Watch out for a compiler that we know will not work.
2705 case "${canonical}" in
2706 *-solaris* | *-sunos5* )
2707 if [ "x$CC" = x/usr/ucb/cc ]; then
2708 ## /usr/ucb/cc doesn't work;
2709 ## we should find some other compiler that does work.
2710 unset CC
2711 fi
2712 ;;
2713 *) ;;
2714 esac
2715 ;;
2716 sparc-*-nextstep* )
2717 machine=sparc opsys=nextstep
2718 ;;
2719
2720 ## Tandem Integrity S2
2721 mips-tandem-sysv* )
2722 machine=tandem-s2 opsys=usg5-3
2723 ;;
2724
2725 ## Vaxen.
2726 vax-dec-* )
2727 machine=vax
2728 case "${canonical}" in
2729 *-bsd4.1* ) opsys=bsd4-1 ;;
2730 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2731 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2732 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2733 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2734 *-vms* ) opsys=vms ;;
2735 * ) unported=yes
2736 esac
2737 ;;
2738
2739 ## IA-64
2740 ia64*-*-linux* )
2741 machine=ia64 opsys=gnu-linux
2742 ;;
2743
2744 ## Intel 386 machines where we don't care about the manufacturer
2745 i[3456]86-*-* )
2746 machine=intel386
2747 case "${canonical}" in
2748 *-cygwin ) opsys=cygwin ;;
2749 *-darwin* ) opsys=darwin
2750 CPP="${CC-cc} -E -no-cpp-precomp"
2751 ;;
2752 *-linux-gnu* ) opsys=gnu-linux ;;
2753 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2754 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2755 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2756 *-386bsd* ) opsys=386bsd ;;
2757 *-nextstep* ) opsys=nextstep ;;
2758 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2759 esac
2760 ;;
2761
2762 ## m68k Linux-based GNU system
2763 m68k-*-linux-gnu* )
2764 machine=m68k opsys=gnu-linux
2765 ;;
2766
2767 ## Mips Linux-based GNU system
2768 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2769 machine=mips opsys=gnu-linux
2770 ;;
2771
2772 ## UXP/DS
2773 sparc-fujitsu-sysv4* )
2774 machine=sparc opsys=uxpds
2775 NON_GNU_CPP=/usr/ccs/lib/cpp
2776 RANLIB="ar -ts"
2777 ;;
2778
2779 ## AMD x86-64 Linux-based GNU system
2780 x86_64-*-linux-gnu* )
2781 machine=amdx86-64 opsys=gnu-linux
2782 ;;
2783
2784 ## Tensilica Xtensa Linux-based GNU system
2785 xtensa*-*-linux-gnu* )
2786 machine=xtensa opsys=gnu-linux
2787 ;;
2788
2789 * )
2790 unported=yes
2791 ;;
2792 esac
2793
2794 ### If the code above didn't choose an operating system, just choose
2795 ### an operating system based on the configuration name. You really
2796 ### only want to use this when you have no idea what the right
2797 ### operating system is; if you know what operating systems a machine
2798 ### runs, it's cleaner to make it explicit in the case statement
2799 ### above.
2800 if test x"${opsys}" = x; then
2801 case "${canonical}" in
2802 *-gnu* ) opsys=gnu ;;
2803 *-bsd4.[01] ) opsys=bsd4-1 ;;
2804 *-bsd4.2 ) opsys=bsd4-2 ;;
2805 *-bsd4.3 ) opsys=bsd4-3 ;;
2806 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2807 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2808 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2809 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2810 *-sysv4.2uw* ) opsys=unixware ;;
2811 *-sysv5uw* ) opsys=unixware ;;
2812 *-sysv5OpenUNIX* ) opsys=unixware ;;
2813 *-sysv4.1* | *-sysvr4.1* )
2814 NON_GNU_CPP=/usr/lib/cpp
2815 opsys=usg5-4 ;;
2816 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2817 if [ x$NON_GNU_CPP = x ]; then
2818 if [ -f /usr/ccs/lib/cpp ]; then
2819 NON_GNU_CPP=/usr/ccs/lib/cpp
2820 else
2821 NON_GNU_CPP=/lib/cpp
2822 fi
2823 fi
2824 opsys=usg5-4-2 ;;
2825 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2826 * )
2827 unported=yes
2828 ;;
2829 esac
2830 fi
2831
2832 ### Tests for sytems that we beleive are obsolete and should be desupported.
2833
2834 case "${machine}" in
2835 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2836 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2837 echo "and it is planned to be desupported in the next version of Emacs"
2838 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2839 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2840 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2841 exit 33
2842 ;;
2843 esac
2844
2845 case "${opsys}" in
2846 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2847 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2848 echo "and it is planned to be desupported in the next version of Emacs"
2849 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2850 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2851 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2852 exit 44
2853 ;;
2854 esac
2855
2856
2857
2858 if test $unported = yes; then
2859 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2860 Check \`etc/MACHINES' for recognized configuration names." >&5
2861 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2862 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866 machfile="m/${machine}.h"
2867 opsysfile="s/${opsys}.h"
2868
2869
2870 #### Choose a compiler.
2871 test -n "$CC" && cc_specified=yes
2872
2873 # Save the value of CFLAGS that the user specified.
2874 SPECIFIED_CFLAGS="$CFLAGS"
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2913 else
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$ac_cv_prog_CC"; then
2921 ac_ct_CC=$CC
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2952 echo "${ECHO_T}$ac_ct_CC" >&6; }
2953 else
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2956 fi
2957
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2964 whose name does not start with the host triplet. If you think this
2965 configuration is useful to you, please write to autoconf@gnu.org." >&5
2966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet. If you think this
2968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971 CC=$ac_ct_CC
2972 fi
2973 else
2974 CC="$ac_cv_prog_CC"
2975 fi
2976
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="${ac_tool_prefix}cc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { echo "$as_me:$LINENO: result: $CC" >&5
3009 echo "${ECHO_T}$CC" >&6; }
3010 else
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3013 fi
3014
3015
3016 fi
3017 fi
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 ac_prog_rejected=no
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected=yes
3039 continue
3040 fi
3041 ac_cv_prog_CC="cc"
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3044 fi
3045 done
3046 done
3047 IFS=$as_save_IFS
3048
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy $ac_cv_prog_CC
3052 shift
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3057 shift
3058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059 fi
3060 fi
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { echo "$as_me:$LINENO: result: $CC" >&5
3066 echo "${ECHO_T}$CC" >&6; }
3067 else
3068 { echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6; }
3070 fi
3071
3072
3073 fi
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in cl.exe
3077 do
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { echo "$as_me:$LINENO: result: $CC" >&5
3108 echo "${ECHO_T}$CC" >&6; }
3109 else
3110 { echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6; }
3112 fi
3113
3114
3115 test -n "$CC" && break
3116 done
3117 fi
3118 if test -z "$CC"; then
3119 ac_ct_CC=$CC
3120 for ac_prog in cl.exe
3121 do
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC="$ac_prog"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3152 echo "${ECHO_T}$ac_ct_CC" >&6; }
3153 else
3154 { echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6; }
3156 fi
3157
3158
3159 test -n "$ac_ct_CC" && break
3160 done
3161
3162 if test "x$ac_ct_CC" = x; then
3163 CC=""
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet. If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&5
3170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171 whose name does not start with the host triplet. If you think this
3172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 CC=$ac_ct_CC
3176 fi
3177 fi
3178
3179 fi
3180
3181
3182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&5
3184 echo "$as_me: error: no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }
3187
3188 # Provide some information about the compiler.
3189 echo "$as_me:$LINENO: checking for C compiler version" >&5
3190 ac_compiler=`set X $ac_compile; echo $2`
3191 { (ac_try="$ac_compiler --version >&5"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler --version >&5") 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { (ac_try="$ac_compiler -v >&5"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler -v >&5") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try="$ac_compiler -V >&5"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler -V >&5") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3244 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245 #
3246 # List of possible output files, starting from the most likely.
3247 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3248 # only as a last resort. b.out is created by i960 compilers.
3249 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3250 #
3251 # The IRIX 6 linker writes into existing files which may not be
3252 # executable, retaining their permissions. Remove them first so a
3253 # subsequent execution test works.
3254 ac_rmfiles=
3255 for ac_file in $ac_files
3256 do
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260 esac
3261 done
3262 rm -f $ac_rmfiles
3263
3264 if { (ac_try="$ac_link_default"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_link_default") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; then
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3278 # Autoconf.
3279 for ac_file in $ac_files ''
3280 do
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3284 ;;
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 fi
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
3299 break;;
3300 * )
3301 break;;
3302 esac
3303 done
3304 test "$ac_cv_exeext" = no && ac_cv_exeext=
3305
3306 else
3307 ac_file=''
3308 fi
3309
3310 { echo "$as_me:$LINENO: result: $ac_file" >&5
3311 echo "${ECHO_T}$ac_file" >&6; }
3312 if test -z "$ac_file"; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C compiler cannot create executables
3319 See \`config.log' for more details." >&2;}
3320 { (exit 77); exit 77; }; }
3321 fi
3322
3323 ac_exeext=$ac_cv_exeext
3324
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3328 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3329 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3330 # If not cross compiling, check that we can run a simple program.
3331 if test "$cross_compiling" != yes; then
3332 if { ac_try='./$ac_file'
3333 { (case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details." >&5
3350 echo "$as_me: error: cannot run C compiled programs.
3351 If you meant to cross compile, use \`--host'.
3352 See \`config.log' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3354 fi
3355 fi
3356 fi
3357 { echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6; }
3359
3360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3366 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3367 echo "${ECHO_T}$cross_compiling" >&6; }
3368
3369 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3371 if { (ac_try="$ac_link"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; then
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3400 fi
3401
3402 rm -f conftest$ac_cv_exeext
3403 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3404 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3405
3406 rm -f conftest.$ac_ext
3407 EXEEXT=$ac_cv_exeext
3408 ac_exeext=$EXEEXT
3409 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3410 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3411 if test "${ac_cv_objext+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420
3421 int
3422 main ()
3423 {
3424
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 rm -f conftest.o conftest.obj
3430 if { (ac_try="$ac_compile"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; then
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447 done
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
3457 fi
3458
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3460 fi
3461 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3462 echo "${ECHO_T}$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3464 ac_objext=$OBJEXT
3465 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476
3477 int
3478 main ()
3479 {
3480 #ifndef __GNUC__
3481 choke me
3482 #endif
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3505 ac_compiler_gnu=yes
3506 else
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 ac_compiler_gnu=no
3511 fi
3512
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3515
3516 fi
3517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3519 GCC=`test $ac_compiler_gnu = yes && echo yes`
3520 ac_test_CFLAGS=${CFLAGS+set}
3521 ac_save_CFLAGS=$CFLAGS
3522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3524 if test "${ac_cv_prog_cc_g+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 ac_save_c_werror_flag=$ac_c_werror_flag
3528 ac_c_werror_flag=yes
3529 ac_cv_prog_cc_g=no
3530 CFLAGS="-g"
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537
3538 int
3539 main ()
3540 {
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3563 ac_cv_prog_cc_g=yes
3564 else
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 CFLAGS=""
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3601 :
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607 CFLAGS="-g"
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_prog_cc_g=yes
3641 else
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645
3646 fi
3647
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 fi
3653
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3656 fi
3657 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3658 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3659 if test "$ac_test_CFLAGS" = set; then
3660 CFLAGS=$ac_save_CFLAGS
3661 elif test $ac_cv_prog_cc_g = yes; then
3662 if test "$GCC" = yes; then
3663 CFLAGS="-g -O2"
3664 else
3665 CFLAGS="-g"
3666 fi
3667 else
3668 if test "$GCC" = yes; then
3669 CFLAGS="-O2"
3670 else
3671 CFLAGS=
3672 fi
3673 fi
3674 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3675 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3676 if test "${ac_cv_prog_cc_c89+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 ac_cv_prog_cc_c89=no
3680 ac_save_CC=$CC
3681 cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h. */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3687 #include <stdarg.h>
3688 #include <stdio.h>
3689 #include <sys/types.h>
3690 #include <sys/stat.h>
3691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3692 struct buf { int x; };
3693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694 static char *e (p, i)
3695 char **p;
3696 int i;
3697 {
3698 return p[i];
3699 }
3700 static char *f (char * (*g) (char **, int), char **p, ...)
3701 {
3702 char *s;
3703 va_list v;
3704 va_start (v,p);
3705 s = g (p, va_arg (v,int));
3706 va_end (v);
3707 return s;
3708 }
3709
3710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3711 function prototypes and stuff, but not '\xHH' hex character constants.
3712 These don't provoke an error unfortunately, instead are silently treated
3713 as 'x'. The following induces an error, until -std is added to get
3714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3715 array size at least. It's necessary to write '\x00'==0 to get something
3716 that's true only with -std. */
3717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3718
3719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3720 inside strings and character constants. */
3721 #define FOO(x) 'x'
3722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3723
3724 int test (int i, double x);
3725 struct s1 {int (*f) (int a);};
3726 struct s2 {int (*f) (double a);};
3727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3728 int argc;
3729 char **argv;
3730 int
3731 main ()
3732 {
3733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3740 do
3741 CC="$ac_save_CC $ac_arg"
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cc_c89=$ac_arg
3760 else
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764
3765 fi
3766
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x$ac_cv_prog_cc_c89" != "xno" && break
3769 done
3770 rm -f conftest.$ac_ext
3771 CC=$ac_save_CC
3772
3773 fi
3774 # AC_CACHE_VAL
3775 case "x$ac_cv_prog_cc_c89" in
3776 x)
3777 { echo "$as_me:$LINENO: result: none needed" >&5
3778 echo "${ECHO_T}none needed" >&6; } ;;
3779 xno)
3780 { echo "$as_me:$LINENO: result: unsupported" >&5
3781 echo "${ECHO_T}unsupported" >&6; } ;;
3782 *)
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3786 esac
3787
3788
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
3795
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3798 CPP=
3799 fi
3800
3801 ## If not using gcc, and on Solaris, and no CPP specified, see if
3802 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3803 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3804 test x"$CPP" = x; then
3805 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3806 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3807
3808 if test "${emacs_cv_sunpro_c+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821 #ifndef __SUNPRO_C
3822 fail;
3823 #endif
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (ac_try="$ac_link"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_link") 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest$ac_exeext &&
3846 $as_test_x conftest$ac_exeext; then
3847 emacs_cv_sunpro_c=yes
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 emacs_cv_sunpro_c=no
3853 fi
3854
3855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3856 conftest$ac_exeext conftest.$ac_ext
3857 fi
3858
3859 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3860 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3861
3862 if test x"$emacs_cv_sunpro_c" = xyes; then
3863 NON_GNU_CPP="$CC -E -Xs"
3864 fi
3865 fi
3866
3867 #### Some systems specify a CPP to use unless we are using GCC.
3868 #### Now that we know whether we are using GCC, we can decide whether
3869 #### to use that one.
3870 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3871 then
3872 CPP="$NON_GNU_CPP"
3873 fi
3874
3875 #### Some systems specify a CC to use unless we are using GCC.
3876 #### Now that we know whether we are using GCC, we can decide whether
3877 #### to use that one.
3878 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3879 test x$cc_specified != xyes
3880 then
3881 CC="$NON_GNU_CC"
3882 fi
3883
3884 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3885 then
3886 CC="$CC $GCC_TEST_OPTIONS"
3887 fi
3888
3889 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3890 then
3891 CC="$CC $NON_GCC_TEST_OPTIONS"
3892 fi
3893
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3901 # On Suns, sometimes $CPP names a directory.
3902 if test -n "$CPP" && test -d "$CPP"; then
3903 CPP=
3904 fi
3905 if test -z "$CPP"; then
3906 if test "${ac_cv_prog_CPP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 # Double quotes because CPP needs to be expanded
3910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3911 do
3912 ac_preproc_ok=false
3913 for ac_c_preproc_warn_flag in '' yes
3914 do
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error" is here to catch this case.
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #ifdef __STDC__
3928 # include <limits.h>
3929 #else
3930 # include <assert.h>
3931 #endif
3932 Syntax error
3933 _ACEOF
3934 if { (ac_try="$ac_cpp conftest.$ac_ext"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } >/dev/null && {
3947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 }; then
3950 :
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 # Broken: fails on valid input.
3956 continue
3957 fi
3958
3959 rm -f conftest.err conftest.$ac_ext
3960
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #include <ac_nonexistent.h>
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
3987 # Broken: success on invalid input.
3988 continue
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 # Passes both tests.
3994 ac_preproc_ok=:
3995 break
3996 fi
3997
3998 rm -f conftest.err conftest.$ac_ext
3999
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then
4004 break
4005 fi
4006
4007 done
4008 ac_cv_prog_CPP=$CPP
4009
4010 fi
4011 CPP=$ac_cv_prog_CPP
4012 else
4013 ac_cv_prog_CPP=$CPP
4014 fi
4015 { echo "$as_me:$LINENO: result: $CPP" >&5
4016 echo "${ECHO_T}$CPP" >&6; }
4017 ac_preproc_ok=false
4018 for ac_c_preproc_warn_flag in '' yes
4019 do
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037 Syntax error
4038 _ACEOF
4039 if { (ac_try="$ac_cpp conftest.$ac_ext"
4040 case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043 esac
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } >/dev/null && {
4052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 }; then
4055 :
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 # Broken: fails on valid input.
4061 continue
4062 fi
4063
4064 rm -f conftest.err conftest.$ac_ext
4065
4066 # OK, works on sane cases. Now check whether nonexistent headers
4067 # can be detected and how.
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4075 _ACEOF
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 }; then
4092 # Broken: success on invalid input.
4093 continue
4094 else
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 # Passes both tests.
4099 ac_preproc_ok=:
4100 break
4101 fi
4102
4103 rm -f conftest.err conftest.$ac_ext
4104
4105 done
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4109 :
4110 else
4111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4112 See \`config.log' for more details." >&5
4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4114 See \`config.log' for more details." >&2;}
4115 { (exit 1); exit 1; }; }
4116 fi
4117
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123
4124
4125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_GREP+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 # Extract the first word of "grep ggrep" to use in msg output
4131 if test -z "$GREP"; then
4132 set dummy grep ggrep; ac_prog_name=$2
4133 if test "${ac_cv_path_GREP+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 ac_path_GREP_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4140 do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in grep ggrep; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4147 # Check for GNU ac_path_GREP and select it if it is found.
4148 # Check for GNU $ac_path_GREP
4149 case `"$ac_path_GREP" --version 2>&1` in
4150 *GNU*)
4151 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4152 *)
4153 ac_count=0
4154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4155 while :
4156 do
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 echo 'GREP' >> "conftest.nl"
4161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 ac_count=`expr $ac_count + 1`
4164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_GREP="$ac_path_GREP"
4167 ac_path_GREP_max=$ac_count
4168 fi
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4171 done
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4174
4175
4176 $ac_path_GREP_found && break 3
4177 done
4178 done
4179
4180 done
4181 IFS=$as_save_IFS
4182
4183
4184 fi
4185
4186 GREP="$ac_cv_path_GREP"
4187 if test -z "$GREP"; then
4188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4190 { (exit 1); exit 1; }; }
4191 fi
4192
4193 else
4194 ac_cv_path_GREP=$GREP
4195 fi
4196
4197
4198 fi
4199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4202
4203
4204 { echo "$as_me:$LINENO: checking for egrep" >&5
4205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4206 if test "${ac_cv_path_EGREP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210 then ac_cv_path_EGREP="$GREP -E"
4211 else
4212 # Extract the first word of "egrep" to use in msg output
4213 if test -z "$EGREP"; then
4214 set dummy egrep; ac_prog_name=$2
4215 if test "${ac_cv_path_EGREP+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 ac_path_EGREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in egrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4229 # Check for GNU ac_path_EGREP and select it if it is found.
4230 # Check for GNU $ac_path_EGREP
4231 case `"$ac_path_EGREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234 *)
4235 ac_count=0
4236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4237 while :
4238 do
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 echo 'EGREP' >> "conftest.nl"
4243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 ac_count=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_EGREP="$ac_path_EGREP"
4249 ac_path_EGREP_max=$ac_count
4250 fi
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4256
4257
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4261
4262 done
4263 IFS=$as_save_IFS
4264
4265
4266 fi
4267
4268 EGREP="$ac_cv_path_EGREP"
4269 if test -z "$EGREP"; then
4270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4272 { (exit 1); exit 1; }; }
4273 fi
4274
4275 else
4276 ac_cv_path_EGREP=$EGREP
4277 fi
4278
4279
4280 fi
4281 fi
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4284 EGREP="$ac_cv_path_EGREP"
4285
4286
4287
4288 { echo "$as_me:$LINENO: checking for AIX" >&5
4289 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h. */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 #ifdef _AIX
4297 yes
4298 #endif
4299
4300 _ACEOF
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "yes" >/dev/null 2>&1; then
4303 { echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6; }
4305 cat >>confdefs.h <<\_ACEOF
4306 #define _ALL_SOURCE 1
4307 _ACEOF
4308
4309 else
4310 { echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6; }
4312 fi
4313 rm -f conftest*
4314
4315
4316
4317 cat >>confdefs.h <<\_ACEOF
4318 #define _GNU_SOURCE 1
4319 _ACEOF
4320
4321
4322
4323 ### Use -Wno-pointer-sign if the compiler supports it
4324 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4325 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4326 SAVE_CFLAGS="$CFLAGS"
4327 CFLAGS="$CFLAGS -Wno-pointer-sign"
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334
4335 int
4336 main ()
4337 {
4338
4339 ;
4340 return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
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_compile") 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); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
4360 has_option=yes
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 has_option=no
4366 fi
4367
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 if test $has_option = yes; then
4370 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4371 fi
4372 { echo "$as_me:$LINENO: result: $has_option" >&5
4373 echo "${ECHO_T}$has_option" >&6; }
4374 CFLAGS="$SAVE_CFLAGS"
4375 unset has_option
4376 unset SAVE_CFLAGS
4377
4378 #### Some other nice autoconf tests.
4379
4380 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4382 LN_S=$as_ln_s
4383 if test "$LN_S" = "ln -s"; then
4384 { echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6; }
4386 else
4387 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4388 echo "${ECHO_T}no, using $LN_S" >&6; }
4389 fi
4390
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4397 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4398 # On Suns, sometimes $CPP names a directory.
4399 if test -n "$CPP" && test -d "$CPP"; then
4400 CPP=
4401 fi
4402 if test -z "$CPP"; then
4403 if test "${ac_cv_prog_CPP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406 # Double quotes because CPP needs to be expanded
4407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4408 do
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4411 do
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h. */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #ifdef __STDC__
4425 # include <limits.h>
4426 #else
4427 # include <assert.h>
4428 #endif
4429 Syntax error
4430 _ACEOF
4431 if { (ac_try="$ac_cpp conftest.$ac_ext"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null && {
4444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 }; then
4447 :
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 # Broken: fails on valid input.
4453 continue
4454 fi
4455
4456 rm -f conftest.err conftest.$ac_ext
4457
4458 # OK, works on sane cases. Now check whether nonexistent headers
4459 # can be detected and how.
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4467 _ACEOF
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 }; then
4484 # Broken: success on invalid input.
4485 continue
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 # Passes both tests.
4491 ac_preproc_ok=:
4492 break
4493 fi
4494
4495 rm -f conftest.err conftest.$ac_ext
4496
4497 done
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then
4501 break
4502 fi
4503
4504 done
4505 ac_cv_prog_CPP=$CPP
4506
4507 fi
4508 CPP=$ac_cv_prog_CPP
4509 else
4510 ac_cv_prog_CPP=$CPP
4511 fi
4512 { echo "$as_me:$LINENO: result: $CPP" >&5
4513 echo "${ECHO_T}$CPP" >&6; }
4514 ac_preproc_ok=false
4515 for ac_c_preproc_warn_flag in '' yes
4516 do
4517 # Use a header file that comes with gcc, so configuring glibc
4518 # with a fresh cross-compiler works.
4519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520 # <limits.h> exists even on freestanding compilers.
4521 # On the NeXT, cc -E runs the code through the compiler's parser,
4522 # not just through cpp. "Syntax error" is here to catch this case.
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 #ifdef __STDC__
4530 # include <limits.h>
4531 #else
4532 # include <assert.h>
4533 #endif
4534 Syntax error
4535 _ACEOF
4536 if { (ac_try="$ac_cpp conftest.$ac_ext"
4537 case "(($ac_try" in
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4543 ac_status=$?
4544 grep -v '^ *+' conftest.er1 >conftest.err
4545 rm -f conftest.er1
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null && {
4549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4551 }; then
4552 :
4553 else
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 # Broken: fails on valid input.
4558 continue
4559 fi
4560
4561 rm -f conftest.err conftest.$ac_ext
4562
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <ac_nonexistent.h>
4572 _ACEOF
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 }; then
4589 # Broken: success on invalid input.
4590 continue
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 # Passes both tests.
4596 ac_preproc_ok=:
4597 break
4598 fi
4599
4600 rm -f conftest.err conftest.$ac_ext
4601
4602 done
4603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4604 rm -f conftest.err conftest.$ac_ext
4605 if $ac_preproc_ok; then
4606 :
4607 else
4608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details." >&5
4610 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4611 See \`config.log' for more details." >&2;}
4612 { (exit 1); exit 1; }; }
4613 fi
4614
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620
4621 # Find a good install program. We prefer a C program (faster),
4622 # so one script is as good as another. But avoid the broken or
4623 # incompatible versions:
4624 # SysV /etc/install, /usr/sbin/install
4625 # SunOS /usr/etc/install
4626 # IRIX /sbin/install
4627 # AIX /bin/install
4628 # AmigaOS /C/install, which installs bootblocks on floppy discs
4629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4632 # OS/2's system install, which has a completely different semantic
4633 # ./install, which can be erroneously created by make from ./install.sh.
4634 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4636 if test -z "$INSTALL"; then
4637 if test "${ac_cv_path_install+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 # Account for people who put trailing slashes in PATH elements.
4646 case $as_dir/ in
4647 ./ | .// | /cC/* | \
4648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4650 /usr/ucb/* ) ;;
4651 *)
4652 # OSF1 and SCO ODT 3.0 have their own names for install.
4653 # Don't use installbsd from OSF since it installs stuff as root
4654 # by default.
4655 for ac_prog in ginstall scoinst install; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4658 if test $ac_prog = install &&
4659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4660 # AIX install. It has an incompatible calling convention.
4661 :
4662 elif test $ac_prog = install &&
4663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4664 # program-specific install script used by HP pwplus--don't use.
4665 :
4666 else
4667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4668 break 3
4669 fi
4670 fi
4671 done
4672 done
4673 ;;
4674 esac
4675 done
4676 IFS=$as_save_IFS
4677
4678
4679 fi
4680 if test "${ac_cv_path_install+set}" = set; then
4681 INSTALL=$ac_cv_path_install
4682 else
4683 # As a last resort, use the slow shell script. Don't cache a
4684 # value for INSTALL within a source directory, because that will
4685 # break other packages using the cache if that directory is
4686 # removed, or if the value is a relative name.
4687 INSTALL=$ac_install_sh
4688 fi
4689 fi
4690 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4691 echo "${ECHO_T}$INSTALL" >&6; }
4692
4693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4694 # It thinks the first close brace ends the variable substitution.
4695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4696
4697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4698
4699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4700
4701 if test "x$RANLIB" = x; then
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_RANLIB+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$RANLIB"; then
4711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 fi
4729 fi
4730 RANLIB=$ac_cv_prog_RANLIB
4731 if test -n "$RANLIB"; then
4732 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4733 echo "${ECHO_T}$RANLIB" >&6; }
4734 else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 fi
4738
4739
4740 fi
4741 if test -z "$ac_cv_prog_RANLIB"; then
4742 ac_ct_RANLIB=$RANLIB
4743 # Extract the first word of "ranlib", so it can be a program name with args.
4744 set dummy ranlib; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750 if test -n "$ac_ct_RANLIB"; then
4751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_RANLIB="ranlib"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4771 if test -n "$ac_ct_RANLIB"; then
4772 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4773 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4774 else
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 fi
4778
4779 if test "x$ac_ct_RANLIB" = x; then
4780 RANLIB=":"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&5
4787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790 ac_tool_warned=yes ;;
4791 esac
4792 RANLIB=$ac_ct_RANLIB
4793 fi
4794 else
4795 RANLIB="$ac_cv_prog_RANLIB"
4796 fi
4797
4798 fi
4799 # Extract the first word of "install-info", so it can be a program name with args.
4800 set dummy install-info; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 case $INSTALL_INFO in
4807 [\\/]* | ?:[\\/]*)
4808 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4809 ;;
4810 *)
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4821 fi
4822 done
4823 done
4824 IFS=$as_save_IFS
4825
4826 ;;
4827 esac
4828 fi
4829 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4830 if test -n "$INSTALL_INFO"; then
4831 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4832 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4833 else
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4836 fi
4837
4838
4839 # Extract the first word of "install-info", so it can be a program name with args.
4840 set dummy install-info; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 case $INSTALL_INFO in
4847 [\\/]* | ?:[\\/]*)
4848 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4849 ;;
4850 *)
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in /usr/sbin
4853 do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 ;;
4867 esac
4868 fi
4869 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4870 if test -n "$INSTALL_INFO"; then
4871 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4872 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4873 else
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 # Extract the first word of "install-info", so it can be a program name with args.
4880 set dummy install-info; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 case $INSTALL_INFO in
4887 [\\/]* | ?:[\\/]*)
4888 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4889 ;;
4890 *)
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in /sbin
4893 do
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4901 fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4907 ;;
4908 esac
4909 fi
4910 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4911 if test -n "$INSTALL_INFO"; then
4912 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4913 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4914 else
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "gzip", so it can be a program name with args.
4921 set dummy gzip; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 case $GZIP_PROG in
4928 [\\/]* | ?:[\\/]*)
4929 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4930 ;;
4931 *)
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4942 fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947 ;;
4948 esac
4949 fi
4950 GZIP_PROG=$ac_cv_path_GZIP_PROG
4951 if test -n "$GZIP_PROG"; then
4952 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4953 echo "${ECHO_T}$GZIP_PROG" >&6; }
4954 else
4955 { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4957 fi
4958
4959
4960
4961
4962 ## Need makeinfo >= 4.6 (?) to build the manuals.
4963 # Extract the first word of "makeinfo", so it can be a program name with args.
4964 set dummy makeinfo; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 case $MAKEINFO in
4971 [\\/]* | ?:[\\/]*)
4972 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4973 ;;
4974 *)
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4989
4990 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4991 ;;
4992 esac
4993 fi
4994 MAKEINFO=$ac_cv_path_MAKEINFO
4995 if test -n "$MAKEINFO"; then
4996 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4997 echo "${ECHO_T}$MAKEINFO" >&6; }
4998 else
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5001 fi
5002
5003
5004 if test "$MAKEINFO" != "no" && \
5005 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
5006 MAKEINFO=no
5007 fi
5008
5009 if test "$MAKEINFO" = "no"; then
5010 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5011 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5012 { (exit 1); exit 1; }; }
5013 fi
5014
5015
5016
5017 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5018 then
5019 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5020 fi
5021
5022 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5023 then
5024 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5025 fi
5026
5027
5028 late_LDFLAGS=$LDFLAGS
5029 if test "$GCC" = yes; then
5030 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5031 else
5032 LDFLAGS="$LDFLAGS -znocombreloc"
5033 fi
5034
5035 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5036 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5037 cat >conftest.$ac_ext <<_ACEOF
5038 main(){return 0;}
5039 _ACEOF
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest$ac_exeext &&
5057 $as_test_x conftest$ac_exeext; then
5058 { echo "$as_me:$LINENO: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6; }
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 LDFLAGS=$late_LDFLAGS
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5067 fi
5068
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070 conftest$ac_exeext conftest.$ac_ext
5071
5072 #### Extract some information from the operating system and machine files.
5073
5074 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5075 - which libraries the lib-src programs will want, and
5076 - whether the GNU malloc routines are usable..." >&5
5077 echo "$as_me: checking the machine- and system-dependent files to find out
5078 - which libraries the lib-src programs will want, and
5079 - whether the GNU malloc routines are usable..." >&6;}
5080
5081 ### First figure out CFLAGS (which we use for running the compiler here)
5082 ### and REAL_CFLAGS (which we use for real compilation).
5083 ### The two are the same except on a few systems, where they are made
5084 ### different to work around various lossages. For example,
5085 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5086 ### as implying static linking.
5087
5088 ### If the CFLAGS env var is specified, we use that value
5089 ### instead of the default.
5090
5091 ### It's not important that this name contain the PID; you can't run
5092 ### two configures in the same directory and have anything work
5093 ### anyway.
5094 tempcname="conftest.c"
5095
5096 echo '
5097 #include "'${srcdir}'/src/'${opsysfile}'"
5098 #include "'${srcdir}'/src/'${machfile}'"
5099 #ifndef LIBS_MACHINE
5100 #define LIBS_MACHINE
5101 #endif
5102 #ifndef LIBS_SYSTEM
5103 #define LIBS_SYSTEM
5104 #endif
5105 #ifndef C_SWITCH_SYSTEM
5106 #define C_SWITCH_SYSTEM
5107 #endif
5108 #ifndef C_SWITCH_MACHINE
5109 #define C_SWITCH_MACHINE
5110 #endif
5111 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5112 configure___ c_switch_system=C_SWITCH_SYSTEM
5113 configure___ c_switch_machine=C_SWITCH_MACHINE
5114
5115 #ifndef LIB_X11_LIB
5116 #define LIB_X11_LIB -lX11
5117 #endif
5118
5119 #ifndef LIBX11_SYSTEM
5120 #define LIBX11_SYSTEM
5121 #endif
5122 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5123
5124 #ifdef UNEXEC
5125 configure___ unexec=UNEXEC
5126 #else
5127 configure___ unexec=unexec.o
5128 #endif
5129
5130 #ifdef SYSTEM_MALLOC
5131 configure___ system_malloc=yes
5132 #else
5133 configure___ system_malloc=no
5134 #endif
5135
5136 #ifdef USE_MMAP_FOR_BUFFERS
5137 configure___ use_mmap_for_buffers=yes
5138 #else
5139 configure___ use_mmap_for_buffers=no
5140 #endif
5141
5142 #ifndef C_DEBUG_SWITCH
5143 #define C_DEBUG_SWITCH -g
5144 #endif
5145
5146 #ifndef C_OPTIMIZE_SWITCH
5147 #ifdef __GNUC__
5148 #define C_OPTIMIZE_SWITCH -O2
5149 #else
5150 #define C_OPTIMIZE_SWITCH -O
5151 #endif
5152 #endif
5153
5154 #ifndef C_WARNINGS_SWITCH
5155 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5156 #endif
5157
5158 #ifndef LD_SWITCH_MACHINE
5159 #define LD_SWITCH_MACHINE
5160 #endif
5161
5162 #ifndef LD_SWITCH_SYSTEM
5163 #define LD_SWITCH_SYSTEM
5164 #endif
5165
5166 #ifndef LD_SWITCH_X_SITE_AUX
5167 #define LD_SWITCH_X_SITE_AUX
5168 #endif
5169
5170 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5171 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5172
5173 #ifdef THIS_IS_CONFIGURE
5174
5175 /* Get the CFLAGS for tests in configure. */
5176 #ifdef __GNUC__
5177 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5178 #else
5179 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5180 #endif
5181
5182 #else /* not THIS_IS_CONFIGURE */
5183
5184 /* Get the CFLAGS for real compilation. */
5185 #ifdef __GNUC__
5186 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5187 #else
5188 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5189 #endif
5190
5191 #endif /* not THIS_IS_CONFIGURE */
5192 ' > ${tempcname}
5193
5194 # The value of CPP is a quoted variable reference, so we need to do this
5195 # to get its actual value...
5196 CPP=`eval "echo $CPP"`
5197 eval `${CPP} -Isrc ${tempcname} \
5198 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5199 if test "x$SPECIFIED_CFLAGS" = x; then
5200 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5201 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5202 else
5203 REAL_CFLAGS="$CFLAGS"
5204 fi
5205 rm ${tempcname}
5206
5207 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5208
5209 ### Make sure subsequent tests use flags consistent with the build flags.
5210
5211 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5212 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5213 else
5214 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5215 fi
5216
5217
5218
5219 # Check whether --enable-largefile was given.
5220 if test "${enable_largefile+set}" = set; then
5221 enableval=$enable_largefile;
5222 fi
5223
5224 if test "$enable_largefile" != no; then
5225
5226 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5227 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5228 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 ac_cv_sys_largefile_CC=no
5232 if test "$GCC" != yes; then
5233 ac_save_CC=$CC
5234 while :; do
5235 # IRIX 6.2 and later do not support large files by default,
5236 # so use the C compiler's -n32 option if that helps.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5251 ? 1 : -1];
5252 int
5253 main ()
5254 {
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.$ac_objext; then
5277 break
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5281
5282
5283 fi
5284
5285 rm -f core conftest.err conftest.$ac_objext
5286 CC="$CC -n32"
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
5304 ac_cv_sys_largefile_CC=' -n32'; break
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309
5310 fi
5311
5312 rm -f core conftest.err conftest.$ac_objext
5313 break
5314 done
5315 CC=$ac_save_CC
5316 rm -f conftest.$ac_ext
5317 fi
5318 fi
5319 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5320 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5321 if test "$ac_cv_sys_largefile_CC" != no; then
5322 CC=$CC$ac_cv_sys_largefile_CC
5323 fi
5324
5325 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5326 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5327 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 while :; do
5331 cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <sys/types.h>
5338 /* Check that off_t can represent 2**63 - 1 correctly.
5339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5340 since some C++ compilers masquerading as C compilers
5341 incorrectly reject 9223372036854775807. */
5342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5344 && LARGE_OFF_T % 2147483647 == 1)
5345 ? 1 : -1];
5346 int
5347 main ()
5348 {
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5356 case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.$ac_objext; then
5371 ac_cv_sys_file_offset_bits=no; break
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376
5377 fi
5378
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #define _FILE_OFFSET_BITS 64
5387 #include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5396 int
5397 main ()
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (ac_try="$ac_compile"
5406 case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 ac_cv_sys_file_offset_bits=64; break
5422 else
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426
5427 fi
5428
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 ac_cv_sys_file_offset_bits=unknown
5431 break
5432 done
5433 fi
5434 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5435 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5436 case $ac_cv_sys_file_offset_bits in #(
5437 no | unknown) ;;
5438 *)
5439 cat >>confdefs.h <<_ACEOF
5440 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5441 _ACEOF
5442 ;;
5443 esac
5444 rm -f conftest*
5445 if test $ac_cv_sys_file_offset_bits = unknown; then
5446 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5447 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5448 if test "${ac_cv_sys_large_files+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 while :; do
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5467 int
5468 main ()
5469 {
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5477 case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 ac_cv_sys_large_files=no; break
5493 else
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497
5498 fi
5499
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #define _LARGE_FILES 1
5508 #include <sys/types.h>
5509 /* Check that off_t can represent 2**63 - 1 correctly.
5510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5511 since some C++ compilers masquerading as C compilers
5512 incorrectly reject 9223372036854775807. */
5513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5515 && LARGE_OFF_T % 2147483647 == 1)
5516 ? 1 : -1];
5517 int
5518 main ()
5519 {
5520
5521 ;
5522 return 0;
5523 }
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_sys_large_files=1; break
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547
5548 fi
5549
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 ac_cv_sys_large_files=unknown
5552 break
5553 done
5554 fi
5555 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5556 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5557 case $ac_cv_sys_large_files in #(
5558 no | unknown) ;;
5559 *)
5560 cat >>confdefs.h <<_ACEOF
5561 #define _LARGE_FILES $ac_cv_sys_large_files
5562 _ACEOF
5563 ;;
5564 esac
5565 rm -f conftest*
5566 fi
5567 fi
5568
5569
5570
5571 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5572 ### be located in either /usr/lib64 or /usr/lib.
5573 case "${canonical}" in
5574 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5575 if test -d /usr/lib64; then
5576
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_LIB64_DIR 1
5579 _ACEOF
5580
5581 fi
5582 esac
5583
5584
5585
5586
5587 if test "${with_sound}" != "no"; then
5588 # Sound support for GNU/Linux and the free BSDs.
5589 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5591 if test "${ac_cv_header_stdc+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #include <stdlib.h>
5601 #include <stdarg.h>
5602 #include <string.h>
5603 #include <float.h>
5604
5605 int
5606 main ()
5607 {
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_cv_header_stdc=yes
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 ac_cv_header_stdc=no
5636 fi
5637
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640 if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <string.h>
5649
5650 _ACEOF
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "memchr" >/dev/null 2>&1; then
5653 :
5654 else
5655 ac_cv_header_stdc=no
5656 fi
5657 rm -f conftest*
5658
5659 fi
5660
5661 if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <stdlib.h>
5670
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "free" >/dev/null 2>&1; then
5674 :
5675 else
5676 ac_cv_header_stdc=no
5677 fi
5678 rm -f conftest*
5679
5680 fi
5681
5682 if test $ac_cv_header_stdc = yes; then
5683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684 if test "$cross_compiling" = yes; then
5685 :
5686 else
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 #include <ctype.h>
5694 #include <stdlib.h>
5695 #if ((' ' & 0x0FF) == 0x020)
5696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5698 #else
5699 # define ISLOWER(c) \
5700 (('a' <= (c) && (c) <= 'i') \
5701 || ('j' <= (c) && (c) <= 'r') \
5702 || ('s' <= (c) && (c) <= 'z'))
5703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5704 #endif
5705
5706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5707 int
5708 main ()
5709 {
5710 int i;
5711 for (i = 0; i < 256; i++)
5712 if (XOR (islower (i), ISLOWER (i))
5713 || toupper (i) != TOUPPER (i))
5714 return 2;
5715 return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest$ac_exeext
5719 if { (ac_try="$ac_link"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_link") 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 :
5739 else
5740 echo "$as_me: program exited with status $ac_status" >&5
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 ( exit $ac_status )
5745 ac_cv_header_stdc=no
5746 fi
5747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5748 fi
5749
5750
5751 fi
5752 fi
5753 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5754 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5755 if test $ac_cv_header_stdc = yes; then
5756
5757 cat >>confdefs.h <<\_ACEOF
5758 #define STDC_HEADERS 1
5759 _ACEOF
5760
5761 fi
5762
5763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5774 inttypes.h stdint.h unistd.h
5775 do
5776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5789
5790 #include <$ac_header>
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 eval "$as_ac_Header=yes"
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 eval "$as_ac_Header=no"
5815 fi
5816
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 fi
5819 ac_res=`eval echo '${'$as_ac_Header'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821 echo "${ECHO_T}$ac_res" >&6; }
5822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5825 _ACEOF
5826
5827 fi
5828
5829 done
5830
5831
5832
5833
5834
5835 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5836 do
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 fi
5844 ac_res=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5847 else
5848 # Is the header compilable?
5849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5858 #include <$ac_header>
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.$ac_objext; then
5877 ac_header_compiler=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_header_compiler=no
5883 fi
5884
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6; }
5888
5889 # Is the header present?
5890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <$ac_header>
5899 _ACEOF
5900 if { (ac_try="$ac_cpp conftest.$ac_ext"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null && {
5913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5915 }; then
5916 ac_header_preproc=yes
5917 else
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 ac_header_preproc=no
5922 fi
5923
5924 rm -f conftest.err conftest.$ac_ext
5925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6; }
5927
5928 # So? What about this header?
5929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5930 yes:no: )
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5935 ac_header_preproc=yes
5936 ;;
5937 no:yes:* )
5938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5950
5951 ;;
5952 esac
5953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 eval "$as_ac_Header=\$ac_header_preproc"
5959 fi
5960 ac_res=`eval echo '${'$as_ac_Header'}'`
5961 { echo "$as_me:$LINENO: result: $ac_res" >&5
5962 echo "${ECHO_T}$ac_res" >&6; }
5963
5964 fi
5965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5966 cat >>confdefs.h <<_ACEOF
5967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5968 _ACEOF
5969
5970 fi
5971
5972 done
5973
5974 # Emulation library used on NetBSD.
5975 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5976 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5977 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lossaudio $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 char _oss_ioctl ();
5996 int
5997 main ()
5998 {
5999 return _oss_ioctl ();
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (ac_try="$ac_link"
6006 case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_link") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest$ac_exeext &&
6021 $as_test_x conftest$ac_exeext; then
6022 ac_cv_lib_ossaudio__oss_ioctl=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_cv_lib_ossaudio__oss_ioctl=no
6028 fi
6029
6030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6031 conftest$ac_exeext conftest.$ac_ext
6032 LIBS=$ac_check_lib_save_LIBS
6033 fi
6034 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6035 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6036 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6037 LIBSOUND=-lossaudio
6038 else
6039 LIBSOUND=
6040 fi
6041
6042
6043
6044 ALSA_REQUIRED=1.0.0
6045 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6046
6047 succeeded=no
6048
6049 # Extract the first word of "pkg-config", so it can be a program name with args.
6050 set dummy pkg-config; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 case $PKG_CONFIG in
6057 [\\/]* | ?:[\\/]*)
6058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6059 ;;
6060 *)
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6077 ;;
6078 esac
6079 fi
6080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6081 if test -n "$PKG_CONFIG"; then
6082 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6083 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6084 else
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6087 fi
6088
6089
6090
6091 if test "$PKG_CONFIG" = "no" ; then
6092 HAVE_ALSA=no
6093 else
6094 PKG_CONFIG_MIN_VERSION=0.9.0
6095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6096 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6097 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6098
6099 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6100 { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6102 succeeded=yes
6103
6104 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6105 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6106 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6107 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6108 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6109
6110 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6111 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6112 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6113 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6114 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6115 else
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6118 ALSA_CFLAGS=""
6119 ALSA_LIBS=""
6120 ## If we have a custom action on failure, don't print errors, but
6121 ## do set a variable so people can do so.
6122 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6123
6124 fi
6125
6126
6127
6128 else
6129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6131 fi
6132 fi
6133
6134 if test $succeeded = yes; then
6135 HAVE_ALSA=yes
6136 else
6137 HAVE_ALSA=no
6138 fi
6139
6140 if test $HAVE_ALSA = yes; then
6141 SAVE_CFLAGS="$CFLAGS"
6142 SAVE_LDFLAGS="$LDFLAGS"
6143 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6144 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h. */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <asoundlib.h>
6152 int
6153 main ()
6154 {
6155 snd_lib_error_set_handler (0);
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_compile") 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest.$ac_objext; then
6177 emacs_alsa_normal=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 emacs_alsa_normal=no
6183 fi
6184
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 if test "$emacs_alsa_normal" != yes; then
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <alsa/asoundlib.h>
6194 int
6195 main ()
6196 {
6197 snd_lib_error_set_handler (0);
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219 emacs_alsa_subdir=yes
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 emacs_alsa_subdir=no
6225 fi
6226
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 if test "$emacs_alsa_subdir" != yes; then
6229 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6230 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6231 { (exit 1); exit 1; }; }
6232 fi
6233 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6234 fi
6235
6236 CFLAGS="$SAVE_CFLAGS"
6237 LDFLAGS="$SAVE_LDFLAGS"
6238 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6239 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6240
6241 cat >>confdefs.h <<\_ACEOF
6242 #define HAVE_ALSA 1
6243 _ACEOF
6244
6245 fi
6246
6247 fi
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6275 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6276 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6277 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6278 sys/utsname.h pwd.h
6279 do
6280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 fi
6287 ac_res=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6290 else
6291 # Is the header compilable?
6292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6301 #include <$ac_header>
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6305 case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_header_compiler=yes
6321 else
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 ac_header_compiler=no
6326 fi
6327
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 echo "${ECHO_T}$ac_header_compiler" >&6; }
6331
6332 # Is the header present?
6333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <$ac_header>
6342 _ACEOF
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null && {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 }; then
6359 ac_header_preproc=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_header_preproc=no
6365 fi
6366
6367 rm -f conftest.err conftest.$ac_ext
6368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369 echo "${ECHO_T}$ac_header_preproc" >&6; }
6370
6371 # So? What about this header?
6372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6373 yes:no: )
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc=yes
6379 ;;
6380 no:yes:* )
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6393
6394 ;;
6395 esac
6396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 eval "$as_ac_Header=\$ac_header_preproc"
6402 fi
6403 ac_res=`eval echo '${'$as_ac_Header'}'`
6404 { echo "$as_me:$LINENO: result: $ac_res" >&5
6405 echo "${ECHO_T}$ac_res" >&6; }
6406
6407 fi
6408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6409 cat >>confdefs.h <<_ACEOF
6410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6411 _ACEOF
6412
6413 fi
6414
6415 done
6416
6417
6418 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6419 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6420 cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h. */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <sys/personality.h>
6427 int
6428 main ()
6429 {
6430 personality (PER_LINUX32)
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest.$ac_objext; then
6452 emacs_cv_personality_linux32=yes
6453 else
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6456
6457 emacs_cv_personality_linux32=no
6458 fi
6459
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6462 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6463
6464 if test $emacs_cv_personality_linux32 = yes; then
6465
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_PERSONALITY_LINUX32 1
6468 _ACEOF
6469
6470 fi
6471
6472
6473 for ac_header in term.h
6474 do
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h. */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <$ac_header>
6488 _ACEOF
6489 if { (ac_try="$ac_cpp conftest.$ac_ext"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev/null && {
6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 }; then
6505 eval "$as_ac_Header=yes"
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 eval "$as_ac_Header=no"
6511 fi
6512
6513 rm -f conftest.err conftest.$ac_ext
6514 fi
6515 ac_res=`eval echo '${'$as_ac_Header'}'`
6516 { echo "$as_me:$LINENO: result: $ac_res" >&5
6517 echo "${ECHO_T}$ac_res" >&6; }
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521 _ACEOF
6522
6523 fi
6524
6525 done
6526
6527 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6528 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6529 if test "${ac_cv_header_stdc+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 #include <stdlib.h>
6539 #include <stdarg.h>
6540 #include <string.h>
6541 #include <float.h>
6542
6543 int
6544 main ()
6545 {
6546
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_header_stdc=yes
6569 else
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573 ac_cv_header_stdc=no
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577
6578 if test $ac_cv_header_stdc = yes; then
6579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <string.h>
6587
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "memchr" >/dev/null 2>&1; then
6591 :
6592 else
6593 ac_cv_header_stdc=no
6594 fi
6595 rm -f conftest*
6596
6597 fi
6598
6599 if test $ac_cv_header_stdc = yes; then
6600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <stdlib.h>
6608
6609 _ACEOF
6610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6611 $EGREP "free" >/dev/null 2>&1; then
6612 :
6613 else
6614 ac_cv_header_stdc=no
6615 fi
6616 rm -f conftest*
6617
6618 fi
6619
6620 if test $ac_cv_header_stdc = yes; then
6621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6622 if test "$cross_compiling" = yes; then
6623 :
6624 else
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <ctype.h>
6632 #include <stdlib.h>
6633 #if ((' ' & 0x0FF) == 0x020)
6634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6636 #else
6637 # define ISLOWER(c) \
6638 (('a' <= (c) && (c) <= 'i') \
6639 || ('j' <= (c) && (c) <= 'r') \
6640 || ('s' <= (c) && (c) <= 'z'))
6641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6642 #endif
6643
6644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6645 int
6646 main ()
6647 {
6648 int i;
6649 for (i = 0; i < 256; i++)
6650 if (XOR (islower (i), ISLOWER (i))
6651 || toupper (i) != TOUPPER (i))
6652 return 2;
6653 return 0;
6654 }
6655 _ACEOF
6656 rm -f conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6658 case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661 esac
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6667 { (case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_try") 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 :
6677 else
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6681
6682 ( exit $ac_status )
6683 ac_cv_header_stdc=no
6684 fi
6685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6686 fi
6687
6688
6689 fi
6690 fi
6691 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6692 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6693 if test $ac_cv_header_stdc = yes; then
6694
6695 cat >>confdefs.h <<\_ACEOF
6696 #define STDC_HEADERS 1
6697 _ACEOF
6698
6699 fi
6700
6701 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6702 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6703 if test "${ac_cv_header_time+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <sys/time.h>
6714 #include <time.h>
6715
6716 int
6717 main ()
6718 {
6719 if ((struct tm *) 0)
6720 return 0;
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6727 case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730 esac
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6733 ac_status=$?
6734 grep -v '^ *+' conftest.er1 >conftest.err
6735 rm -f conftest.er1
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.$ac_objext; then
6742 ac_cv_header_time=yes
6743 else
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.$ac_ext >&5
6746
6747 ac_cv_header_time=no
6748 fi
6749
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 fi
6752 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6753 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6754 if test $ac_cv_header_time = yes; then
6755
6756 cat >>confdefs.h <<\_ACEOF
6757 #define TIME_WITH_SYS_TIME 1
6758 _ACEOF
6759
6760 fi
6761
6762 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6763 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6764 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 int
6775 main ()
6776 {
6777 #ifndef sys_siglist
6778 (void) sys_siglist;
6779 #endif
6780
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_have_decl_sys_siglist=yes
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 ac_cv_have_decl_sys_siglist=no
6808 fi
6809
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 fi
6812 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6813 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6814 if test $ac_cv_have_decl_sys_siglist = yes; then
6815
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_DECL_SYS_SIGLIST 1
6818 _ACEOF
6819
6820
6821 else
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DECL_SYS_SIGLIST 0
6824 _ACEOF
6825
6826
6827 fi
6828
6829
6830 if test $ac_cv_have_decl_sys_siglist != yes; then
6831 # For Tru64, at least:
6832 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6844 int
6845 main ()
6846 {
6847 #ifndef __sys_siglist
6848 (void) __sys_siglist;
6849 #endif
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl___sys_siglist=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_cv_have_decl___sys_siglist=no
6878 fi
6879
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6884 if test $ac_cv_have_decl___sys_siglist = yes; then
6885
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL___SYS_SIGLIST 1
6888 _ACEOF
6889
6890
6891 else
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL___SYS_SIGLIST 0
6894 _ACEOF
6895
6896
6897 fi
6898
6899
6900 if test $ac_cv_have_decl___sys_siglist = yes; then
6901
6902 cat >>confdefs.h <<\_ACEOF
6903 #define sys_siglist __sys_siglist
6904 _ACEOF
6905
6906 fi
6907 fi
6908 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6909 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <sys/types.h>
6920 #include <sys/wait.h>
6921 #ifndef WEXITSTATUS
6922 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6923 #endif
6924 #ifndef WIFEXITED
6925 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6926 #endif
6927
6928 int
6929 main ()
6930 {
6931 int s;
6932 wait (&s);
6933 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (ac_try="$ac_compile"
6940 case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_header_sys_wait_h=yes
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_cv_header_sys_wait_h=no
6961 fi
6962
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 fi
6965 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6966 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6967 if test $ac_cv_header_sys_wait_h = yes; then
6968
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_SYS_WAIT_H 1
6971 _ACEOF
6972
6973 fi
6974
6975
6976 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6977 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6978 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #ifdef TIME_WITH_SYS_TIME
6988 #include <sys/time.h>
6989 #include <time.h>
6990 #else
6991 #ifdef HAVE_SYS_TIME_H
6992 #include <sys/time.h>
6993 #else
6994 #include <time.h>
6995 #endif
6996 #endif
6997 #ifdef HAVE_UTIME_H
6998 #include <utime.h>
6999 #endif
7000 int
7001 main ()
7002 {
7003 static struct utimbuf x; x.actime = x.modtime;
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 emacs_cv_struct_utimbuf=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030 emacs_cv_struct_utimbuf=no
7031 fi
7032
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7036 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7037 if test $emacs_cv_struct_utimbuf = yes; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_STRUCT_UTIMBUF 1
7041 _ACEOF
7042
7043 fi
7044
7045 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7046 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_signal+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7057 #include <signal.h>
7058
7059 int
7060 main ()
7061 {
7062 return *(signal (0, 0)) (0) == 1;
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_type_signal=int
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ac_cv_type_signal=void
7090 fi
7091
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7095 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define RETSIGTYPE $ac_cv_type_signal
7099 _ACEOF
7100
7101
7102
7103 { echo "$as_me:$LINENO: checking for speed_t" >&5
7104 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7105 if test "${emacs_cv_speed_t+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <termios.h>
7115 int
7116 main ()
7117 {
7118 speed_t x = 1;
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 emacs_cv_speed_t=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 emacs_cv_speed_t=no
7146 fi
7147
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7151 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7152 if test $emacs_cv_speed_t = yes; then
7153
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_SPEED_T 1
7156 _ACEOF
7157
7158 fi
7159
7160 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7161 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7162 if test "${emacs_cv_struct_timeval+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #ifdef TIME_WITH_SYS_TIME
7172 #include <sys/time.h>
7173 #include <time.h>
7174 #else
7175 #ifdef HAVE_SYS_TIME_H
7176 #include <sys/time.h>
7177 #else
7178 #include <time.h>
7179 #endif
7180 #endif
7181 int
7182 main ()
7183 {
7184 static struct timeval x; x.tv_sec = x.tv_usec;
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (ac_try="$ac_compile"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 emacs_cv_struct_timeval=yes
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 emacs_cv_struct_timeval=no
7212 fi
7213
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7217 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7218 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7219 if test $emacs_cv_struct_timeval = yes; then
7220
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_TIMEVAL 1
7223 _ACEOF
7224
7225 fi
7226
7227 { echo "$as_me:$LINENO: checking for struct exception" >&5
7228 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7229 if test "${emacs_cv_struct_exception+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 #include <math.h>
7239 int
7240 main ()
7241 {
7242 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 emacs_cv_struct_exception=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 emacs_cv_struct_exception=no
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7275 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7276 HAVE_EXCEPTION=$emacs_cv_struct_exception
7277 if test $emacs_cv_struct_exception != yes; then
7278
7279 cat >>confdefs.h <<\_ACEOF
7280 #define NO_MATHERR 1
7281 _ACEOF
7282
7283 fi
7284
7285
7286 for ac_header in sys/socket.h
7287 do
7288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 fi
7295 ac_res=`eval echo '${'$as_ac_Header'}'`
7296 { echo "$as_me:$LINENO: result: $ac_res" >&5
7297 echo "${ECHO_T}$ac_res" >&6; }
7298 else
7299 # Is the header compilable?
7300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 #include <$ac_header>
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7313 case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316 esac
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_header_compiler=yes
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_header_compiler=no
7334 fi
7335
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6; }
7339
7340 # Is the header present?
7341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <$ac_header>
7350 _ACEOF
7351 if { (ac_try="$ac_cpp conftest.$ac_ext"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } >/dev/null && {
7364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 }; then
7367 ac_header_preproc=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_header_preproc=no
7373 fi
7374
7375 rm -f conftest.err conftest.$ac_ext
7376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7377 echo "${ECHO_T}$ac_header_preproc" >&6; }
7378
7379 # So? What about this header?
7380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7381 yes:no: )
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7386 ac_header_preproc=yes
7387 ;;
7388 no:yes:* )
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7401
7402 ;;
7403 esac
7404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 eval "$as_ac_Header=\$ac_header_preproc"
7410 fi
7411 ac_res=`eval echo '${'$as_ac_Header'}'`
7412 { echo "$as_me:$LINENO: result: $ac_res" >&5
7413 echo "${ECHO_T}$ac_res" >&6; }
7414
7415 fi
7416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7417 cat >>confdefs.h <<_ACEOF
7418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7419 _ACEOF
7420
7421 fi
7422
7423 done
7424
7425
7426 for ac_header in net/if.h
7427 do
7428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 #if HAVE_SYS_SOCKET_H
7442 #include <sys/socket.h>
7443 #endif
7444
7445 #include <$ac_header>
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 eval "$as_ac_Header=yes"
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 eval "$as_ac_Header=no"
7470 fi
7471
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 fi
7474 ac_res=`eval echo '${'$as_ac_Header'}'`
7475 { echo "$as_me:$LINENO: result: $ac_res" >&5
7476 echo "${ECHO_T}$ac_res" >&6; }
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480 _ACEOF
7481
7482 fi
7483
7484 done
7485
7486
7487 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7488 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7489 if test "${ac_cv_struct_tm+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 #include <sys/types.h>
7499 #include <time.h>
7500
7501 int
7502 main ()
7503 {
7504 struct tm tm;
7505 int *p = &tm.tm_sec;
7506 return !p;
7507 ;
7508 return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7528 ac_cv_struct_tm=time.h
7529 else
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 ac_cv_struct_tm=sys/time.h
7534 fi
7535
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7539 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7540 if test $ac_cv_struct_tm = sys/time.h; then
7541
7542 cat >>confdefs.h <<\_ACEOF
7543 #define TM_IN_SYS_TIME 1
7544 _ACEOF
7545
7546 fi
7547
7548 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7549 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7550 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #include <sys/types.h>
7560 #include <$ac_cv_struct_tm>
7561
7562
7563 int
7564 main ()
7565 {
7566 static struct tm ac_aggr;
7567 if (ac_aggr.tm_zone)
7568 return 0;
7569 ;
7570 return 0;
7571 }
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_cv_member_struct_tm_tm_zone=yes
7591 else
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_cv_struct_tm>
7603
7604
7605 int
7606 main ()
7607 {
7608 static struct tm ac_aggr;
7609 if (sizeof ac_aggr.tm_zone)
7610 return 0;
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_cv_member_struct_tm_tm_zone=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 ac_cv_member_struct_tm_tm_zone=no
7638 fi
7639
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 fi
7642
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7646 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7647 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7648
7649 cat >>confdefs.h <<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_ZONE 1
7651 _ACEOF
7652
7653
7654 fi
7655
7656 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7657
7658 cat >>confdefs.h <<\_ACEOF
7659 #define HAVE_TM_ZONE 1
7660 _ACEOF
7661
7662 else
7663 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7664 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7665 if test "${ac_cv_have_decl_tzname+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <time.h>
7675
7676 int
7677 main ()
7678 {
7679 #ifndef tzname
7680 (void) tzname;
7681 #endif
7682
7683 ;
7684 return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_cv_have_decl_tzname=yes
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7708
7709 ac_cv_have_decl_tzname=no
7710 fi
7711
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 fi
7714 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7715 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7716 if test $ac_cv_have_decl_tzname = yes; then
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_TZNAME 1
7720 _ACEOF
7721
7722
7723 else
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DECL_TZNAME 0
7726 _ACEOF
7727
7728
7729 fi
7730
7731
7732 { echo "$as_me:$LINENO: checking for tzname" >&5
7733 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7734 if test "${ac_cv_var_tzname+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 #include <time.h>
7744 #if !HAVE_DECL_TZNAME
7745 extern char *tzname[];
7746 #endif
7747
7748 int
7749 main ()
7750 {
7751 return tzname[0][0];
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (ac_try="$ac_link"
7758 case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_link") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest$ac_exeext &&
7773 $as_test_x conftest$ac_exeext; then
7774 ac_cv_var_tzname=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 ac_cv_var_tzname=no
7780 fi
7781
7782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7783 conftest$ac_exeext conftest.$ac_ext
7784 fi
7785 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7786 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7787 if test $ac_cv_var_tzname = yes; then
7788
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_TZNAME 1
7791 _ACEOF
7792
7793 fi
7794 fi
7795
7796 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7797 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7798 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 cat >conftest.$ac_ext <<_ACEOF
7802 /* confdefs.h. */
7803 _ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 #include <time.h>
7808
7809 int
7810 main ()
7811 {
7812 static struct tm ac_aggr;
7813 if (ac_aggr.tm_gmtoff)
7814 return 0;
7815 ;
7816 return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext
7820 if { (ac_try="$ac_compile"
7821 case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_compile") 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest.$ac_objext; then
7836 ac_cv_member_struct_tm_tm_gmtoff=yes
7837 else
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 #include <time.h>
7848
7849 int
7850 main ()
7851 {
7852 static struct tm ac_aggr;
7853 if (sizeof ac_aggr.tm_gmtoff)
7854 return 0;
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_cv_member_struct_tm_tm_gmtoff=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 ac_cv_member_struct_tm_tm_gmtoff=no
7882 fi
7883
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 fi
7886
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 fi
7889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7891 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7892
7893 cat >>confdefs.h <<\_ACEOF
7894 #define HAVE_TM_GMTOFF 1
7895 _ACEOF
7896
7897 fi
7898
7899 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7900 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7901 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7911 #if HAVE_SYS_SOCKET_H
7912 #include <sys/socket.h>
7913 #endif
7914 #if HAVE_NET_IF_H
7915 #include <net/if.h>
7916 #endif
7917
7918 int
7919 main ()
7920 {
7921 static struct ifreq ac_aggr;
7922 if (ac_aggr.ifr_flags)
7923 return 0;
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_member_struct_ifreq_ifr_flags=yes
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 #if HAVE_SYS_SOCKET_H
7958 #include <sys/socket.h>
7959 #endif
7960 #if HAVE_NET_IF_H
7961 #include <net/if.h>
7962 #endif
7963
7964 int
7965 main ()
7966 {
7967 static struct ifreq ac_aggr;
7968 if (sizeof ac_aggr.ifr_flags)
7969 return 0;
7970 ;
7971 return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_member_struct_ifreq_ifr_flags=yes
7992 else
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 ac_cv_member_struct_ifreq_ifr_flags=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 fi
8004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8005 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8006 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8007
8008 cat >>confdefs.h <<_ACEOF
8009 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8010 _ACEOF
8011
8012
8013 fi
8014 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8015 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8016 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 #if HAVE_SYS_SOCKET_H
8027 #include <sys/socket.h>
8028 #endif
8029 #if HAVE_NET_IF_H
8030 #include <net/if.h>
8031 #endif
8032
8033 int
8034 main ()
8035 {
8036 static struct ifreq ac_aggr;
8037 if (ac_aggr.ifr_hwaddr)
8038 return 0;
8039 ;
8040 return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8061 else
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 #if HAVE_SYS_SOCKET_H
8073 #include <sys/socket.h>
8074 #endif
8075 #if HAVE_NET_IF_H
8076 #include <net/if.h>
8077 #endif
8078
8079 int
8080 main ()
8081 {
8082 static struct ifreq ac_aggr;
8083 if (sizeof ac_aggr.ifr_hwaddr)
8084 return 0;
8085 ;
8086 return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8091 case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest.$ac_objext; then
8106 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8110
8111 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8112 fi
8113
8114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 fi
8116
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 fi
8119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8120 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8121 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8125 _ACEOF
8126
8127
8128 fi
8129 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8130 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8131 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h. */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #if HAVE_SYS_SOCKET_H
8142 #include <sys/socket.h>
8143 #endif
8144 #if HAVE_NET_IF_H
8145 #include <net/if.h>
8146 #endif
8147
8148 int
8149 main ()
8150 {
8151 static struct ifreq ac_aggr;
8152 if (ac_aggr.ifr_netmask)
8153 return 0;
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_cv_member_struct_ifreq_ifr_netmask=yes
8176 else
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 $ac_includes_default
8187 #if HAVE_SYS_SOCKET_H
8188 #include <sys/socket.h>
8189 #endif
8190 #if HAVE_NET_IF_H
8191 #include <net/if.h>
8192 #endif
8193
8194 int
8195 main ()
8196 {
8197 static struct ifreq ac_aggr;
8198 if (sizeof ac_aggr.ifr_netmask)
8199 return 0;
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_cv_member_struct_ifreq_ifr_netmask=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_cv_member_struct_ifreq_ifr_netmask=no
8227 fi
8228
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8235 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8236 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8237
8238 cat >>confdefs.h <<_ACEOF
8239 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8240 _ACEOF
8241
8242
8243 fi
8244 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8245 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8246 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #if HAVE_SYS_SOCKET_H
8257 #include <sys/socket.h>
8258 #endif
8259 #if HAVE_NET_IF_H
8260 #include <net/if.h>
8261 #endif
8262
8263 int
8264 main ()
8265 {
8266 static struct ifreq ac_aggr;
8267 if (ac_aggr.ifr_broadaddr)
8268 return 0;
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #if HAVE_SYS_SOCKET_H
8303 #include <sys/socket.h>
8304 #endif
8305 #if HAVE_NET_IF_H
8306 #include <net/if.h>
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 static struct ifreq ac_aggr;
8313 if (sizeof ac_aggr.ifr_broadaddr)
8314 return 0;
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.$ac_objext; then
8336 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8342 fi
8343
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 fi
8349 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8350 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8351 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8352
8353 cat >>confdefs.h <<_ACEOF
8354 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8355 _ACEOF
8356
8357
8358 fi
8359 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8360 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8361 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #if HAVE_SYS_SOCKET_H
8372 #include <sys/socket.h>
8373 #endif
8374 #if HAVE_NET_IF_H
8375 #include <net/if.h>
8376 #endif
8377
8378 int
8379 main ()
8380 {
8381 static struct ifreq ac_aggr;
8382 if (ac_aggr.ifr_addr)
8383 return 0;
8384 ;
8385 return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_member_struct_ifreq_ifr_addr=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h. */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 #if HAVE_SYS_SOCKET_H
8418 #include <sys/socket.h>
8419 #endif
8420 #if HAVE_NET_IF_H
8421 #include <net/if.h>
8422 #endif
8423
8424 int
8425 main ()
8426 {
8427 static struct ifreq ac_aggr;
8428 if (sizeof ac_aggr.ifr_addr)
8429 return 0;
8430 ;
8431 return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8436 case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.$ac_objext; then
8451 ac_cv_member_struct_ifreq_ifr_addr=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_cv_member_struct_ifreq_ifr_addr=no
8457 fi
8458
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8465 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8466 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8470 _ACEOF
8471
8472
8473 fi
8474
8475
8476
8477 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8478 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8479 if test "$ac_cv_prog_cc_c89" != no; then
8480 { echo "$as_me:$LINENO: result: yes" >&5
8481 echo "${ECHO_T}yes" >&6; }
8482
8483 cat >>confdefs.h <<\_ACEOF
8484 #define PROTOTYPES 1
8485 _ACEOF
8486
8487
8488 cat >>confdefs.h <<\_ACEOF
8489 #define __PROTOTYPES 1
8490 _ACEOF
8491
8492 else
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8495 fi
8496
8497 { echo "$as_me:$LINENO: checking for working volatile" >&5
8498 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8499 if test "${ac_cv_c_volatile+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508
8509 int
8510 main ()
8511 {
8512
8513 volatile int x;
8514 int * volatile y = (int *) 0;
8515 return !x && !y;
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_c_volatile=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 ac_cv_c_volatile=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8548 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8549 if test $ac_cv_c_volatile = no; then
8550
8551 cat >>confdefs.h <<\_ACEOF
8552 #define volatile
8553 _ACEOF
8554
8555 fi
8556
8557 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8559 if test "${ac_cv_c_const+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568
8569 int
8570 main ()
8571 {
8572 /* FIXME: Include the comments suggested by Paul. */
8573 #ifndef __cplusplus
8574 /* Ultrix mips cc rejects this. */
8575 typedef int charset[2];
8576 const charset cs;
8577 /* SunOS 4.1.1 cc rejects this. */
8578 char const *const *pcpcc;
8579 char **ppc;
8580 /* NEC SVR4.0.2 mips cc rejects this. */
8581 struct point {int x, y;};
8582 static struct point const zero = {0,0};
8583 /* AIX XL C 1.02.0.0 rejects this.
8584 It does not let you subtract one const X* pointer from another in
8585 an arm of an if-expression whose if-part is not a constant
8586 expression */
8587 const char *g = "string";
8588 pcpcc = &g + (g ? g-g : 0);
8589 /* HPUX 7.0 cc rejects these. */
8590 ++pcpcc;
8591 ppc = (char**) pcpcc;
8592 pcpcc = (char const *const *) ppc;
8593 { /* SCO 3.2v4 cc rejects this. */
8594 char *t;
8595 char const *s = 0 ? (char *) 0 : (char const *) 0;
8596
8597 *t++ = 0;
8598 if (s) return 0;
8599 }
8600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8601 int x[] = {25, 17};
8602 const int *foo = &x[0];
8603 ++foo;
8604 }
8605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8606 typedef const int *iptr;
8607 iptr p = 0;
8608 ++p;
8609 }
8610 { /* AIX XL C 1.02.0.0 rejects this saying
8611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8612 struct s { int j; const int *ap[3]; };
8613 struct s *b; b->j = 5;
8614 }
8615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8616 const int foo = 10;
8617 if (!foo) return 0;
8618 }
8619 return !cs[0] && !zero.x;
8620 #endif
8621
8622 ;
8623 return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_cv_c_const=yes
8644 else
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648 ac_cv_c_const=no
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_c_const" >&5
8654 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8655 if test $ac_cv_c_const = no; then
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define const
8659 _ACEOF
8660
8661 fi
8662
8663 { echo "$as_me:$LINENO: checking for void * support" >&5
8664 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8665 if test "${emacs_cv_void_star+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
8675 int
8676 main ()
8677 {
8678 void * foo;
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 emacs_cv_void_star=yes
8701 else
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 emacs_cv_void_star=no
8706 fi
8707
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 fi
8710 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8711 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8712 if test $emacs_cv_void_star = yes; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define POINTER_TYPE void
8715 _ACEOF
8716
8717 else
8718 cat >>confdefs.h <<\_ACEOF
8719 #define POINTER_TYPE char
8720 _ACEOF
8721
8722 fi
8723
8724
8725
8726
8727
8728 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8729 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8730 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8731 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734 cat >conftest.make <<\_ACEOF
8735 SHELL = /bin/sh
8736 all:
8737 @echo '@@@%%%=$(MAKE)=@@@%%%'
8738 _ACEOF
8739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8740 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8741 *@@@%%%=?*=@@@%%%*)
8742 eval ac_cv_prog_make_${ac_make}_set=yes;;
8743 *)
8744 eval ac_cv_prog_make_${ac_make}_set=no;;
8745 esac
8746 rm -f conftest.make
8747 fi
8748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8749 { echo "$as_me:$LINENO: result: yes" >&5
8750 echo "${ECHO_T}yes" >&6; }
8751 SET_MAKE=
8752 else
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 SET_MAKE="MAKE=${MAKE-make}"
8756 fi
8757
8758
8759 { echo "$as_me:$LINENO: checking for long file names" >&5
8760 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8761 if test "${ac_cv_sys_long_file_names+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 ac_cv_sys_long_file_names=yes
8765 # Test for long file names in all the places we know might matter:
8766 # . the current directory, where building will happen
8767 # $prefix/lib where we will be installing things
8768 # $exec_prefix/lib likewise
8769 # $TMPDIR if set, where it might want to write temporary files
8770 # /tmp where it might want to write temporary files
8771 # /var/tmp likewise
8772 # /usr/tmp likewise
8773 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8774 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8775 # in the usual case where exec_prefix is '${prefix}'.
8776 case $ac_dir in #(
8777 . | /* | ?:[\\/]*) ;; #(
8778 *) continue;;
8779 esac
8780 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8781 ac_xdir=$ac_dir/cf$$
8782 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8783 ac_tf1=$ac_xdir/conftest9012345
8784 ac_tf2=$ac_xdir/conftest9012346
8785 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8786 ac_cv_sys_long_file_names=no
8787 rm -f -r "$ac_xdir" 2>/dev/null
8788 test $ac_cv_sys_long_file_names = no && break
8789 done
8790 fi
8791 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8792 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8793 if test $ac_cv_sys_long_file_names = yes; then
8794
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_LONG_FILE_NAMES 1
8797 _ACEOF
8798
8799 fi
8800
8801
8802 #### Choose a window system.
8803
8804 { echo "$as_me:$LINENO: checking for X" >&5
8805 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8806
8807
8808 # Check whether --with-x was given.
8809 if test "${with_x+set}" = set; then
8810 withval=$with_x;
8811 fi
8812
8813 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8814 if test "x$with_x" = xno; then
8815 # The user explicitly disabled X.
8816 have_x=disabled
8817 else
8818 case $x_includes,$x_libraries in #(
8819 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8820 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8821 { (exit 1); exit 1; }; };; #(
8822 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 # One or both of the vars are not set, and there is no cached value.
8826 ac_x_includes=no ac_x_libraries=no
8827 rm -f -r conftest.dir
8828 if mkdir conftest.dir; then
8829 cd conftest.dir
8830 cat >Imakefile <<'_ACEOF'
8831 incroot:
8832 @echo incroot='${INCROOT}'
8833 usrlibdir:
8834 @echo usrlibdir='${USRLIBDIR}'
8835 libdir:
8836 @echo libdir='${LIBDIR}'
8837 _ACEOF
8838 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8840 for ac_var in incroot usrlibdir libdir; do
8841 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8842 done
8843 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8844 for ac_extension in a so sl; do
8845 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8846 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8847 ac_im_usrlibdir=$ac_im_libdir; break
8848 fi
8849 done
8850 # Screen out bogus values from the imake configuration. They are
8851 # bogus both because they are the default anyway, and because
8852 # using them would break gcc on systems where it needs fixed includes.
8853 case $ac_im_incroot in
8854 /usr/include) ac_x_includes= ;;
8855 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8856 esac
8857 case $ac_im_usrlibdir in
8858 /usr/lib | /lib) ;;
8859 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8860 esac
8861 fi
8862 cd ..
8863 rm -f -r conftest.dir
8864 fi
8865
8866 # Standard set of common directories for X headers.
8867 # Check X11 before X11Rn because it is often a symlink to the current release.
8868 ac_x_header_dirs='
8869 /usr/X11/include
8870 /usr/X11R6/include
8871 /usr/X11R5/include
8872 /usr/X11R4/include
8873
8874 /usr/include/X11
8875 /usr/include/X11R6
8876 /usr/include/X11R5
8877 /usr/include/X11R4
8878
8879 /usr/local/X11/include
8880 /usr/local/X11R6/include
8881 /usr/local/X11R5/include
8882 /usr/local/X11R4/include
8883
8884 /usr/local/include/X11
8885 /usr/local/include/X11R6
8886 /usr/local/include/X11R5
8887 /usr/local/include/X11R4
8888
8889 /usr/X386/include
8890 /usr/x386/include
8891 /usr/XFree86/include/X11
8892
8893 /usr/include
8894 /usr/local/include
8895 /usr/unsupported/include
8896 /usr/athena/include
8897 /usr/local/x11r5/include
8898 /usr/lpp/Xamples/include
8899
8900 /usr/openwin/include
8901 /usr/openwin/share/include'
8902
8903 if test "$ac_x_includes" = no; then
8904 # Guess where to find include files, by looking for Xlib.h.
8905 # First, try using that file with no special directory specified.
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 #include <X11/Xlib.h>
8913 _ACEOF
8914 if { (ac_try="$ac_cpp conftest.$ac_ext"
8915 case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } >/dev/null && {
8927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 }; then
8930 # We can compile using X headers with no special include directory.
8931 ac_x_includes=
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 for ac_dir in $ac_x_header_dirs; do
8937 if test -r "$ac_dir/X11/Xlib.h"; then
8938 ac_x_includes=$ac_dir
8939 break
8940 fi
8941 done
8942 fi
8943
8944 rm -f conftest.err conftest.$ac_ext
8945 fi # $ac_x_includes = no
8946
8947 if test "$ac_x_libraries" = no; then
8948 # Check for the libraries.
8949 # See if we find them without any special options.
8950 # Don't add to $LIBS permanently.
8951 ac_save_LIBS=$LIBS
8952 LIBS="-lX11 $LIBS"
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <X11/Xlib.h>
8960 int
8961 main ()
8962 {
8963 XrmInitialize ()
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (ac_try="$ac_link"
8970 case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_link") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest$ac_exeext &&
8985 $as_test_x conftest$ac_exeext; then
8986 LIBS=$ac_save_LIBS
8987 # We can link X programs with no special library path.
8988 ac_x_libraries=
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 LIBS=$ac_save_LIBS
8994 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8995 do
8996 # Don't even attempt the hair of trying to link an X program!
8997 for ac_extension in a so sl; do
8998 if test -r "$ac_dir/libX11.$ac_extension"; then
8999 ac_x_libraries=$ac_dir
9000 break 2
9001 fi
9002 done
9003 done
9004 fi
9005
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 conftest$ac_exeext conftest.$ac_ext
9008 fi # $ac_x_libraries = no
9009
9010 case $ac_x_includes,$ac_x_libraries in #(
9011 no,* | *,no | *\'*)
9012 # Didn't find X, or a directory has "'" in its name.
9013 ac_cv_have_x="have_x=no";; #(
9014 *)
9015 # Record where we found X for the cache.
9016 ac_cv_have_x="have_x=yes\
9017 ac_x_includes='$ac_x_includes'\
9018 ac_x_libraries='$ac_x_libraries'"
9019 esac
9020 fi
9021 ;; #(
9022 *) have_x=yes;;
9023 esac
9024 eval "$ac_cv_have_x"
9025 fi # $with_x != no
9026
9027 if test "$have_x" != yes; then
9028 { echo "$as_me:$LINENO: result: $have_x" >&5
9029 echo "${ECHO_T}$have_x" >&6; }
9030 no_x=yes
9031 else
9032 # If each of the values was on the command line, it overrides each guess.
9033 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9034 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9035 # Update the cache value to reflect the command line values.
9036 ac_cv_have_x="have_x=yes\
9037 ac_x_includes='$x_includes'\
9038 ac_x_libraries='$x_libraries'"
9039 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9040 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9041 fi
9042
9043 if test "$no_x" = yes; then
9044 window_system=none
9045 else
9046 window_system=x11
9047 fi
9048
9049 if test "${x_libraries}" != NONE; then
9050 if test -n "${x_libraries}"; then
9051 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9052 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9053 fi
9054 x_default_search_path=""
9055 x_search_path=${x_libraries}
9056 if test -z "${x_search_path}"; then
9057 x_search_path=/usr/lib
9058 fi
9059 for x_library in `echo ${x_search_path}: | \
9060 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9061 x_search_path="\
9062 ${x_library}/X11/%L/%T/%N%C%S:\
9063 ${x_library}/X11/%l/%T/%N%C%S:\
9064 ${x_library}/X11/%T/%N%C%S:\
9065 ${x_library}/X11/%L/%T/%N%S:\
9066 ${x_library}/X11/%l/%T/%N%S:\
9067 ${x_library}/X11/%T/%N%S"
9068 if test x"${x_default_search_path}" = x; then
9069 x_default_search_path=${x_search_path}
9070 else
9071 x_default_search_path="${x_search_path}:${x_default_search_path}"
9072 fi
9073 done
9074 fi
9075 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9076 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9077 fi
9078
9079 if test x"${x_includes}" = x; then
9080 bitmapdir=/usr/include/X11/bitmaps
9081 else
9082 # accumulate include directories that have X11 bitmap subdirectories
9083 bmd_acc="dummyval"
9084 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9085 if test -d "${bmd}/X11/bitmaps"; then
9086 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9087 fi
9088 if test -d "${bmd}/bitmaps"; then
9089 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9090 fi
9091 done
9092 if test ${bmd_acc} != "dummyval"; then
9093 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9094 fi
9095 fi
9096
9097 HAVE_CARBON=no
9098 if test "${with_carbon}" != no; then
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9100 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 fi
9105 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9107 else
9108 # Is the header compilable?
9109 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 #include <Carbon/Carbon.h>
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9122 case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125 esac
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
9137 ac_header_compiler=yes
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_header_compiler=no
9143 fi
9144
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9147 echo "${ECHO_T}$ac_header_compiler" >&6; }
9148
9149 # Is the header present?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 #include <Carbon/Carbon.h>
9159 _ACEOF
9160 if { (ac_try="$ac_cpp conftest.$ac_ext"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 }; then
9176 ac_header_preproc=yes
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181 ac_header_preproc=no
9182 fi
9183
9184 rm -f conftest.err conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6; }
9187
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9190 yes:no: )
9191 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9196 ;;
9197 no:yes:* )
9198 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9210
9211 ;;
9212 esac
9213 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9214 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9215 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9219 fi
9220 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9221 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9222
9223 fi
9224 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9225 HAVE_CARBON=yes
9226 fi
9227
9228
9229 fi
9230 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9231 if test "${with_carbon+set}" != set \
9232 && test "${carbon_appdir_x+set}" != set; then
9233 for var in with_x with_x_toolkit with_xim \
9234 with_xpm with_jpeg with_tiff with_gif with_png; do
9235 if eval test \"\${$var+set}\" = set; then
9236 HAVE_CARBON=no
9237 break
9238 fi
9239 done
9240 fi
9241 fi
9242 if test "${HAVE_CARBON}" = yes; then
9243 window_system=mac
9244 fi
9245
9246 case "${window_system}" in
9247 x11 )
9248 HAVE_X_WINDOWS=yes
9249 HAVE_X11=yes
9250 case "${with_x_toolkit}" in
9251 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9252 motif ) USE_X_TOOLKIT=MOTIF ;;
9253 gtk ) with_gtk=yes
9254 USE_X_TOOLKIT=none ;;
9255 no ) USE_X_TOOLKIT=none ;;
9256 * ) USE_X_TOOLKIT=maybe ;;
9257 esac
9258 ;;
9259 mac | none )
9260 HAVE_X_WINDOWS=no
9261 HAVE_X11=no
9262 USE_X_TOOLKIT=none
9263 ;;
9264 esac
9265
9266 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9267 # Extract the first word of "X", so it can be a program name with args.
9268 set dummy X; ac_word=$2
9269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9271 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 if test -n "$HAVE_XSERVER"; then
9275 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9276 else
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9279 do
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_prog_HAVE_XSERVER="true"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9287 fi
9288 done
9289 done
9290 IFS=$as_save_IFS
9291
9292 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9293 fi
9294 fi
9295 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9296 if test -n "$HAVE_XSERVER"; then
9297 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9298 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9299 else
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9302 fi
9303
9304
9305 if test "$HAVE_XSERVER" = true ||
9306 test -n "$DISPLAY" ||
9307 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9308 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9309 were found. You should install the relevant development files for X
9310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9311 sure you have development files for image handling, i.e.
9312 tiff, gif, jpeg, png and xpm.
9313 If you are sure you want Emacs compiled without X window support, pass
9314 --without-x
9315 to configure." >&5
9316 echo "$as_me: error: You seem to be running X, but no X development libraries
9317 were found. You should install the relevant development files for X
9318 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9319 sure you have development files for image handling, i.e.
9320 tiff, gif, jpeg, png and xpm.
9321 If you are sure you want Emacs compiled without X window support, pass
9322 --without-x
9323 to configure." >&2;}
9324 { (exit 1); exit 1; }; }
9325 fi
9326 fi
9327
9328 ### If we're using X11, we should use the X menu package.
9329 HAVE_MENUS=no
9330 case ${HAVE_X11} in
9331 yes ) HAVE_MENUS=yes ;;
9332 esac
9333
9334 ### Compute the unexec source name from the object name.
9335 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9336
9337 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9338 # Assume not, until told otherwise.
9339 GNU_MALLOC=yes
9340 doug_lea_malloc=yes
9341 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9342 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9343 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define malloc_get_state innocuous_malloc_get_state
9355
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char malloc_get_state (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9360
9361 #ifdef __STDC__
9362 # include <limits.h>
9363 #else
9364 # include <assert.h>
9365 #endif
9366
9367 #undef malloc_get_state
9368
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char malloc_get_state ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9380 choke me
9381 #endif
9382
9383 int
9384 main ()
9385 {
9386 return malloc_get_state ();
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9409 ac_cv_func_malloc_get_state=yes
9410 else
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414 ac_cv_func_malloc_get_state=no
9415 fi
9416
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9419 fi
9420 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9421 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9422 if test $ac_cv_func_malloc_get_state = yes; then
9423 :
9424 else
9425 doug_lea_malloc=no
9426 fi
9427
9428 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9429 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441 #define malloc_set_state innocuous_malloc_set_state
9442
9443 /* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char malloc_set_state (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9447
9448 #ifdef __STDC__
9449 # include <limits.h>
9450 #else
9451 # include <assert.h>
9452 #endif
9453
9454 #undef malloc_set_state
9455
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9459 #ifdef __cplusplus
9460 extern "C"
9461 #endif
9462 char malloc_set_state ();
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9467 choke me
9468 #endif
9469
9470 int
9471 main ()
9472 {
9473 return malloc_set_state ();
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_func_malloc_set_state=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_cv_func_malloc_set_state=no
9502 fi
9503
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9506 fi
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9508 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9509 if test $ac_cv_func_malloc_set_state = yes; then
9510 :
9511 else
9512 doug_lea_malloc=no
9513 fi
9514
9515 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9516 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9517 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 extern void (* __after_morecore_hook)();
9527 int
9528 main ()
9529 {
9530 __after_morecore_hook = 0
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext &&
9552 $as_test_x conftest$ac_exeext; then
9553 emacs_cv_var___after_morecore_hook=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 emacs_cv_var___after_morecore_hook=no
9559 fi
9560
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562 conftest$ac_exeext conftest.$ac_ext
9563 fi
9564 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9565 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9566 if test $emacs_cv_var___after_morecore_hook = no; then
9567 doug_lea_malloc=no
9568 fi
9569 if test "${system_malloc}" = "yes"; then
9570 GNU_MALLOC=no
9571 GNU_MALLOC_reason="
9572 (The GNU allocators don't work with this system configuration.)"
9573 fi
9574 if test "$doug_lea_malloc" = "yes" ; then
9575 if test "$GNU_MALLOC" = yes ; then
9576 GNU_MALLOC_reason="
9577 (Using Doug Lea's new malloc from the GNU C Library.)"
9578 fi
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define DOUG_LEA_MALLOC 1
9582 _ACEOF
9583
9584 fi
9585
9586 if test x"${REL_ALLOC}" = x; then
9587 REL_ALLOC=${GNU_MALLOC}
9588 fi
9589
9590
9591
9592
9593 for ac_header in stdlib.h unistd.h
9594 do
9595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 fi
9602 ac_res=`eval echo '${'$as_ac_Header'}'`
9603 { echo "$as_me:$LINENO: result: $ac_res" >&5
9604 echo "${ECHO_T}$ac_res" >&6; }
9605 else
9606 # Is the header compilable?
9607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 $ac_includes_default
9616 #include <$ac_header>
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (ac_try="$ac_compile"
9620 case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_compile") 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest.$ac_objext; then
9635 ac_header_compiler=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 ac_header_compiler=no
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645 echo "${ECHO_T}$ac_header_compiler" >&6; }
9646
9647 # Is the header present?
9648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h. */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <$ac_header>
9657 _ACEOF
9658 if { (ac_try="$ac_cpp conftest.$ac_ext"
9659 case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662 esac
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } >/dev/null && {
9671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 }; then
9674 ac_header_preproc=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_header_preproc=no
9680 fi
9681
9682 rm -f conftest.err conftest.$ac_ext
9683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9684 echo "${ECHO_T}$ac_header_preproc" >&6; }
9685
9686 # So? What about this header?
9687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9688 yes:no: )
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9693 ac_header_preproc=yes
9694 ;;
9695 no:yes:* )
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9708
9709 ;;
9710 esac
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 eval "$as_ac_Header=\$ac_header_preproc"
9717 fi
9718 ac_res=`eval echo '${'$as_ac_Header'}'`
9719 { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9721
9722 fi
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9727
9728 fi
9729
9730 done
9731
9732
9733 for ac_func in getpagesize
9734 do
9735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9749 #define $ac_func innocuous_$ac_func
9750
9751 /* System header to define __stub macros and hopefully few prototypes,
9752 which can conflict with char $ac_func (); below.
9753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9754 <limits.h> exists even on freestanding compilers. */
9755
9756 #ifdef __STDC__
9757 # include <limits.h>
9758 #else
9759 # include <assert.h>
9760 #endif
9761
9762 #undef $ac_func
9763
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char $ac_func ();
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined __stub_$ac_func || defined __stub___$ac_func
9775 choke me
9776 #endif
9777
9778 int
9779 main ()
9780 {
9781 return $ac_func ();
9782 ;
9783 return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
9804 eval "$as_ac_var=yes"
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 eval "$as_ac_var=no"
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813 conftest$ac_exeext conftest.$ac_ext
9814 fi
9815 ac_res=`eval echo '${'$as_ac_var'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9818 if test `eval echo '${'$as_ac_var'}'` = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9821 _ACEOF
9822
9823 fi
9824 done
9825
9826 { echo "$as_me:$LINENO: checking for working mmap" >&5
9827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831 if test "$cross_compiling" = yes; then
9832 ac_cv_func_mmap_fixed_mapped=no
9833 else
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 /* malloc might have been renamed as rpl_malloc. */
9842 #undef malloc
9843
9844 /* Thanks to Mike Haertel and Jim Avera for this test.
9845 Here is a matrix of mmap possibilities:
9846 mmap private not fixed
9847 mmap private fixed at somewhere currently unmapped
9848 mmap private fixed at somewhere already mapped
9849 mmap shared not fixed
9850 mmap shared fixed at somewhere currently unmapped
9851 mmap shared fixed at somewhere already mapped
9852 For private mappings, we should verify that changes cannot be read()
9853 back from the file, nor mmap's back from the file at a different
9854 address. (There have been systems where private was not correctly
9855 implemented like the infamous i386 svr4.0, and systems where the
9856 VM page cache was not coherent with the file system buffer cache
9857 like early versions of FreeBSD and possibly contemporary NetBSD.)
9858 For shared mappings, we should conversely verify that changes get
9859 propagated back to all the places they're supposed to be.
9860
9861 Grep wants private fixed already mapped.
9862 The main things grep needs to know about mmap are:
9863 * does it exist and is it safe to write into the mmap'd area
9864 * how to use it (BSD variants) */
9865
9866 #include <fcntl.h>
9867 #include <sys/mman.h>
9868
9869 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9870 char *malloc ();
9871 #endif
9872
9873 /* This mess was copied from the GNU getpagesize.h. */
9874 #ifndef HAVE_GETPAGESIZE
9875 /* Assume that all systems that can run configure have sys/param.h. */
9876 # ifndef HAVE_SYS_PARAM_H
9877 # define HAVE_SYS_PARAM_H 1
9878 # endif
9879
9880 # ifdef _SC_PAGESIZE
9881 # define getpagesize() sysconf(_SC_PAGESIZE)
9882 # else /* no _SC_PAGESIZE */
9883 # ifdef HAVE_SYS_PARAM_H
9884 # include <sys/param.h>
9885 # ifdef EXEC_PAGESIZE
9886 # define getpagesize() EXEC_PAGESIZE
9887 # else /* no EXEC_PAGESIZE */
9888 # ifdef NBPG
9889 # define getpagesize() NBPG * CLSIZE
9890 # ifndef CLSIZE
9891 # define CLSIZE 1
9892 # endif /* no CLSIZE */
9893 # else /* no NBPG */
9894 # ifdef NBPC
9895 # define getpagesize() NBPC
9896 # else /* no NBPC */
9897 # ifdef PAGESIZE
9898 # define getpagesize() PAGESIZE
9899 # endif /* PAGESIZE */
9900 # endif /* no NBPC */
9901 # endif /* no NBPG */
9902 # endif /* no EXEC_PAGESIZE */
9903 # else /* no HAVE_SYS_PARAM_H */
9904 # define getpagesize() 8192 /* punt totally */
9905 # endif /* no HAVE_SYS_PARAM_H */
9906 # endif /* no _SC_PAGESIZE */
9907
9908 #endif /* no HAVE_GETPAGESIZE */
9909
9910 int
9911 main ()
9912 {
9913 char *data, *data2, *data3;
9914 int i, pagesize;
9915 int fd;
9916
9917 pagesize = getpagesize ();
9918
9919 /* First, make a file with some known garbage in it. */
9920 data = (char *) malloc (pagesize);
9921 if (!data)
9922 return 1;
9923 for (i = 0; i < pagesize; ++i)
9924 *(data + i) = rand ();
9925 umask (0);
9926 fd = creat ("conftest.mmap", 0600);
9927 if (fd < 0)
9928 return 1;
9929 if (write (fd, data, pagesize) != pagesize)
9930 return 1;
9931 close (fd);
9932
9933 /* Next, try to mmap the file at a fixed address which already has
9934 something else allocated at it. If we can, also make sure that
9935 we see the same garbage. */
9936 fd = open ("conftest.mmap", O_RDWR);
9937 if (fd < 0)
9938 return 1;
9939 data2 = (char *) malloc (2 * pagesize);
9940 if (!data2)
9941 return 1;
9942 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9943 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9944 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9945 return 1;
9946 for (i = 0; i < pagesize; ++i)
9947 if (*(data + i) != *(data2 + i))
9948 return 1;
9949
9950 /* Finally, make sure that changes to the mapped area do not
9951 percolate back to the file as seen by read(). (This is a bug on
9952 some variants of i386 svr4.0.) */
9953 for (i = 0; i < pagesize; ++i)
9954 *(data2 + i) = *(data2 + i) + 1;
9955 data3 = (char *) malloc (pagesize);
9956 if (!data3)
9957 return 1;
9958 if (read (fd, data3, pagesize) != pagesize)
9959 return 1;
9960 for (i = 0; i < pagesize; ++i)
9961 if (*(data + i) != *(data3 + i))
9962 return 1;
9963 close (fd);
9964 return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9969 case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_func_mmap_fixed_mapped=yes
9988 else
9989 echo "$as_me: program exited with status $ac_status" >&5
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ( exit $ac_status )
9994 ac_cv_func_mmap_fixed_mapped=no
9995 fi
9996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9997 fi
9998
9999
10000 fi
10001 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10002 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10003 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_MMAP 1
10007 _ACEOF
10008
10009 fi
10010 rm -f conftest.mmap
10011
10012 if test $use_mmap_for_buffers = yes; then
10013 REL_ALLOC=no
10014 fi
10015
10016 LIBS="$libsrc_libs $LIBS"
10017
10018
10019 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10020 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-ldnet $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char dnet_ntoa ();
10040 int
10041 main ()
10042 {
10043 return dnet_ntoa ();
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest$ac_exeext &&
10065 $as_test_x conftest$ac_exeext; then
10066 ac_cv_lib_dnet_dnet_ntoa=yes
10067 else
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 ac_cv_lib_dnet_dnet_ntoa=no
10072 fi
10073
10074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10075 conftest$ac_exeext conftest.$ac_ext
10076 LIBS=$ac_check_lib_save_LIBS
10077 fi
10078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10079 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10080 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10081 cat >>confdefs.h <<_ACEOF
10082 #define HAVE_LIBDNET 1
10083 _ACEOF
10084
10085 LIBS="-ldnet $LIBS"
10086
10087 fi
10088
10089
10090 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10091 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-lXbsd $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h. */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103
10104
10105 int
10106 main ()
10107 {
10108 return main ();
10109 ;
10110 return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10121 ac_status=$?
10122 grep -v '^ *+' conftest.er1 >conftest.err
10123 rm -f conftest.er1
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_Xbsd_main=yes
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 ac_cv_lib_Xbsd_main=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10144 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10145 if test $ac_cv_lib_Xbsd_main = yes; then
10146 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10147 fi
10148
10149
10150
10151 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10152 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lpthreads $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char cma_open ();
10172 int
10173 main ()
10174 {
10175 return cma_open ();
10176 ;
10177 return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest$ac_exeext &&
10197 $as_test_x conftest$ac_exeext; then
10198 ac_cv_lib_pthreads_cma_open=yes
10199 else
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ac_cv_lib_pthreads_cma_open=no
10204 fi
10205
10206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10209 fi
10210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10211 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10212 if test $ac_cv_lib_pthreads_cma_open = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_LIBPTHREADS 1
10215 _ACEOF
10216
10217 LIBS="-lpthreads $LIBS"
10218
10219 fi
10220
10221
10222
10223 case ${host_os} in
10224 aix*)
10225 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10226 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10227 if test "${gdb_cv_bigtoc+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230
10231 case $GCC in
10232 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10233 *) gdb_cv_bigtoc=-bbigtoc ;;
10234 esac
10235
10236 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243
10244 int
10245 main ()
10246 {
10247 int i;
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10270 :
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 gdb_cv_bigtoc=
10276 fi
10277
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10280
10281 fi
10282 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10283 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10284 ;;
10285 esac
10286
10287 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10288 # used for the tests that follow. We set them back to REAL_CFLAGS and
10289 # REAL_CPPFLAGS later on.
10290
10291 REAL_CPPFLAGS="$CPPFLAGS"
10292
10293 if test "${HAVE_X11}" = "yes"; then
10294 DEFS="$C_SWITCH_X_SITE $DEFS"
10295 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10296 LIBS="$LIBX $LIBS"
10297 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10298 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10299
10300 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10301 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10302 # but it's more convenient here to set LD_RUN_PATH
10303 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10304 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10305 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10306 export LD_RUN_PATH
10307 fi
10308
10309 if test "${opsys}" = "gnu-linux"; then
10310 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10311 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10312 cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h. */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318
10319 int
10320 main ()
10321 {
10322 XOpenDisplay ("foo");
10323 ;
10324 return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest$ac_exeext &&
10344 $as_test_x conftest$ac_exeext; then
10345 xlinux_first_failure=no
10346 else
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 xlinux_first_failure=yes
10351 fi
10352
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354 conftest$ac_exeext conftest.$ac_ext
10355 if test "${xlinux_first_failure}" = "yes"; then
10356 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10357 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10358 OLD_CPPFLAGS="$CPPFLAGS"
10359 OLD_LIBS="$LIBS"
10360 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10361 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10362 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10363 LIBS="$LIBS -b i486-linuxaout"
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h. */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370
10371 int
10372 main ()
10373 {
10374 XOpenDisplay ("foo");
10375 ;
10376 return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (ac_try="$ac_link"
10381 case "(($ac_try" in
10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10384 esac
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10387 ac_status=$?
10388 grep -v '^ *+' conftest.er1 >conftest.err
10389 rm -f conftest.er1
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_c_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest$ac_exeext &&
10396 $as_test_x conftest$ac_exeext; then
10397 xlinux_second_failure=no
10398 else
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 xlinux_second_failure=yes
10403 fi
10404
10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test "${xlinux_second_failure}" = "yes"; then
10408 # If we get the same failure with -b, there is no use adding -b.
10409 # So take it out. This plays safe.
10410 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10411 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10412 CPPFLAGS="$OLD_CPPFLAGS"
10413 LIBS="$OLD_LIBS"
10414 { echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6; }
10416 else
10417 { echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6; }
10419 fi
10420 else
10421 { echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6; }
10423 fi
10424 fi
10425
10426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10427 # header files included from there.
10428 { echo "$as_me:$LINENO: checking for Xkb" >&5
10429 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <X11/Xlib.h>
10437 #include <X11/XKBlib.h>
10438 int
10439 main ()
10440 {
10441 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
10464 emacs_xkb=yes
10465 else
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 emacs_xkb=no
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473 conftest$ac_exeext conftest.$ac_ext
10474 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10475 echo "${ECHO_T}$emacs_xkb" >&6; }
10476 if test $emacs_xkb = yes; then
10477
10478 cat >>confdefs.h <<\_ACEOF
10479 #define HAVE_XKBGETKEYBOARD 1
10480 _ACEOF
10481
10482 fi
10483
10484
10485
10486
10487
10488 for ac_func in XrmSetDatabase XScreenResourceString \
10489 XScreenNumberOfScreen XSetWMProtocols
10490 do
10491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 else
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10505 #define $ac_func innocuous_$ac_func
10506
10507 /* System header to define __stub macros and hopefully few prototypes,
10508 which can conflict with char $ac_func (); below.
10509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 <limits.h> exists even on freestanding compilers. */
10511
10512 #ifdef __STDC__
10513 # include <limits.h>
10514 #else
10515 # include <assert.h>
10516 #endif
10517
10518 #undef $ac_func
10519
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char $ac_func ();
10527 /* The GNU C library defines this for functions which it implements
10528 to always fail with ENOSYS. Some functions are actually named
10529 something starting with __ and the normal name is an alias. */
10530 #if defined __stub_$ac_func || defined __stub___$ac_func
10531 choke me
10532 #endif
10533
10534 int
10535 main ()
10536 {
10537 return $ac_func ();
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest.$ac_objext conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest$ac_exeext &&
10559 $as_test_x conftest$ac_exeext; then
10560 eval "$as_ac_var=yes"
10561 else
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 eval "$as_ac_var=no"
10566 fi
10567
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 fi
10571 ac_res=`eval echo '${'$as_ac_var'}'`
10572 { echo "$as_me:$LINENO: result: $ac_res" >&5
10573 echo "${ECHO_T}$ac_res" >&6; }
10574 if test `eval echo '${'$as_ac_var'}'` = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10577 _ACEOF
10578
10579 fi
10580 done
10581
10582 fi
10583
10584 if test "${window_system}" = "x11"; then
10585 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10586 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10587 if test "${emacs_cv_x11_version_6+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590 cat >conftest.$ac_ext <<_ACEOF
10591 /* confdefs.h. */
10592 _ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596 #include <X11/Xlib.h>
10597 int
10598 main ()
10599 {
10600 #if XlibSpecificationRelease < 6
10601 fail;
10602 #endif
10603
10604 ;
10605 return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_link") 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext &&
10625 $as_test_x conftest$ac_exeext; then
10626 emacs_cv_x11_version_6=yes
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 emacs_cv_x11_version_6=no
10632 fi
10633
10634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10635 conftest$ac_exeext conftest.$ac_ext
10636 fi
10637
10638 if test $emacs_cv_x11_version_6 = yes; then
10639 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10640 echo "${ECHO_T}6 or newer" >&6; }
10641
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_X11R6 1
10644 _ACEOF
10645
10646 else
10647 { echo "$as_me:$LINENO: result: before 6" >&5
10648 echo "${ECHO_T}before 6" >&6; }
10649 fi
10650 fi
10651
10652
10653 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10654 HAVE_RSVG=no
10655 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10656 if test "${with_rsvg}" != "no"; then
10657 RSVG_REQUIRED=2.0.0
10658 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10659
10660
10661 succeeded=no
10662
10663 # Extract the first word of "pkg-config", so it can be a program name with args.
10664 set dummy pkg-config; ac_word=$2
10665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 case $PKG_CONFIG in
10671 [\\/]* | ?:[\\/]*)
10672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10673 ;;
10674 *)
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10677 do
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10685 fi
10686 done
10687 done
10688 IFS=$as_save_IFS
10689
10690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10691 ;;
10692 esac
10693 fi
10694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10695 if test -n "$PKG_CONFIG"; then
10696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10698 else
10699 { echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6; }
10701 fi
10702
10703
10704
10705 if test "$PKG_CONFIG" = "no" ; then
10706 :
10707 else
10708 PKG_CONFIG_MIN_VERSION=0.9.0
10709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10710 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10711 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10712
10713 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10714 { echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6; }
10716 succeeded=yes
10717
10718 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10719 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10720 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10721 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10722 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10723
10724 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10725 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10726 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10727 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10728 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10729 else
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10732 RSVG_CFLAGS=""
10733 RSVG_LIBS=""
10734 ## If we have a custom action on failure, don't print errors, but
10735 ## do set a variable so people can do so.
10736 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10737
10738 fi
10739
10740
10741
10742 else
10743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10745 fi
10746 fi
10747
10748 if test $succeeded = yes; then
10749 :
10750 else
10751 :
10752 fi
10753
10754
10755
10756
10757 if test ".${RSVG_CFLAGS}" != "."; then
10758 HAVE_RSVG=yes
10759
10760 cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_RSVG 1
10762 _ACEOF
10763
10764 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10765 LIBS="$RSVG_LIBS $LIBS"
10766 fi
10767 fi
10768 fi
10769
10770
10771 HAVE_GTK=no
10772 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10773 GLIB_REQUIRED=2.6
10774 GTK_REQUIRED=2.6
10775 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10776
10777
10778 succeeded=no
10779
10780 # Extract the first word of "pkg-config", so it can be a program name with args.
10781 set dummy pkg-config; ac_word=$2
10782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 case $PKG_CONFIG in
10788 [\\/]* | ?:[\\/]*)
10789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10790 ;;
10791 *)
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10794 do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
10798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10802 fi
10803 done
10804 done
10805 IFS=$as_save_IFS
10806
10807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10808 ;;
10809 esac
10810 fi
10811 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10812 if test -n "$PKG_CONFIG"; then
10813 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10814 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10815 else
10816 { echo "$as_me:$LINENO: result: no" >&5
10817 echo "${ECHO_T}no" >&6; }
10818 fi
10819
10820
10821
10822 if test "$PKG_CONFIG" = "no" ; then
10823 pkg_check_gtk=no
10824 else
10825 PKG_CONFIG_MIN_VERSION=0.9.0
10826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10827 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10828 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10829
10830 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10831 { echo "$as_me:$LINENO: result: yes" >&5
10832 echo "${ECHO_T}yes" >&6; }
10833 succeeded=yes
10834
10835 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10836 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10837 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10838 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10839 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10840
10841 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10842 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10843 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10844 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10845 echo "${ECHO_T}$GTK_LIBS" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10849 GTK_CFLAGS=""
10850 GTK_LIBS=""
10851 ## If we have a custom action on failure, don't print errors, but
10852 ## do set a variable so people can do so.
10853 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10854
10855 fi
10856
10857
10858
10859 else
10860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10862 fi
10863 fi
10864
10865 if test $succeeded = yes; then
10866 pkg_check_gtk=yes
10867 else
10868 pkg_check_gtk=no
10869 fi
10870
10871 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10872 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10873 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10874 { (exit 1); exit 1; }; }
10875 fi
10876 fi
10877
10878
10879 if test x"$pkg_check_gtk" = xyes; then
10880
10881
10882
10883 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10884 CFLAGS="$CFLAGS $GTK_CFLAGS"
10885 LIBS="$GTK_LIBS $LIBS"
10886 GTK_COMPILES=no
10887
10888 for ac_func in gtk_main
10889 do
10890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896 cat >conftest.$ac_ext <<_ACEOF
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10904 #define $ac_func innocuous_$ac_func
10905
10906 /* System header to define __stub macros and hopefully few prototypes,
10907 which can conflict with char $ac_func (); below.
10908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 <limits.h> exists even on freestanding compilers. */
10910
10911 #ifdef __STDC__
10912 # include <limits.h>
10913 #else
10914 # include <assert.h>
10915 #endif
10916
10917 #undef $ac_func
10918
10919 /* Override any GCC internal prototype to avoid an error.
10920 Use char because int might match the return type of a GCC
10921 builtin and then its argument prototype would still apply. */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 char $ac_func ();
10926 /* The GNU C library defines this for functions which it implements
10927 to always fail with ENOSYS. Some functions are actually named
10928 something starting with __ and the normal name is an alias. */
10929 #if defined __stub_$ac_func || defined __stub___$ac_func
10930 choke me
10931 #endif
10932
10933 int
10934 main ()
10935 {
10936 return $ac_func ();
10937 ;
10938 return 0;
10939 }
10940 _ACEOF
10941 rm -f conftest.$ac_objext conftest$ac_exeext
10942 if { (ac_try="$ac_link"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_link") 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest$ac_exeext &&
10958 $as_test_x conftest$ac_exeext; then
10959 eval "$as_ac_var=yes"
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 eval "$as_ac_var=no"
10965 fi
10966
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10969 fi
10970 ac_res=`eval echo '${'$as_ac_var'}'`
10971 { echo "$as_me:$LINENO: result: $ac_res" >&5
10972 echo "${ECHO_T}$ac_res" >&6; }
10973 if test `eval echo '${'$as_ac_var'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 _ACEOF
10977 GTK_COMPILES=yes
10978 fi
10979 done
10980
10981 if test "${GTK_COMPILES}" != "yes"; then
10982 if test "$USE_X_TOOLKIT" != "maybe"; then
10983 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10984 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10985 { (exit 1); exit 1; }; };
10986 fi
10987 else
10988 HAVE_GTK=yes
10989
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_GTK 1
10992 _ACEOF
10993
10994 USE_X_TOOLKIT=none
10995 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10996 :
10997 else
10998 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
10999 closing open displays. This is no problem if you just use
11000 one display, but if you use more than one and close one of them
11001 Emacs may crash." >&5
11002 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11003 closing open displays. This is no problem if you just use
11004 one display, but if you use more than one and close one of them
11005 Emacs may crash." >&2;}
11006 sleep 3
11007 fi
11008 fi
11009
11010 fi
11011
11012
11013 if test "${HAVE_GTK}" = "yes"; then
11014
11015 if test "$with_toolkit_scroll_bars" != no; then
11016 with_toolkit_scroll_bars=yes
11017 fi
11018
11019 HAVE_GTK_MULTIDISPLAY=no
11020
11021 for ac_func in gdk_display_open
11022 do
11023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11037 #define $ac_func innocuous_$ac_func
11038
11039 /* System header to define __stub macros and hopefully few prototypes,
11040 which can conflict with char $ac_func (); below.
11041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11042 <limits.h> exists even on freestanding compilers. */
11043
11044 #ifdef __STDC__
11045 # include <limits.h>
11046 #else
11047 # include <assert.h>
11048 #endif
11049
11050 #undef $ac_func
11051
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 char $ac_func ();
11059 /* The GNU C library defines this for functions which it implements
11060 to always fail with ENOSYS. Some functions are actually named
11061 something starting with __ and the normal name is an alias. */
11062 #if defined __stub_$ac_func || defined __stub___$ac_func
11063 choke me
11064 #endif
11065
11066 int
11067 main ()
11068 {
11069 return $ac_func ();
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079 esac
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_link") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest$ac_exeext &&
11091 $as_test_x conftest$ac_exeext; then
11092 eval "$as_ac_var=yes"
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097 eval "$as_ac_var=no"
11098 fi
11099
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
11102 fi
11103 ac_res=`eval echo '${'$as_ac_var'}'`
11104 { echo "$as_me:$LINENO: result: $ac_res" >&5
11105 echo "${ECHO_T}$ac_res" >&6; }
11106 if test `eval echo '${'$as_ac_var'}'` = yes; then
11107 cat >>confdefs.h <<_ACEOF
11108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11109 _ACEOF
11110 HAVE_GTK_MULTIDISPLAY=yes
11111 fi
11112 done
11113
11114 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11115
11116 cat >>confdefs.h <<\_ACEOF
11117 #define HAVE_GTK_MULTIDISPLAY 1
11118 _ACEOF
11119
11120 fi
11121
11122 HAVE_GTK_FILE_SELECTION=no
11123
11124 for ac_func in gtk_file_selection_new
11125 do
11126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h. */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11140 #define $ac_func innocuous_$ac_func
11141
11142 /* System header to define __stub macros and hopefully few prototypes,
11143 which can conflict with char $ac_func (); below.
11144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11145 <limits.h> exists even on freestanding compilers. */
11146
11147 #ifdef __STDC__
11148 # include <limits.h>
11149 #else
11150 # include <assert.h>
11151 #endif
11152
11153 #undef $ac_func
11154
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158 #ifdef __cplusplus
11159 extern "C"
11160 #endif
11161 char $ac_func ();
11162 /* The GNU C library defines this for functions which it implements
11163 to always fail with ENOSYS. Some functions are actually named
11164 something starting with __ and the normal name is an alias. */
11165 #if defined __stub_$ac_func || defined __stub___$ac_func
11166 choke me
11167 #endif
11168
11169 int
11170 main ()
11171 {
11172 return $ac_func ();
11173 ;
11174 return 0;
11175 }
11176 _ACEOF
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (ac_try="$ac_link"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11182 esac
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_link") 2>conftest.er1
11185 ac_status=$?
11186 grep -v '^ *+' conftest.er1 >conftest.err
11187 rm -f conftest.er1
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest$ac_exeext &&
11194 $as_test_x conftest$ac_exeext; then
11195 eval "$as_ac_var=yes"
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 eval "$as_ac_var=no"
11201 fi
11202
11203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11204 conftest$ac_exeext conftest.$ac_ext
11205 fi
11206 ac_res=`eval echo '${'$as_ac_var'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11209 if test `eval echo '${'$as_ac_var'}'` = yes; then
11210 cat >>confdefs.h <<_ACEOF
11211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11212 _ACEOF
11213 HAVE_GTK_FILE_SELECTION=yes
11214 fi
11215 done
11216
11217
11218 HAVE_GTK_FILE_CHOOSER=no
11219
11220 for ac_func in gtk_file_chooser_dialog_new
11221 do
11222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h. */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11236 #define $ac_func innocuous_$ac_func
11237
11238 /* System header to define __stub macros and hopefully few prototypes,
11239 which can conflict with char $ac_func (); below.
11240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 <limits.h> exists even on freestanding compilers. */
11242
11243 #ifdef __STDC__
11244 # include <limits.h>
11245 #else
11246 # include <assert.h>
11247 #endif
11248
11249 #undef $ac_func
11250
11251 /* Override any GCC internal prototype to avoid an error.
11252 Use char because int might match the return type of a GCC
11253 builtin and then its argument prototype would still apply. */
11254 #ifdef __cplusplus
11255 extern "C"
11256 #endif
11257 char $ac_func ();
11258 /* The GNU C library defines this for functions which it implements
11259 to always fail with ENOSYS. Some functions are actually named
11260 something starting with __ and the normal name is an alias. */
11261 #if defined __stub_$ac_func || defined __stub___$ac_func
11262 choke me
11263 #endif
11264
11265 int
11266 main ()
11267 {
11268 return $ac_func ();
11269 ;
11270 return 0;
11271 }
11272 _ACEOF
11273 rm -f conftest.$ac_objext conftest$ac_exeext
11274 if { (ac_try="$ac_link"
11275 case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_link") 2>conftest.er1
11281 ac_status=$?
11282 grep -v '^ *+' conftest.er1 >conftest.err
11283 rm -f conftest.er1
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } && {
11287 test -z "$ac_c_werror_flag" ||
11288 test ! -s conftest.err
11289 } && test -s conftest$ac_exeext &&
11290 $as_test_x conftest$ac_exeext; then
11291 eval "$as_ac_var=yes"
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 eval "$as_ac_var=no"
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300 conftest$ac_exeext conftest.$ac_ext
11301 fi
11302 ac_res=`eval echo '${'$as_ac_var'}'`
11303 { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11305 if test `eval echo '${'$as_ac_var'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 _ACEOF
11309 HAVE_GTK_FILE_CHOOSER=yes
11310 fi
11311 done
11312
11313
11314 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11315 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11316
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_GTK_FILE_BOTH 1
11319 _ACEOF
11320
11321 fi
11322
11323 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11324 HAVE_GTK_AND_PTHREAD=no
11325
11326 for ac_header in pthread.h
11327 do
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 fi
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11338 else
11339 # Is the header compilable?
11340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11349 #include <$ac_header>
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && {
11365 test -z "$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11367 } && test -s conftest.$ac_objext; then
11368 ac_header_compiler=yes
11369 else
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_header_compiler=no
11374 fi
11375
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378 echo "${ECHO_T}$ac_header_compiler" >&6; }
11379
11380 # Is the header present?
11381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 #include <$ac_header>
11390 _ACEOF
11391 if { (ac_try="$ac_cpp conftest.$ac_ext"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } >/dev/null && {
11404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11405 test ! -s conftest.err
11406 }; then
11407 ac_header_preproc=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412 ac_header_preproc=no
11413 fi
11414
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 yes:no: )
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11427 ;;
11428 no:yes:* )
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441
11442 ;;
11443 esac
11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449 eval "$as_ac_Header=\$ac_header_preproc"
11450 fi
11451 ac_res=`eval echo '${'$as_ac_Header'}'`
11452 { echo "$as_me:$LINENO: result: $ac_res" >&5
11453 echo "${ECHO_T}$ac_res" >&6; }
11454
11455 fi
11456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11459 _ACEOF
11460
11461 fi
11462
11463 done
11464
11465 if test "$ac_cv_header_pthread_h"; then
11466 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11467 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11468 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471 ac_check_lib_save_LIBS=$LIBS
11472 LIBS="-lpthread $LIBS"
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h. */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char pthread_self ();
11487 int
11488 main ()
11489 {
11490 return pthread_self ();
11491 ;
11492 return 0;
11493 }
11494 _ACEOF
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (ac_try="$ac_link"
11497 case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_link") 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && {
11509 test -z "$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 } && test -s conftest$ac_exeext &&
11512 $as_test_x conftest$ac_exeext; then
11513 ac_cv_lib_pthread_pthread_self=yes
11514 else
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11517
11518 ac_cv_lib_pthread_pthread_self=no
11519 fi
11520
11521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11526 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11527 if test $ac_cv_lib_pthread_pthread_self = yes; then
11528 HAVE_GTK_AND_PTHREAD=yes
11529 fi
11530
11531 fi
11532 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11533 case "${canonical}" in
11534 *-hpux*) ;;
11535 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11536 esac
11537
11538 cat >>confdefs.h <<\_ACEOF
11539 #define HAVE_GTK_AND_PTHREAD 1
11540 _ACEOF
11541
11542 fi
11543 fi
11544 fi
11545
11546 HAVE_DBUS=no
11547 if test "${with_dbus}" = "yes"; then
11548
11549 succeeded=no
11550
11551 # Extract the first word of "pkg-config", so it can be a program name with args.
11552 set dummy pkg-config; ac_word=$2
11553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 case $PKG_CONFIG in
11559 [\\/]* | ?:[\\/]*)
11560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11561 ;;
11562 *)
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11565 do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574 done
11575 done
11576 IFS=$as_save_IFS
11577
11578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11579 ;;
11580 esac
11581 fi
11582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11583 if test -n "$PKG_CONFIG"; then
11584 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11585 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11586 else
11587 { echo "$as_me:$LINENO: result: no" >&5
11588 echo "${ECHO_T}no" >&6; }
11589 fi
11590
11591
11592
11593 if test "$PKG_CONFIG" = "no" ; then
11594 HAVE_DBUS=no
11595 else
11596 PKG_CONFIG_MIN_VERSION=0.9.0
11597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11598 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11599 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11600
11601 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11602 { echo "$as_me:$LINENO: result: yes" >&5
11603 echo "${ECHO_T}yes" >&6; }
11604 succeeded=yes
11605
11606 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11607 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11608 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11609 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11610 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11611
11612 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11613 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11614 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11615 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11616 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11617 else
11618 { echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6; }
11620 DBUS_CFLAGS=""
11621 DBUS_LIBS=""
11622 ## If we have a custom action on failure, don't print errors, but
11623 ## do set a variable so people can do so.
11624 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11625
11626 fi
11627
11628
11629
11630 else
11631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11633 fi
11634 fi
11635
11636 if test $succeeded = yes; then
11637 HAVE_DBUS=yes
11638 else
11639 HAVE_DBUS=no
11640 fi
11641
11642 if test "$HAVE_DBUS" = yes; then
11643
11644 cat >>confdefs.h <<\_ACEOF
11645 #define HAVE_DBUS 1
11646 _ACEOF
11647
11648 fi
11649 fi
11650
11651 HAVE_XAW3D=no
11652 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11653 if test "$with_xaw3d" != no; then
11654 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11655 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11656 if test "${emacs_cv_xaw3d+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h. */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665
11666 #include <X11/Intrinsic.h>
11667 #include <X11/Xaw3d/Simple.h>
11668 int
11669 main ()
11670 {
11671
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_link") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest$ac_exeext &&
11693 $as_test_x conftest$ac_exeext; then
11694 emacs_cv_xaw3d=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 emacs_cv_xaw3d=no
11700 fi
11701
11702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11703 conftest$ac_exeext conftest.$ac_ext
11704 fi
11705
11706 else
11707 emacs_cv_xaw3d=no
11708 fi
11709 if test $emacs_cv_xaw3d = yes; then
11710 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11711 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11712 USE_X_TOOLKIT=LUCID
11713 HAVE_XAW3D=yes
11714
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_XAW3D 1
11717 _ACEOF
11718
11719 else
11720 { echo "$as_me:$LINENO: result: no" >&5
11721 echo "${ECHO_T}no" >&6; }
11722 { echo "$as_me:$LINENO: checking for libXaw" >&5
11723 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11724 if test "${emacs_cv_xaw+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727 cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h. */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733
11734 #include <X11/Intrinsic.h>
11735 #include <X11/Xaw/Simple.h>
11736 int
11737 main ()
11738 {
11739
11740 ;
11741 return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_link") 2>conftest.er1
11752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && {
11758 test -z "$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 } && test -s conftest$ac_exeext &&
11761 $as_test_x conftest$ac_exeext; then
11762 emacs_cv_xaw=yes
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 emacs_cv_xaw=no
11768 fi
11769
11770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771 conftest$ac_exeext conftest.$ac_ext
11772 fi
11773
11774 if test $emacs_cv_xaw = yes; then
11775 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11776 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11777 USE_X_TOOLKIT=LUCID
11778 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11779 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11780 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11781 { (exit 1); exit 1; }; }
11782 else
11783 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11784 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11785 USE_X_TOOLKIT=none
11786 fi
11787 fi
11788 fi
11789
11790 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11791
11792 if test "${USE_X_TOOLKIT}" != "none"; then
11793 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11794 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11795 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 #include <X11/Intrinsic.h>
11805 int
11806 main ()
11807 {
11808 #if XtSpecificationRelease < 6
11809 fail;
11810 #endif
11811
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_link") 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } && {
11830 test -z "$ac_c_werror_flag" ||
11831 test ! -s conftest.err
11832 } && test -s conftest$ac_exeext &&
11833 $as_test_x conftest$ac_exeext; then
11834 emacs_cv_x11_toolkit_version_6=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 emacs_cv_x11_toolkit_version_6=no
11840 fi
11841
11842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11843 conftest$ac_exeext conftest.$ac_ext
11844 fi
11845
11846 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11847 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11848 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11849 echo "${ECHO_T}6 or newer" >&6; }
11850
11851 cat >>confdefs.h <<\_ACEOF
11852 #define HAVE_X11XTR6 1
11853 _ACEOF
11854
11855 else
11856 { echo "$as_me:$LINENO: result: before 6" >&5
11857 echo "${ECHO_T}before 6" >&6; }
11858 fi
11859
11860 OLDLIBS="$LIBS"
11861 if test x$HAVE_X11XTR6 = xyes; then
11862 LIBS="-lXt -lSM -lICE $LIBS"
11863 else
11864 LIBS="-lXt $LIBS"
11865 fi
11866
11867 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11868 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11869 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-lXmu $LIBS"
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char XmuConvertStandardSelection ();
11888 int
11889 main ()
11890 {
11891 return XmuConvertStandardSelection ();
11892 ;
11893 return 0;
11894 }
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11914 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11920 fi
11921
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_lib_save_LIBS
11925 fi
11926 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11927 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11928 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define HAVE_LIBXMU 1
11931 _ACEOF
11932
11933 LIBS="-lXmu $LIBS"
11934
11935 fi
11936
11937 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11938 fi
11939
11940 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11941 if test "${HAVE_X11}" = "yes"; then
11942 if test "${USE_X_TOOLKIT}" != "none"; then
11943
11944 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11945 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11946 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949 ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-lXext $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char XShapeQueryExtension ();
11965 int
11966 main ()
11967 {
11968 return XShapeQueryExtension ();
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_link") 2>conftest.er1
11981 ac_status=$?
11982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest$ac_exeext &&
11990 $as_test_x conftest$ac_exeext; then
11991 ac_cv_lib_Xext_XShapeQueryExtension=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_lib_Xext_XShapeQueryExtension=no
11997 fi
11998
11999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12002 fi
12003 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12004 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12005 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12006 cat >>confdefs.h <<_ACEOF
12007 #define HAVE_LIBXEXT 1
12008 _ACEOF
12009
12010 LIBS="-lXext $LIBS"
12011
12012 fi
12013
12014 fi
12015 fi
12016
12017 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12018 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12019 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12020 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 #include <Xm/Xm.h>
12030 int
12031 main ()
12032 {
12033 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12034 int x = 5;
12035 #else
12036 Motif version prior to 2.1.
12037 #endif
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest.$ac_objext; then
12059 emacs_cv_motif_version_2_1=yes
12060 else
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 emacs_cv_motif_version_2_1=no
12065 fi
12066
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 fi
12069 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12070 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12071 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12072 if test $emacs_cv_motif_version_2_1 = yes; then
12073 HAVE_LIBXP=no
12074
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_MOTIF_2_1 1
12077 _ACEOF
12078
12079 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12080 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12081 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084 ac_check_lib_save_LIBS=$LIBS
12085 LIBS="-lXp $LIBS"
12086 cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h. */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char XpCreateContext ();
12100 int
12101 main ()
12102 {
12103 return XpCreateContext ();
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (ac_try="$ac_link"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113 esac
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_link") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest$ac_exeext &&
12125 $as_test_x conftest$ac_exeext; then
12126 ac_cv_lib_Xp_XpCreateContext=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 ac_cv_lib_Xp_XpCreateContext=no
12132 fi
12133
12134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12139 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12140 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12141 HAVE_LIBXP=yes
12142 fi
12143
12144 if test ${HAVE_LIBXP} = yes; then
12145
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_LIBXP 1
12148 _ACEOF
12149
12150 fi
12151 else
12152 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12153 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12154 if test "${emacs_cv_lesstif+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157 # We put this in CFLAGS temporarily to precede other -I options
12158 # that might be in CFLAGS temporarily.
12159 # We put this in CPPFLAGS where it precedes the other -I options.
12160 OLD_CPPFLAGS=$CPPFLAGS
12161 OLD_CFLAGS=$CFLAGS
12162 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12163 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12171 int
12172 main ()
12173 {
12174 int x = 5;
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 rm -f conftest.$ac_objext
12180 if { (ac_try="$ac_compile"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_compile") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest.$ac_objext; then
12196 emacs_cv_lesstif=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 emacs_cv_lesstif=no
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12207 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12208 if test $emacs_cv_lesstif = yes; then
12209 # Make sure this -I option remains in CPPFLAGS after it is set
12210 # back to REAL_CPPFLAGS.
12211 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12212 # have those other -I options anyway. Ultimately, having this
12213 # directory ultimately in CPPFLAGS will be enough.
12214 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12215 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12216 else
12217 CFLAGS=$OLD_CFLAGS
12218 CPPFLAGS=$OLD_CPPFLAGS
12219 fi
12220 fi
12221 fi
12222
12223
12224
12225 USE_TOOLKIT_SCROLL_BARS=no
12226 if test "${with_toolkit_scroll_bars}" != "no"; then
12227 if test "${USE_X_TOOLKIT}" != "none"; then
12228 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12229 cat >>confdefs.h <<\_ACEOF
12230 #define USE_TOOLKIT_SCROLL_BARS 1
12231 _ACEOF
12232
12233 HAVE_XAW3D=no
12234 USE_TOOLKIT_SCROLL_BARS=yes
12235 elif test "${HAVE_XAW3D}" = "yes"; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define USE_TOOLKIT_SCROLL_BARS 1
12238 _ACEOF
12239
12240 USE_TOOLKIT_SCROLL_BARS=yes
12241 fi
12242 elif test "${HAVE_GTK}" = "yes"; then
12243 cat >>confdefs.h <<\_ACEOF
12244 #define USE_TOOLKIT_SCROLL_BARS 1
12245 _ACEOF
12246
12247 USE_TOOLKIT_SCROLL_BARS=yes
12248 elif test "${HAVE_CARBON}" = "yes"; then
12249 cat >>confdefs.h <<\_ACEOF
12250 #define USE_TOOLKIT_SCROLL_BARS 1
12251 _ACEOF
12252
12253 USE_TOOLKIT_SCROLL_BARS=yes
12254 fi
12255 fi
12256
12257 cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h. */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263
12264 #include <X11/Xlib.h>
12265 #include <X11/Xresource.h>
12266 int
12267 main ()
12268 {
12269 XIMProc callback;
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest.$ac_objext; then
12291 HAVE_XIM=yes
12292
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_XIM 1
12295 _ACEOF
12296
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 HAVE_XIM=no
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305
12306
12307 if test "${with_xim}" != "no"; then
12308
12309 cat >>confdefs.h <<\_ACEOF
12310 #define USE_XIM 1
12311 _ACEOF
12312
12313 fi
12314
12315
12316 if test "${HAVE_XIM}" != "no"; then
12317 late_CFLAGS=$CFLAGS
12318 if test "$GCC" = yes; then
12319 CFLAGS="$CFLAGS --pedantic-errors"
12320 fi
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327
12328 #include <X11/Xlib.h>
12329 #include <X11/Xresource.h>
12330 int
12331 main ()
12332 {
12333 Display *display;
12334 XrmDatabase db;
12335 char *res_name;
12336 char *res_class;
12337 XIMProc callback;
12338 XPointer *client_data;
12339 #ifndef __GNUC__
12340 /* If we're not using GCC, it's probably not XFree86, and this is
12341 probably right, but we can't use something like --pedantic-errors. */
12342 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12343 char*, XIMProc, XPointer*);
12344 #endif
12345 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12346 client_data);
12347 ;
12348 return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext
12352 if { (ac_try="$ac_compile"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_compile") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest.$ac_objext; then
12368 emacs_cv_arg6_star=yes
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373
12374 fi
12375
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377
12378 if test "$emacs_cv_arg6_star" = yes; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12381 _ACEOF
12382
12383 else
12384 cat >>confdefs.h <<\_ACEOF
12385 #define XRegisterIMInstantiateCallback_arg6 XPointer
12386 _ACEOF
12387
12388 fi
12389 CFLAGS=$late_CFLAGS
12390 fi
12391
12392 #### For font-backend
12393 if test "${USE_FONT_BACKEND}" = "yes"; then
12394
12395
12396 cat >>confdefs.h <<\_ACEOF
12397 #define USE_FONT_BACKEND 1
12398 _ACEOF
12399
12400
12401 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12402 HAVE_XFT=maybe
12403 if test "${HAVE_X11}" = "yes"; then
12404 if test "x${with_freetype}" = "xno"; then
12405 with_xft="no";
12406 fi
12407 if test "x${with_xft}" != "xno"; then
12408
12409 if test "X${with_pkg_config_prog}" != X; then
12410 PKG_CONFIG="${with_pkg_config_prog}"
12411 fi
12412
12413
12414 succeeded=no
12415
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417 set dummy pkg-config; ac_word=$2
12418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 case $PKG_CONFIG in
12424 [\\/]* | ?:[\\/]*)
12425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12426 ;;
12427 *)
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12430 do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439 done
12440 done
12441 IFS=$as_save_IFS
12442
12443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12444 ;;
12445 esac
12446 fi
12447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12448 if test -n "$PKG_CONFIG"; then
12449 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12451 else
12452 { echo "$as_me:$LINENO: result: no" >&5
12453 echo "${ECHO_T}no" >&6; }
12454 fi
12455
12456
12457
12458 if test "$PKG_CONFIG" = "no" ; then
12459 HAVE_XFT=no
12460 else
12461 PKG_CONFIG_MIN_VERSION=0.9.0
12462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12463 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12464 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12465
12466 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12467 { echo "$as_me:$LINENO: result: yes" >&5
12468 echo "${ECHO_T}yes" >&6; }
12469 succeeded=yes
12470
12471 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12472 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12473 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12474 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12475 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12476
12477 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12478 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12479 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12480 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12481 echo "${ECHO_T}$XFT_LIBS" >&6; }
12482 else
12483 { echo "$as_me:$LINENO: result: no" >&5
12484 echo "${ECHO_T}no" >&6; }
12485 XFT_CFLAGS=""
12486 XFT_LIBS=""
12487 ## If we have a custom action on failure, don't print errors, but
12488 ## do set a variable so people can do so.
12489 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12490
12491 fi
12492
12493
12494
12495 else
12496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12498 fi
12499 fi
12500
12501 if test $succeeded = yes; then
12502 :
12503 else
12504 HAVE_XFT=no
12505 fi
12506
12507 if test "$HAVE_XFT" != no; then
12508 OLD_CPPFLAGS="$CPPFLAGS"
12509 OLD_CFLAGS="$CFLAGS"
12510 OLD_LIBS="$LIBS"
12511 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12512 CFLAGS="$CFLAGS $XFT_CFLAGS"
12513 LIBS="$XFT_LIBS $LIBS"
12514 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12515 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12516 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12517 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 fi
12520 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12521 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12522 else
12523 # Is the header compilable?
12524 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12525 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 $ac_includes_default
12533 #include <X11/Xft/Xft.h>
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (ac_try="$ac_compile"
12537 case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 ac_header_compiler=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_header_compiler=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6; }
12563
12564 # Is the header present?
12565 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12566 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h. */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <X11/Xft/Xft.h>
12574 _ACEOF
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } >/dev/null && {
12588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12590 }; then
12591 ac_header_preproc=yes
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_header_preproc=no
12597 fi
12598
12599 rm -f conftest.err conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6; }
12602
12603 # So? What about this header?
12604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12605 yes:no: )
12606 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12609 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12610 ac_header_preproc=yes
12611 ;;
12612 no:yes:* )
12613 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12614 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12616 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12618 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12620 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12624 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12625
12626 ;;
12627 esac
12628 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12629 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12630 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12634 fi
12635 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12636 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12637
12638 fi
12639 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12640 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12641 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12642 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645 ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-lXft $XFT_LIBS $LIBS"
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657 #ifdef __cplusplus
12658 extern "C"
12659 #endif
12660 char XftFontOpen ();
12661 int
12662 main ()
12663 {
12664 return XftFontOpen ();
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (ac_try="$ac_link"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_link") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest$ac_exeext &&
12686 $as_test_x conftest$ac_exeext; then
12687 ac_cv_lib_Xft_XftFontOpen=yes
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 ac_cv_lib_Xft_XftFontOpen=no
12693 fi
12694
12695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LIBS=$ac_check_lib_save_LIBS
12698 fi
12699 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12700 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12701 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12702 HAVE_XFT=yes
12703 fi
12704
12705 fi
12706
12707
12708
12709 if test "${HAVE_XFT}" = "yes"; then
12710
12711 cat >>confdefs.h <<\_ACEOF
12712 #define HAVE_XFT 1
12713 _ACEOF
12714
12715
12716 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12717 else
12718 CPPFLAGS="$OLD_CPPFLAGS"
12719 CFLAGS="$OLD_CFLAGS"
12720 LIBS="$OLD_LIBS"
12721 fi
12722 fi
12723 fi
12724 fi
12725 if test "$HAVE_XFT" != "yes"; then
12726 HAVE_XFT=no
12727 fi
12728
12729
12730 HAVE_FREETYPE=no
12731 ### Use -lfreetype if available, unless `--with-freetype=no'.
12732 if test "${HAVE_XFT}" = "yes"; then
12733 HAVE_FREETYPE=yes
12734 elif test "x${with_freetype}" != "xno"; then
12735 if test "X${with_pkg_config_prog}" != X; then
12736 PKG_CONFIG="${with_pkg_config_prog}"
12737 fi
12738
12739
12740 succeeded=no
12741
12742 # Extract the first word of "pkg-config", so it can be a program name with args.
12743 set dummy pkg-config; ac_word=$2
12744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12746 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 case $PKG_CONFIG in
12750 [\\/]* | ?:[\\/]*)
12751 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12752 ;;
12753 *)
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765 done
12766 done
12767 IFS=$as_save_IFS
12768
12769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12770 ;;
12771 esac
12772 fi
12773 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12774 if test -n "$PKG_CONFIG"; then
12775 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12776 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12777 else
12778 { echo "$as_me:$LINENO: result: no" >&5
12779 echo "${ECHO_T}no" >&6; }
12780 fi
12781
12782
12783
12784 if test "$PKG_CONFIG" = "no" ; then
12785 HAVE_FREETYPE=no
12786 else
12787 PKG_CONFIG_MIN_VERSION=0.9.0
12788 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12789 { echo "$as_me:$LINENO: checking for freetype2" >&5
12790 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12791
12792 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12793 { echo "$as_me:$LINENO: result: yes" >&5
12794 echo "${ECHO_T}yes" >&6; }
12795 succeeded=yes
12796
12797 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12798 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12799 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12800 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12801 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12802
12803 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12804 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12805 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12806 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12807 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12808 else
12809 { echo "$as_me:$LINENO: result: no" >&5
12810 echo "${ECHO_T}no" >&6; }
12811 FREETYPE_CFLAGS=""
12812 FREETYPE_LIBS=""
12813 ## If we have a custom action on failure, don't print errors, but
12814 ## do set a variable so people can do so.
12815 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12816
12817 fi
12818
12819
12820
12821 else
12822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12824 fi
12825 fi
12826
12827 if test $succeeded = yes; then
12828 HAVE_FREETYPE=yes
12829 else
12830 HAVE_FREETYPE=no
12831 fi
12832
12833 if test "${HAVE_FREETYPE}" = "yes"; then
12834
12835 succeeded=no
12836
12837 # Extract the first word of "pkg-config", so it can be a program name with args.
12838 set dummy pkg-config; ac_word=$2
12839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12841 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844 case $PKG_CONFIG in
12845 [\\/]* | ?:[\\/]*)
12846 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12847 ;;
12848 *)
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12851 do
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12859 fi
12860 done
12861 done
12862 IFS=$as_save_IFS
12863
12864 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12865 ;;
12866 esac
12867 fi
12868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12869 if test -n "$PKG_CONFIG"; then
12870 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12871 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12872 else
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12875 fi
12876
12877
12878
12879 if test "$PKG_CONFIG" = "no" ; then
12880 HAVE_FC=no
12881 else
12882 PKG_CONFIG_MIN_VERSION=0.9.0
12883 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12884 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12885 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12886
12887 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12888 { echo "$as_me:$LINENO: result: yes" >&5
12889 echo "${ECHO_T}yes" >&6; }
12890 succeeded=yes
12891
12892 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12893 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12894 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12895 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12896 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12897
12898 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12899 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12900 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12901 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12902 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12903 else
12904 { echo "$as_me:$LINENO: result: no" >&5
12905 echo "${ECHO_T}no" >&6; }
12906 FONTCONFIG_CFLAGS=""
12907 FONTCONFIG_LIBS=""
12908 ## If we have a custom action on failure, don't print errors, but
12909 ## do set a variable so people can do so.
12910 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12911
12912 fi
12913
12914
12915
12916 else
12917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12919 fi
12920 fi
12921
12922 if test $succeeded = yes; then
12923 HAVE_FC=yes
12924 else
12925 HAVE_FC=no
12926 fi
12927
12928 if test "${HAVE_FC}" = "no"; then
12929 HAVE_FREETYPE=no
12930 fi
12931 fi
12932 fi
12933
12934 HAVE_LIBOTF=no
12935 if test "${HAVE_FREETYPE}" = "yes"; then
12936
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_FREETYPE 1
12939 _ACEOF
12940
12941 if test "${with_libotf}" != "no"; then
12942 if test "X${with_pkg_config_prog}" != X; then
12943 PKG_CONFIG="${with_pkg_config_prog}"
12944 fi
12945
12946 succeeded=no
12947
12948 # Extract the first word of "pkg-config", so it can be a program name with args.
12949 set dummy pkg-config; ac_word=$2
12950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955 case $PKG_CONFIG in
12956 [\\/]* | ?:[\\/]*)
12957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12958 ;;
12959 *)
12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961 for as_dir in $PATH
12962 do
12963 IFS=$as_save_IFS
12964 test -z "$as_dir" && as_dir=.
12965 for ac_exec_ext in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12969 break 2
12970 fi
12971 done
12972 done
12973 IFS=$as_save_IFS
12974
12975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12976 ;;
12977 esac
12978 fi
12979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12980 if test -n "$PKG_CONFIG"; then
12981 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12983 else
12984 { echo "$as_me:$LINENO: result: no" >&5
12985 echo "${ECHO_T}no" >&6; }
12986 fi
12987
12988
12989
12990 if test "$PKG_CONFIG" = "no" ; then
12991 HAVE_LIBOTF=no
12992 else
12993 PKG_CONFIG_MIN_VERSION=0.9.0
12994 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12995 { echo "$as_me:$LINENO: checking for libotf" >&5
12996 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12997
12998 if $PKG_CONFIG --exists "libotf" 2>&5; then
12999 { echo "$as_me:$LINENO: result: yes" >&5
13000 echo "${ECHO_T}yes" >&6; }
13001 succeeded=yes
13002
13003 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13004 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13005 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13006 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13007 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13008
13009 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13010 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13011 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13012 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13013 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13014 else
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13017 LIBOTF_CFLAGS=""
13018 LIBOTF_LIBS=""
13019 ## If we have a custom action on failure, don't print errors, but
13020 ## do set a variable so people can do so.
13021 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13022
13023 fi
13024
13025
13026
13027 else
13028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13030 fi
13031 fi
13032
13033 if test $succeeded = yes; then
13034 HAVE_LIBOTF=yes
13035 else
13036 HAVE_LIBOTF=no
13037 fi
13038
13039 if test "$HAVE_LIBOTF" = "yes"; then
13040
13041 cat >>confdefs.h <<\_ACEOF
13042 #define HAVE_LIBOTF 1
13043 _ACEOF
13044
13045 fi
13046 fi
13047 fi
13048
13049 HAVE_M17N_FLT=no
13050 if test "${with_m17n_flt}" != "no"; then
13051 if test "X${with_pkg_config_prog}" != X; then
13052 PKG_CONFIG="${with_pkg_config_prog}"
13053 fi
13054
13055 succeeded=no
13056
13057 # Extract the first word of "pkg-config", so it can be a program name with args.
13058 set dummy pkg-config; ac_word=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064 case $PKG_CONFIG in
13065 [\\/]* | ?:[\\/]*)
13066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13067 ;;
13068 *)
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13071 do
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13078 break 2
13079 fi
13080 done
13081 done
13082 IFS=$as_save_IFS
13083
13084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13085 ;;
13086 esac
13087 fi
13088 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13089 if test -n "$PKG_CONFIG"; then
13090 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13091 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13092 else
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13095 fi
13096
13097
13098
13099 if test "$PKG_CONFIG" = "no" ; then
13100 HAVE_M17N_FLT=no
13101 else
13102 PKG_CONFIG_MIN_VERSION=0.9.0
13103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13104 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13105 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13106
13107 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13108 { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13110 succeeded=yes
13111
13112 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13113 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13114 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13115 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13116 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13117
13118 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13119 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13120 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13121 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13122 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13123 else
13124 { echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6; }
13126 M17N_FLT_CFLAGS=""
13127 M17N_FLT_LIBS=""
13128 ## If we have a custom action on failure, don't print errors, but
13129 ## do set a variable so people can do so.
13130 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13131
13132 fi
13133
13134
13135
13136 else
13137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13139 fi
13140 fi
13141
13142 if test $succeeded = yes; then
13143 HAVE_M17N_FLT=yes
13144 else
13145 HAVE_M17N_FLT=no
13146 fi
13147
13148 if test "$HAVE_M17N_FLT" = "yes"; then
13149
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_M17N_FLT 1
13152 _ACEOF
13153
13154 fi
13155 fi
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166 fi
13167 #### End for font-backend
13168
13169 ### Use -lXpm if available, unless `--with-xpm=no'.
13170 HAVE_XPM=no
13171 if test "${HAVE_X11}" = "yes"; then
13172 if test "${with_xpm}" != "no"; then
13173 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13174 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13175 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13176 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 fi
13179 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13180 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13181 else
13182 # Is the header compilable?
13183 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13184 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #include <X11/xpm.h>
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (ac_try="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199 esac
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest.$ac_objext; then
13211 ac_header_compiler=yes
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 ac_header_compiler=no
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13221 echo "${ECHO_T}$ac_header_compiler" >&6; }
13222
13223 # Is the header present?
13224 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13225 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <X11/xpm.h>
13233 _ACEOF
13234 if { (ac_try="$ac_cpp conftest.$ac_ext"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null && {
13247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 }; then
13250 ac_header_preproc=yes
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_header_preproc=no
13256 fi
13257
13258 rm -f conftest.err conftest.$ac_ext
13259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 echo "${ECHO_T}$ac_header_preproc" >&6; }
13261
13262 # So? What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13264 yes:no: )
13265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13266 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13268 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13269 ac_header_preproc=yes
13270 ;;
13271 no:yes:* )
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13275 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13277 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13279 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13281 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13283 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13284
13285 ;;
13286 esac
13287 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13288 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 ac_cv_header_X11_xpm_h=$ac_header_preproc
13293 fi
13294 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13295 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13296
13297 fi
13298 if test $ac_cv_header_X11_xpm_h = yes; then
13299 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13300 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13301 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 ac_check_lib_save_LIBS=$LIBS
13305 LIBS="-lXpm -lX11 $LIBS"
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 char XpmReadFileToPixmap ();
13320 int
13321 main ()
13322 {
13323 return XpmReadFileToPixmap ();
13324 ;
13325 return 0;
13326 }
13327 _ACEOF
13328 rm -f conftest.$ac_objext conftest$ac_exeext
13329 if { (ac_try="$ac_link"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_link") 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest$ac_exeext &&
13345 $as_test_x conftest$ac_exeext; then
13346 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13352 fi
13353
13354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13357 fi
13358 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13359 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13360 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13361 HAVE_XPM=yes
13362 fi
13363
13364 fi
13365
13366
13367 if test "${HAVE_XPM}" = "yes"; then
13368 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13369 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include "X11/xpm.h"
13377 #ifndef XpmReturnAllocPixels
13378 no_return_alloc_pixels
13379 #endif
13380
13381 _ACEOF
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13384 HAVE_XPM=no
13385 else
13386 HAVE_XPM=yes
13387 fi
13388 rm -f conftest*
13389
13390
13391 if test "${HAVE_XPM}" = "yes"; then
13392 { echo "$as_me:$LINENO: result: yes" >&5
13393 echo "${ECHO_T}yes" >&6; }
13394 else
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13397 fi
13398 fi
13399 fi
13400
13401 if test "${HAVE_XPM}" = "yes"; then
13402
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_XPM 1
13405 _ACEOF
13406
13407 fi
13408 fi
13409
13410 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13411 HAVE_JPEG=no
13412 if test "${HAVE_X11}" = "yes"; then
13413 if test "${with_jpeg}" != "no"; then
13414 if test "${ac_cv_header_jerror_h+set}" = set; then
13415 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13416 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_header_jerror_h+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 fi
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13422 else
13423 # Is the header compilable?
13424 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13425 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 #include <jerror.h>
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13452 ac_header_compiler=yes
13453 else
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 ac_header_compiler=no
13458 fi
13459
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13462 echo "${ECHO_T}$ac_header_compiler" >&6; }
13463
13464 # Is the header present?
13465 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13466 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <jerror.h>
13474 _ACEOF
13475 if { (ac_try="$ac_cpp conftest.$ac_ext"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } >/dev/null && {
13488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 }; then
13491 ac_header_preproc=yes
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13495
13496 ac_header_preproc=no
13497 fi
13498
13499 rm -f conftest.err conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502
13503 # So? What about this header?
13504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 yes:no: )
13506 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13509 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc=yes
13511 ;;
13512 no:yes:* )
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13522 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13525
13526 ;;
13527 esac
13528 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13529 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13530 if test "${ac_cv_header_jerror_h+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533 ac_cv_header_jerror_h=$ac_header_preproc
13534 fi
13535 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13536 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13537
13538 fi
13539 if test $ac_cv_header_jerror_h = yes; then
13540 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13541 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13542 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 ac_check_lib_save_LIBS=$LIBS
13546 LIBS="-ljpeg $LIBS"
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 char jpeg_destroy_compress ();
13561 int
13562 main ()
13563 {
13564 return jpeg_destroy_compress ();
13565 ;
13566 return 0;
13567 }
13568 _ACEOF
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (ac_try="$ac_link"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext &&
13586 $as_test_x conftest$ac_exeext; then
13587 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13588 else
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13593 fi
13594
13595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596 conftest$ac_exeext conftest.$ac_ext
13597 LIBS=$ac_check_lib_save_LIBS
13598 fi
13599 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13600 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13601 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13602 HAVE_JPEG=yes
13603 fi
13604
13605 fi
13606
13607
13608 fi
13609
13610
13611 if test "${HAVE_JPEG}" = "yes"; then
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_JPEG 1
13614 _ACEOF
13615
13616 cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h. */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <jpeglib.h>
13623 version=JPEG_LIB_VERSION
13624
13625 _ACEOF
13626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13627 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_JPEG 1
13630 _ACEOF
13631
13632 else
13633 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13634 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13635 HAVE_JPEG=no
13636 fi
13637 rm -f conftest*
13638
13639 fi
13640 fi
13641
13642 ### Use -lpng if available, unless `--with-png=no'.
13643 HAVE_PNG=no
13644 if test "${HAVE_X11}" = "yes"; then
13645 if test "${with_png}" != "no"; then
13646 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13647 # in /usr/include/libpng.
13648
13649
13650 for ac_header in png.h libpng/png.h
13651 do
13652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 fi
13659 ac_res=`eval echo '${'$as_ac_Header'}'`
13660 { echo "$as_me:$LINENO: result: $ac_res" >&5
13661 echo "${ECHO_T}$ac_res" >&6; }
13662 else
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <$ac_header>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693 else
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_header_compiler=no
13698 fi
13699
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13703
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <$ac_header>
13714 _ACEOF
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 }; then
13731 ac_header_preproc=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_header_preproc=no
13737 fi
13738
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13742
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13751 ;;
13752 no:yes:* )
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13765
13766 ;;
13767 esac
13768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 eval "$as_ac_Header=\$ac_header_preproc"
13774 fi
13775 ac_res=`eval echo '${'$as_ac_Header'}'`
13776 { echo "$as_me:$LINENO: result: $ac_res" >&5
13777 echo "${ECHO_T}$ac_res" >&6; }
13778
13779 fi
13780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13781 cat >>confdefs.h <<_ACEOF
13782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13783 _ACEOF
13784
13785 fi
13786
13787 done
13788
13789 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13790 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13791 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13792 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 ac_check_lib_save_LIBS=$LIBS
13796 LIBS="-lpng -lz -lm $LIBS"
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803
13804 /* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13807 #ifdef __cplusplus
13808 extern "C"
13809 #endif
13810 char png_get_channels ();
13811 int
13812 main ()
13813 {
13814 return png_get_channels ();
13815 ;
13816 return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest$ac_exeext &&
13836 $as_test_x conftest$ac_exeext; then
13837 ac_cv_lib_png_png_get_channels=yes
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_cv_lib_png_png_get_channels=no
13843 fi
13844
13845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13846 conftest$ac_exeext conftest.$ac_ext
13847 LIBS=$ac_check_lib_save_LIBS
13848 fi
13849 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13850 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13851 if test $ac_cv_lib_png_png_get_channels = yes; then
13852 HAVE_PNG=yes
13853 fi
13854
13855 fi
13856 fi
13857
13858 if test "${HAVE_PNG}" = "yes"; then
13859
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_PNG 1
13862 _ACEOF
13863
13864 fi
13865 fi
13866
13867 ### Use -ltiff if available, unless `--with-tiff=no'.
13868 HAVE_TIFF=no
13869 if test "${HAVE_X11}" = "yes"; then
13870 if test "${with_tiff}" != "no"; then
13871 if test "${ac_cv_header_tiffio_h+set}" = set; then
13872 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13873 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13874 if test "${ac_cv_header_tiffio_h+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 fi
13877 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13878 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13879 else
13880 # Is the header compilable?
13881 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13882 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 $ac_includes_default
13890 #include <tiffio.h>
13891 _ACEOF
13892 rm -f conftest.$ac_objext
13893 if { (ac_try="$ac_compile"
13894 case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897 esac
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_compile") 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && {
13906 test -z "$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 } && test -s conftest.$ac_objext; then
13909 ac_header_compiler=yes
13910 else
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914 ac_header_compiler=no
13915 fi
13916
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6; }
13920
13921 # Is the header present?
13922 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13923 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <tiffio.h>
13931 _ACEOF
13932 if { (ac_try="$ac_cpp conftest.$ac_ext"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 }; then
13948 ac_header_preproc=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_header_preproc=no
13954 fi
13955
13956 rm -f conftest.err conftest.$ac_ext
13957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 echo "${ECHO_T}$ac_header_preproc" >&6; }
13959
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 yes:no: )
13963 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13966 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13968 ;;
13969 no:yes:* )
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13971 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13973 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13975 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13977 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13979 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13981 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13982
13983 ;;
13984 esac
13985 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13986 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13987 if test "${ac_cv_header_tiffio_h+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990 ac_cv_header_tiffio_h=$ac_header_preproc
13991 fi
13992 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13993 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13994
13995 fi
13996 if test $ac_cv_header_tiffio_h = yes; then
13997 tifflibs="-lz -lm"
13998 # At least one tiff package requires the jpeg library.
13999 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14000 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14001 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14002 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-ltiff $tifflibs $LIBS"
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char TIFFGetVersion ();
14021 int
14022 main ()
14023 {
14024 return TIFFGetVersion ();
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 ac_cv_lib_tiff_TIFFGetVersion=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052 ac_cv_lib_tiff_TIFFGetVersion=no
14053 fi
14054
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14058 fi
14059 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14060 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14061 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14062 HAVE_TIFF=yes
14063 fi
14064
14065 fi
14066
14067
14068 fi
14069
14070 if test "${HAVE_TIFF}" = "yes"; then
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_TIFF 1
14074 _ACEOF
14075
14076 fi
14077 fi
14078
14079 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14080 HAVE_GIF=no
14081 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14082 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14083 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14084 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14085 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 fi
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14089 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14090 else
14091 # Is the header compilable?
14092 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14093 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14094 cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h. */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 $ac_includes_default
14101 #include <gif_lib.h>
14102 _ACEOF
14103 rm -f conftest.$ac_objext
14104 if { (ac_try="$ac_compile"
14105 case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_compile") 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest.$ac_objext; then
14120 ac_header_compiler=yes
14121 else
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_header_compiler=no
14126 fi
14127
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14130 echo "${ECHO_T}$ac_header_compiler" >&6; }
14131
14132 # Is the header present?
14133 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14134 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 #include <gif_lib.h>
14142 _ACEOF
14143 if { (ac_try="$ac_cpp conftest.$ac_ext"
14144 case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147 esac
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14150 ac_status=$?
14151 grep -v '^ *+' conftest.er1 >conftest.err
14152 rm -f conftest.er1
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } >/dev/null && {
14156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 }; then
14159 ac_header_preproc=yes
14160 else
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164 ac_header_preproc=no
14165 fi
14166
14167 rm -f conftest.err conftest.$ac_ext
14168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14169 echo "${ECHO_T}$ac_header_preproc" >&6; }
14170
14171 # So? What about this header?
14172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14173 yes:no: )
14174 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14175 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14177 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14178 ac_header_preproc=yes
14179 ;;
14180 no:yes:* )
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14182 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14184 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14186 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14188 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14192 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14193
14194 ;;
14195 esac
14196 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14197 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14198 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 ac_cv_header_gif_lib_h=$ac_header_preproc
14202 fi
14203 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14204 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14205
14206 fi
14207 if test $ac_cv_header_gif_lib_h = yes; then
14208 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14209 # Earlier versions can crash Emacs.
14210 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14211 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14212 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-lgif $LIBS"
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 char EGifPutExtensionLast ();
14231 int
14232 main ()
14233 {
14234 return EGifPutExtensionLast ();
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext &&
14256 $as_test_x conftest$ac_exeext; then
14257 ac_cv_lib_gif_EGifPutExtensionLast=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 ac_cv_lib_gif_EGifPutExtensionLast=no
14263 fi
14264
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14268 fi
14269 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14270 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14271 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14272 HAVE_GIF=yes
14273 else
14274 try_libungif=yes
14275 fi
14276
14277 fi
14278
14279
14280
14281 if test "$HAVE_GIF" = yes; then
14282 ac_gif_lib_name="-lgif"
14283 fi
14284
14285 # If gif_lib.h but no libgif, try libungif.
14286 if test x"$try_libungif" = xyes; then
14287 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14288 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14289 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lungif $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char EGifPutExtensionLast ();
14308 int
14309 main ()
14310 {
14311 return EGifPutExtensionLast ();
14312 ;
14313 return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_link") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest$ac_exeext &&
14333 $as_test_x conftest$ac_exeext; then
14334 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ac_cv_lib_ungif_EGifPutExtensionLast=no
14340 fi
14341
14342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14345 fi
14346 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14347 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14348 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14349 HAVE_GIF=yes
14350 fi
14351
14352
14353 if test "$HAVE_GIF" = yes; then
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define LIBGIF -lungif
14357 _ACEOF
14358
14359 ac_gif_lib_name="-lungif"
14360 fi
14361 fi
14362
14363 if test "${HAVE_GIF}" = "yes"; then
14364
14365 cat >>confdefs.h <<\_ACEOF
14366 #define HAVE_GIF 1
14367 _ACEOF
14368
14369 fi
14370 fi
14371
14372 if test "${HAVE_X11}" = "yes"; then
14373 MISSING=""
14374 WITH_NO=""
14375 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14376 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14377 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14378 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14379 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14380 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14381 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14382 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14383 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14384 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14385
14386 if test "X${MISSING}" != X; then
14387 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14388 $MISSING
14389 Maybe some development libraries/packages are missing?
14390 If you don't want to link with them give
14391 $WITH_NO
14392 as options to configure" >&5
14393 echo "$as_me: error: The following required libraries were not found:
14394 $MISSING
14395 Maybe some development libraries/packages are missing?
14396 If you don't want to link with them give
14397 $WITH_NO
14398 as options to configure" >&2;}
14399 { (exit 1); exit 1; }; }
14400 fi
14401 fi
14402
14403 ### Use -lgpm if available, unless `--with-gpm=no'.
14404 HAVE_GPM=no
14405 if test "${with_gpm}" != "no"; then
14406 if test "${ac_cv_header_gpm_h+set}" = set; then
14407 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14408 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14409 if test "${ac_cv_header_gpm_h+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 fi
14412 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14413 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14414 else
14415 # Is the header compilable?
14416 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14417 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 $ac_includes_default
14425 #include <gpm.h>
14426 _ACEOF
14427 rm -f conftest.$ac_objext
14428 if { (ac_try="$ac_compile"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest.$ac_objext; then
14444 ac_header_compiler=yes
14445 else
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 ac_header_compiler=no
14450 fi
14451
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14454 echo "${ECHO_T}$ac_header_compiler" >&6; }
14455
14456 # Is the header present?
14457 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14458 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #include <gpm.h>
14466 _ACEOF
14467 if { (ac_try="$ac_cpp conftest.$ac_ext"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } >/dev/null && {
14480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 }; then
14483 ac_header_preproc=yes
14484 else
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 ac_header_preproc=no
14489 fi
14490
14491 rm -f conftest.err conftest.$ac_ext
14492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14493 echo "${ECHO_T}$ac_header_preproc" >&6; }
14494
14495 # So? What about this header?
14496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14497 yes:no: )
14498 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14499 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14501 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14502 ac_header_preproc=yes
14503 ;;
14504 no:yes:* )
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14506 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14508 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14510 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14512 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14514 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14516 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14517
14518 ;;
14519 esac
14520 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14521 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14522 if test "${ac_cv_header_gpm_h+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 ac_cv_header_gpm_h=$ac_header_preproc
14526 fi
14527 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14528 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14529
14530 fi
14531 if test $ac_cv_header_gpm_h = yes; then
14532 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14533 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14534 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537 ac_check_lib_save_LIBS=$LIBS
14538 LIBS="-lgpm $LIBS"
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545
14546 /* Override any GCC internal prototype to avoid an error.
14547 Use char because int might match the return type of a GCC
14548 builtin and then its argument prototype would still apply. */
14549 #ifdef __cplusplus
14550 extern "C"
14551 #endif
14552 char Gpm_Open ();
14553 int
14554 main ()
14555 {
14556 return Gpm_Open ();
14557 ;
14558 return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 ac_cv_lib_gpm_Gpm_Open=yes
14580 else
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 ac_cv_lib_gpm_Gpm_Open=no
14585 fi
14586
14587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14589 LIBS=$ac_check_lib_save_LIBS
14590 fi
14591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14592 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14593 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14594 HAVE_GPM=yes
14595 fi
14596
14597 fi
14598
14599
14600 fi
14601
14602 if test "${HAVE_GPM}" = "yes"; then
14603
14604 cat >>confdefs.h <<\_ACEOF
14605 #define HAVE_GPM 1
14606 _ACEOF
14607
14608 fi
14609
14610 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14611 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14612 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14613 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 fi
14616 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14617 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14618 else
14619 # Is the header compilable?
14620 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14621 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 #include <malloc/malloc.h>
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_header_compiler=yes
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_header_compiler=no
14654 fi
14655
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659
14660 # Is the header present?
14661 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14662 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <malloc/malloc.h>
14670 _ACEOF
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } >/dev/null && {
14684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14685 test ! -s conftest.err
14686 }; then
14687 ac_header_preproc=yes
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_header_preproc=no
14693 fi
14694
14695 rm -f conftest.err conftest.$ac_ext
14696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6; }
14698
14699 # So? What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 yes:no: )
14702 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14707 ;;
14708 no:yes:* )
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14721
14722 ;;
14723 esac
14724 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14725 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14726 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14730 fi
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14733
14734 fi
14735 if test $ac_cv_header_malloc_malloc_h = yes; then
14736
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_MALLOC_MALLOC_H 1
14739 _ACEOF
14740
14741 fi
14742
14743
14744
14745 ### Use Mac OS X Carbon API to implement GUI.
14746 if test "${HAVE_CARBON}" = "yes"; then
14747
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_CARBON 1
14750 _ACEOF
14751
14752 ## Specify the install directory
14753 carbon_appdir=
14754 if test "${carbon_appdir_x}" != ""; then
14755 case ${carbon_appdir_x} in
14756 y | ye | yes) carbon_appdir=/Applications ;;
14757 * ) carbon_appdir=${carbon_appdir_x} ;;
14758 esac
14759 fi
14760 # We also have mouse menus.
14761 HAVE_MENUS=yes
14762 fi
14763
14764 ### Use session management (-lSM -lICE) if available
14765 HAVE_X_SM=no
14766 if test "${HAVE_X11}" = "yes"; then
14767 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14768 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14769 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 fi
14773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14774 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14775 else
14776 # Is the header compilable?
14777 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14778 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14786 #include <X11/SM/SMlib.h>
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.$ac_objext; then
14805 ac_header_compiler=yes
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 ac_header_compiler=no
14811 fi
14812
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14815 echo "${ECHO_T}$ac_header_compiler" >&6; }
14816
14817 # Is the header present?
14818 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14819 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h. */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 #include <X11/SM/SMlib.h>
14827 _ACEOF
14828 if { (ac_try="$ac_cpp conftest.$ac_ext"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } >/dev/null && {
14841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 }; then
14844 ac_header_preproc=yes
14845 else
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_header_preproc=no
14850 fi
14851
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855
14856 # So? What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858 yes:no: )
14859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14864 ;;
14865 no:yes:* )
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14878
14879 ;;
14880 esac
14881 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14882 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14883 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14887 fi
14888 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14889 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14890
14891 fi
14892 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14893 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14894 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14895 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 ac_check_lib_save_LIBS=$LIBS
14899 LIBS="-lSM -lICE $LIBS"
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906
14907 /* Override any GCC internal prototype to avoid an error.
14908 Use char because int might match the return type of a GCC
14909 builtin and then its argument prototype would still apply. */
14910 #ifdef __cplusplus
14911 extern "C"
14912 #endif
14913 char SmcOpenConnection ();
14914 int
14915 main ()
14916 {
14917 return SmcOpenConnection ();
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (ac_try="$ac_link"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_link") 2>conftest.er1
14930 ac_status=$?
14931 grep -v '^ *+' conftest.er1 >conftest.err
14932 rm -f conftest.er1
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest$ac_exeext &&
14939 $as_test_x conftest$ac_exeext; then
14940 ac_cv_lib_SM_SmcOpenConnection=yes
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_cv_lib_SM_SmcOpenConnection=no
14946 fi
14947
14948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14951 fi
14952 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14955 HAVE_X_SM=yes
14956 fi
14957
14958 fi
14959
14960
14961
14962 if test "${HAVE_X_SM}" = "yes"; then
14963
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_X_SM 1
14966 _ACEOF
14967
14968 case "$LIBS" in
14969 *-lSM*) ;;
14970 *) LIBS="-lSM -lICE $LIBS" ;;
14971 esac
14972 fi
14973 fi
14974
14975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14976 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <netdb.h>
14988 int
14989 main ()
14990 {
14991 return h_errno;
14992 ;
14993 return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext conftest$ac_exeext
14997 if { (ac_try="$ac_link"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_link") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest$ac_exeext &&
15013 $as_test_x conftest$ac_exeext; then
15014 emacs_cv_netdb_declares_h_errno=yes
15015 else
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15018
15019 emacs_cv_netdb_declares_h_errno=no
15020 fi
15021
15022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15023 conftest$ac_exeext conftest.$ac_ext
15024 fi
15025 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15026 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15027 if test $emacs_cv_netdb_declares_h_errno = yes; then
15028
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_H_ERRNO 1
15031 _ACEOF
15032
15033 fi
15034
15035 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15036 # for constant arguments. Useless!
15037 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15038 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15039 if test "${ac_cv_working_alloca_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 #include <alloca.h>
15049 int
15050 main ()
15051 {
15052 char *p = (char *) alloca (2 * sizeof (int));
15053 if (p) return 0;
15054 ;
15055 return 0;
15056 }
15057 _ACEOF
15058 rm -f conftest.$ac_objext conftest$ac_exeext
15059 if { (ac_try="$ac_link"
15060 case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_link") 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } && {
15072 test -z "$ac_c_werror_flag" ||
15073 test ! -s conftest.err
15074 } && test -s conftest$ac_exeext &&
15075 $as_test_x conftest$ac_exeext; then
15076 ac_cv_working_alloca_h=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_cv_working_alloca_h=no
15082 fi
15083
15084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15085 conftest$ac_exeext conftest.$ac_ext
15086 fi
15087 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15088 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15089 if test $ac_cv_working_alloca_h = yes; then
15090
15091 cat >>confdefs.h <<\_ACEOF
15092 #define HAVE_ALLOCA_H 1
15093 _ACEOF
15094
15095 fi
15096
15097 { echo "$as_me:$LINENO: checking for alloca" >&5
15098 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15099 if test "${ac_cv_func_alloca_works+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #ifdef __GNUC__
15109 # define alloca __builtin_alloca
15110 #else
15111 # ifdef _MSC_VER
15112 # include <malloc.h>
15113 # define alloca _alloca
15114 # else
15115 # ifdef HAVE_ALLOCA_H
15116 # include <alloca.h>
15117 # else
15118 # ifdef _AIX
15119 #pragma alloca
15120 # else
15121 # ifndef alloca /* predefined by HP cc +Olibcalls */
15122 char *alloca ();
15123 # endif
15124 # endif
15125 # endif
15126 # endif
15127 #endif
15128
15129 int
15130 main ()
15131 {
15132 char *p = (char *) alloca (1);
15133 if (p) return 0;
15134 ;
15135 return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_link") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext &&
15155 $as_test_x conftest$ac_exeext; then
15156 ac_cv_func_alloca_works=yes
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ac_cv_func_alloca_works=no
15162 fi
15163
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15166 fi
15167 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15168 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15169
15170 if test $ac_cv_func_alloca_works = yes; then
15171
15172 cat >>confdefs.h <<\_ACEOF
15173 #define HAVE_ALLOCA 1
15174 _ACEOF
15175
15176 else
15177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15178 # that cause trouble. Some versions do not even contain alloca or
15179 # contain a buggy version. If you still want to use their alloca,
15180 # use ar to extract alloca.o from them instead of compiling alloca.c.
15181
15182 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15183
15184 cat >>confdefs.h <<\_ACEOF
15185 #define C_ALLOCA 1
15186 _ACEOF
15187
15188
15189 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15190 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15191 if test "${ac_cv_os_cray+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #if defined CRAY && ! defined CRAY2
15201 webecray
15202 #else
15203 wenotbecray
15204 #endif
15205
15206 _ACEOF
15207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 $EGREP "webecray" >/dev/null 2>&1; then
15209 ac_cv_os_cray=yes
15210 else
15211 ac_cv_os_cray=no
15212 fi
15213 rm -f conftest*
15214
15215 fi
15216 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15217 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15218 if test $ac_cv_os_cray = yes; then
15219 for ac_func in _getb67 GETB67 getb67; do
15220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15234 #define $ac_func innocuous_$ac_func
15235
15236 /* System header to define __stub macros and hopefully few prototypes,
15237 which can conflict with char $ac_func (); below.
15238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15239 <limits.h> exists even on freestanding compilers. */
15240
15241 #ifdef __STDC__
15242 # include <limits.h>
15243 #else
15244 # include <assert.h>
15245 #endif
15246
15247 #undef $ac_func
15248
15249 /* Override any GCC internal prototype to avoid an error.
15250 Use char because int might match the return type of a GCC
15251 builtin and then its argument prototype would still apply. */
15252 #ifdef __cplusplus
15253 extern "C"
15254 #endif
15255 char $ac_func ();
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined __stub_$ac_func || defined __stub___$ac_func
15260 choke me
15261 #endif
15262
15263 int
15264 main ()
15265 {
15266 return $ac_func ();
15267 ;
15268 return 0;
15269 }
15270 _ACEOF
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (ac_try="$ac_link"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_link") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest$ac_exeext &&
15288 $as_test_x conftest$ac_exeext; then
15289 eval "$as_ac_var=yes"
15290 else
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 eval "$as_ac_var=no"
15295 fi
15296
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298 conftest$ac_exeext conftest.$ac_ext
15299 fi
15300 ac_res=`eval echo '${'$as_ac_var'}'`
15301 { echo "$as_me:$LINENO: result: $ac_res" >&5
15302 echo "${ECHO_T}$ac_res" >&6; }
15303 if test `eval echo '${'$as_ac_var'}'` = yes; then
15304
15305 cat >>confdefs.h <<_ACEOF
15306 #define CRAY_STACKSEG_END $ac_func
15307 _ACEOF
15308
15309 break
15310 fi
15311
15312 done
15313 fi
15314
15315 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15316 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15317 if test "${ac_cv_c_stack_direction+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 if test "$cross_compiling" = yes; then
15321 ac_cv_c_stack_direction=0
15322 else
15323 cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h. */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15330 int
15331 find_stack_direction ()
15332 {
15333 static char *addr = 0;
15334 auto char dummy;
15335 if (addr == 0)
15336 {
15337 addr = &dummy;
15338 return find_stack_direction ();
15339 }
15340 else
15341 return (&dummy > addr) ? 1 : -1;
15342 }
15343
15344 int
15345 main ()
15346 {
15347 return find_stack_direction () < 0;
15348 }
15349 _ACEOF
15350 rm -f conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_c_stack_direction=1
15371 else
15372 echo "$as_me: program exited with status $ac_status" >&5
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ( exit $ac_status )
15377 ac_cv_c_stack_direction=-1
15378 fi
15379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15380 fi
15381
15382
15383 fi
15384 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15385 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15386
15387 cat >>confdefs.h <<_ACEOF
15388 #define STACK_DIRECTION $ac_cv_c_stack_direction
15389 _ACEOF
15390
15391
15392 fi
15393
15394
15395 if test x"$ac_cv_func_alloca_works" != xyes; then
15396 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15397 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15398 { (exit 1); exit 1; }; }
15399 fi
15400
15401 # fmod, logb, and frexp are found in -lm on most systems.
15402 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15403
15404 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15405 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15406 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 ac_check_lib_save_LIBS=$LIBS
15410 LIBS="-lm $LIBS"
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417
15418 /* Override any GCC internal prototype to avoid an error.
15419 Use char because int might match the return type of a GCC
15420 builtin and then its argument prototype would still apply. */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 char sqrt ();
15425 int
15426 main ()
15427 {
15428 return sqrt ();
15429 ;
15430 return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_link") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest$ac_exeext &&
15450 $as_test_x conftest$ac_exeext; then
15451 ac_cv_lib_m_sqrt=yes
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_cv_lib_m_sqrt=no
15457 fi
15458
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15462 fi
15463 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15464 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15465 if test $ac_cv_lib_m_sqrt = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_LIBM 1
15468 _ACEOF
15469
15470 LIBS="-lm $LIBS"
15471
15472 fi
15473
15474
15475 # Check for mail-locking functions in a "mail" library. Probably this should
15476 # have the same check as for liblockfile below.
15477
15478 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15479 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15480 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483 ac_check_lib_save_LIBS=$LIBS
15484 LIBS="-lmail $LIBS"
15485 cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h. */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491
15492 /* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15495 #ifdef __cplusplus
15496 extern "C"
15497 #endif
15498 char maillock ();
15499 int
15500 main ()
15501 {
15502 return maillock ();
15503 ;
15504 return 0;
15505 }
15506 _ACEOF
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (ac_try="$ac_link"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_link") 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest$ac_exeext &&
15524 $as_test_x conftest$ac_exeext; then
15525 ac_cv_lib_mail_maillock=yes
15526 else
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 ac_cv_lib_mail_maillock=no
15531 fi
15532
15533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15534 conftest$ac_exeext conftest.$ac_ext
15535 LIBS=$ac_check_lib_save_LIBS
15536 fi
15537 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15538 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15539 if test $ac_cv_lib_mail_maillock = yes; then
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_LIBMAIL 1
15542 _ACEOF
15543
15544 LIBS="-lmail $LIBS"
15545
15546 fi
15547
15548
15549 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15550 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15551 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554 ac_check_lib_save_LIBS=$LIBS
15555 LIBS="-llockfile $LIBS"
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15566 #ifdef __cplusplus
15567 extern "C"
15568 #endif
15569 char maillock ();
15570 int
15571 main ()
15572 {
15573 return maillock ();
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 ac_cv_lib_lockfile_maillock=yes
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_cv_lib_lockfile_maillock=no
15602 fi
15603
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LIBS=$ac_check_lib_save_LIBS
15607 fi
15608 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15609 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15610 if test $ac_cv_lib_lockfile_maillock = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_LIBLOCKFILE 1
15613 _ACEOF
15614
15615 LIBS="-llockfile $LIBS"
15616
15617 fi
15618
15619 # If we have the shared liblockfile, assume we must use it for mail
15620 # locking (e.g. Debian). If we couldn't link against liblockfile
15621 # (no liblockfile.a installed), ensure that we don't need to.
15622 if test "$ac_cv_lib_lockfile_maillock" = no; then
15623 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15624 set dummy liblockfile.so; ac_word=$2
15625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15627 if test "${ac_cv_prog_liblockfile+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630 if test -n "$liblockfile"; then
15631 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15632 else
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15635 for as_dir in $as_dummy
15636 do
15637 IFS=$as_save_IFS
15638 test -z "$as_dir" && as_dir=.
15639 for ac_exec_ext in '' $ac_executable_extensions; do
15640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15641 ac_cv_prog_liblockfile="yes"
15642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15643 break 2
15644 fi
15645 done
15646 done
15647 IFS=$as_save_IFS
15648
15649 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15650 fi
15651 fi
15652 liblockfile=$ac_cv_prog_liblockfile
15653 if test -n "$liblockfile"; then
15654 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15655 echo "${ECHO_T}$liblockfile" >&6; }
15656 else
15657 { echo "$as_me:$LINENO: result: no" >&5
15658 echo "${ECHO_T}no" >&6; }
15659 fi
15660
15661
15662 if test $ac_cv_prog_liblockfile = yes; then
15663 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15664 This probably means that movemail could lose mail.
15665 There may be a \`development' package to install containing liblockfile." >&5
15666 echo "$as_me: error: Shared liblockfile found but can't link against it.
15667 This probably means that movemail could lose mail.
15668 There may be a \`development' package to install containing liblockfile." >&2;}
15669 { (exit 1); exit 1; }; }
15670 else :
15671 fi
15672 fi
15673
15674 for ac_func in touchlock
15675 do
15676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15690 #define $ac_func innocuous_$ac_func
15691
15692 /* System header to define __stub macros and hopefully few prototypes,
15693 which can conflict with char $ac_func (); below.
15694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15695 <limits.h> exists even on freestanding compilers. */
15696
15697 #ifdef __STDC__
15698 # include <limits.h>
15699 #else
15700 # include <assert.h>
15701 #endif
15702
15703 #undef $ac_func
15704
15705 /* Override any GCC internal prototype to avoid an error.
15706 Use char because int might match the return type of a GCC
15707 builtin and then its argument prototype would still apply. */
15708 #ifdef __cplusplus
15709 extern "C"
15710 #endif
15711 char $ac_func ();
15712 /* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715 #if defined __stub_$ac_func || defined __stub___$ac_func
15716 choke me
15717 #endif
15718
15719 int
15720 main ()
15721 {
15722 return $ac_func ();
15723 ;
15724 return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (ac_try="$ac_link"
15729 case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_link") 2>conftest.er1
15735 ac_status=$?
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } && {
15741 test -z "$ac_c_werror_flag" ||
15742 test ! -s conftest.err
15743 } && test -s conftest$ac_exeext &&
15744 $as_test_x conftest$ac_exeext; then
15745 eval "$as_ac_var=yes"
15746 else
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 eval "$as_ac_var=no"
15751 fi
15752
15753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15754 conftest$ac_exeext conftest.$ac_ext
15755 fi
15756 ac_res=`eval echo '${'$as_ac_var'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15762 _ACEOF
15763
15764 fi
15765 done
15766
15767
15768 for ac_header in maillock.h
15769 do
15770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 fi
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15780 else
15781 # Is the header compilable?
15782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15791 #include <$ac_header>
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_compile") 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest.$ac_objext; then
15810 ac_header_compiler=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_header_compiler=no
15816 fi
15817
15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820 echo "${ECHO_T}$ac_header_compiler" >&6; }
15821
15822 # Is the header present?
15823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <$ac_header>
15832 _ACEOF
15833 if { (ac_try="$ac_cpp conftest.$ac_ext"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } >/dev/null && {
15846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 }; then
15849 ac_header_preproc=yes
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_header_preproc=no
15855 fi
15856
15857 rm -f conftest.err conftest.$ac_ext
15858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15859 echo "${ECHO_T}$ac_header_preproc" >&6; }
15860
15861 # So? What about this header?
15862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15863 yes:no: )
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15868 ac_header_preproc=yes
15869 ;;
15870 no:yes:* )
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15883
15884 ;;
15885 esac
15886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891 eval "$as_ac_Header=\$ac_header_preproc"
15892 fi
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15896
15897 fi
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 _ACEOF
15902
15903 fi
15904
15905 done
15906
15907
15908
15909
15910
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 for ac_func in gethostname getdomainname dup2 \
15977 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15978 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15979 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15980 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15981 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15982 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15983 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15984 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15985 do
15986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16000 #define $ac_func innocuous_$ac_func
16001
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func (); below.
16004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16005 <limits.h> exists even on freestanding compilers. */
16006
16007 #ifdef __STDC__
16008 # include <limits.h>
16009 #else
16010 # include <assert.h>
16011 #endif
16012
16013 #undef $ac_func
16014
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16018 #ifdef __cplusplus
16019 extern "C"
16020 #endif
16021 char $ac_func ();
16022 /* The GNU C library defines this for functions which it implements
16023 to always fail with ENOSYS. Some functions are actually named
16024 something starting with __ and the normal name is an alias. */
16025 #if defined __stub_$ac_func || defined __stub___$ac_func
16026 choke me
16027 #endif
16028
16029 int
16030 main ()
16031 {
16032 return $ac_func ();
16033 ;
16034 return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (ac_try="$ac_link"
16039 case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_link") 2>conftest.er1
16045 ac_status=$?
16046 grep -v '^ *+' conftest.er1 >conftest.err
16047 rm -f conftest.er1
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } && {
16051 test -z "$ac_c_werror_flag" ||
16052 test ! -s conftest.err
16053 } && test -s conftest$ac_exeext &&
16054 $as_test_x conftest$ac_exeext; then
16055 eval "$as_ac_var=yes"
16056 else
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16059
16060 eval "$as_ac_var=no"
16061 fi
16062
16063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16064 conftest$ac_exeext conftest.$ac_ext
16065 fi
16066 ac_res=`eval echo '${'$as_ac_var'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16069 if test `eval echo '${'$as_ac_var'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16072 _ACEOF
16073
16074 fi
16075 done
16076
16077
16078
16079 for ac_header in sys/un.h
16080 do
16081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 fi
16088 ac_res=`eval echo '${'$as_ac_Header'}'`
16089 { echo "$as_me:$LINENO: result: $ac_res" >&5
16090 echo "${ECHO_T}$ac_res" >&6; }
16091 else
16092 # Is the header compilable?
16093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 $ac_includes_default
16102 #include <$ac_header>
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (ac_try="$ac_compile"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_compile") 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest.$ac_objext; then
16121 ac_header_compiler=yes
16122 else
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 ac_header_compiler=no
16127 fi
16128
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16131 echo "${ECHO_T}$ac_header_compiler" >&6; }
16132
16133 # Is the header present?
16134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 #include <$ac_header>
16143 _ACEOF
16144 if { (ac_try="$ac_cpp conftest.$ac_ext"
16145 case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } >/dev/null && {
16157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16158 test ! -s conftest.err
16159 }; then
16160 ac_header_preproc=yes
16161 else
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 ac_header_preproc=no
16166 fi
16167
16168 rm -f conftest.err conftest.$ac_ext
16169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16170 echo "${ECHO_T}$ac_header_preproc" >&6; }
16171
16172 # So? What about this header?
16173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16174 yes:no: )
16175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16179 ac_header_preproc=yes
16180 ;;
16181 no:yes:* )
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16194
16195 ;;
16196 esac
16197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202 eval "$as_ac_Header=\$ac_header_preproc"
16203 fi
16204 ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16207
16208 fi
16209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 cat >>confdefs.h <<_ACEOF
16211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16212 _ACEOF
16213
16214 fi
16215
16216 done
16217
16218
16219
16220
16221
16222
16223 for ac_header in $ac_header_list
16224 do
16225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 fi
16232 ac_res=`eval echo '${'$as_ac_Header'}'`
16233 { echo "$as_me:$LINENO: result: $ac_res" >&5
16234 echo "${ECHO_T}$ac_res" >&6; }
16235 else
16236 # Is the header compilable?
16237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16239 cat >conftest.$ac_ext <<_ACEOF
16240 /* confdefs.h. */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16246 #include <$ac_header>
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_compile") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest.$ac_objext; then
16265 ac_header_compiler=yes
16266 else
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270 ac_header_compiler=no
16271 fi
16272
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16275 echo "${ECHO_T}$ac_header_compiler" >&6; }
16276
16277 # Is the header present?
16278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <$ac_header>
16287 _ACEOF
16288 if { (ac_try="$ac_cpp conftest.$ac_ext"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } >/dev/null && {
16301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 }; then
16304 ac_header_preproc=yes
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16308
16309 ac_header_preproc=no
16310 fi
16311
16312 rm -f conftest.err conftest.$ac_ext
16313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16314 echo "${ECHO_T}$ac_header_preproc" >&6; }
16315
16316 # So? What about this header?
16317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16318 yes:no: )
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16323 ac_header_preproc=yes
16324 ;;
16325 no:yes:* )
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16338
16339 ;;
16340 esac
16341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 eval "$as_ac_Header=\$ac_header_preproc"
16347 fi
16348 ac_res=`eval echo '${'$as_ac_Header'}'`
16349 { echo "$as_me:$LINENO: result: $ac_res" >&5
16350 echo "${ECHO_T}$ac_res" >&6; }
16351
16352 fi
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16356 _ACEOF
16357
16358 fi
16359
16360 done
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370 for ac_func in $ac_func_list
16371 do
16372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16386 #define $ac_func innocuous_$ac_func
16387
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16392
16393 #ifdef __STDC__
16394 # include <limits.h>
16395 #else
16396 # include <assert.h>
16397 #endif
16398
16399 #undef $ac_func
16400
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char $ac_func ();
16408 /* The GNU C library defines this for functions which it implements
16409 to always fail with ENOSYS. Some functions are actually named
16410 something starting with __ and the normal name is an alias. */
16411 #if defined __stub_$ac_func || defined __stub___$ac_func
16412 choke me
16413 #endif
16414
16415 int
16416 main ()
16417 {
16418 return $ac_func ();
16419 ;
16420 return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest$ac_exeext &&
16440 $as_test_x conftest$ac_exeext; then
16441 eval "$as_ac_var=yes"
16442 else
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 eval "$as_ac_var=no"
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16450 conftest$ac_exeext conftest.$ac_ext
16451 fi
16452 ac_res=`eval echo '${'$as_ac_var'}'`
16453 { echo "$as_me:$LINENO: result: $ac_res" >&5
16454 echo "${ECHO_T}$ac_res" >&6; }
16455 if test `eval echo '${'$as_ac_var'}'` = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 _ACEOF
16459
16460 fi
16461 done
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479 { echo "$as_me:$LINENO: checking for working mktime" >&5
16480 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16481 if test "${ac_cv_func_working_mktime+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484 if test "$cross_compiling" = yes; then
16485 ac_cv_func_working_mktime=no
16486 else
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 /* Test program from Paul Eggert and Tony Leneis. */
16494 #ifdef TIME_WITH_SYS_TIME
16495 # include <sys/time.h>
16496 # include <time.h>
16497 #else
16498 # ifdef HAVE_SYS_TIME_H
16499 # include <sys/time.h>
16500 # else
16501 # include <time.h>
16502 # endif
16503 #endif
16504
16505 #include <stdlib.h>
16506
16507 #ifdef HAVE_UNISTD_H
16508 # include <unistd.h>
16509 #endif
16510
16511 #ifndef HAVE_ALARM
16512 # define alarm(X) /* empty */
16513 #endif
16514
16515 /* Work around redefinition to rpl_putenv by other config tests. */
16516 #undef putenv
16517
16518 static time_t time_t_max;
16519 static time_t time_t_min;
16520
16521 /* Values we'll use to set the TZ environment variable. */
16522 static char *tz_strings[] = {
16523 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16524 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16525 };
16526 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16527
16528 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16529 Based on a problem report from Andreas Jaeger. */
16530 static int
16531 spring_forward_gap ()
16532 {
16533 /* glibc (up to about 1998-10-07) failed this test. */
16534 struct tm tm;
16535
16536 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16537 instead of "TZ=America/Vancouver" in order to detect the bug even
16538 on systems that don't support the Olson extension, or don't have the
16539 full zoneinfo tables installed. */
16540 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16541
16542 tm.tm_year = 98;
16543 tm.tm_mon = 3;
16544 tm.tm_mday = 5;
16545 tm.tm_hour = 2;
16546 tm.tm_min = 0;
16547 tm.tm_sec = 0;
16548 tm.tm_isdst = -1;
16549 return mktime (&tm) != (time_t) -1;
16550 }
16551
16552 static int
16553 mktime_test1 (now)
16554 time_t now;
16555 {
16556 struct tm *lt;
16557 return ! (lt = localtime (&now)) || mktime (lt) == now;
16558 }
16559
16560 static int
16561 mktime_test (now)
16562 time_t now;
16563 {
16564 return (mktime_test1 (now)
16565 && mktime_test1 ((time_t) (time_t_max - now))
16566 && mktime_test1 ((time_t) (time_t_min + now)));
16567 }
16568
16569 static int
16570 irix_6_4_bug ()
16571 {
16572 /* Based on code from Ariel Faigon. */
16573 struct tm tm;
16574 tm.tm_year = 96;
16575 tm.tm_mon = 3;
16576 tm.tm_mday = 0;
16577 tm.tm_hour = 0;
16578 tm.tm_min = 0;
16579 tm.tm_sec = 0;
16580 tm.tm_isdst = -1;
16581 mktime (&tm);
16582 return tm.tm_mon == 2 && tm.tm_mday == 31;
16583 }
16584
16585 static int
16586 bigtime_test (j)
16587 int j;
16588 {
16589 struct tm tm;
16590 time_t now;
16591 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16592 now = mktime (&tm);
16593 if (now != (time_t) -1)
16594 {
16595 struct tm *lt = localtime (&now);
16596 if (! (lt
16597 && lt->tm_year == tm.tm_year
16598 && lt->tm_mon == tm.tm_mon
16599 && lt->tm_mday == tm.tm_mday
16600 && lt->tm_hour == tm.tm_hour
16601 && lt->tm_min == tm.tm_min
16602 && lt->tm_sec == tm.tm_sec
16603 && lt->tm_yday == tm.tm_yday
16604 && lt->tm_wday == tm.tm_wday
16605 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16606 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16607 return 0;
16608 }
16609 return 1;
16610 }
16611
16612 static int
16613 year_2050_test ()
16614 {
16615 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16616 ignoring leap seconds. */
16617 unsigned long int answer = 2527315200UL;
16618
16619 struct tm tm;
16620 time_t t;
16621 tm.tm_year = 2050 - 1900;
16622 tm.tm_mon = 2 - 1;
16623 tm.tm_mday = 1;
16624 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16625 tm.tm_isdst = -1;
16626
16627 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16628 instead of "TZ=America/Vancouver" in order to detect the bug even
16629 on systems that don't support the Olson extension, or don't have the
16630 full zoneinfo tables installed. */
16631 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16632
16633 t = mktime (&tm);
16634
16635 /* Check that the result is either a failure, or close enough
16636 to the correct answer that we can assume the discrepancy is
16637 due to leap seconds. */
16638 return (t == (time_t) -1
16639 || (0 < t && answer - 120 <= t && t <= answer + 120));
16640 }
16641
16642 int
16643 main ()
16644 {
16645 time_t t, delta;
16646 int i, j;
16647
16648 /* This test makes some buggy mktime implementations loop.
16649 Give up after 60 seconds; a mktime slower than that
16650 isn't worth using anyway. */
16651 alarm (60);
16652
16653 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16654 continue;
16655 time_t_max--;
16656 if ((time_t) -1 < 0)
16657 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16658 continue;
16659 delta = time_t_max / 997; /* a suitable prime number */
16660 for (i = 0; i < N_STRINGS; i++)
16661 {
16662 if (tz_strings[i])
16663 putenv (tz_strings[i]);
16664
16665 for (t = 0; t <= time_t_max - delta; t += delta)
16666 if (! mktime_test (t))
16667 return 1;
16668 if (! (mktime_test ((time_t) 1)
16669 && mktime_test ((time_t) (60 * 60))
16670 && mktime_test ((time_t) (60 * 60 * 24))))
16671 return 1;
16672
16673 for (j = 1; 0 < j; j *= 2)
16674 if (! bigtime_test (j))
16675 return 1;
16676 if (! bigtime_test (j - 1))
16677 return 1;
16678 }
16679 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16680 }
16681 _ACEOF
16682 rm -f conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_func_working_mktime=yes
16703 else
16704 echo "$as_me: program exited with status $ac_status" >&5
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 ( exit $ac_status )
16709 ac_cv_func_working_mktime=no
16710 fi
16711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16712 fi
16713
16714
16715 fi
16716 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16717 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16718 if test $ac_cv_func_working_mktime = no; then
16719 case " $LIBOBJS " in
16720 *" mktime.$ac_objext "* ) ;;
16721 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16722 ;;
16723 esac
16724
16725 fi
16726
16727 if test "$ac_cv_func_working_mktime" = no; then
16728
16729 cat >>confdefs.h <<\_ACEOF
16730 #define BROKEN_MKTIME 1
16731 _ACEOF
16732
16733 fi
16734
16735 ac_have_func=no # yes means we've found a way to get the load average.
16736
16737 # Make sure getloadavg.c is where it belongs, at configure-time.
16738 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16739 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16740 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16741 { (exit 1); exit 1; }; }
16742
16743 ac_save_LIBS=$LIBS
16744
16745 # Check for getloadavg, but be sure not to touch the cache variable.
16746 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16747 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16748 if test "${ac_cv_func_getloadavg+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h. */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16759 #define getloadavg innocuous_getloadavg
16760
16761 /* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char getloadavg (); below.
16763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16764 <limits.h> exists even on freestanding compilers. */
16765
16766 #ifdef __STDC__
16767 # include <limits.h>
16768 #else
16769 # include <assert.h>
16770 #endif
16771
16772 #undef getloadavg
16773
16774 /* Override any GCC internal prototype to avoid an error.
16775 Use char because int might match the return type of a GCC
16776 builtin and then its argument prototype would still apply. */
16777 #ifdef __cplusplus
16778 extern "C"
16779 #endif
16780 char getloadavg ();
16781 /* The GNU C library defines this for functions which it implements
16782 to always fail with ENOSYS. Some functions are actually named
16783 something starting with __ and the normal name is an alias. */
16784 #if defined __stub_getloadavg || defined __stub___getloadavg
16785 choke me
16786 #endif
16787
16788 int
16789 main ()
16790 {
16791 return getloadavg ();
16792 ;
16793 return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext &&
16813 $as_test_x conftest$ac_exeext; then
16814 ac_cv_func_getloadavg=yes
16815 else
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 ac_cv_func_getloadavg=no
16820 fi
16821
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16824 fi
16825 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16826 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16827 if test $ac_cv_func_getloadavg = yes; then
16828 exit 0
16829 else
16830 exit 1
16831 fi
16832 ) && ac_have_func=yes
16833
16834 # On HPUX9, an unprivileged user can get load averages through this function.
16835
16836 for ac_func in pstat_getdynamic
16837 do
16838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 else
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16852 #define $ac_func innocuous_$ac_func
16853
16854 /* System header to define __stub macros and hopefully few prototypes,
16855 which can conflict with char $ac_func (); below.
16856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16857 <limits.h> exists even on freestanding compilers. */
16858
16859 #ifdef __STDC__
16860 # include <limits.h>
16861 #else
16862 # include <assert.h>
16863 #endif
16864
16865 #undef $ac_func
16866
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char $ac_func ();
16874 /* The GNU C library defines this for functions which it implements
16875 to always fail with ENOSYS. Some functions are actually named
16876 something starting with __ and the normal name is an alias. */
16877 #if defined __stub_$ac_func || defined __stub___$ac_func
16878 choke me
16879 #endif
16880
16881 int
16882 main ()
16883 {
16884 return $ac_func ();
16885 ;
16886 return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } && {
16903 test -z "$ac_c_werror_flag" ||
16904 test ! -s conftest.err
16905 } && test -s conftest$ac_exeext &&
16906 $as_test_x conftest$ac_exeext; then
16907 eval "$as_ac_var=yes"
16908 else
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 eval "$as_ac_var=no"
16913 fi
16914
16915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16916 conftest$ac_exeext conftest.$ac_ext
16917 fi
16918 ac_res=`eval echo '${'$as_ac_var'}'`
16919 { echo "$as_me:$LINENO: result: $ac_res" >&5
16920 echo "${ECHO_T}$ac_res" >&6; }
16921 if test `eval echo '${'$as_ac_var'}'` = yes; then
16922 cat >>confdefs.h <<_ACEOF
16923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16924 _ACEOF
16925
16926 fi
16927 done
16928
16929
16930 # Solaris has libkstat which does not require root.
16931
16932 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16933 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16934 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-lkstat $LIBS"
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h. */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945
16946 /* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16949 #ifdef __cplusplus
16950 extern "C"
16951 #endif
16952 char kstat_open ();
16953 int
16954 main ()
16955 {
16956 return kstat_open ();
16957 ;
16958 return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext conftest$ac_exeext
16962 if { (ac_try="$ac_link"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966 esac
16967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
16969 ac_status=$?
16970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } && {
16975 test -z "$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16977 } && test -s conftest$ac_exeext &&
16978 $as_test_x conftest$ac_exeext; then
16979 ac_cv_lib_kstat_kstat_open=yes
16980 else
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 ac_cv_lib_kstat_kstat_open=no
16985 fi
16986
16987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16988 conftest$ac_exeext conftest.$ac_ext
16989 LIBS=$ac_check_lib_save_LIBS
16990 fi
16991 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16992 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16993 if test $ac_cv_lib_kstat_kstat_open = yes; then
16994 cat >>confdefs.h <<_ACEOF
16995 #define HAVE_LIBKSTAT 1
16996 _ACEOF
16997
16998 LIBS="-lkstat $LIBS"
16999
17000 fi
17001
17002 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17003
17004 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17005 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17006 # to get the right answer into the cache.
17007 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17008 if test $ac_have_func = no; then
17009 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17010 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17011 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014 ac_check_lib_save_LIBS=$LIBS
17015 LIBS="-lelf $LIBS"
17016 cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022
17023 /* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17026 #ifdef __cplusplus
17027 extern "C"
17028 #endif
17029 char elf_begin ();
17030 int
17031 main ()
17032 {
17033 return elf_begin ();
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (ac_try="$ac_link"
17040 case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_link") 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } && {
17052 test -z "$ac_c_werror_flag" ||
17053 test ! -s conftest.err
17054 } && test -s conftest$ac_exeext &&
17055 $as_test_x conftest$ac_exeext; then
17056 ac_cv_lib_elf_elf_begin=yes
17057 else
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 ac_cv_lib_elf_elf_begin=no
17062 fi
17063
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066 LIBS=$ac_check_lib_save_LIBS
17067 fi
17068 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17069 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17070 if test $ac_cv_lib_elf_elf_begin = yes; then
17071 LIBS="-lelf $LIBS"
17072 fi
17073
17074 fi
17075 if test $ac_have_func = no; then
17076 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17077 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17078 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 ac_check_lib_save_LIBS=$LIBS
17082 LIBS="-lkvm $LIBS"
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089
17090 /* Override any GCC internal prototype to avoid an error.
17091 Use char because int might match the return type of a GCC
17092 builtin and then its argument prototype would still apply. */
17093 #ifdef __cplusplus
17094 extern "C"
17095 #endif
17096 char kvm_open ();
17097 int
17098 main ()
17099 {
17100 return kvm_open ();
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17110 esac
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest$ac_exeext &&
17122 $as_test_x conftest$ac_exeext; then
17123 ac_cv_lib_kvm_kvm_open=yes
17124 else
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17127
17128 ac_cv_lib_kvm_kvm_open=no
17129 fi
17130
17131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17132 conftest$ac_exeext conftest.$ac_ext
17133 LIBS=$ac_check_lib_save_LIBS
17134 fi
17135 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17136 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17137 if test $ac_cv_lib_kvm_kvm_open = yes; then
17138 LIBS="-lkvm $LIBS"
17139 fi
17140
17141 # Check for the 4.4BSD definition of getloadavg.
17142 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17143 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17144 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 else
17147 ac_check_lib_save_LIBS=$LIBS
17148 LIBS="-lutil $LIBS"
17149 cat >conftest.$ac_ext <<_ACEOF
17150 /* confdefs.h. */
17151 _ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 char getloadavg ();
17163 int
17164 main ()
17165 {
17166 return getloadavg ();
17167 ;
17168 return 0;
17169 }
17170 _ACEOF
17171 rm -f conftest.$ac_objext conftest$ac_exeext
17172 if { (ac_try="$ac_link"
17173 case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_link") 2>conftest.er1
17179 ac_status=$?
17180 grep -v '^ *+' conftest.er1 >conftest.err
17181 rm -f conftest.er1
17182 cat conftest.err >&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } && {
17185 test -z "$ac_c_werror_flag" ||
17186 test ! -s conftest.err
17187 } && test -s conftest$ac_exeext &&
17188 $as_test_x conftest$ac_exeext; then
17189 ac_cv_lib_util_getloadavg=yes
17190 else
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194 ac_cv_lib_util_getloadavg=no
17195 fi
17196
17197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17198 conftest$ac_exeext conftest.$ac_ext
17199 LIBS=$ac_check_lib_save_LIBS
17200 fi
17201 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17202 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17203 if test $ac_cv_lib_util_getloadavg = yes; then
17204 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17205 fi
17206
17207 fi
17208
17209 if test $ac_have_func = no; then
17210 # There is a commonly available library for RS/6000 AIX.
17211 # Since it is not a standard part of AIX, it might be installed locally.
17212 ac_getloadavg_LIBS=$LIBS
17213 LIBS="-L/usr/local/lib $LIBS"
17214 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17215 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17216 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 else
17219 ac_check_lib_save_LIBS=$LIBS
17220 LIBS="-lgetloadavg $LIBS"
17221 cat >conftest.$ac_ext <<_ACEOF
17222 /* confdefs.h. */
17223 _ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17231 #ifdef __cplusplus
17232 extern "C"
17233 #endif
17234 char getloadavg ();
17235 int
17236 main ()
17237 {
17238 return getloadavg ();
17239 ;
17240 return 0;
17241 }
17242 _ACEOF
17243 rm -f conftest.$ac_objext conftest$ac_exeext
17244 if { (ac_try="$ac_link"
17245 case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17248 esac
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_link") 2>conftest.er1
17251 ac_status=$?
17252 grep -v '^ *+' conftest.er1 >conftest.err
17253 rm -f conftest.er1
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && {
17257 test -z "$ac_c_werror_flag" ||
17258 test ! -s conftest.err
17259 } && test -s conftest$ac_exeext &&
17260 $as_test_x conftest$ac_exeext; then
17261 ac_cv_lib_getloadavg_getloadavg=yes
17262 else
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 ac_cv_lib_getloadavg_getloadavg=no
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17270 conftest$ac_exeext conftest.$ac_ext
17271 LIBS=$ac_check_lib_save_LIBS
17272 fi
17273 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17274 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17275 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17276 LIBS="-lgetloadavg $LIBS"
17277 else
17278 LIBS=$ac_getloadavg_LIBS
17279 fi
17280
17281 fi
17282
17283 # Make sure it is really in the library, if we think we found it,
17284 # otherwise set up the replacement function.
17285
17286 for ac_func in getloadavg
17287 do
17288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294 cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h. */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302 #define $ac_func innocuous_$ac_func
17303
17304 /* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17308
17309 #ifdef __STDC__
17310 # include <limits.h>
17311 #else
17312 # include <assert.h>
17313 #endif
17314
17315 #undef $ac_func
17316
17317 /* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 char $ac_func ();
17324 /* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17328 choke me
17329 #endif
17330
17331 int
17332 main ()
17333 {
17334 return $ac_func ();
17335 ;
17336 return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17347 ac_status=$?
17348 grep -v '^ *+' conftest.er1 >conftest.err
17349 rm -f conftest.er1
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } && {
17353 test -z "$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 } && test -s conftest$ac_exeext &&
17356 $as_test_x conftest$ac_exeext; then
17357 eval "$as_ac_var=yes"
17358 else
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362 eval "$as_ac_var=no"
17363 fi
17364
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366 conftest$ac_exeext conftest.$ac_ext
17367 fi
17368 ac_res=`eval echo '${'$as_ac_var'}'`
17369 { echo "$as_me:$LINENO: result: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17371 if test `eval echo '${'$as_ac_var'}'` = yes; then
17372 cat >>confdefs.h <<_ACEOF
17373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17374 _ACEOF
17375
17376 else
17377 case " $LIBOBJS " in
17378 *" getloadavg.$ac_objext "* ) ;;
17379 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17380 ;;
17381 esac
17382
17383
17384 cat >>confdefs.h <<\_ACEOF
17385 #define C_GETLOADAVG 1
17386 _ACEOF
17387
17388 # Figure out what our getloadavg.c needs.
17389 ac_have_func=no
17390 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17391 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17392 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17393 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 fi
17396 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17397 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17398 else
17399 # Is the header compilable?
17400 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17401 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17402 cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h. */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 $ac_includes_default
17409 #include <sys/dg_sys_info.h>
17410 _ACEOF
17411 rm -f conftest.$ac_objext
17412 if { (ac_try="$ac_compile"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_compile") 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } && {
17425 test -z "$ac_c_werror_flag" ||
17426 test ! -s conftest.err
17427 } && test -s conftest.$ac_objext; then
17428 ac_header_compiler=yes
17429 else
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 ac_header_compiler=no
17434 fi
17435
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17438 echo "${ECHO_T}$ac_header_compiler" >&6; }
17439
17440 # Is the header present?
17441 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17442 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 #include <sys/dg_sys_info.h>
17450 _ACEOF
17451 if { (ac_try="$ac_cpp conftest.$ac_ext"
17452 case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455 esac
17456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17458 ac_status=$?
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } >/dev/null && {
17464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 }; then
17467 ac_header_preproc=yes
17468 else
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 ac_header_preproc=no
17473 fi
17474
17475 rm -f conftest.err conftest.$ac_ext
17476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17477 echo "${ECHO_T}$ac_header_preproc" >&6; }
17478
17479 # So? What about this header?
17480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17481 yes:no: )
17482 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17483 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17485 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17486 ac_header_preproc=yes
17487 ;;
17488 no:yes:* )
17489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17490 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17492 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17493 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17494 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17495 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17496 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17497 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17498 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17500 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17501
17502 ;;
17503 esac
17504 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17505 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17506 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17510 fi
17511 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17512 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17513
17514 fi
17515 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17516 ac_have_func=yes
17517
17518 cat >>confdefs.h <<\_ACEOF
17519 #define DGUX 1
17520 _ACEOF
17521
17522
17523 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17524 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17525 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 ac_check_lib_save_LIBS=$LIBS
17529 LIBS="-ldgc $LIBS"
17530 cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h. */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536
17537 /* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17540 #ifdef __cplusplus
17541 extern "C"
17542 #endif
17543 char dg_sys_info ();
17544 int
17545 main ()
17546 {
17547 return dg_sys_info ();
17548 ;
17549 return 0;
17550 }
17551 _ACEOF
17552 rm -f conftest.$ac_objext conftest$ac_exeext
17553 if { (ac_try="$ac_link"
17554 case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_link") 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest$ac_exeext &&
17569 $as_test_x conftest$ac_exeext; then
17570 ac_cv_lib_dgc_dg_sys_info=yes
17571 else
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17574
17575 ac_cv_lib_dgc_dg_sys_info=no
17576 fi
17577
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17581 fi
17582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17583 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17584 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_LIBDGC 1
17587 _ACEOF
17588
17589 LIBS="-ldgc $LIBS"
17590
17591 fi
17592
17593 fi
17594
17595
17596
17597 if test "${ac_cv_header_locale_h+set}" = set; then
17598 { echo "$as_me:$LINENO: checking for locale.h" >&5
17599 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17600 if test "${ac_cv_header_locale_h+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 fi
17603 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17604 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17605 else
17606 # Is the header compilable?
17607 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17608 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 $ac_includes_default
17616 #include <locale.h>
17617 _ACEOF
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_compile") 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } && {
17632 test -z "$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 } && test -s conftest.$ac_objext; then
17635 ac_header_compiler=yes
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17639
17640 ac_header_compiler=no
17641 fi
17642
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17645 echo "${ECHO_T}$ac_header_compiler" >&6; }
17646
17647 # Is the header present?
17648 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17649 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 #include <locale.h>
17657 _ACEOF
17658 if { (ac_try="$ac_cpp conftest.$ac_ext"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17665 ac_status=$?
17666 grep -v '^ *+' conftest.er1 >conftest.err
17667 rm -f conftest.er1
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } >/dev/null && {
17671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17673 }; then
17674 ac_header_preproc=yes
17675 else
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_header_preproc=no
17680 fi
17681
17682 rm -f conftest.err conftest.$ac_ext
17683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17684 echo "${ECHO_T}$ac_header_preproc" >&6; }
17685
17686 # So? What about this header?
17687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17688 yes:no: )
17689 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17690 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17692 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17693 ac_header_preproc=yes
17694 ;;
17695 no:yes:* )
17696 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17697 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17698 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17699 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17700 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17701 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17702 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17703 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17704 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17705 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17706 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17707 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17708
17709 ;;
17710 esac
17711 { echo "$as_me:$LINENO: checking for locale.h" >&5
17712 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17713 if test "${ac_cv_header_locale_h+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 else
17716 ac_cv_header_locale_h=$ac_header_preproc
17717 fi
17718 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17719 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17720
17721 fi
17722
17723
17724
17725 for ac_func in setlocale
17726 do
17727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733 cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h. */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17741 #define $ac_func innocuous_$ac_func
17742
17743 /* System header to define __stub macros and hopefully few prototypes,
17744 which can conflict with char $ac_func (); below.
17745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17746 <limits.h> exists even on freestanding compilers. */
17747
17748 #ifdef __STDC__
17749 # include <limits.h>
17750 #else
17751 # include <assert.h>
17752 #endif
17753
17754 #undef $ac_func
17755
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 char $ac_func ();
17763 /* The GNU C library defines this for functions which it implements
17764 to always fail with ENOSYS. Some functions are actually named
17765 something starting with __ and the normal name is an alias. */
17766 #if defined __stub_$ac_func || defined __stub___$ac_func
17767 choke me
17768 #endif
17769
17770 int
17771 main ()
17772 {
17773 return $ac_func ();
17774 ;
17775 return 0;
17776 }
17777 _ACEOF
17778 rm -f conftest.$ac_objext conftest$ac_exeext
17779 if { (ac_try="$ac_link"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_link") 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && {
17792 test -z "$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 } && test -s conftest$ac_exeext &&
17795 $as_test_x conftest$ac_exeext; then
17796 eval "$as_ac_var=yes"
17797 else
17798 echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801 eval "$as_ac_var=no"
17802 fi
17803
17804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17805 conftest$ac_exeext conftest.$ac_ext
17806 fi
17807 ac_res=`eval echo '${'$as_ac_var'}'`
17808 { echo "$as_me:$LINENO: result: $ac_res" >&5
17809 echo "${ECHO_T}$ac_res" >&6; }
17810 if test `eval echo '${'$as_ac_var'}'` = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17813 _ACEOF
17814
17815 fi
17816 done
17817
17818
17819 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17820 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17821 # Irix 4.0.5F has the header but not the library.
17822 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17823 ac_have_func=yes
17824
17825 cat >>confdefs.h <<\_ACEOF
17826 #define SVR4 1
17827 _ACEOF
17828
17829 fi
17830
17831 if test $ac_have_func = no; then
17832 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17833 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17834 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17835 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 fi
17838 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17839 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17840 else
17841 # Is the header compilable?
17842 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17843 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17844 cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h. */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 $ac_includes_default
17851 #include <inq_stats/cpustats.h>
17852 _ACEOF
17853 rm -f conftest.$ac_objext
17854 if { (ac_try="$ac_compile"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_compile") 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && {
17867 test -z "$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 } && test -s conftest.$ac_objext; then
17870 ac_header_compiler=yes
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875 ac_header_compiler=no
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17880 echo "${ECHO_T}$ac_header_compiler" >&6; }
17881
17882 # Is the header present?
17883 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17884 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h. */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 #include <inq_stats/cpustats.h>
17892 _ACEOF
17893 if { (ac_try="$ac_cpp conftest.$ac_ext"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } >/dev/null && {
17906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 }; then
17909 ac_header_preproc=yes
17910 else
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 ac_header_preproc=no
17915 fi
17916
17917 rm -f conftest.err conftest.$ac_ext
17918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17919 echo "${ECHO_T}$ac_header_preproc" >&6; }
17920
17921 # So? What about this header?
17922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17923 yes:no: )
17924 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17925 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17926 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17927 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17928 ac_header_preproc=yes
17929 ;;
17930 no:yes:* )
17931 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17932 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17933 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17934 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17935 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17936 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17937 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17938 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17940 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17942 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17943
17944 ;;
17945 esac
17946 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17947 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17948 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17952 fi
17953 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17954 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17955
17956 fi
17957 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17958 ac_have_func=yes
17959
17960 cat >>confdefs.h <<\_ACEOF
17961 #define UMAX 1
17962 _ACEOF
17963
17964
17965 cat >>confdefs.h <<\_ACEOF
17966 #define UMAX4_3 1
17967 _ACEOF
17968
17969 fi
17970
17971
17972 fi
17973
17974 if test $ac_have_func = no; then
17975 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17976 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17977 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17978 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 fi
17981 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17982 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17983 else
17984 # Is the header compilable?
17985 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17986 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 $ac_includes_default
17994 #include <sys/cpustats.h>
17995 _ACEOF
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001 esac
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_compile") 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } && {
18010 test -z "$ac_c_werror_flag" ||
18011 test ! -s conftest.err
18012 } && test -s conftest.$ac_objext; then
18013 ac_header_compiler=yes
18014 else
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018 ac_header_compiler=no
18019 fi
18020
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18023 echo "${ECHO_T}$ac_header_compiler" >&6; }
18024
18025 # Is the header present?
18026 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18027 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include <sys/cpustats.h>
18035 _ACEOF
18036 if { (ac_try="$ac_cpp conftest.$ac_ext"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18043 ac_status=$?
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } >/dev/null && {
18049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 }; then
18052 ac_header_preproc=yes
18053 else
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057 ac_header_preproc=no
18058 fi
18059
18060 rm -f conftest.err conftest.$ac_ext
18061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18062 echo "${ECHO_T}$ac_header_preproc" >&6; }
18063
18064 # So? What about this header?
18065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18066 yes:no: )
18067 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18068 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18069 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18070 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18071 ac_header_preproc=yes
18072 ;;
18073 no:yes:* )
18074 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18075 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18077 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18079 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18081 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18083 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18085 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18086
18087 ;;
18088 esac
18089 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18090 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18091 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18095 fi
18096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18097 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18098
18099 fi
18100 if test $ac_cv_header_sys_cpustats_h = yes; then
18101 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18102 #define UMAX 1
18103 _ACEOF
18104
18105 fi
18106
18107
18108 fi
18109
18110 if test $ac_have_func = no; then
18111
18112 for ac_header in mach/mach.h
18113 do
18114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 fi
18121 ac_res=`eval echo '${'$as_ac_Header'}'`
18122 { echo "$as_me:$LINENO: result: $ac_res" >&5
18123 echo "${ECHO_T}$ac_res" >&6; }
18124 else
18125 # Is the header compilable?
18126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18128 cat >conftest.$ac_ext <<_ACEOF
18129 /* confdefs.h. */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 $ac_includes_default
18135 #include <$ac_header>
18136 _ACEOF
18137 rm -f conftest.$ac_objext
18138 if { (ac_try="$ac_compile"
18139 case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18142 esac
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144 (eval "$ac_compile") 2>conftest.er1
18145 ac_status=$?
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } && {
18151 test -z "$ac_c_werror_flag" ||
18152 test ! -s conftest.err
18153 } && test -s conftest.$ac_objext; then
18154 ac_header_compiler=yes
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 ac_header_compiler=no
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18164 echo "${ECHO_T}$ac_header_compiler" >&6; }
18165
18166 # Is the header present?
18167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 #include <$ac_header>
18176 _ACEOF
18177 if { (ac_try="$ac_cpp conftest.$ac_ext"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } >/dev/null && {
18190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 }; then
18193 ac_header_preproc=yes
18194 else
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198 ac_header_preproc=no
18199 fi
18200
18201 rm -f conftest.err conftest.$ac_ext
18202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18203 echo "${ECHO_T}$ac_header_preproc" >&6; }
18204
18205 # So? What about this header?
18206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18207 yes:no: )
18208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18212 ac_header_preproc=yes
18213 ;;
18214 no:yes:* )
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18227
18228 ;;
18229 esac
18230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235 eval "$as_ac_Header=\$ac_header_preproc"
18236 fi
18237 ac_res=`eval echo '${'$as_ac_Header'}'`
18238 { echo "$as_me:$LINENO: result: $ac_res" >&5
18239 echo "${ECHO_T}$ac_res" >&6; }
18240
18241 fi
18242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18243 cat >>confdefs.h <<_ACEOF
18244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18245 _ACEOF
18246
18247 fi
18248
18249 done
18250
18251 fi
18252
18253
18254 for ac_header in nlist.h
18255 do
18256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 fi
18263 ac_res=`eval echo '${'$as_ac_Header'}'`
18264 { echo "$as_me:$LINENO: result: $ac_res" >&5
18265 echo "${ECHO_T}$ac_res" >&6; }
18266 else
18267 # Is the header compilable?
18268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 $ac_includes_default
18277 #include <$ac_header>
18278 _ACEOF
18279 rm -f conftest.$ac_objext
18280 if { (ac_try="$ac_compile"
18281 case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_compile") 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } && {
18293 test -z "$ac_c_werror_flag" ||
18294 test ! -s conftest.err
18295 } && test -s conftest.$ac_objext; then
18296 ac_header_compiler=yes
18297 else
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18300
18301 ac_header_compiler=no
18302 fi
18303
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18306 echo "${ECHO_T}$ac_header_compiler" >&6; }
18307
18308 # Is the header present?
18309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 #include <$ac_header>
18318 _ACEOF
18319 if { (ac_try="$ac_cpp conftest.$ac_ext"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } >/dev/null && {
18332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 }; then
18335 ac_header_preproc=yes
18336 else
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 ac_header_preproc=no
18341 fi
18342
18343 rm -f conftest.err conftest.$ac_ext
18344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18345 echo "${ECHO_T}$ac_header_preproc" >&6; }
18346
18347 # So? What about this header?
18348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18349 yes:no: )
18350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18354 ac_header_preproc=yes
18355 ;;
18356 no:yes:* )
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18369
18370 ;;
18371 esac
18372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 eval "$as_ac_Header=\$ac_header_preproc"
18378 fi
18379 ac_res=`eval echo '${'$as_ac_Header'}'`
18380 { echo "$as_me:$LINENO: result: $ac_res" >&5
18381 echo "${ECHO_T}$ac_res" >&6; }
18382
18383 fi
18384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18387 _ACEOF
18388 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18389 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18390 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 cat >conftest.$ac_ext <<_ACEOF
18394 /* confdefs.h. */
18395 _ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18399 #include <nlist.h>
18400
18401 int
18402 main ()
18403 {
18404 static struct nlist ac_aggr;
18405 if (ac_aggr.n_un.n_name)
18406 return 0;
18407 ;
18408 return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (ac_try="$ac_compile"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18416 esac
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_compile") 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest.$ac_objext; then
18428 ac_cv_member_struct_nlist_n_un_n_name=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433 cat >conftest.$ac_ext <<_ACEOF
18434 /* confdefs.h. */
18435 _ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #include <nlist.h>
18440
18441 int
18442 main ()
18443 {
18444 static struct nlist ac_aggr;
18445 if (sizeof ac_aggr.n_un.n_name)
18446 return 0;
18447 ;
18448 return 0;
18449 }
18450 _ACEOF
18451 rm -f conftest.$ac_objext
18452 if { (ac_try="$ac_compile"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_compile") 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } && {
18465 test -z "$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 } && test -s conftest.$ac_objext; then
18468 ac_cv_member_struct_nlist_n_un_n_name=yes
18469 else
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473 ac_cv_member_struct_nlist_n_un_n_name=no
18474 fi
18475
18476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18477 fi
18478
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 fi
18481 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18482 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18483 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18484
18485 cat >>confdefs.h <<_ACEOF
18486 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18487 _ACEOF
18488
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define NLIST_NAME_UNION 1
18492 _ACEOF
18493
18494 fi
18495
18496
18497 fi
18498
18499 done
18500
18501 fi
18502 done
18503
18504
18505 # Some definitions of getloadavg require that the program be installed setgid.
18506 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18507 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18508 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18518 #ifdef LDAV_PRIVILEGED
18519 Yowza Am I SETGID yet
18520 #endif
18521 _ACEOF
18522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18523 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18524 ac_cv_func_getloadavg_setgid=yes
18525 else
18526 ac_cv_func_getloadavg_setgid=no
18527 fi
18528 rm -f conftest*
18529
18530 fi
18531 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18532 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18533 if test $ac_cv_func_getloadavg_setgid = yes; then
18534 NEED_SETGID=true
18535
18536 cat >>confdefs.h <<\_ACEOF
18537 #define GETLOADAVG_PRIVILEGED 1
18538 _ACEOF
18539
18540 else
18541 NEED_SETGID=false
18542 fi
18543
18544 if test $ac_cv_func_getloadavg_setgid = yes; then
18545 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18546 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18547 if test "${ac_cv_group_kmem+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18551 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18552 # If we got an error (system does not support symlinks), try without -L.
18553 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18554 ac_cv_group_kmem=`echo $ac_ls_output \
18555 | sed -ne 's/[ ][ ]*/ /g;
18556 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18557 / /s/.* //;p;'`
18558
18559 fi
18560 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18561 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18562 KMEM_GROUP=$ac_cv_group_kmem
18563 fi
18564 if test "x$ac_save_LIBS" = x; then
18565 GETLOADAVG_LIBS=$LIBS
18566 else
18567 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18568 fi
18569 LIBS=$ac_save_LIBS
18570
18571
18572
18573 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18574 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18575 if test "${ac_cv_sys_largefile_source+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578 while :; do
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h. */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 #include <stdio.h>
18586 int
18587 main ()
18588 {
18589 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18590 ;
18591 return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext conftest$ac_exeext
18595 if { (ac_try="$ac_link"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_link") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest$ac_exeext &&
18611 $as_test_x conftest$ac_exeext; then
18612 ac_cv_sys_largefile_source=no; break
18613 else
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617
18618 fi
18619
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18622 cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h. */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #define _LARGEFILE_SOURCE 1
18629 #include <stdio.h>
18630 int
18631 main ()
18632 {
18633 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18634 ;
18635 return 0;
18636 }
18637 _ACEOF
18638 rm -f conftest.$ac_objext conftest$ac_exeext
18639 if { (ac_try="$ac_link"
18640 case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18643 esac
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_link") 2>conftest.er1
18646 ac_status=$?
18647 grep -v '^ *+' conftest.er1 >conftest.err
18648 rm -f conftest.er1
18649 cat conftest.err >&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest$ac_exeext &&
18655 $as_test_x conftest$ac_exeext; then
18656 ac_cv_sys_largefile_source=1; break
18657 else
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18660
18661
18662 fi
18663
18664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18665 conftest$ac_exeext conftest.$ac_ext
18666 ac_cv_sys_largefile_source=unknown
18667 break
18668 done
18669 fi
18670 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18671 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18672 case $ac_cv_sys_largefile_source in #(
18673 no | unknown) ;;
18674 *)
18675 cat >>confdefs.h <<_ACEOF
18676 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18677 _ACEOF
18678 ;;
18679 esac
18680 rm -f conftest*
18681
18682 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18683 # in glibc 2.1.3, but that breaks too many other things.
18684 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18685 if test $ac_cv_sys_largefile_source != unknown; then
18686
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE_FSEEKO 1
18689 _ACEOF
18690
18691 fi
18692
18693
18694 # Configure getopt.
18695 # getopt.m4 serial 10
18696
18697 # The getopt module assume you want GNU getopt, with getopt_long etc,
18698 # rather than vanilla POSIX getopt. This means your your code should
18699 # always include <getopt.h> for the getopt prototypes.
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711 # Prerequisites of lib/getopt*.
18712
18713
18714
18715
18716 GETOPT_H=
18717
18718 for ac_header in getopt.h
18719 do
18720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 fi
18727 ac_res=`eval echo '${'$as_ac_Header'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 else
18731 # Is the header compilable?
18732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 $ac_includes_default
18741 #include <$ac_header>
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_compile") 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest.$ac_objext; then
18760 ac_header_compiler=yes
18761 else
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765 ac_header_compiler=no
18766 fi
18767
18768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18770 echo "${ECHO_T}$ac_header_compiler" >&6; }
18771
18772 # Is the header present?
18773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18775 cat >conftest.$ac_ext <<_ACEOF
18776 /* confdefs.h. */
18777 _ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18781 #include <$ac_header>
18782 _ACEOF
18783 if { (ac_try="$ac_cpp conftest.$ac_ext"
18784 case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18787 esac
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } >/dev/null && {
18796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18797 test ! -s conftest.err
18798 }; then
18799 ac_header_preproc=yes
18800 else
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18803
18804 ac_header_preproc=no
18805 fi
18806
18807 rm -f conftest.err conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18809 echo "${ECHO_T}$ac_header_preproc" >&6; }
18810
18811 # So? What about this header?
18812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18813 yes:no: )
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18818 ac_header_preproc=yes
18819 ;;
18820 no:yes:* )
18821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18833
18834 ;;
18835 esac
18836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841 eval "$as_ac_Header=\$ac_header_preproc"
18842 fi
18843 ac_res=`eval echo '${'$as_ac_Header'}'`
18844 { echo "$as_me:$LINENO: result: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18846
18847 fi
18848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18849 cat >>confdefs.h <<_ACEOF
18850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18851 _ACEOF
18852
18853 else
18854 GETOPT_H=getopt.h
18855 fi
18856
18857 done
18858
18859 if test -z "$GETOPT_H"; then
18860
18861 for ac_func in getopt_long_only
18862 do
18863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define $ac_func innocuous_$ac_func
18878
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char $ac_func (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18883
18884 #ifdef __STDC__
18885 # include <limits.h>
18886 #else
18887 # include <assert.h>
18888 #endif
18889
18890 #undef $ac_func
18891
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18895 #ifdef __cplusplus
18896 extern "C"
18897 #endif
18898 char $ac_func ();
18899 /* The GNU C library defines this for functions which it implements
18900 to always fail with ENOSYS. Some functions are actually named
18901 something starting with __ and the normal name is an alias. */
18902 #if defined __stub_$ac_func || defined __stub___$ac_func
18903 choke me
18904 #endif
18905
18906 int
18907 main ()
18908 {
18909 return $ac_func ();
18910 ;
18911 return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest$ac_exeext &&
18931 $as_test_x conftest$ac_exeext; then
18932 eval "$as_ac_var=yes"
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 eval "$as_ac_var=no"
18938 fi
18939
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18942 fi
18943 ac_res=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18949 _ACEOF
18950
18951 else
18952 GETOPT_H=getopt.h
18953 fi
18954 done
18955
18956 fi
18957
18958 if test -z "$GETOPT_H"; then
18959 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18960 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18961 if test "${ac_cv_have_decl_optreset+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18963 else
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h. */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 #include <getopt.h>
18971
18972 int
18973 main ()
18974 {
18975 #ifndef optreset
18976 (void) optreset;
18977 #endif
18978
18979 ;
18980 return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext
18984 if { (ac_try="$ac_compile"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_compile") 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } && {
18997 test -z "$ac_c_werror_flag" ||
18998 test ! -s conftest.err
18999 } && test -s conftest.$ac_objext; then
19000 ac_cv_have_decl_optreset=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_cv_have_decl_optreset=no
19006 fi
19007
19008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009 fi
19010 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19011 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19012 if test $ac_cv_have_decl_optreset = yes; then
19013 GETOPT_H=getopt.h
19014 fi
19015
19016 fi
19017
19018 if test -z "$GETOPT_H"; then
19019 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19020 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19021 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024 if test "$cross_compiling" = yes; then
19025 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19026 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19027 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 #include <getopt.h>
19037
19038 int
19039 main ()
19040 {
19041 #ifndef getopt_clip
19042 (void) getopt_clip;
19043 #endif
19044
19045 ;
19046 return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_cv_have_decl_getopt_clip=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071 ac_cv_have_decl_getopt_clip=no
19072 fi
19073
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 fi
19076 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19077 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19078 if test $ac_cv_have_decl_getopt_clip = yes; then
19079 gl_cv_func_gnu_getopt=no
19080 else
19081 gl_cv_func_gnu_getopt=yes
19082 fi
19083
19084 else
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <getopt.h>
19092 int
19093 main ()
19094 {
19095
19096 char *myargv[3];
19097 myargv[0] = "conftest";
19098 myargv[1] = "-+";
19099 myargv[2] = 0;
19100 return getopt (2, myargv, "+a") != '?';
19101
19102 ;
19103 return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_link") 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19117 { (case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_try") 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 gl_cv_func_gnu_getopt=yes
19127 else
19128 echo "$as_me: program exited with status $ac_status" >&5
19129 echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19131
19132 ( exit $ac_status )
19133 gl_cv_func_gnu_getopt=no
19134 fi
19135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19136 fi
19137
19138
19139 fi
19140 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19141 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19142 if test "$gl_cv_func_gnu_getopt" = "no"; then
19143 GETOPT_H=getopt.h
19144 fi
19145 fi
19146
19147
19148
19149 if test -n "$GETOPT_H"; then
19150
19151
19152 GETOPT_H=getopt.h
19153
19154 cat >>confdefs.h <<\_ACEOF
19155 #define __GETOPT_PREFIX rpl_
19156 _ACEOF
19157
19158
19159
19160 :
19161 GETOPTOBJS='getopt.o getopt1.o'
19162
19163 fi
19164
19165
19166
19167
19168 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19169 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19170 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173 # Use it with a single arg.
19174 cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h. */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 $ac_includes_default
19181 int
19182 main ()
19183 {
19184 getpgrp (0);
19185 ;
19186 return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (ac_try="$ac_compile"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_compile") 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest.$ac_objext; then
19206 ac_cv_func_getpgrp_void=no
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_cv_func_getpgrp_void=yes
19212 fi
19213
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215
19216 fi
19217 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19218 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19219 if test $ac_cv_func_getpgrp_void = yes; then
19220
19221 cat >>confdefs.h <<\_ACEOF
19222 #define GETPGRP_VOID 1
19223 _ACEOF
19224
19225 fi
19226
19227
19228
19229 for ac_func in strftime
19230 do
19231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19245 #define $ac_func innocuous_$ac_func
19246
19247 /* System header to define __stub macros and hopefully few prototypes,
19248 which can conflict with char $ac_func (); below.
19249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19250 <limits.h> exists even on freestanding compilers. */
19251
19252 #ifdef __STDC__
19253 # include <limits.h>
19254 #else
19255 # include <assert.h>
19256 #endif
19257
19258 #undef $ac_func
19259
19260 /* Override any GCC internal prototype to avoid an error.
19261 Use char because int might match the return type of a GCC
19262 builtin and then its argument prototype would still apply. */
19263 #ifdef __cplusplus
19264 extern "C"
19265 #endif
19266 char $ac_func ();
19267 /* The GNU C library defines this for functions which it implements
19268 to always fail with ENOSYS. Some functions are actually named
19269 something starting with __ and the normal name is an alias. */
19270 #if defined __stub_$ac_func || defined __stub___$ac_func
19271 choke me
19272 #endif
19273
19274 int
19275 main ()
19276 {
19277 return $ac_func ();
19278 ;
19279 return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19287 esac
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_link") 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext &&
19299 $as_test_x conftest$ac_exeext; then
19300 eval "$as_ac_var=yes"
19301 else
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19304
19305 eval "$as_ac_var=no"
19306 fi
19307
19308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309 conftest$ac_exeext conftest.$ac_ext
19310 fi
19311 ac_res=`eval echo '${'$as_ac_var'}'`
19312 { echo "$as_me:$LINENO: result: $ac_res" >&5
19313 echo "${ECHO_T}$ac_res" >&6; }
19314 if test `eval echo '${'$as_ac_var'}'` = yes; then
19315 cat >>confdefs.h <<_ACEOF
19316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19317 _ACEOF
19318
19319 else
19320 # strftime is in -lintl on SCO UNIX.
19321 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19322 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19323 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326 ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lintl $LIBS"
19328 cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h. */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334
19335 /* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19338 #ifdef __cplusplus
19339 extern "C"
19340 #endif
19341 char strftime ();
19342 int
19343 main ()
19344 {
19345 return strftime ();
19346 ;
19347 return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355 esac
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_link") 2>conftest.er1
19358 ac_status=$?
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } && {
19364 test -z "$ac_c_werror_flag" ||
19365 test ! -s conftest.err
19366 } && test -s conftest$ac_exeext &&
19367 $as_test_x conftest$ac_exeext; then
19368 ac_cv_lib_intl_strftime=yes
19369 else
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ac_cv_lib_intl_strftime=no
19374 fi
19375
19376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19379 fi
19380 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19381 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19382 if test $ac_cv_lib_intl_strftime = yes; then
19383 cat >>confdefs.h <<\_ACEOF
19384 #define HAVE_STRFTIME 1
19385 _ACEOF
19386
19387 LIBS="-lintl $LIBS"
19388 fi
19389
19390 fi
19391 done
19392
19393
19394 # UNIX98 PTYs.
19395
19396 for ac_func in grantpt
19397 do
19398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h. */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19412 #define $ac_func innocuous_$ac_func
19413
19414 /* System header to define __stub macros and hopefully few prototypes,
19415 which can conflict with char $ac_func (); below.
19416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19417 <limits.h> exists even on freestanding compilers. */
19418
19419 #ifdef __STDC__
19420 # include <limits.h>
19421 #else
19422 # include <assert.h>
19423 #endif
19424
19425 #undef $ac_func
19426
19427 /* Override any GCC internal prototype to avoid an error.
19428 Use char because int might match the return type of a GCC
19429 builtin and then its argument prototype would still apply. */
19430 #ifdef __cplusplus
19431 extern "C"
19432 #endif
19433 char $ac_func ();
19434 /* The GNU C library defines this for functions which it implements
19435 to always fail with ENOSYS. Some functions are actually named
19436 something starting with __ and the normal name is an alias. */
19437 #if defined __stub_$ac_func || defined __stub___$ac_func
19438 choke me
19439 #endif
19440
19441 int
19442 main ()
19443 {
19444 return $ac_func ();
19445 ;
19446 return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (ac_try="$ac_link"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_link") 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } && {
19463 test -z "$ac_c_werror_flag" ||
19464 test ! -s conftest.err
19465 } && test -s conftest$ac_exeext &&
19466 $as_test_x conftest$ac_exeext; then
19467 eval "$as_ac_var=yes"
19468 else
19469 echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 eval "$as_ac_var=no"
19473 fi
19474
19475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19476 conftest$ac_exeext conftest.$ac_ext
19477 fi
19478 ac_res=`eval echo '${'$as_ac_var'}'`
19479 { echo "$as_me:$LINENO: result: $ac_res" >&5
19480 echo "${ECHO_T}$ac_res" >&6; }
19481 if test `eval echo '${'$as_ac_var'}'` = yes; then
19482 cat >>confdefs.h <<_ACEOF
19483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19484 _ACEOF
19485
19486 fi
19487 done
19488
19489
19490 # PTY-related GNU extensions.
19491
19492 for ac_func in getpt
19493 do
19494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h. */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19508 #define $ac_func innocuous_$ac_func
19509
19510 /* System header to define __stub macros and hopefully few prototypes,
19511 which can conflict with char $ac_func (); below.
19512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19513 <limits.h> exists even on freestanding compilers. */
19514
19515 #ifdef __STDC__
19516 # include <limits.h>
19517 #else
19518 # include <assert.h>
19519 #endif
19520
19521 #undef $ac_func
19522
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19526 #ifdef __cplusplus
19527 extern "C"
19528 #endif
19529 char $ac_func ();
19530 /* The GNU C library defines this for functions which it implements
19531 to always fail with ENOSYS. Some functions are actually named
19532 something starting with __ and the normal name is an alias. */
19533 #if defined __stub_$ac_func || defined __stub___$ac_func
19534 choke me
19535 #endif
19536
19537 int
19538 main ()
19539 {
19540 return $ac_func ();
19541 ;
19542 return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550 esac
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest$ac_exeext &&
19562 $as_test_x conftest$ac_exeext; then
19563 eval "$as_ac_var=yes"
19564 else
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568 eval "$as_ac_var=no"
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19572 conftest$ac_exeext conftest.$ac_ext
19573 fi
19574 ac_res=`eval echo '${'$as_ac_var'}'`
19575 { echo "$as_me:$LINENO: result: $ac_res" >&5
19576 echo "${ECHO_T}$ac_res" >&6; }
19577 if test `eval echo '${'$as_ac_var'}'` = yes; then
19578 cat >>confdefs.h <<_ACEOF
19579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19580 _ACEOF
19581
19582 fi
19583 done
19584
19585
19586 # Check this now, so that we will NOT find the above functions in ncurses.
19587 # That is because we have not set up to link ncurses in lib-src.
19588 # It's better to believe a function is not available
19589 # than to expect to find it in ncurses.
19590
19591 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19592 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19593 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lncurses $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 char tparm ();
19612 int
19613 main ()
19614 {
19615 return tparm ();
19616 ;
19617 return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19638 ac_cv_lib_ncurses_tparm=yes
19639 else
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 ac_cv_lib_ncurses_tparm=no
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19649 fi
19650 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19651 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19652 if test $ac_cv_lib_ncurses_tparm = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_LIBNCURSES 1
19655 _ACEOF
19656
19657 LIBS="-lncurses $LIBS"
19658
19659 fi
19660
19661
19662 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19663
19664 resolv=no
19665 cat >conftest.$ac_ext <<_ACEOF
19666 /* confdefs.h. */
19667 _ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 #include <netinet/in.h>
19672 #include <arpa/nameser.h>
19673 #include <resolv.h>
19674 int
19675 main ()
19676 {
19677 return res_init();
19678 ;
19679 return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19700 have_res_init=yes
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705 have_res_init=no
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 if test "$have_res_init" = no; then
19711 OLIBS="$LIBS"
19712 LIBS="$LIBS -lresolv"
19713 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19714 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <netinet/in.h>
19722 #include <arpa/nameser.h>
19723 #include <resolv.h>
19724 int
19725 main ()
19726 {
19727 return res_init();
19728 ;
19729 return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 have_res_init=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 have_res_init=no
19756 fi
19757
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19761 echo "${ECHO_T}$have_res_init" >&6; }
19762 if test "$have_res_init" = yes ; then
19763 resolv=yes
19764 fi
19765 LIBS="$OLIBS"
19766 fi
19767
19768 if test "$have_res_init" = yes; then
19769
19770 cat >>confdefs.h <<\_ACEOF
19771 #define HAVE_RES_INIT 1
19772 _ACEOF
19773
19774 fi
19775
19776 # Do we need the Hesiod library to provide the support routines?
19777 if test "$with_hesiod" = yes ; then
19778 # Don't set $LIBS here -- see comments above.
19779 { echo "$as_me:$LINENO: checking for res_send" >&5
19780 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19781 if test "${ac_cv_func_res_send+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784 cat >conftest.$ac_ext <<_ACEOF
19785 /* confdefs.h. */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19790 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19792 #define res_send innocuous_res_send
19793
19794 /* System header to define __stub macros and hopefully few prototypes,
19795 which can conflict with char res_send (); below.
19796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19797 <limits.h> exists even on freestanding compilers. */
19798
19799 #ifdef __STDC__
19800 # include <limits.h>
19801 #else
19802 # include <assert.h>
19803 #endif
19804
19805 #undef res_send
19806
19807 /* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
19810 #ifdef __cplusplus
19811 extern "C"
19812 #endif
19813 char res_send ();
19814 /* The GNU C library defines this for functions which it implements
19815 to always fail with ENOSYS. Some functions are actually named
19816 something starting with __ and the normal name is an alias. */
19817 #if defined __stub_res_send || defined __stub___res_send
19818 choke me
19819 #endif
19820
19821 int
19822 main ()
19823 {
19824 return res_send ();
19825 ;
19826 return 0;
19827 }
19828 _ACEOF
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (ac_try="$ac_link"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest$ac_exeext &&
19846 $as_test_x conftest$ac_exeext; then
19847 ac_cv_func_res_send=yes
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 ac_cv_func_res_send=no
19853 fi
19854
19855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19856 conftest$ac_exeext conftest.$ac_ext
19857 fi
19858 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19859 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19860 if test $ac_cv_func_res_send = yes; then
19861 :
19862 else
19863 { echo "$as_me:$LINENO: checking for __res_send" >&5
19864 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19865 if test "${ac_cv_func___res_send+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868 cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h. */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19876 #define __res_send innocuous___res_send
19877
19878 /* System header to define __stub macros and hopefully few prototypes,
19879 which can conflict with char __res_send (); below.
19880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19881 <limits.h> exists even on freestanding compilers. */
19882
19883 #ifdef __STDC__
19884 # include <limits.h>
19885 #else
19886 # include <assert.h>
19887 #endif
19888
19889 #undef __res_send
19890
19891 /* Override any GCC internal prototype to avoid an error.
19892 Use char because int might match the return type of a GCC
19893 builtin and then its argument prototype would still apply. */
19894 #ifdef __cplusplus
19895 extern "C"
19896 #endif
19897 char __res_send ();
19898 /* The GNU C library defines this for functions which it implements
19899 to always fail with ENOSYS. Some functions are actually named
19900 something starting with __ and the normal name is an alias. */
19901 #if defined __stub___res_send || defined __stub_____res_send
19902 choke me
19903 #endif
19904
19905 int
19906 main ()
19907 {
19908 return __res_send ();
19909 ;
19910 return 0;
19911 }
19912 _ACEOF
19913 rm -f conftest.$ac_objext conftest$ac_exeext
19914 if { (ac_try="$ac_link"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19918 esac
19919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_link") 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } && {
19927 test -z "$ac_c_werror_flag" ||
19928 test ! -s conftest.err
19929 } && test -s conftest$ac_exeext &&
19930 $as_test_x conftest$ac_exeext; then
19931 ac_cv_func___res_send=yes
19932 else
19933 echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936 ac_cv_func___res_send=no
19937 fi
19938
19939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19940 conftest$ac_exeext conftest.$ac_ext
19941 fi
19942 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19943 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19944 if test $ac_cv_func___res_send = yes; then
19945 :
19946 else
19947 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19948 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19949 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952 ac_check_lib_save_LIBS=$LIBS
19953 LIBS="-lresolv $LIBS"
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960
19961 /* Override any GCC internal prototype to avoid an error.
19962 Use char because int might match the return type of a GCC
19963 builtin and then its argument prototype would still apply. */
19964 #ifdef __cplusplus
19965 extern "C"
19966 #endif
19967 char res_send ();
19968 int
19969 main ()
19970 {
19971 return res_send ();
19972 ;
19973 return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 ac_cv_lib_resolv_res_send=yes
19995 else
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 ac_cv_lib_resolv_res_send=no
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20005 fi
20006 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20007 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20008 if test $ac_cv_lib_resolv_res_send = yes; then
20009 resolv=yes
20010 else
20011 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20012 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20013 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-lresolv $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 char __res_send ();
20032 int
20033 main ()
20034 {
20035 return __res_send ();
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 ac_cv_lib_resolv___res_send=yes
20059 else
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 ac_cv_lib_resolv___res_send=no
20064 fi
20065
20066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20067 conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20069 fi
20070 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20071 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20072 if test $ac_cv_lib_resolv___res_send = yes; then
20073 resolv=yes
20074 fi
20075
20076 fi
20077
20078 fi
20079
20080 fi
20081
20082 if test "$resolv" = yes ; then
20083 RESOLVLIB=-lresolv
20084 else
20085 RESOLVLIB=
20086 fi
20087 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20088 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20089 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20100 #define hes_getmailhost innocuous_hes_getmailhost
20101
20102 /* System header to define __stub macros and hopefully few prototypes,
20103 which can conflict with char hes_getmailhost (); below.
20104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105 <limits.h> exists even on freestanding compilers. */
20106
20107 #ifdef __STDC__
20108 # include <limits.h>
20109 #else
20110 # include <assert.h>
20111 #endif
20112
20113 #undef hes_getmailhost
20114
20115 /* Override any GCC internal prototype to avoid an error.
20116 Use char because int might match the return type of a GCC
20117 builtin and then its argument prototype would still apply. */
20118 #ifdef __cplusplus
20119 extern "C"
20120 #endif
20121 char hes_getmailhost ();
20122 /* The GNU C library defines this for functions which it implements
20123 to always fail with ENOSYS. Some functions are actually named
20124 something starting with __ and the normal name is an alias. */
20125 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20126 choke me
20127 #endif
20128
20129 int
20130 main ()
20131 {
20132 return hes_getmailhost ();
20133 ;
20134 return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext &&
20154 $as_test_x conftest$ac_exeext; then
20155 ac_cv_func_hes_getmailhost=yes
20156 else
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 ac_cv_func_hes_getmailhost=no
20161 fi
20162
20163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20164 conftest$ac_exeext conftest.$ac_ext
20165 fi
20166 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20167 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20168 if test $ac_cv_func_hes_getmailhost = yes; then
20169 :
20170 else
20171 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20172 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20173 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176 ac_check_lib_save_LIBS=$LIBS
20177 LIBS="-lhesiod $RESOLVLIB $LIBS"
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h. */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184
20185 /* Override any GCC internal prototype to avoid an error.
20186 Use char because int might match the return type of a GCC
20187 builtin and then its argument prototype would still apply. */
20188 #ifdef __cplusplus
20189 extern "C"
20190 #endif
20191 char hes_getmailhost ();
20192 int
20193 main ()
20194 {
20195 return hes_getmailhost ();
20196 ;
20197 return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext conftest$ac_exeext
20201 if { (ac_try="$ac_link"
20202 case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_link") 2>conftest.er1
20208 ac_status=$?
20209 grep -v '^ *+' conftest.er1 >conftest.err
20210 rm -f conftest.er1
20211 cat conftest.err >&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } && {
20214 test -z "$ac_c_werror_flag" ||
20215 test ! -s conftest.err
20216 } && test -s conftest$ac_exeext &&
20217 $as_test_x conftest$ac_exeext; then
20218 ac_cv_lib_hesiod_hes_getmailhost=yes
20219 else
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20222
20223 ac_cv_lib_hesiod_hes_getmailhost=no
20224 fi
20225
20226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20227 conftest$ac_exeext conftest.$ac_ext
20228 LIBS=$ac_check_lib_save_LIBS
20229 fi
20230 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20231 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20232 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20233
20234 cat >>confdefs.h <<\_ACEOF
20235 #define HAVE_LIBHESIOD 1
20236 _ACEOF
20237
20238 else
20239 :
20240 fi
20241
20242 fi
20243
20244 fi
20245
20246 # Do we need libresolv (due to res_init or Hesiod)?
20247 if test "$resolv" = yes ; then
20248
20249 cat >>confdefs.h <<\_ACEOF
20250 #define HAVE_LIBRESOLV 1
20251 _ACEOF
20252
20253 fi
20254
20255 # These tell us which Kerberos-related libraries to use.
20256 if test "${with_kerberos+set}" = set; then
20257
20258 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20259 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20260 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263 ac_check_lib_save_LIBS=$LIBS
20264 LIBS="-lcom_err $LIBS"
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h. */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271
20272 /* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20275 #ifdef __cplusplus
20276 extern "C"
20277 #endif
20278 char com_err ();
20279 int
20280 main ()
20281 {
20282 return com_err ();
20283 ;
20284 return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (ac_try="$ac_link"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_link") 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest$ac_exeext &&
20304 $as_test_x conftest$ac_exeext; then
20305 ac_cv_lib_com_err_com_err=yes
20306 else
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20309
20310 ac_cv_lib_com_err_com_err=no
20311 fi
20312
20313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20316 fi
20317 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20318 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20319 if test $ac_cv_lib_com_err_com_err = yes; then
20320 cat >>confdefs.h <<_ACEOF
20321 #define HAVE_LIBCOM_ERR 1
20322 _ACEOF
20323
20324 LIBS="-lcom_err $LIBS"
20325
20326 fi
20327
20328
20329 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20330 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20331 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 ac_check_lib_save_LIBS=$LIBS
20335 LIBS="-lk5crypto $LIBS"
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h. */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342
20343 /* Override any GCC internal prototype to avoid an error.
20344 Use char because int might match the return type of a GCC
20345 builtin and then its argument prototype would still apply. */
20346 #ifdef __cplusplus
20347 extern "C"
20348 #endif
20349 char mit_des_cbc_encrypt ();
20350 int
20351 main ()
20352 {
20353 return mit_des_cbc_encrypt ();
20354 ;
20355 return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest.$ac_objext conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest$ac_exeext &&
20375 $as_test_x conftest$ac_exeext; then
20376 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20377 else
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20382 fi
20383
20384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20385 conftest$ac_exeext conftest.$ac_ext
20386 LIBS=$ac_check_lib_save_LIBS
20387 fi
20388 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20389 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20390 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20391 cat >>confdefs.h <<_ACEOF
20392 #define HAVE_LIBK5CRYPTO 1
20393 _ACEOF
20394
20395 LIBS="-lk5crypto $LIBS"
20396
20397 fi
20398
20399
20400 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20401 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20402 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405 ac_check_lib_save_LIBS=$LIBS
20406 LIBS="-lcrypto $LIBS"
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h. */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413
20414 /* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
20417 #ifdef __cplusplus
20418 extern "C"
20419 #endif
20420 char mit_des_cbc_encrypt ();
20421 int
20422 main ()
20423 {
20424 return mit_des_cbc_encrypt ();
20425 ;
20426 return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext conftest$ac_exeext
20430 if { (ac_try="$ac_link"
20431 case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_link") 2>conftest.er1
20437 ac_status=$?
20438 grep -v '^ *+' conftest.er1 >conftest.err
20439 rm -f conftest.er1
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } && {
20443 test -z "$ac_c_werror_flag" ||
20444 test ! -s conftest.err
20445 } && test -s conftest$ac_exeext &&
20446 $as_test_x conftest$ac_exeext; then
20447 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20448 else
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20453 fi
20454
20455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20456 conftest$ac_exeext conftest.$ac_ext
20457 LIBS=$ac_check_lib_save_LIBS
20458 fi
20459 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20460 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20461 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20462 cat >>confdefs.h <<_ACEOF
20463 #define HAVE_LIBCRYPTO 1
20464 _ACEOF
20465
20466 LIBS="-lcrypto $LIBS"
20467
20468 fi
20469
20470
20471 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20472 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20473 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476 ac_check_lib_save_LIBS=$LIBS
20477 LIBS="-lkrb5 $LIBS"
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484
20485 /* Override any GCC internal prototype to avoid an error.
20486 Use char because int might match the return type of a GCC
20487 builtin and then its argument prototype would still apply. */
20488 #ifdef __cplusplus
20489 extern "C"
20490 #endif
20491 char krb5_init_context ();
20492 int
20493 main ()
20494 {
20495 return krb5_init_context ();
20496 ;
20497 return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext conftest$ac_exeext
20501 if { (ac_try="$ac_link"
20502 case "(($ac_try" in
20503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504 *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_link") 2>conftest.er1
20508 ac_status=$?
20509 grep -v '^ *+' conftest.er1 >conftest.err
20510 rm -f conftest.er1
20511 cat conftest.err >&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest$ac_exeext &&
20517 $as_test_x conftest$ac_exeext; then
20518 ac_cv_lib_krb5_krb5_init_context=yes
20519 else
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523 ac_cv_lib_krb5_krb5_init_context=no
20524 fi
20525
20526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20527 conftest$ac_exeext conftest.$ac_ext
20528 LIBS=$ac_check_lib_save_LIBS
20529 fi
20530 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20531 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20532 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define HAVE_LIBKRB5 1
20535 _ACEOF
20536
20537 LIBS="-lkrb5 $LIBS"
20538
20539 fi
20540
20541 if test "${with_kerberos5+set}" != set; then
20542
20543 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20544 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20545 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548 ac_check_lib_save_LIBS=$LIBS
20549 LIBS="-ldes425 $LIBS"
20550 cat >conftest.$ac_ext <<_ACEOF
20551 /* confdefs.h. */
20552 _ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556
20557 /* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
20560 #ifdef __cplusplus
20561 extern "C"
20562 #endif
20563 char des_cbc_encrypt ();
20564 int
20565 main ()
20566 {
20567 return des_cbc_encrypt ();
20568 ;
20569 return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (ac_try="$ac_link"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_link") 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest$ac_exeext &&
20589 $as_test_x conftest$ac_exeext; then
20590 ac_cv_lib_des425_des_cbc_encrypt=yes
20591 else
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595 ac_cv_lib_des425_des_cbc_encrypt=no
20596 fi
20597
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599 conftest$ac_exeext conftest.$ac_ext
20600 LIBS=$ac_check_lib_save_LIBS
20601 fi
20602 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20603 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20604 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20605 cat >>confdefs.h <<_ACEOF
20606 #define HAVE_LIBDES425 1
20607 _ACEOF
20608
20609 LIBS="-ldes425 $LIBS"
20610
20611 else
20612
20613 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20614 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20615 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618 ac_check_lib_save_LIBS=$LIBS
20619 LIBS="-ldes $LIBS"
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h. */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626
20627 /* Override any GCC internal prototype to avoid an error.
20628 Use char because int might match the return type of a GCC
20629 builtin and then its argument prototype would still apply. */
20630 #ifdef __cplusplus
20631 extern "C"
20632 #endif
20633 char des_cbc_encrypt ();
20634 int
20635 main ()
20636 {
20637 return des_cbc_encrypt ();
20638 ;
20639 return 0;
20640 }
20641 _ACEOF
20642 rm -f conftest.$ac_objext conftest$ac_exeext
20643 if { (ac_try="$ac_link"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_link") 2>conftest.er1
20650 ac_status=$?
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest$ac_exeext &&
20659 $as_test_x conftest$ac_exeext; then
20660 ac_cv_lib_des_des_cbc_encrypt=yes
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ac_cv_lib_des_des_cbc_encrypt=no
20666 fi
20667
20668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20669 conftest$ac_exeext conftest.$ac_ext
20670 LIBS=$ac_check_lib_save_LIBS
20671 fi
20672 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20673 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20674 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20675 cat >>confdefs.h <<_ACEOF
20676 #define HAVE_LIBDES 1
20677 _ACEOF
20678
20679 LIBS="-ldes $LIBS"
20680
20681 fi
20682
20683 fi
20684
20685
20686 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20687 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20688 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690 else
20691 ac_check_lib_save_LIBS=$LIBS
20692 LIBS="-lkrb4 $LIBS"
20693 cat >conftest.$ac_ext <<_ACEOF
20694 /* confdefs.h. */
20695 _ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699
20700 /* Override any GCC internal prototype to avoid an error.
20701 Use char because int might match the return type of a GCC
20702 builtin and then its argument prototype would still apply. */
20703 #ifdef __cplusplus
20704 extern "C"
20705 #endif
20706 char krb_get_cred ();
20707 int
20708 main ()
20709 {
20710 return krb_get_cred ();
20711 ;
20712 return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (ac_try="$ac_link"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_link") 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest$ac_exeext &&
20732 $as_test_x conftest$ac_exeext; then
20733 ac_cv_lib_krb4_krb_get_cred=yes
20734 else
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ac_cv_lib_krb4_krb_get_cred=no
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20742 conftest$ac_exeext conftest.$ac_ext
20743 LIBS=$ac_check_lib_save_LIBS
20744 fi
20745 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20746 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20747 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20748 cat >>confdefs.h <<_ACEOF
20749 #define HAVE_LIBKRB4 1
20750 _ACEOF
20751
20752 LIBS="-lkrb4 $LIBS"
20753
20754 else
20755
20756 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20757 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20758 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 else
20761 ac_check_lib_save_LIBS=$LIBS
20762 LIBS="-lkrb $LIBS"
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769
20770 /* Override any GCC internal prototype to avoid an error.
20771 Use char because int might match the return type of a GCC
20772 builtin and then its argument prototype would still apply. */
20773 #ifdef __cplusplus
20774 extern "C"
20775 #endif
20776 char krb_get_cred ();
20777 int
20778 main ()
20779 {
20780 return krb_get_cred ();
20781 ;
20782 return 0;
20783 }
20784 _ACEOF
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (ac_try="$ac_link"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_link") 2>conftest.er1
20793 ac_status=$?
20794 grep -v '^ *+' conftest.er1 >conftest.err
20795 rm -f conftest.er1
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } && {
20799 test -z "$ac_c_werror_flag" ||
20800 test ! -s conftest.err
20801 } && test -s conftest$ac_exeext &&
20802 $as_test_x conftest$ac_exeext; then
20803 ac_cv_lib_krb_krb_get_cred=yes
20804 else
20805 echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20807
20808 ac_cv_lib_krb_krb_get_cred=no
20809 fi
20810
20811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20812 conftest$ac_exeext conftest.$ac_ext
20813 LIBS=$ac_check_lib_save_LIBS
20814 fi
20815 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20816 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20817 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define HAVE_LIBKRB 1
20820 _ACEOF
20821
20822 LIBS="-lkrb $LIBS"
20823
20824 fi
20825
20826 fi
20827
20828 fi
20829
20830 if test "${with_kerberos5+set}" = set; then
20831
20832 for ac_header in krb5.h
20833 do
20834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 fi
20841 ac_res=`eval echo '${'$as_ac_Header'}'`
20842 { echo "$as_me:$LINENO: result: $ac_res" >&5
20843 echo "${ECHO_T}$ac_res" >&6; }
20844 else
20845 # Is the header compilable?
20846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20848 cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h. */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 $ac_includes_default
20855 #include <$ac_header>
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_compile") 2>conftest.er1
20865 ac_status=$?
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest.$ac_objext; then
20874 ac_header_compiler=yes
20875 else
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_header_compiler=no
20880 fi
20881
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20884 echo "${ECHO_T}$ac_header_compiler" >&6; }
20885
20886 # Is the header present?
20887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 #include <$ac_header>
20896 _ACEOF
20897 if { (ac_try="$ac_cpp conftest.$ac_ext"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } >/dev/null && {
20910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 }; then
20913 ac_header_preproc=yes
20914 else
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 ac_header_preproc=no
20919 fi
20920
20921 rm -f conftest.err conftest.$ac_ext
20922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20923 echo "${ECHO_T}$ac_header_preproc" >&6; }
20924
20925 # So? What about this header?
20926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20927 yes:no: )
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20932 ac_header_preproc=yes
20933 ;;
20934 no:yes:* )
20935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20947
20948 ;;
20949 esac
20950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955 eval "$as_ac_Header=\$ac_header_preproc"
20956 fi
20957 ac_res=`eval echo '${'$as_ac_Header'}'`
20958 { echo "$as_me:$LINENO: result: $ac_res" >&5
20959 echo "${ECHO_T}$ac_res" >&6; }
20960
20961 fi
20962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20963 cat >>confdefs.h <<_ACEOF
20964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20965 _ACEOF
20966
20967 fi
20968
20969 done
20970
20971 else
20972
20973 for ac_header in des.h
20974 do
20975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 fi
20982 ac_res=`eval echo '${'$as_ac_Header'}'`
20983 { echo "$as_me:$LINENO: result: $ac_res" >&5
20984 echo "${ECHO_T}$ac_res" >&6; }
20985 else
20986 # Is the header compilable?
20987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 $ac_includes_default
20996 #include <$ac_header>
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (ac_try="$ac_compile"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_compile") 2>conftest.er1
21006 ac_status=$?
21007 grep -v '^ *+' conftest.er1 >conftest.err
21008 rm -f conftest.er1
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } && {
21012 test -z "$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 } && test -s conftest.$ac_objext; then
21015 ac_header_compiler=yes
21016 else
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 ac_header_compiler=no
21021 fi
21022
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21025 echo "${ECHO_T}$ac_header_compiler" >&6; }
21026
21027 # Is the header present?
21028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21030 cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h. */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 #include <$ac_header>
21037 _ACEOF
21038 if { (ac_try="$ac_cpp conftest.$ac_ext"
21039 case "(($ac_try" in
21040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21041 *) ac_try_echo=$ac_try;;
21042 esac
21043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21045 ac_status=$?
21046 grep -v '^ *+' conftest.er1 >conftest.err
21047 rm -f conftest.er1
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } >/dev/null && {
21051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21052 test ! -s conftest.err
21053 }; then
21054 ac_header_preproc=yes
21055 else
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ac_header_preproc=no
21060 fi
21061
21062 rm -f conftest.err conftest.$ac_ext
21063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21064 echo "${ECHO_T}$ac_header_preproc" >&6; }
21065
21066 # So? What about this header?
21067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21068 yes:no: )
21069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21073 ac_header_preproc=yes
21074 ;;
21075 no:yes:* )
21076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21088
21089 ;;
21090 esac
21091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096 eval "$as_ac_Header=\$ac_header_preproc"
21097 fi
21098 ac_res=`eval echo '${'$as_ac_Header'}'`
21099 { echo "$as_me:$LINENO: result: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21101
21102 fi
21103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21104 cat >>confdefs.h <<_ACEOF
21105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21106 _ACEOF
21107
21108 else
21109
21110 for ac_header in kerberosIV/des.h
21111 do
21112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 fi
21119 ac_res=`eval echo '${'$as_ac_Header'}'`
21120 { echo "$as_me:$LINENO: result: $ac_res" >&5
21121 echo "${ECHO_T}$ac_res" >&6; }
21122 else
21123 # Is the header compilable?
21124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h. */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 $ac_includes_default
21133 #include <$ac_header>
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_compile") 2>conftest.er1
21143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } && {
21149 test -z "$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 } && test -s conftest.$ac_objext; then
21152 ac_header_compiler=yes
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157 ac_header_compiler=no
21158 fi
21159
21160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21162 echo "${ECHO_T}$ac_header_compiler" >&6; }
21163
21164 # Is the header present?
21165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <$ac_header>
21174 _ACEOF
21175 if { (ac_try="$ac_cpp conftest.$ac_ext"
21176 case "(($ac_try" in
21177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178 *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21182 ac_status=$?
21183 grep -v '^ *+' conftest.er1 >conftest.err
21184 rm -f conftest.er1
21185 cat conftest.err >&5
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } >/dev/null && {
21188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21189 test ! -s conftest.err
21190 }; then
21191 ac_header_preproc=yes
21192 else
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196 ac_header_preproc=no
21197 fi
21198
21199 rm -f conftest.err conftest.$ac_ext
21200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21201 echo "${ECHO_T}$ac_header_preproc" >&6; }
21202
21203 # So? What about this header?
21204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21205 yes:no: )
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21210 ac_header_preproc=yes
21211 ;;
21212 no:yes:* )
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21225
21226 ;;
21227 esac
21228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21231 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 else
21233 eval "$as_ac_Header=\$ac_header_preproc"
21234 fi
21235 ac_res=`eval echo '${'$as_ac_Header'}'`
21236 { echo "$as_me:$LINENO: result: $ac_res" >&5
21237 echo "${ECHO_T}$ac_res" >&6; }
21238
21239 fi
21240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21241 cat >>confdefs.h <<_ACEOF
21242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21243 _ACEOF
21244
21245 else
21246
21247 for ac_header in kerberos/des.h
21248 do
21249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21254 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 fi
21256 ac_res=`eval echo '${'$as_ac_Header'}'`
21257 { echo "$as_me:$LINENO: result: $ac_res" >&5
21258 echo "${ECHO_T}$ac_res" >&6; }
21259 else
21260 # Is the header compilable?
21261 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 #include <$ac_header>
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21277 esac
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_compile") 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } && {
21286 test -z "$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 } && test -s conftest.$ac_objext; then
21289 ac_header_compiler=yes
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_header_compiler=no
21295 fi
21296
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21299 echo "${ECHO_T}$ac_header_compiler" >&6; }
21300
21301 # Is the header present?
21302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h. */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <$ac_header>
21311 _ACEOF
21312 if { (ac_try="$ac_cpp conftest.$ac_ext"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } >/dev/null && {
21325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 }; then
21328 ac_header_preproc=yes
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333 ac_header_preproc=no
21334 fi
21335
21336 rm -f conftest.err conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6; }
21339
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342 yes:no: )
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc=yes
21348 ;;
21349 no:yes:* )
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21362
21363 ;;
21364 esac
21365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370 eval "$as_ac_Header=\$ac_header_preproc"
21371 fi
21372 ac_res=`eval echo '${'$as_ac_Header'}'`
21373 { echo "$as_me:$LINENO: result: $ac_res" >&5
21374 echo "${ECHO_T}$ac_res" >&6; }
21375
21376 fi
21377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21380 _ACEOF
21381
21382 fi
21383
21384 done
21385
21386 fi
21387
21388 done
21389
21390 fi
21391
21392 done
21393
21394
21395 for ac_header in krb.h
21396 do
21397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 fi
21404 ac_res=`eval echo '${'$as_ac_Header'}'`
21405 { echo "$as_me:$LINENO: result: $ac_res" >&5
21406 echo "${ECHO_T}$ac_res" >&6; }
21407 else
21408 # Is the header compilable?
21409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 $ac_includes_default
21418 #include <$ac_header>
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (ac_try="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21425 esac
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21428 ac_status=$?
21429 grep -v '^ *+' conftest.er1 >conftest.err
21430 rm -f conftest.er1
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.$ac_objext; then
21437 ac_header_compiler=yes
21438 else
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442 ac_header_compiler=no
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21447 echo "${ECHO_T}$ac_header_compiler" >&6; }
21448
21449 # Is the header present?
21450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 #include <$ac_header>
21459 _ACEOF
21460 if { (ac_try="$ac_cpp conftest.$ac_ext"
21461 case "(($ac_try" in
21462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463 *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } >/dev/null && {
21473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21474 test ! -s conftest.err
21475 }; then
21476 ac_header_preproc=yes
21477 else
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 ac_header_preproc=no
21482 fi
21483
21484 rm -f conftest.err conftest.$ac_ext
21485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21486 echo "${ECHO_T}$ac_header_preproc" >&6; }
21487
21488 # So? What about this header?
21489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21490 yes:no: )
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21495 ac_header_preproc=yes
21496 ;;
21497 no:yes:* )
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21510
21511 ;;
21512 esac
21513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21516 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518 eval "$as_ac_Header=\$ac_header_preproc"
21519 fi
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521 { echo "$as_me:$LINENO: result: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21523
21524 fi
21525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21526 cat >>confdefs.h <<_ACEOF
21527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21528 _ACEOF
21529
21530 else
21531
21532 for ac_header in kerberosIV/krb.h
21533 do
21534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 fi
21541 ac_res=`eval echo '${'$as_ac_Header'}'`
21542 { echo "$as_me:$LINENO: result: $ac_res" >&5
21543 echo "${ECHO_T}$ac_res" >&6; }
21544 else
21545 # Is the header compilable?
21546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h. */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 $ac_includes_default
21555 #include <$ac_header>
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest.$ac_objext; then
21574 ac_header_compiler=yes
21575 else
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 ac_header_compiler=no
21580 fi
21581
21582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21584 echo "${ECHO_T}$ac_header_compiler" >&6; }
21585
21586 # Is the header present?
21587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21589 cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h. */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 #include <$ac_header>
21596 _ACEOF
21597 if { (ac_try="$ac_cpp conftest.$ac_ext"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21604 ac_status=$?
21605 grep -v '^ *+' conftest.er1 >conftest.err
21606 rm -f conftest.er1
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } >/dev/null && {
21610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21612 }; then
21613 ac_header_preproc=yes
21614 else
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 ac_header_preproc=no
21619 fi
21620
21621 rm -f conftest.err conftest.$ac_ext
21622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21623 echo "${ECHO_T}$ac_header_preproc" >&6; }
21624
21625 # So? What about this header?
21626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21627 yes:no: )
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21632 ac_header_preproc=yes
21633 ;;
21634 no:yes:* )
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21647
21648 ;;
21649 esac
21650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655 eval "$as_ac_Header=\$ac_header_preproc"
21656 fi
21657 ac_res=`eval echo '${'$as_ac_Header'}'`
21658 { echo "$as_me:$LINENO: result: $ac_res" >&5
21659 echo "${ECHO_T}$ac_res" >&6; }
21660
21661 fi
21662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21665 _ACEOF
21666
21667 else
21668
21669 for ac_header in kerberos/krb.h
21670 do
21671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 fi
21678 ac_res=`eval echo '${'$as_ac_Header'}'`
21679 { echo "$as_me:$LINENO: result: $ac_res" >&5
21680 echo "${ECHO_T}$ac_res" >&6; }
21681 else
21682 # Is the header compilable?
21683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21692 #include <$ac_header>
21693 _ACEOF
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21711 ac_header_compiler=yes
21712 else
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 ac_header_compiler=no
21717 fi
21718
21719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21721 echo "${ECHO_T}$ac_header_compiler" >&6; }
21722
21723 # Is the header present?
21724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21726 cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h. */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <$ac_header>
21733 _ACEOF
21734 if { (ac_try="$ac_cpp conftest.$ac_ext"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } >/dev/null && {
21747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 }; then
21750 ac_header_preproc=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 ac_header_preproc=no
21756 fi
21757
21758 rm -f conftest.err conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21760 echo "${ECHO_T}$ac_header_preproc" >&6; }
21761
21762 # So? What about this header?
21763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21764 yes:no: )
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21769 ac_header_preproc=yes
21770 ;;
21771 no:yes:* )
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21784
21785 ;;
21786 esac
21787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792 eval "$as_ac_Header=\$ac_header_preproc"
21793 fi
21794 ac_res=`eval echo '${'$as_ac_Header'}'`
21795 { echo "$as_me:$LINENO: result: $ac_res" >&5
21796 echo "${ECHO_T}$ac_res" >&6; }
21797
21798 fi
21799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21800 cat >>confdefs.h <<_ACEOF
21801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21802 _ACEOF
21803
21804 fi
21805
21806 done
21807
21808 fi
21809
21810 done
21811
21812 fi
21813
21814 done
21815
21816 fi
21817
21818 for ac_header in com_err.h
21819 do
21820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 fi
21827 ac_res=`eval echo '${'$as_ac_Header'}'`
21828 { echo "$as_me:$LINENO: result: $ac_res" >&5
21829 echo "${ECHO_T}$ac_res" >&6; }
21830 else
21831 # Is the header compilable?
21832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21834 cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h. */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 $ac_includes_default
21841 #include <$ac_header>
21842 _ACEOF
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_compile") 2>conftest.er1
21851 ac_status=$?
21852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest.$ac_objext; then
21860 ac_header_compiler=yes
21861 else
21862 echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ac_header_compiler=no
21866 fi
21867
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21870 echo "${ECHO_T}$ac_header_compiler" >&6; }
21871
21872 # Is the header present?
21873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21875 cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h. */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 #include <$ac_header>
21882 _ACEOF
21883 if { (ac_try="$ac_cpp conftest.$ac_ext"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } >/dev/null && {
21896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 }; then
21899 ac_header_preproc=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 ac_header_preproc=no
21905 fi
21906
21907 rm -f conftest.err conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21909 echo "${ECHO_T}$ac_header_preproc" >&6; }
21910
21911 # So? What about this header?
21912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21913 yes:no: )
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21918 ac_header_preproc=yes
21919 ;;
21920 no:yes:* )
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21933
21934 ;;
21935 esac
21936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941 eval "$as_ac_Header=\$ac_header_preproc"
21942 fi
21943 ac_res=`eval echo '${'$as_ac_Header'}'`
21944 { echo "$as_me:$LINENO: result: $ac_res" >&5
21945 echo "${ECHO_T}$ac_res" >&6; }
21946
21947 fi
21948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21949 cat >>confdefs.h <<_ACEOF
21950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21951 _ACEOF
21952
21953 fi
21954
21955 done
21956
21957 fi
21958
21959 # Solaris requires -lintl if you want strerror (which calls dgettext)
21960 # to return localized messages.
21961
21962 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21963 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21964 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967 ac_check_lib_save_LIBS=$LIBS
21968 LIBS="-lintl $LIBS"
21969 cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h. */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h. */
21975
21976 /* Override any GCC internal prototype to avoid an error.
21977 Use char because int might match the return type of a GCC
21978 builtin and then its argument prototype would still apply. */
21979 #ifdef __cplusplus
21980 extern "C"
21981 #endif
21982 char dgettext ();
21983 int
21984 main ()
21985 {
21986 return dgettext ();
21987 ;
21988 return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (ac_try="$ac_link"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_link") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest$ac_exeext &&
22008 $as_test_x conftest$ac_exeext; then
22009 ac_cv_lib_intl_dgettext=yes
22010 else
22011 echo "$as_me: failed program was:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22013
22014 ac_cv_lib_intl_dgettext=no
22015 fi
22016
22017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22018 conftest$ac_exeext conftest.$ac_ext
22019 LIBS=$ac_check_lib_save_LIBS
22020 fi
22021 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22022 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22023 if test $ac_cv_lib_intl_dgettext = yes; then
22024 cat >>confdefs.h <<_ACEOF
22025 #define HAVE_LIBINTL 1
22026 _ACEOF
22027
22028 LIBS="-lintl $LIBS"
22029
22030 fi
22031
22032
22033 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22034 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22035 if test "${emacs_cv_localtime_cache+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038 if test x$ac_cv_func_tzset = xyes; then
22039 if test "$cross_compiling" = yes; then
22040 # If we have tzset, assume the worst when cross-compiling.
22041 emacs_cv_localtime_cache=yes
22042 else
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 #include <time.h>
22050 extern char **environ;
22051 unset_TZ ()
22052 {
22053 char **from, **to;
22054 for (to = from = environ; (*to = *from); from++)
22055 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22056 to++;
22057 }
22058 char TZ_GMT0[] = "TZ=GMT0";
22059 char TZ_PST8[] = "TZ=PST8";
22060 main()
22061 {
22062 time_t now = time ((time_t *) 0);
22063 int hour_GMT0, hour_unset;
22064 if (putenv (TZ_GMT0) != 0)
22065 exit (1);
22066 hour_GMT0 = localtime (&now)->tm_hour;
22067 unset_TZ ();
22068 hour_unset = localtime (&now)->tm_hour;
22069 if (putenv (TZ_PST8) != 0)
22070 exit (1);
22071 if (localtime (&now)->tm_hour == hour_GMT0)
22072 exit (1);
22073 unset_TZ ();
22074 if (localtime (&now)->tm_hour != hour_unset)
22075 exit (1);
22076 exit (0);
22077 }
22078 _ACEOF
22079 rm -f conftest$ac_exeext
22080 if { (ac_try="$ac_link"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_link") 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22090 { (case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_try") 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; }; then
22099 emacs_cv_localtime_cache=no
22100 else
22101 echo "$as_me: program exited with status $ac_status" >&5
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105 ( exit $ac_status )
22106 emacs_cv_localtime_cache=yes
22107 fi
22108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22109 fi
22110
22111
22112 else
22113 # If we lack tzset, report that localtime does not cache TZ,
22114 # since we can't invalidate the cache if we don't have tzset.
22115 emacs_cv_localtime_cache=no
22116 fi
22117 fi
22118 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22119 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22120 if test $emacs_cv_localtime_cache = yes; then
22121
22122 cat >>confdefs.h <<\_ACEOF
22123 #define LOCALTIME_CACHE 1
22124 _ACEOF
22125
22126 fi
22127
22128 if test "x$HAVE_TIMEVAL" = xyes; then
22129
22130 for ac_func in gettimeofday
22131 do
22132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22146 #define $ac_func innocuous_$ac_func
22147
22148 /* System header to define __stub macros and hopefully few prototypes,
22149 which can conflict with char $ac_func (); below.
22150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22151 <limits.h> exists even on freestanding compilers. */
22152
22153 #ifdef __STDC__
22154 # include <limits.h>
22155 #else
22156 # include <assert.h>
22157 #endif
22158
22159 #undef $ac_func
22160
22161 /* Override any GCC internal prototype to avoid an error.
22162 Use char because int might match the return type of a GCC
22163 builtin and then its argument prototype would still apply. */
22164 #ifdef __cplusplus
22165 extern "C"
22166 #endif
22167 char $ac_func ();
22168 /* The GNU C library defines this for functions which it implements
22169 to always fail with ENOSYS. Some functions are actually named
22170 something starting with __ and the normal name is an alias. */
22171 #if defined __stub_$ac_func || defined __stub___$ac_func
22172 choke me
22173 #endif
22174
22175 int
22176 main ()
22177 {
22178 return $ac_func ();
22179 ;
22180 return 0;
22181 }
22182 _ACEOF
22183 rm -f conftest.$ac_objext conftest$ac_exeext
22184 if { (ac_try="$ac_link"
22185 case "(($ac_try" in
22186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22187 *) ac_try_echo=$ac_try;;
22188 esac
22189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22190 (eval "$ac_link") 2>conftest.er1
22191 ac_status=$?
22192 grep -v '^ *+' conftest.er1 >conftest.err
22193 rm -f conftest.er1
22194 cat conftest.err >&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); } && {
22197 test -z "$ac_c_werror_flag" ||
22198 test ! -s conftest.err
22199 } && test -s conftest$ac_exeext &&
22200 $as_test_x conftest$ac_exeext; then
22201 eval "$as_ac_var=yes"
22202 else
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206 eval "$as_ac_var=no"
22207 fi
22208
22209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22210 conftest$ac_exeext conftest.$ac_ext
22211 fi
22212 ac_res=`eval echo '${'$as_ac_var'}'`
22213 { echo "$as_me:$LINENO: result: $ac_res" >&5
22214 echo "${ECHO_T}$ac_res" >&6; }
22215 if test `eval echo '${'$as_ac_var'}'` = yes; then
22216 cat >>confdefs.h <<_ACEOF
22217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218 _ACEOF
22219
22220 fi
22221 done
22222
22223 if test $ac_cv_func_gettimeofday = yes; then
22224 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22225 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22226 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228 else
22229 cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h. */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22235
22236 #ifdef TIME_WITH_SYS_TIME
22237 #include <sys/time.h>
22238 #include <time.h>
22239 #else
22240 #ifdef HAVE_SYS_TIME_H
22241 #include <sys/time.h>
22242 #else
22243 #include <time.h>
22244 #endif
22245 #endif
22246 int
22247 main ()
22248 {
22249 struct timeval time;
22250 gettimeofday (&time, 0);
22251 ;
22252 return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22263 ac_status=$?
22264 grep -v '^ *+' conftest.er1 >conftest.err
22265 rm -f conftest.er1
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22272 emacs_cv_gettimeofday_two_arguments=yes
22273 else
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277 emacs_cv_gettimeofday_two_arguments=no
22278 fi
22279
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 fi
22282 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22283 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22284 if test $emacs_cv_gettimeofday_two_arguments = no; then
22285
22286 cat >>confdefs.h <<\_ACEOF
22287 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22288 _ACEOF
22289
22290 fi
22291 fi
22292 fi
22293
22294 ok_so_far=yes
22295 { echo "$as_me:$LINENO: checking for socket" >&5
22296 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22297 if test "${ac_cv_func_socket+set}" = set; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300 cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h. */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22306 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22308 #define socket innocuous_socket
22309
22310 /* System header to define __stub macros and hopefully few prototypes,
22311 which can conflict with char socket (); below.
22312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22313 <limits.h> exists even on freestanding compilers. */
22314
22315 #ifdef __STDC__
22316 # include <limits.h>
22317 #else
22318 # include <assert.h>
22319 #endif
22320
22321 #undef socket
22322
22323 /* Override any GCC internal prototype to avoid an error.
22324 Use char because int might match the return type of a GCC
22325 builtin and then its argument prototype would still apply. */
22326 #ifdef __cplusplus
22327 extern "C"
22328 #endif
22329 char socket ();
22330 /* The GNU C library defines this for functions which it implements
22331 to always fail with ENOSYS. Some functions are actually named
22332 something starting with __ and the normal name is an alias. */
22333 #if defined __stub_socket || defined __stub___socket
22334 choke me
22335 #endif
22336
22337 int
22338 main ()
22339 {
22340 return socket ();
22341 ;
22342 return 0;
22343 }
22344 _ACEOF
22345 rm -f conftest.$ac_objext conftest$ac_exeext
22346 if { (ac_try="$ac_link"
22347 case "(($ac_try" in
22348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22349 *) ac_try_echo=$ac_try;;
22350 esac
22351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22352 (eval "$ac_link") 2>conftest.er1
22353 ac_status=$?
22354 grep -v '^ *+' conftest.er1 >conftest.err
22355 rm -f conftest.er1
22356 cat conftest.err >&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } && {
22359 test -z "$ac_c_werror_flag" ||
22360 test ! -s conftest.err
22361 } && test -s conftest$ac_exeext &&
22362 $as_test_x conftest$ac_exeext; then
22363 ac_cv_func_socket=yes
22364 else
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368 ac_cv_func_socket=no
22369 fi
22370
22371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372 conftest$ac_exeext conftest.$ac_ext
22373 fi
22374 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22375 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22376 if test $ac_cv_func_socket = yes; then
22377 :
22378 else
22379 ok_so_far=no
22380 fi
22381
22382 if test $ok_so_far = yes; then
22383 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22384 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22385 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22386 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388 fi
22389 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22390 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22391 else
22392 # Is the header compilable?
22393 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22394 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h. */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 $ac_includes_default
22402 #include <netinet/in.h>
22403 _ACEOF
22404 rm -f conftest.$ac_objext
22405 if { (ac_try="$ac_compile"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_compile") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest.$ac_objext; then
22421 ac_header_compiler=yes
22422 else
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_header_compiler=no
22427 fi
22428
22429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22431 echo "${ECHO_T}$ac_header_compiler" >&6; }
22432
22433 # Is the header present?
22434 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22435 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22436 cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h. */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <netinet/in.h>
22443 _ACEOF
22444 if { (ac_try="$ac_cpp conftest.$ac_ext"
22445 case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22448 esac
22449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22451 ac_status=$?
22452 grep -v '^ *+' conftest.er1 >conftest.err
22453 rm -f conftest.er1
22454 cat conftest.err >&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } >/dev/null && {
22457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22459 }; then
22460 ac_header_preproc=yes
22461 else
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465 ac_header_preproc=no
22466 fi
22467
22468 rm -f conftest.err conftest.$ac_ext
22469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22470 echo "${ECHO_T}$ac_header_preproc" >&6; }
22471
22472 # So? What about this header?
22473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22474 yes:no: )
22475 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22476 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22478 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22479 ac_header_preproc=yes
22480 ;;
22481 no:yes:* )
22482 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22483 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22484 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22485 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22486 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22487 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22488 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22489 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22491 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22493 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22494
22495 ;;
22496 esac
22497 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22498 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22499 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502 ac_cv_header_netinet_in_h=$ac_header_preproc
22503 fi
22504 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22505 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22506
22507 fi
22508 if test $ac_cv_header_netinet_in_h = yes; then
22509 :
22510 else
22511 ok_so_far=no
22512 fi
22513
22514
22515 fi
22516 if test $ok_so_far = yes; then
22517 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22518 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22519 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22520 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 fi
22523 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22524 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22525 else
22526 # Is the header compilable?
22527 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22528 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 $ac_includes_default
22536 #include <arpa/inet.h>
22537 _ACEOF
22538 rm -f conftest.$ac_objext
22539 if { (ac_try="$ac_compile"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_compile") 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest.$ac_objext; then
22555 ac_header_compiler=yes
22556 else
22557 echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560 ac_header_compiler=no
22561 fi
22562
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22565 echo "${ECHO_T}$ac_header_compiler" >&6; }
22566
22567 # Is the header present?
22568 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22569 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22570 cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h. */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576 #include <arpa/inet.h>
22577 _ACEOF
22578 if { (ac_try="$ac_cpp conftest.$ac_ext"
22579 case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22585 ac_status=$?
22586 grep -v '^ *+' conftest.er1 >conftest.err
22587 rm -f conftest.er1
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } >/dev/null && {
22591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22592 test ! -s conftest.err
22593 }; then
22594 ac_header_preproc=yes
22595 else
22596 echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22598
22599 ac_header_preproc=no
22600 fi
22601
22602 rm -f conftest.err conftest.$ac_ext
22603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22604 echo "${ECHO_T}$ac_header_preproc" >&6; }
22605
22606 # So? What about this header?
22607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22608 yes:no: )
22609 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22610 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22611 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22612 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22613 ac_header_preproc=yes
22614 ;;
22615 no:yes:* )
22616 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22617 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22619 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22621 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22622 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22623 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22624 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22625 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22626 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22627 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22628
22629 ;;
22630 esac
22631 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22632 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22633 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636 ac_cv_header_arpa_inet_h=$ac_header_preproc
22637 fi
22638 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22639 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22640
22641 fi
22642 if test $ac_cv_header_arpa_inet_h = yes; then
22643 :
22644 else
22645 ok_so_far=no
22646 fi
22647
22648
22649 fi
22650 if test $ok_so_far = yes; then
22651
22652 cat >>confdefs.h <<\_ACEOF
22653 #define HAVE_INET_SOCKETS 1
22654 _ACEOF
22655
22656 fi
22657
22658
22659 for ac_header in sys/ioctl.h
22660 do
22661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 fi
22668 ac_res=`eval echo '${'$as_ac_Header'}'`
22669 { echo "$as_me:$LINENO: result: $ac_res" >&5
22670 echo "${ECHO_T}$ac_res" >&6; }
22671 else
22672 # Is the header compilable?
22673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22675 cat >conftest.$ac_ext <<_ACEOF
22676 /* confdefs.h. */
22677 _ACEOF
22678 cat confdefs.h >>conftest.$ac_ext
22679 cat >>conftest.$ac_ext <<_ACEOF
22680 /* end confdefs.h. */
22681 $ac_includes_default
22682 #include <$ac_header>
22683 _ACEOF
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689 esac
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_header_compiler=yes
22702 else
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706 ac_header_compiler=no
22707 fi
22708
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22711 echo "${ECHO_T}$ac_header_compiler" >&6; }
22712
22713 # Is the header present?
22714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 #include <$ac_header>
22723 _ACEOF
22724 if { (ac_try="$ac_cpp conftest.$ac_ext"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22731 ac_status=$?
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } >/dev/null && {
22737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 }; then
22740 ac_header_preproc=yes
22741 else
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22744
22745 ac_header_preproc=no
22746 fi
22747
22748 rm -f conftest.err conftest.$ac_ext
22749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22750 echo "${ECHO_T}$ac_header_preproc" >&6; }
22751
22752 # So? What about this header?
22753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22754 yes:no: )
22755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22759 ac_header_preproc=yes
22760 ;;
22761 no:yes:* )
22762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22774
22775 ;;
22776 esac
22777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22781 else
22782 eval "$as_ac_Header=\$ac_header_preproc"
22783 fi
22784 ac_res=`eval echo '${'$as_ac_Header'}'`
22785 { echo "$as_me:$LINENO: result: $ac_res" >&5
22786 echo "${ECHO_T}$ac_res" >&6; }
22787
22788 fi
22789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22790 cat >>confdefs.h <<_ACEOF
22791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22792 _ACEOF
22793
22794 fi
22795
22796 done
22797
22798
22799 if test -f /usr/lpp/X11/bin/smt.exp; then
22800
22801 cat >>confdefs.h <<\_ACEOF
22802 #define HAVE_AIX_SMT_EXP 1
22803 _ACEOF
22804
22805 fi
22806
22807 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22808 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22809 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22810 { echo "$as_me:$LINENO: result: yes" >&5
22811 echo "${ECHO_T}yes" >&6; }
22812
22813 cat >>confdefs.h <<\_ACEOF
22814 #define HAVE_DEV_PTMX 1
22815 _ACEOF
22816
22817 else
22818 { echo "$as_me:$LINENO: result: no" >&5
22819 echo "${ECHO_T}no" >&6; }
22820 fi
22821
22822 { echo "$as_me:$LINENO: checking for pid_t" >&5
22823 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22824 if test "${ac_cv_type_pid_t+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826 else
22827 cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h. */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22833 $ac_includes_default
22834 typedef pid_t ac__type_new_;
22835 int
22836 main ()
22837 {
22838 if ((ac__type_new_ *) 0)
22839 return 0;
22840 if (sizeof (ac__type_new_))
22841 return 0;
22842 ;
22843 return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_compile") 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest.$ac_objext; then
22863 ac_cv_type_pid_t=yes
22864 else
22865 echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22867
22868 ac_cv_type_pid_t=no
22869 fi
22870
22871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 fi
22873 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22874 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22875 if test $ac_cv_type_pid_t = yes; then
22876 :
22877 else
22878
22879 cat >>confdefs.h <<_ACEOF
22880 #define pid_t int
22881 _ACEOF
22882
22883 fi
22884
22885
22886 for ac_header in vfork.h
22887 do
22888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 fi
22895 ac_res=`eval echo '${'$as_ac_Header'}'`
22896 { echo "$as_me:$LINENO: result: $ac_res" >&5
22897 echo "${ECHO_T}$ac_res" >&6; }
22898 else
22899 # Is the header compilable?
22900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22902 cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h. */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22908 $ac_includes_default
22909 #include <$ac_header>
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22928 ac_header_compiler=yes
22929 else
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22932
22933 ac_header_compiler=no
22934 fi
22935
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22938 echo "${ECHO_T}$ac_header_compiler" >&6; }
22939
22940 # Is the header present?
22941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22943 cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h. */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 #include <$ac_header>
22950 _ACEOF
22951 if { (ac_try="$ac_cpp conftest.$ac_ext"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22958 ac_status=$?
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } >/dev/null && {
22964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 }; then
22967 ac_header_preproc=yes
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972 ac_header_preproc=no
22973 fi
22974
22975 rm -f conftest.err conftest.$ac_ext
22976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22977 echo "${ECHO_T}$ac_header_preproc" >&6; }
22978
22979 # So? What about this header?
22980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22981 yes:no: )
22982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22986 ac_header_preproc=yes
22987 ;;
22988 no:yes:* )
22989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23001
23002 ;;
23003 esac
23004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23007 echo $ECHO_N "(cached) $ECHO_C" >&6
23008 else
23009 eval "$as_ac_Header=\$ac_header_preproc"
23010 fi
23011 ac_res=`eval echo '${'$as_ac_Header'}'`
23012 { echo "$as_me:$LINENO: result: $ac_res" >&5
23013 echo "${ECHO_T}$ac_res" >&6; }
23014
23015 fi
23016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23017 cat >>confdefs.h <<_ACEOF
23018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23019 _ACEOF
23020
23021 fi
23022
23023 done
23024
23025
23026
23027 for ac_func in fork vfork
23028 do
23029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035 cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h. */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23043 #define $ac_func innocuous_$ac_func
23044
23045 /* System header to define __stub macros and hopefully few prototypes,
23046 which can conflict with char $ac_func (); below.
23047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23048 <limits.h> exists even on freestanding compilers. */
23049
23050 #ifdef __STDC__
23051 # include <limits.h>
23052 #else
23053 # include <assert.h>
23054 #endif
23055
23056 #undef $ac_func
23057
23058 /* Override any GCC internal prototype to avoid an error.
23059 Use char because int might match the return type of a GCC
23060 builtin and then its argument prototype would still apply. */
23061 #ifdef __cplusplus
23062 extern "C"
23063 #endif
23064 char $ac_func ();
23065 /* The GNU C library defines this for functions which it implements
23066 to always fail with ENOSYS. Some functions are actually named
23067 something starting with __ and the normal name is an alias. */
23068 #if defined __stub_$ac_func || defined __stub___$ac_func
23069 choke me
23070 #endif
23071
23072 int
23073 main ()
23074 {
23075 return $ac_func ();
23076 ;
23077 return 0;
23078 }
23079 _ACEOF
23080 rm -f conftest.$ac_objext conftest$ac_exeext
23081 if { (ac_try="$ac_link"
23082 case "(($ac_try" in
23083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084 *) ac_try_echo=$ac_try;;
23085 esac
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087 (eval "$ac_link") 2>conftest.er1
23088 ac_status=$?
23089 grep -v '^ *+' conftest.er1 >conftest.err
23090 rm -f conftest.er1
23091 cat conftest.err >&5
23092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } && {
23094 test -z "$ac_c_werror_flag" ||
23095 test ! -s conftest.err
23096 } && test -s conftest$ac_exeext &&
23097 $as_test_x conftest$ac_exeext; then
23098 eval "$as_ac_var=yes"
23099 else
23100 echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23102
23103 eval "$as_ac_var=no"
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23107 conftest$ac_exeext conftest.$ac_ext
23108 fi
23109 ac_res=`eval echo '${'$as_ac_var'}'`
23110 { echo "$as_me:$LINENO: result: $ac_res" >&5
23111 echo "${ECHO_T}$ac_res" >&6; }
23112 if test `eval echo '${'$as_ac_var'}'` = yes; then
23113 cat >>confdefs.h <<_ACEOF
23114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23115 _ACEOF
23116
23117 fi
23118 done
23119
23120 if test "x$ac_cv_func_fork" = xyes; then
23121 { echo "$as_me:$LINENO: checking for working fork" >&5
23122 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23123 if test "${ac_cv_func_fork_works+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
23125 else
23126 if test "$cross_compiling" = yes; then
23127 ac_cv_func_fork_works=cross
23128 else
23129 cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h. */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 $ac_includes_default
23136 int
23137 main ()
23138 {
23139
23140 /* By Ruediger Kuhlmann. */
23141 return fork () < 0;
23142
23143 ;
23144 return 0;
23145 }
23146 _ACEOF
23147 rm -f conftest$ac_exeext
23148 if { (ac_try="$ac_link"
23149 case "(($ac_try" in
23150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151 *) ac_try_echo=$ac_try;;
23152 esac
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154 (eval "$ac_link") 2>&5
23155 ac_status=$?
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23158 { (case "(($ac_try" in
23159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160 *) ac_try_echo=$ac_try;;
23161 esac
23162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163 (eval "$ac_try") 2>&5
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); }; }; then
23167 ac_cv_func_fork_works=yes
23168 else
23169 echo "$as_me: program exited with status $ac_status" >&5
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173 ( exit $ac_status )
23174 ac_cv_func_fork_works=no
23175 fi
23176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23177 fi
23178
23179
23180 fi
23181 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23182 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23183
23184 else
23185 ac_cv_func_fork_works=$ac_cv_func_fork
23186 fi
23187 if test "x$ac_cv_func_fork_works" = xcross; then
23188 case $host in
23189 *-*-amigaos* | *-*-msdosdjgpp*)
23190 # Override, as these systems have only a dummy fork() stub
23191 ac_cv_func_fork_works=no
23192 ;;
23193 *)
23194 ac_cv_func_fork_works=yes
23195 ;;
23196 esac
23197 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23198 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23199 fi
23200 ac_cv_func_vfork_works=$ac_cv_func_vfork
23201 if test "x$ac_cv_func_vfork" = xyes; then
23202 { echo "$as_me:$LINENO: checking for working vfork" >&5
23203 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23204 if test "${ac_cv_func_vfork_works+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207 if test "$cross_compiling" = yes; then
23208 ac_cv_func_vfork_works=cross
23209 else
23210 cat >conftest.$ac_ext <<_ACEOF
23211 /* confdefs.h. */
23212 _ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h. */
23216 /* Thanks to Paul Eggert for this test. */
23217 $ac_includes_default
23218 #include <sys/wait.h>
23219 #ifdef HAVE_VFORK_H
23220 # include <vfork.h>
23221 #endif
23222 /* On some sparc systems, changes by the child to local and incoming
23223 argument registers are propagated back to the parent. The compiler
23224 is told about this with #include <vfork.h>, but some compilers
23225 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23226 static variable whose address is put into a register that is
23227 clobbered by the vfork. */
23228 static void
23229 #ifdef __cplusplus
23230 sparc_address_test (int arg)
23231 # else
23232 sparc_address_test (arg) int arg;
23233 #endif
23234 {
23235 static pid_t child;
23236 if (!child) {
23237 child = vfork ();
23238 if (child < 0) {
23239 perror ("vfork");
23240 _exit(2);
23241 }
23242 if (!child) {
23243 arg = getpid();
23244 write(-1, "", 0);
23245 _exit (arg);
23246 }
23247 }
23248 }
23249
23250 int
23251 main ()
23252 {
23253 pid_t parent = getpid ();
23254 pid_t child;
23255
23256 sparc_address_test (0);
23257
23258 child = vfork ();
23259
23260 if (child == 0) {
23261 /* Here is another test for sparc vfork register problems. This
23262 test uses lots of local variables, at least as many local
23263 variables as main has allocated so far including compiler
23264 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23265 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23266 reuse the register of parent for one of the local variables,
23267 since it will think that parent can't possibly be used any more
23268 in this routine. Assigning to the local variable will thus
23269 munge parent in the parent process. */
23270 pid_t
23271 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23272 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23273 /* Convince the compiler that p..p7 are live; otherwise, it might
23274 use the same hardware register for all 8 local variables. */
23275 if (p != p1 || p != p2 || p != p3 || p != p4
23276 || p != p5 || p != p6 || p != p7)
23277 _exit(1);
23278
23279 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23280 from child file descriptors. If the child closes a descriptor
23281 before it execs or exits, this munges the parent's descriptor
23282 as well. Test for this by closing stdout in the child. */
23283 _exit(close(fileno(stdout)) != 0);
23284 } else {
23285 int status;
23286 struct stat st;
23287
23288 while (wait(&status) != child)
23289 ;
23290 return (
23291 /* Was there some problem with vforking? */
23292 child < 0
23293
23294 /* Did the child fail? (This shouldn't happen.) */
23295 || status
23296
23297 /* Did the vfork/compiler bug occur? */
23298 || parent != getpid()
23299
23300 /* Did the file descriptor bug occur? */
23301 || fstat(fileno(stdout), &st) != 0
23302 );
23303 }
23304 }
23305 _ACEOF
23306 rm -f conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313 (eval "$ac_link") 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23317 { (case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_try") 2>&5
23323 ac_status=$?
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); }; }; then
23326 ac_cv_func_vfork_works=yes
23327 else
23328 echo "$as_me: program exited with status $ac_status" >&5
23329 echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23331
23332 ( exit $ac_status )
23333 ac_cv_func_vfork_works=no
23334 fi
23335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23336 fi
23337
23338
23339 fi
23340 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23341 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23342
23343 fi;
23344 if test "x$ac_cv_func_fork_works" = xcross; then
23345 ac_cv_func_vfork_works=$ac_cv_func_vfork
23346 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23347 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23348 fi
23349
23350 if test "x$ac_cv_func_vfork_works" = xyes; then
23351
23352 cat >>confdefs.h <<\_ACEOF
23353 #define HAVE_WORKING_VFORK 1
23354 _ACEOF
23355
23356 else
23357
23358 cat >>confdefs.h <<\_ACEOF
23359 #define vfork fork
23360 _ACEOF
23361
23362 fi
23363 if test "x$ac_cv_func_fork_works" = xyes; then
23364
23365 cat >>confdefs.h <<\_ACEOF
23366 #define HAVE_WORKING_FORK 1
23367 _ACEOF
23368
23369 fi
23370
23371
23372 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23373 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23374 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376 else
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h. */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h. */
23383 #include <langinfo.h>
23384 int
23385 main ()
23386 {
23387 char* cs = nl_langinfo(CODESET);
23388 ;
23389 return 0;
23390 }
23391 _ACEOF
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (ac_try="$ac_link"
23394 case "(($ac_try" in
23395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396 *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399 (eval "$ac_link") 2>conftest.er1
23400 ac_status=$?
23401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } && {
23406 test -z "$ac_c_werror_flag" ||
23407 test ! -s conftest.err
23408 } && test -s conftest$ac_exeext &&
23409 $as_test_x conftest$ac_exeext; then
23410 emacs_cv_langinfo_codeset=yes
23411 else
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415 emacs_cv_langinfo_codeset=no
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23419 conftest$ac_exeext conftest.$ac_ext
23420
23421 fi
23422 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23423 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23424 if test $emacs_cv_langinfo_codeset = yes; then
23425
23426 cat >>confdefs.h <<\_ACEOF
23427 #define HAVE_LANGINFO_CODESET 1
23428 _ACEOF
23429
23430 fi
23431
23432 { echo "$as_me:$LINENO: checking for size_t" >&5
23433 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23434 if test "${ac_cv_type_size_t+set}" = set; then
23435 echo $ECHO_N "(cached) $ECHO_C" >&6
23436 else
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h. */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 $ac_includes_default
23444 typedef size_t ac__type_new_;
23445 int
23446 main ()
23447 {
23448 if ((ac__type_new_ *) 0)
23449 return 0;
23450 if (sizeof (ac__type_new_))
23451 return 0;
23452 ;
23453 return 0;
23454 }
23455 _ACEOF
23456 rm -f conftest.$ac_objext
23457 if { (ac_try="$ac_compile"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461 esac
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_compile") 2>conftest.er1
23464 ac_status=$?
23465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } && {
23470 test -z "$ac_c_werror_flag" ||
23471 test ! -s conftest.err
23472 } && test -s conftest.$ac_objext; then
23473 ac_cv_type_size_t=yes
23474 else
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23477
23478 ac_cv_type_size_t=no
23479 fi
23480
23481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482 fi
23483 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23484 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23485 if test $ac_cv_type_size_t = yes; then
23486
23487 cat >>confdefs.h <<_ACEOF
23488 #define HAVE_SIZE_T 1
23489 _ACEOF
23490
23491
23492 fi
23493
23494
23495 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23496 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23497 if test "${ac_cv_type_mbstate_t+set}" = set; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23500 cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h. */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 $ac_includes_default
23507 # include <wchar.h>
23508 int
23509 main ()
23510 {
23511 mbstate_t x; return sizeof x;
23512 ;
23513 return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest.$ac_objext
23517 if { (ac_try="$ac_compile"
23518 case "(($ac_try" in
23519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520 *) ac_try_echo=$ac_try;;
23521 esac
23522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23523 (eval "$ac_compile") 2>conftest.er1
23524 ac_status=$?
23525 grep -v '^ *+' conftest.er1 >conftest.err
23526 rm -f conftest.er1
23527 cat conftest.err >&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); } && {
23530 test -z "$ac_c_werror_flag" ||
23531 test ! -s conftest.err
23532 } && test -s conftest.$ac_objext; then
23533 ac_cv_type_mbstate_t=yes
23534 else
23535 echo "$as_me: failed program was:" >&5
23536 sed 's/^/| /' conftest.$ac_ext >&5
23537
23538 ac_cv_type_mbstate_t=no
23539 fi
23540
23541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542 fi
23543 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23544 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23545 if test $ac_cv_type_mbstate_t = yes; then
23546
23547 cat >>confdefs.h <<\_ACEOF
23548 #define HAVE_MBSTATE_T 1
23549 _ACEOF
23550
23551 else
23552
23553 cat >>confdefs.h <<\_ACEOF
23554 #define mbstate_t int
23555 _ACEOF
23556
23557 fi
23558
23559 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23560 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23561 if test "${emacs_cv_c_restrict+set}" = set; then
23562 echo $ECHO_N "(cached) $ECHO_C" >&6
23563 else
23564 cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h. */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 void fred (int *restrict x);
23571 int
23572 main ()
23573 {
23574
23575 ;
23576 return 0;
23577 }
23578 _ACEOF
23579 rm -f conftest.$ac_objext
23580 if { (ac_try="$ac_compile"
23581 case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23584 esac
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_compile") 2>conftest.er1
23587 ac_status=$?
23588 grep -v '^ *+' conftest.er1 >conftest.err
23589 rm -f conftest.er1
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest.$ac_objext; then
23596 emacs_cv_c_restrict=yes
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h. */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 void fred (int *__restrict x);
23608 int
23609 main ()
23610 {
23611
23612 ;
23613 return 0;
23614 }
23615 _ACEOF
23616 rm -f conftest.$ac_objext
23617 if { (ac_try="$ac_compile"
23618 case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621 esac
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_compile") 2>conftest.er1
23624 ac_status=$?
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest.$ac_objext; then
23633 emacs_cv_c_restrict=__restrict
23634 else
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23637
23638 emacs_cv_c_restrict=no
23639 fi
23640
23641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 fi
23643
23644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 fi
23646 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23647 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23648 case "$emacs_cv_c_restrict" in
23649 yes) emacs_restrict=restrict;;
23650 no) emacs_restrict="";;
23651 *) emacs_restrict="$emacs_cv_c_restrict";;
23652 esac
23653 if test "$emacs_restrict" != __restrict; then
23654
23655 cat >>confdefs.h <<_ACEOF
23656 #define __restrict $emacs_restrict
23657 _ACEOF
23658
23659 fi
23660
23661 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23662 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23663 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23665 else
23666 cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h. */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 void fred (int x[__restrict]);
23673 int
23674 main ()
23675 {
23676
23677 ;
23678 return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_compile") 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest.$ac_objext; then
23698 emacs_cv_c_restrict_arr=yes
23699 else
23700 echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23702
23703 emacs_cv_c_restrict_arr=no
23704 fi
23705
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707 fi
23708 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23709 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23710 if test "$emacs_cv_c_restrict_arr" = yes; then
23711
23712 cat >>confdefs.h <<\_ACEOF
23713 #define __restrict_arr __restrict
23714 _ACEOF
23715
23716 fi
23717
23718
23719
23720 # Set up the CFLAGS for real compilation, so we can substitute it.
23721 CFLAGS="$REAL_CFLAGS"
23722 CPPFLAGS="$REAL_CPPFLAGS"
23723
23724 #### Find out which version of Emacs this is.
23725 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23726 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23727 if test x"${version}" = x; then
23728 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23729 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23730 { (exit 1); exit 1; }; }
23731 fi
23732
23733 ### Specify what sort of things we'll be editing into Makefile and config.h.
23734 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23735
23736
23737
23738
23739
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 cat >>confdefs.h <<_ACEOF
23771 #define EMACS_CONFIGURATION "${canonical}"
23772 _ACEOF
23773
23774
23775 cat >>confdefs.h <<_ACEOF
23776 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23777 _ACEOF
23778
23779
23780 cat >>confdefs.h <<_ACEOF
23781 #define config_machfile "${machfile}"
23782 _ACEOF
23783
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define config_opsysfile "${opsysfile}"
23787 _ACEOF
23788
23789
23790 cat >>confdefs.h <<_ACEOF
23791 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23792 _ACEOF
23793
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23797 _ACEOF
23798
23799
23800 cat >>confdefs.h <<_ACEOF
23801 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23802 _ACEOF
23803
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define UNEXEC_SRC ${UNEXEC_SRC}
23807 _ACEOF
23808
23809
23810 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23811
23812 cat >>confdefs.h <<\_ACEOF
23813 #define HAVE_X_WINDOWS 1
23814 _ACEOF
23815
23816 fi
23817 if test "${USE_X_TOOLKIT}" != "none" ; then
23818
23819 cat >>confdefs.h <<\_ACEOF
23820 #define USE_X_TOOLKIT 1
23821 _ACEOF
23822
23823 fi
23824 if test "${HAVE_X11}" = "yes" ; then
23825
23826 cat >>confdefs.h <<\_ACEOF
23827 #define HAVE_X11 1
23828 _ACEOF
23829
23830 fi
23831 if test "${HAVE_MENUS}" = "yes" ; then
23832
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_MENUS 1
23835 _ACEOF
23836
23837 fi
23838 if test "${GNU_MALLOC}" = "yes" ; then
23839
23840 cat >>confdefs.h <<\_ACEOF
23841 #define GNU_MALLOC 1
23842 _ACEOF
23843
23844 fi
23845 if test "${REL_ALLOC}" = "yes" ; then
23846
23847 cat >>confdefs.h <<\_ACEOF
23848 #define REL_ALLOC 1
23849 _ACEOF
23850
23851 fi
23852
23853
23854
23855
23856
23857
23858 #### Report on what we decided to do.
23859 #### Report GTK as a toolkit, even if it doesn't use Xt.
23860 #### It makes printing result more understandable as using GTK sets
23861 #### toolkit_scroll_bars to yes by default.
23862 if test "${HAVE_GTK}" = "yes"; then
23863 USE_X_TOOLKIT=GTK
23864 fi
23865
23866 echo "
23867 Configured for \`${canonical}'.
23868
23869 Where should the build process find the source code? ${srcdir}
23870 What operating system and machine description files should Emacs use?
23871 \`${opsysfile}' and \`${machfile}'
23872 What compiler should emacs be built with? ${CC} ${CFLAGS}
23873 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23874 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23875 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23876 What window system should Emacs use? ${window_system}
23877 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23878
23879 if test -n "${x_includes}"; then
23880 echo " Where do we find X Windows header files? ${x_includes}"
23881 else
23882 echo " Where do we find X Windows header files? Standard dirs"
23883 fi
23884 if test -n "${x_libraries}"; then
23885 echo " Where do we find X Windows libraries? ${x_libraries}"
23886 else
23887 echo " Where do we find X Windows libraries? Standard dirs"
23888 fi
23889
23890 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23891 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23892 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23893 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23894 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23895 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23896 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23897 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23898 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23899 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23900
23901 if test "${USE_FONT_BACKEND}" = "yes"; then
23902 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23903 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23904 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23905 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23906 fi
23907 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23908 echo
23909
23910 if test $USE_XASSERTS = yes; then
23911 echo " Compiling with asserts turned on."
23912 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23913 echo
23914 fi
23915
23916 if test "$USE_X_TOOLKIT" = GTK; then
23917 case "$canonical" in
23918 *cygwin*)
23919 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23920 will probably get a crash on startup. If this happens, please use another
23921 toolkit for Emacs. See etc/PROBLEMS for more information."
23922 ;;
23923 esac
23924 fi
23925
23926
23927 if test "$HAVE_CARBON" = "yes"; then
23928 echo
23929 echo "Warning: The Mac Carbon port is currently unsupported and has
23930 known problems. It is not recommended for use by non-developers.
23931 Read the emacs-devel archives for more information."
23932 echo
23933 fi
23934
23935 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23936 echo "D-Bus integration has been tested for GNU/Linux only."
23937 echo
23938 fi
23939
23940
23941 # Remove any trailing slashes in these variables.
23942 test "${prefix}" != NONE &&
23943 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23944 test "${exec_prefix}" != NONE &&
23945 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23946
23947 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23948 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23949 ## from Makefile.c can correctly provide the arg `-traditional' to the
23950 ## C preprocessor.
23951
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h. */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 yes..yes
23959 _ACEOF
23960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23961 $EGREP "yes..yes" >/dev/null 2>&1; then
23962 CPP_NEED_TRADITIONAL=no
23963 else
23964 CPP_NEED_TRADITIONAL=yes
23965 fi
23966 rm -f conftest*
23967
23968
23969 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"
23970
23971 ac_config_commands="$ac_config_commands default"
23972
23973 cat >confcache <<\_ACEOF
23974 # This file is a shell script that caches the results of configure
23975 # tests run on this system so they can be shared between configure
23976 # scripts and configure runs, see configure's option --config-cache.
23977 # It is not useful on other systems. If it contains results you don't
23978 # want to keep, you may remove or edit it.
23979 #
23980 # config.status only pays attention to the cache file if you give it
23981 # the --recheck option to rerun configure.
23982 #
23983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23985 # following values.
23986
23987 _ACEOF
23988
23989 # The following way of writing the cache mishandles newlines in values,
23990 # but we know of no workaround that is simple, portable, and efficient.
23991 # So, we kill variables containing newlines.
23992 # Ultrix sh set writes to stderr and can't be redirected directly,
23993 # and sets the high bit in the cache file unless we assign to the vars.
23994 (
23995 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23996 eval ac_val=\$$ac_var
23997 case $ac_val in #(
23998 *${as_nl}*)
23999 case $ac_var in #(
24000 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24001 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24002 esac
24003 case $ac_var in #(
24004 _ | IFS | as_nl) ;; #(
24005 *) $as_unset $ac_var ;;
24006 esac ;;
24007 esac
24008 done
24009
24010 (set) 2>&1 |
24011 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24012 *${as_nl}ac_space=\ *)
24013 # `set' does not quote correctly, so add quotes (double-quote
24014 # substitution turns \\\\ into \\, and sed turns \\ into \).
24015 sed -n \
24016 "s/'/'\\\\''/g;
24017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24018 ;; #(
24019 *)
24020 # `set' quotes correctly as required by POSIX, so do not add quotes.
24021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24022 ;;
24023 esac |
24024 sort
24025 ) |
24026 sed '
24027 /^ac_cv_env_/b end
24028 t clear
24029 :clear
24030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24031 t end
24032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24033 :end' >>confcache
24034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24035 if test -w "$cache_file"; then
24036 test "x$cache_file" != "x/dev/null" &&
24037 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24038 echo "$as_me: updating cache $cache_file" >&6;}
24039 cat confcache >$cache_file
24040 else
24041 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24042 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24043 fi
24044 fi
24045 rm -f confcache
24046
24047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24048 # Let make expand exec_prefix.
24049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24050
24051 DEFS=-DHAVE_CONFIG_H
24052
24053 ac_libobjs=
24054 ac_ltlibobjs=
24055 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24056 # 1. Remove the extension, and $U if already installed.
24057 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24058 ac_i=`echo "$ac_i" | sed "$ac_script"`
24059 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24060 # will be set to the directory where LIBOBJS objects are built.
24061 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24062 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24063 done
24064 LIBOBJS=$ac_libobjs
24065
24066 LTLIBOBJS=$ac_ltlibobjs
24067
24068
24069
24070 : ${CONFIG_STATUS=./config.status}
24071 ac_clean_files_save=$ac_clean_files
24072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24073 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24074 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24075 cat >$CONFIG_STATUS <<_ACEOF
24076 #! $SHELL
24077 # Generated by $as_me.
24078 # Run this file to recreate the current configuration.
24079 # Compiler output produced by configure, useful for debugging
24080 # configure, is in config.log if it exists.
24081
24082 debug=false
24083 ac_cs_recheck=false
24084 ac_cs_silent=false
24085 SHELL=\${CONFIG_SHELL-$SHELL}
24086 _ACEOF
24087
24088 cat >>$CONFIG_STATUS <<\_ACEOF
24089 ## --------------------- ##
24090 ## M4sh Initialization. ##
24091 ## --------------------- ##
24092
24093 # Be more Bourne compatible
24094 DUALCASE=1; export DUALCASE # for MKS sh
24095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24096 emulate sh
24097 NULLCMD=:
24098 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24099 # is contrary to our usage. Disable this feature.
24100 alias -g '${1+"$@"}'='"$@"'
24101 setopt NO_GLOB_SUBST
24102 else
24103 case `(set -o) 2>/dev/null` in
24104 *posix*) set -o posix ;;
24105 esac
24106
24107 fi
24108
24109
24110
24111
24112 # PATH needs CR
24113 # Avoid depending upon Character Ranges.
24114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24117 as_cr_digits='0123456789'
24118 as_cr_alnum=$as_cr_Letters$as_cr_digits
24119
24120 # The user is always right.
24121 if test "${PATH_SEPARATOR+set}" != set; then
24122 echo "#! /bin/sh" >conf$$.sh
24123 echo "exit 0" >>conf$$.sh
24124 chmod +x conf$$.sh
24125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24126 PATH_SEPARATOR=';'
24127 else
24128 PATH_SEPARATOR=:
24129 fi
24130 rm -f conf$$.sh
24131 fi
24132
24133 # Support unset when possible.
24134 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24135 as_unset=unset
24136 else
24137 as_unset=false
24138 fi
24139
24140
24141 # IFS
24142 # We need space, tab and new line, in precisely that order. Quoting is
24143 # there to prevent editors from complaining about space-tab.
24144 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24145 # splitting by setting IFS to empty value.)
24146 as_nl='
24147 '
24148 IFS=" "" $as_nl"
24149
24150 # Find who we are. Look in the path if we contain no directory separator.
24151 case $0 in
24152 *[\\/]* ) as_myself=$0 ;;
24153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24154 for as_dir in $PATH
24155 do
24156 IFS=$as_save_IFS
24157 test -z "$as_dir" && as_dir=.
24158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24159 done
24160 IFS=$as_save_IFS
24161
24162 ;;
24163 esac
24164 # We did not find ourselves, most probably we were run as `sh COMMAND'
24165 # in which case we are not to be found in the path.
24166 if test "x$as_myself" = x; then
24167 as_myself=$0
24168 fi
24169 if test ! -f "$as_myself"; then
24170 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24171 { (exit 1); exit 1; }
24172 fi
24173
24174 # Work around bugs in pre-3.0 UWIN ksh.
24175 for as_var in ENV MAIL MAILPATH
24176 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24177 done
24178 PS1='$ '
24179 PS2='> '
24180 PS4='+ '
24181
24182 # NLS nuisances.
24183 for as_var in \
24184 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24185 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24186 LC_TELEPHONE LC_TIME
24187 do
24188 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24189 eval $as_var=C; export $as_var
24190 else
24191 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24192 fi
24193 done
24194
24195 # Required to use basename.
24196 if expr a : '\(a\)' >/dev/null 2>&1 &&
24197 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24198 as_expr=expr
24199 else
24200 as_expr=false
24201 fi
24202
24203 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24204 as_basename=basename
24205 else
24206 as_basename=false
24207 fi
24208
24209
24210 # Name of the executable.
24211 as_me=`$as_basename -- "$0" ||
24212 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24213 X"$0" : 'X\(//\)$' \| \
24214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24215 echo X/"$0" |
24216 sed '/^.*\/\([^/][^/]*\)\/*$/{
24217 s//\1/
24218 q
24219 }
24220 /^X\/\(\/\/\)$/{
24221 s//\1/
24222 q
24223 }
24224 /^X\/\(\/\).*/{
24225 s//\1/
24226 q
24227 }
24228 s/.*/./; q'`
24229
24230 # CDPATH.
24231 $as_unset CDPATH
24232
24233
24234
24235 as_lineno_1=$LINENO
24236 as_lineno_2=$LINENO
24237 test "x$as_lineno_1" != "x$as_lineno_2" &&
24238 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24239
24240 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24241 # uniformly replaced by the line number. The first 'sed' inserts a
24242 # line-number line after each line using $LINENO; the second 'sed'
24243 # does the real work. The second script uses 'N' to pair each
24244 # line-number line with the line containing $LINENO, and appends
24245 # trailing '-' during substitution so that $LINENO is not a special
24246 # case at line end.
24247 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24248 # scripts with optimization help from Paolo Bonzini. Blame Lee
24249 # E. McMahon (1931-1989) for sed's syntax. :-)
24250 sed -n '
24251 p
24252 /[$]LINENO/=
24253 ' <$as_myself |
24254 sed '
24255 s/[$]LINENO.*/&-/
24256 t lineno
24257 b
24258 :lineno
24259 N
24260 :loop
24261 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24262 t loop
24263 s/-\n.*//
24264 ' >$as_me.lineno &&
24265 chmod +x "$as_me.lineno" ||
24266 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24267 { (exit 1); exit 1; }; }
24268
24269 # Don't try to exec as it changes $[0], causing all sort of problems
24270 # (the dirname of $[0] is not the place where we might find the
24271 # original and so on. Autoconf is especially sensitive to this).
24272 . "./$as_me.lineno"
24273 # Exit status is that of the last command.
24274 exit
24275 }
24276
24277
24278 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24279 as_dirname=dirname
24280 else
24281 as_dirname=false
24282 fi
24283
24284 ECHO_C= ECHO_N= ECHO_T=
24285 case `echo -n x` in
24286 -n*)
24287 case `echo 'x\c'` in
24288 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24289 *) ECHO_C='\c';;
24290 esac;;
24291 *)
24292 ECHO_N='-n';;
24293 esac
24294
24295 if expr a : '\(a\)' >/dev/null 2>&1 &&
24296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24297 as_expr=expr
24298 else
24299 as_expr=false
24300 fi
24301
24302 rm -f conf$$ conf$$.exe conf$$.file
24303 if test -d conf$$.dir; then
24304 rm -f conf$$.dir/conf$$.file
24305 else
24306 rm -f conf$$.dir
24307 mkdir conf$$.dir
24308 fi
24309 echo >conf$$.file
24310 if ln -s conf$$.file conf$$ 2>/dev/null; then
24311 as_ln_s='ln -s'
24312 # ... but there are two gotchas:
24313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24315 # In both cases, we have to default to `cp -p'.
24316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24317 as_ln_s='cp -p'
24318 elif ln conf$$.file conf$$ 2>/dev/null; then
24319 as_ln_s=ln
24320 else
24321 as_ln_s='cp -p'
24322 fi
24323 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24324 rmdir conf$$.dir 2>/dev/null
24325
24326 if mkdir -p . 2>/dev/null; then
24327 as_mkdir_p=:
24328 else
24329 test -d ./-p && rmdir ./-p
24330 as_mkdir_p=false
24331 fi
24332
24333 if test -x / >/dev/null 2>&1; then
24334 as_test_x='test -x'
24335 else
24336 if ls -dL / >/dev/null 2>&1; then
24337 as_ls_L_option=L
24338 else
24339 as_ls_L_option=
24340 fi
24341 as_test_x='
24342 eval sh -c '\''
24343 if test -d "$1"; then
24344 test -d "$1/.";
24345 else
24346 case $1 in
24347 -*)set "./$1";;
24348 esac;
24349 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24350 ???[sx]*):;;*)false;;esac;fi
24351 '\'' sh
24352 '
24353 fi
24354 as_executable_p=$as_test_x
24355
24356 # Sed expression to map a string onto a valid CPP name.
24357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24358
24359 # Sed expression to map a string onto a valid variable name.
24360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24361
24362
24363 exec 6>&1
24364
24365 # Save the log message, to keep $[0] and so on meaningful, and to
24366 # report actual input values of CONFIG_FILES etc. instead of their
24367 # values after options handling.
24368 ac_log="
24369 This file was extended by emacs $as_me 23.0.50, which was
24370 generated by GNU Autoconf 2.61. Invocation command line was
24371
24372 CONFIG_FILES = $CONFIG_FILES
24373 CONFIG_HEADERS = $CONFIG_HEADERS
24374 CONFIG_LINKS = $CONFIG_LINKS
24375 CONFIG_COMMANDS = $CONFIG_COMMANDS
24376 $ $0 $@
24377
24378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24379 "
24380
24381 _ACEOF
24382
24383 cat >>$CONFIG_STATUS <<_ACEOF
24384 # Files that config.status was made for.
24385 config_files="$ac_config_files"
24386 config_headers="$ac_config_headers"
24387 config_commands="$ac_config_commands"
24388
24389 _ACEOF
24390
24391 cat >>$CONFIG_STATUS <<\_ACEOF
24392 ac_cs_usage="\
24393 \`$as_me' instantiates files from templates according to the
24394 current configuration.
24395
24396 Usage: $0 [OPTIONS] [FILE]...
24397
24398 -h, --help print this help, then exit
24399 -V, --version print version number and configuration settings, then exit
24400 -q, --quiet do not print progress messages
24401 -d, --debug don't remove temporary files
24402 --recheck update $as_me by reconfiguring in the same conditions
24403 --file=FILE[:TEMPLATE]
24404 instantiate the configuration file FILE
24405 --header=FILE[:TEMPLATE]
24406 instantiate the configuration header FILE
24407
24408 Configuration files:
24409 $config_files
24410
24411 Configuration headers:
24412 $config_headers
24413
24414 Configuration commands:
24415 $config_commands
24416
24417 Report bugs to <bug-autoconf@gnu.org>."
24418
24419 _ACEOF
24420 cat >>$CONFIG_STATUS <<_ACEOF
24421 ac_cs_version="\\
24422 emacs config.status 23.0.50
24423 configured by $0, generated by GNU Autoconf 2.61,
24424 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24425
24426 Copyright (C) 2006 Free Software Foundation, Inc.
24427 This config.status script is free software; the Free Software Foundation
24428 gives unlimited permission to copy, distribute and modify it."
24429
24430 ac_pwd='$ac_pwd'
24431 srcdir='$srcdir'
24432 INSTALL='$INSTALL'
24433 _ACEOF
24434
24435 cat >>$CONFIG_STATUS <<\_ACEOF
24436 # If no file are specified by the user, then we need to provide default
24437 # value. By we need to know if files were specified by the user.
24438 ac_need_defaults=:
24439 while test $# != 0
24440 do
24441 case $1 in
24442 --*=*)
24443 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24444 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24445 ac_shift=:
24446 ;;
24447 *)
24448 ac_option=$1
24449 ac_optarg=$2
24450 ac_shift=shift
24451 ;;
24452 esac
24453
24454 case $ac_option in
24455 # Handling of the options.
24456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24457 ac_cs_recheck=: ;;
24458 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24459 echo "$ac_cs_version"; exit ;;
24460 --debug | --debu | --deb | --de | --d | -d )
24461 debug=: ;;
24462 --file | --fil | --fi | --f )
24463 $ac_shift
24464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24465 ac_need_defaults=false;;
24466 --header | --heade | --head | --hea )
24467 $ac_shift
24468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24469 ac_need_defaults=false;;
24470 --he | --h)
24471 # Conflict between --help and --header
24472 { echo "$as_me: error: ambiguous option: $1
24473 Try \`$0 --help' for more information." >&2
24474 { (exit 1); exit 1; }; };;
24475 --help | --hel | -h )
24476 echo "$ac_cs_usage"; exit ;;
24477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24479 ac_cs_silent=: ;;
24480
24481 # This is an error.
24482 -*) { echo "$as_me: error: unrecognized option: $1
24483 Try \`$0 --help' for more information." >&2
24484 { (exit 1); exit 1; }; } ;;
24485
24486 *) ac_config_targets="$ac_config_targets $1"
24487 ac_need_defaults=false ;;
24488
24489 esac
24490 shift
24491 done
24492
24493 ac_configure_extra_args=
24494
24495 if $ac_cs_silent; then
24496 exec 6>/dev/null
24497 ac_configure_extra_args="$ac_configure_extra_args --silent"
24498 fi
24499
24500 _ACEOF
24501 cat >>$CONFIG_STATUS <<_ACEOF
24502 if \$ac_cs_recheck; then
24503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24504 CONFIG_SHELL=$SHELL
24505 export CONFIG_SHELL
24506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24507 fi
24508
24509 _ACEOF
24510 cat >>$CONFIG_STATUS <<\_ACEOF
24511 exec 5>>config.log
24512 {
24513 echo
24514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24515 ## Running $as_me. ##
24516 _ASBOX
24517 echo "$ac_log"
24518 } >&5
24519
24520 _ACEOF
24521 cat >>$CONFIG_STATUS <<_ACEOF
24522 #
24523 # INIT-COMMANDS
24524 #
24525 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24526
24527 _ACEOF
24528
24529 cat >>$CONFIG_STATUS <<\_ACEOF
24530
24531 # Handling of arguments.
24532 for ac_config_target in $ac_config_targets
24533 do
24534 case $ac_config_target in
24535 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24537 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24538 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24539 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24540 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24541 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24542 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24543 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24544 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24545 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24546 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24547 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24548
24549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24550 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24551 { (exit 1); exit 1; }; };;
24552 esac
24553 done
24554
24555
24556 # If the user did not use the arguments to specify the items to instantiate,
24557 # then the envvar interface is used. Set only those that are not.
24558 # We use the long form for the default assignment because of an extremely
24559 # bizarre bug on SunOS 4.1.3.
24560 if $ac_need_defaults; then
24561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24564 fi
24565
24566 # Have a temporary directory for convenience. Make it in the build tree
24567 # simply because there is no reason against having it here, and in addition,
24568 # creating and moving files from /tmp can sometimes cause problems.
24569 # Hook for its removal unless debugging.
24570 # Note that there is a small window in which the directory will not be cleaned:
24571 # after its creation but before its name has been assigned to `$tmp'.
24572 $debug ||
24573 {
24574 tmp=
24575 trap 'exit_status=$?
24576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24577 ' 0
24578 trap '{ (exit 1); exit 1; }' 1 2 13 15
24579 }
24580 # Create a (secure) tmp directory for tmp files.
24581
24582 {
24583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24584 test -n "$tmp" && test -d "$tmp"
24585 } ||
24586 {
24587 tmp=./conf$$-$RANDOM
24588 (umask 077 && mkdir "$tmp")
24589 } ||
24590 {
24591 echo "$me: cannot create a temporary directory in ." >&2
24592 { (exit 1); exit 1; }
24593 }
24594
24595 #
24596 # Set up the sed scripts for CONFIG_FILES section.
24597 #
24598
24599 # No need to generate the scripts if there are no CONFIG_FILES.
24600 # This happens for instance when ./config.status config.h
24601 if test -n "$CONFIG_FILES"; then
24602
24603 _ACEOF
24604
24605
24606
24607 ac_delim='%!_!# '
24608 for ac_last_try in false false false false false :; do
24609 cat >conf$$subs.sed <<_ACEOF
24610 SHELL!$SHELL$ac_delim
24611 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24612 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24613 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24614 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24615 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24616 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24617 exec_prefix!$exec_prefix$ac_delim
24618 prefix!$prefix$ac_delim
24619 program_transform_name!$program_transform_name$ac_delim
24620 bindir!$bindir$ac_delim
24621 sbindir!$sbindir$ac_delim
24622 libexecdir!$libexecdir$ac_delim
24623 datarootdir!$datarootdir$ac_delim
24624 datadir!$datadir$ac_delim
24625 sysconfdir!$sysconfdir$ac_delim
24626 sharedstatedir!$sharedstatedir$ac_delim
24627 localstatedir!$localstatedir$ac_delim
24628 includedir!$includedir$ac_delim
24629 oldincludedir!$oldincludedir$ac_delim
24630 docdir!$docdir$ac_delim
24631 infodir!$infodir$ac_delim
24632 htmldir!$htmldir$ac_delim
24633 dvidir!$dvidir$ac_delim
24634 pdfdir!$pdfdir$ac_delim
24635 psdir!$psdir$ac_delim
24636 libdir!$libdir$ac_delim
24637 localedir!$localedir$ac_delim
24638 mandir!$mandir$ac_delim
24639 DEFS!$DEFS$ac_delim
24640 ECHO_C!$ECHO_C$ac_delim
24641 ECHO_N!$ECHO_N$ac_delim
24642 ECHO_T!$ECHO_T$ac_delim
24643 LIBS!$LIBS$ac_delim
24644 build_alias!$build_alias$ac_delim
24645 host_alias!$host_alias$ac_delim
24646 target_alias!$target_alias$ac_delim
24647 MAINT!$MAINT$ac_delim
24648 build!$build$ac_delim
24649 build_cpu!$build_cpu$ac_delim
24650 build_vendor!$build_vendor$ac_delim
24651 build_os!$build_os$ac_delim
24652 host!$host$ac_delim
24653 host_cpu!$host_cpu$ac_delim
24654 host_vendor!$host_vendor$ac_delim
24655 host_os!$host_os$ac_delim
24656 CC!$CC$ac_delim
24657 CFLAGS!$CFLAGS$ac_delim
24658 LDFLAGS!$LDFLAGS$ac_delim
24659 CPPFLAGS!$CPPFLAGS$ac_delim
24660 ac_ct_CC!$ac_ct_CC$ac_delim
24661 EXEEXT!$EXEEXT$ac_delim
24662 OBJEXT!$OBJEXT$ac_delim
24663 CPP!$CPP$ac_delim
24664 GREP!$GREP$ac_delim
24665 EGREP!$EGREP$ac_delim
24666 LN_S!$LN_S$ac_delim
24667 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24668 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24669 INSTALL_DATA!$INSTALL_DATA$ac_delim
24670 RANLIB!$RANLIB$ac_delim
24671 INSTALL_INFO!$INSTALL_INFO$ac_delim
24672 GZIP_PROG!$GZIP_PROG$ac_delim
24673 MAKEINFO!$MAKEINFO$ac_delim
24674 LIBSOUND!$LIBSOUND$ac_delim
24675 PKG_CONFIG!$PKG_CONFIG$ac_delim
24676 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24677 ALSA_LIBS!$ALSA_LIBS$ac_delim
24678 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24679 SET_MAKE!$SET_MAKE$ac_delim
24680 XMKMF!$XMKMF$ac_delim
24681 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24682 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24683 RSVG_LIBS!$RSVG_LIBS$ac_delim
24684 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24685 GTK_LIBS!$GTK_LIBS$ac_delim
24686 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24687 DBUS_LIBS!$DBUS_LIBS$ac_delim
24688 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24689 XFT_LIBS!$XFT_LIBS$ac_delim
24690 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24691 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24692 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24693 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24694 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24695 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24696 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24697 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24698 ALLOCA!$ALLOCA$ac_delim
24699 liblockfile!$liblockfile$ac_delim
24700 LIBOBJS!$LIBOBJS$ac_delim
24701 NEED_SETGID!$NEED_SETGID$ac_delim
24702 KMEM_GROUP!$KMEM_GROUP$ac_delim
24703 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24704 GETOPT_H!$GETOPT_H$ac_delim
24705 GETOPTOBJS!$GETOPTOBJS$ac_delim
24706 version!$version$ac_delim
24707 _ACEOF
24708
24709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24710 break
24711 elif $ac_last_try; then
24712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24713 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24714 { (exit 1); exit 1; }; }
24715 else
24716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24717 fi
24718 done
24719
24720 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24721 if test -n "$ac_eof"; then
24722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24723 ac_eof=`expr $ac_eof + 1`
24724 fi
24725
24726 cat >>$CONFIG_STATUS <<_ACEOF
24727 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24729 _ACEOF
24730 sed '
24731 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24732 s/^/s,@/; s/!/@,|#_!!_#|/
24733 :n
24734 t n
24735 s/'"$ac_delim"'$/,g/; t
24736 s/$/\\/; p
24737 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24738 ' >>$CONFIG_STATUS <conf$$subs.sed
24739 rm -f conf$$subs.sed
24740 cat >>$CONFIG_STATUS <<_ACEOF
24741 CEOF$ac_eof
24742 _ACEOF
24743
24744
24745 ac_delim='%!_!# '
24746 for ac_last_try in false false false false false :; do
24747 cat >conf$$subs.sed <<_ACEOF
24748 configuration!$configuration$ac_delim
24749 canonical!$canonical$ac_delim
24750 srcdir!$srcdir$ac_delim
24751 lispdir!$lispdir$ac_delim
24752 locallisppath!$locallisppath$ac_delim
24753 lisppath!$lisppath$ac_delim
24754 x_default_search_path!$x_default_search_path$ac_delim
24755 etcdir!$etcdir$ac_delim
24756 archlibdir!$archlibdir$ac_delim
24757 bitmapdir!$bitmapdir$ac_delim
24758 gamedir!$gamedir$ac_delim
24759 gameuser!$gameuser$ac_delim
24760 c_switch_system!$c_switch_system$ac_delim
24761 c_switch_machine!$c_switch_machine$ac_delim
24762 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24763 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24764 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24765 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24766 machfile!$machfile$ac_delim
24767 opsysfile!$opsysfile$ac_delim
24768 carbon_appdir!$carbon_appdir$ac_delim
24769 LTLIBOBJS!$LTLIBOBJS$ac_delim
24770 _ACEOF
24771
24772 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24773 break
24774 elif $ac_last_try; then
24775 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24776 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24777 { (exit 1); exit 1; }; }
24778 else
24779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24780 fi
24781 done
24782
24783 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24784 if test -n "$ac_eof"; then
24785 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24786 ac_eof=`expr $ac_eof + 1`
24787 fi
24788
24789 cat >>$CONFIG_STATUS <<_ACEOF
24790 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24792 _ACEOF
24793 sed '
24794 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24795 s/^/s,@/; s/!/@,|#_!!_#|/
24796 :n
24797 t n
24798 s/'"$ac_delim"'$/,g/; t
24799 s/$/\\/; p
24800 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24801 ' >>$CONFIG_STATUS <conf$$subs.sed
24802 rm -f conf$$subs.sed
24803 cat >>$CONFIG_STATUS <<_ACEOF
24804 :end
24805 s/|#_!!_#|//g
24806 CEOF$ac_eof
24807 _ACEOF
24808
24809
24810 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24811 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24812 # trailing colons and then remove the whole line if VPATH becomes empty
24813 # (actually we leave an empty line to preserve line numbers).
24814 if test "x$srcdir" = x.; then
24815 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24816 s/:*\$(srcdir):*/:/
24817 s/:*\${srcdir}:*/:/
24818 s/:*@srcdir@:*/:/
24819 s/^\([^=]*=[ ]*\):*/\1/
24820 s/:*$//
24821 s/^[^=]*=[ ]*$//
24822 }'
24823 fi
24824
24825 cat >>$CONFIG_STATUS <<\_ACEOF
24826 fi # test -n "$CONFIG_FILES"
24827
24828
24829 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24830 do
24831 case $ac_tag in
24832 :[FHLC]) ac_mode=$ac_tag; continue;;
24833 esac
24834 case $ac_mode$ac_tag in
24835 :[FHL]*:*);;
24836 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24837 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24838 { (exit 1); exit 1; }; };;
24839 :[FH]-) ac_tag=-:-;;
24840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24841 esac
24842 ac_save_IFS=$IFS
24843 IFS=:
24844 set x $ac_tag
24845 IFS=$ac_save_IFS
24846 shift
24847 ac_file=$1
24848 shift
24849
24850 case $ac_mode in
24851 :L) ac_source=$1;;
24852 :[FH])
24853 ac_file_inputs=
24854 for ac_f
24855 do
24856 case $ac_f in
24857 -) ac_f="$tmp/stdin";;
24858 *) # Look for the file first in the build tree, then in the source tree
24859 # (if the path is not absolute). The absolute path cannot be DOS-style,
24860 # because $ac_f cannot contain `:'.
24861 test -f "$ac_f" ||
24862 case $ac_f in
24863 [\\/$]*) false;;
24864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24865 esac ||
24866 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24867 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24868 { (exit 1); exit 1; }; };;
24869 esac
24870 ac_file_inputs="$ac_file_inputs $ac_f"
24871 done
24872
24873 # Let's still pretend it is `configure' which instantiates (i.e., don't
24874 # use $as_me), people would be surprised to read:
24875 # /* config.h. Generated by config.status. */
24876 configure_input="Generated from "`IFS=:
24877 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24878 if test x"$ac_file" != x-; then
24879 configure_input="$ac_file. $configure_input"
24880 { echo "$as_me:$LINENO: creating $ac_file" >&5
24881 echo "$as_me: creating $ac_file" >&6;}
24882 fi
24883
24884 case $ac_tag in
24885 *:-:* | *:-) cat >"$tmp/stdin";;
24886 esac
24887 ;;
24888 esac
24889
24890 ac_dir=`$as_dirname -- "$ac_file" ||
24891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24892 X"$ac_file" : 'X\(//\)[^/]' \| \
24893 X"$ac_file" : 'X\(//\)$' \| \
24894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24895 echo X"$ac_file" |
24896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24897 s//\1/
24898 q
24899 }
24900 /^X\(\/\/\)[^/].*/{
24901 s//\1/
24902 q
24903 }
24904 /^X\(\/\/\)$/{
24905 s//\1/
24906 q
24907 }
24908 /^X\(\/\).*/{
24909 s//\1/
24910 q
24911 }
24912 s/.*/./; q'`
24913 { as_dir="$ac_dir"
24914 case $as_dir in #(
24915 -*) as_dir=./$as_dir;;
24916 esac
24917 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24918 as_dirs=
24919 while :; do
24920 case $as_dir in #(
24921 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24922 *) as_qdir=$as_dir;;
24923 esac
24924 as_dirs="'$as_qdir' $as_dirs"
24925 as_dir=`$as_dirname -- "$as_dir" ||
24926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24927 X"$as_dir" : 'X\(//\)[^/]' \| \
24928 X"$as_dir" : 'X\(//\)$' \| \
24929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24930 echo X"$as_dir" |
24931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24932 s//\1/
24933 q
24934 }
24935 /^X\(\/\/\)[^/].*/{
24936 s//\1/
24937 q
24938 }
24939 /^X\(\/\/\)$/{
24940 s//\1/
24941 q
24942 }
24943 /^X\(\/\).*/{
24944 s//\1/
24945 q
24946 }
24947 s/.*/./; q'`
24948 test -d "$as_dir" && break
24949 done
24950 test -z "$as_dirs" || eval "mkdir $as_dirs"
24951 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24952 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24953 { (exit 1); exit 1; }; }; }
24954 ac_builddir=.
24955
24956 case "$ac_dir" in
24957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24958 *)
24959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24960 # A ".." for each directory in $ac_dir_suffix.
24961 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24962 case $ac_top_builddir_sub in
24963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24965 esac ;;
24966 esac
24967 ac_abs_top_builddir=$ac_pwd
24968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24969 # for backward compatibility:
24970 ac_top_builddir=$ac_top_build_prefix
24971
24972 case $srcdir in
24973 .) # We are building in place.
24974 ac_srcdir=.
24975 ac_top_srcdir=$ac_top_builddir_sub
24976 ac_abs_top_srcdir=$ac_pwd ;;
24977 [\\/]* | ?:[\\/]* ) # Absolute name.
24978 ac_srcdir=$srcdir$ac_dir_suffix;
24979 ac_top_srcdir=$srcdir
24980 ac_abs_top_srcdir=$srcdir ;;
24981 *) # Relative name.
24982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24983 ac_top_srcdir=$ac_top_build_prefix$srcdir
24984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24985 esac
24986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24987
24988
24989 case $ac_mode in
24990 :F)
24991 #
24992 # CONFIG_FILE
24993 #
24994
24995 case $INSTALL in
24996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24998 esac
24999 _ACEOF
25000
25001 cat >>$CONFIG_STATUS <<\_ACEOF
25002 # If the template does not know about datarootdir, expand it.
25003 # FIXME: This hack should be removed a few years after 2.60.
25004 ac_datarootdir_hack=; ac_datarootdir_seen=
25005
25006 case `sed -n '/datarootdir/ {
25007 p
25008 q
25009 }
25010 /@datadir@/p
25011 /@docdir@/p
25012 /@infodir@/p
25013 /@localedir@/p
25014 /@mandir@/p
25015 ' $ac_file_inputs` in
25016 *datarootdir*) ac_datarootdir_seen=yes;;
25017 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25018 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25019 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25020 _ACEOF
25021 cat >>$CONFIG_STATUS <<_ACEOF
25022 ac_datarootdir_hack='
25023 s&@datadir@&$datadir&g
25024 s&@docdir@&$docdir&g
25025 s&@infodir@&$infodir&g
25026 s&@localedir@&$localedir&g
25027 s&@mandir@&$mandir&g
25028 s&\\\${datarootdir}&$datarootdir&g' ;;
25029 esac
25030 _ACEOF
25031
25032 # Neutralize VPATH when `$srcdir' = `.'.
25033 # Shell code in configure.ac might set extrasub.
25034 # FIXME: do we really want to maintain this feature?
25035 cat >>$CONFIG_STATUS <<_ACEOF
25036 sed "$ac_vpsub
25037 $extrasub
25038 _ACEOF
25039 cat >>$CONFIG_STATUS <<\_ACEOF
25040 :t
25041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25042 s&@configure_input@&$configure_input&;t t
25043 s&@top_builddir@&$ac_top_builddir_sub&;t t
25044 s&@srcdir@&$ac_srcdir&;t t
25045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25046 s&@top_srcdir@&$ac_top_srcdir&;t t
25047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25048 s&@builddir@&$ac_builddir&;t t
25049 s&@abs_builddir@&$ac_abs_builddir&;t t
25050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25051 s&@INSTALL@&$ac_INSTALL&;t t
25052 $ac_datarootdir_hack
25053 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25054
25055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25058 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25059 which seems to be undefined. Please make sure it is defined." >&5
25060 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25061 which seems to be undefined. Please make sure it is defined." >&2;}
25062
25063 rm -f "$tmp/stdin"
25064 case $ac_file in
25065 -) cat "$tmp/out"; rm -f "$tmp/out";;
25066 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25067 esac
25068 ;;
25069 :H)
25070 #
25071 # CONFIG_HEADER
25072 #
25073 _ACEOF
25074
25075 # Transform confdefs.h into a sed script `conftest.defines', that
25076 # substitutes the proper values into config.h.in to produce config.h.
25077 rm -f conftest.defines conftest.tail
25078 # First, append a space to every undef/define line, to ease matching.
25079 echo 's/$/ /' >conftest.defines
25080 # Then, protect against being on the right side of a sed subst, or in
25081 # an unquoted here document, in config.status. If some macros were
25082 # called several times there might be several #defines for the same
25083 # symbol, which is useless. But do not sort them, since the last
25084 # AC_DEFINE must be honored.
25085 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25086 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25087 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25088 # PARAMS is the parameter list in the macro definition--in most cases, it's
25089 # just an empty string.
25090 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25091 ac_dB='\\)[ (].*,\\1define\\2'
25092 ac_dC=' '
25093 ac_dD=' ,'
25094
25095 uniq confdefs.h |
25096 sed -n '
25097 t rset
25098 :rset
25099 s/^[ ]*#[ ]*define[ ][ ]*//
25100 t ok
25101 d
25102 :ok
25103 s/[\\&,]/\\&/g
25104 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25105 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25106 ' >>conftest.defines
25107
25108 # Remove the space that was appended to ease matching.
25109 # Then replace #undef with comments. This is necessary, for
25110 # example, in the case of _POSIX_SOURCE, which is predefined and required
25111 # on some systems where configure will not decide to define it.
25112 # (The regexp can be short, since the line contains either #define or #undef.)
25113 echo 's/ $//
25114 s,^[ #]*u.*,/* & */,' >>conftest.defines
25115
25116 # Break up conftest.defines:
25117 ac_max_sed_lines=50
25118
25119 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25120 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25121 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25122 # et cetera.
25123 ac_in='$ac_file_inputs'
25124 ac_out='"$tmp/out1"'
25125 ac_nxt='"$tmp/out2"'
25126
25127 while :
25128 do
25129 # Write a here document:
25130 cat >>$CONFIG_STATUS <<_ACEOF
25131 # First, check the format of the line:
25132 cat >"\$tmp/defines.sed" <<\\CEOF
25133 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25134 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25135 b
25136 :def
25137 _ACEOF
25138 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25139 echo 'CEOF
25140 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25141 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25142 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25143 grep . conftest.tail >/dev/null || break
25144 rm -f conftest.defines
25145 mv conftest.tail conftest.defines
25146 done
25147 rm -f conftest.defines conftest.tail
25148
25149 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25150 cat >>$CONFIG_STATUS <<\_ACEOF
25151 if test x"$ac_file" != x-; then
25152 echo "/* $configure_input */" >"$tmp/config.h"
25153 cat "$ac_result" >>"$tmp/config.h"
25154 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25155 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25156 echo "$as_me: $ac_file is unchanged" >&6;}
25157 else
25158 rm -f $ac_file
25159 mv "$tmp/config.h" $ac_file
25160 fi
25161 else
25162 echo "/* $configure_input */"
25163 cat "$ac_result"
25164 fi
25165 rm -f "$tmp/out12"
25166 ;;
25167
25168 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25169 echo "$as_me: executing $ac_file commands" >&6;}
25170 ;;
25171 esac
25172
25173
25174 case $ac_file$ac_mode in
25175 "default":C)
25176
25177 ### Make the necessary directories, if they don't exist.
25178 for dir in etc lisp ; do
25179 test -d ${dir} || mkdir ${dir}
25180 done
25181
25182 # Build src/Makefile from ${srcdir}/src/Makefile.c
25183 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25184 # This must be done after src/config.h is built, since we rely on that file.
25185
25186 # Now get this: Some word that is part of the ${srcdir} directory name
25187 # or the ${configuration} value might, just might, happen to be an
25188 # identifier like `sun4' or `i386' or something, and be predefined by
25189 # the C preprocessor to some helpful value like 1, or maybe the empty
25190 # string. Needless to say consequent macro substitutions are less
25191 # than conducive to the makefile finding the correct directory.
25192 undefs="`echo $top_srcdir $configuration $canonical |
25193 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25194 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25195 `"
25196
25197 echo creating src/epaths.h
25198 ${MAKE-make} epaths-force
25199
25200 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25201 # `..' to `. .' unless invoked with -traditional
25202
25203 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25204 CPPFLAGS="$CPPFLAGS -traditional"
25205 fi
25206
25207 echo creating lib-src/Makefile
25208 ( cd lib-src
25209 rm -f junk.c junk1.c junk2.c
25210 sed -e '/start of cpp stuff/q' \
25211 < Makefile.c > junk1.c
25212 sed -e '1,/start of cpp stuff/d'\
25213 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25214 < Makefile.c > junk.c
25215 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25216 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25217 cat junk1.c junk2.c > Makefile.new
25218 rm -f junk.c junk1.c junk2.c
25219 chmod 444 Makefile.new
25220 mv -f Makefile.new Makefile
25221 )
25222
25223 echo creating src/Makefile
25224 ( cd src
25225 rm -f junk.c junk1.c junk2.c
25226 sed -e '/start of cpp stuff/q' \
25227 < Makefile.c > junk1.c
25228 sed -e '1,/start of cpp stuff/d'\
25229 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25230 < Makefile.c > junk.c
25231 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25232 echo creating ${srcdir}/admin/unidata/Makefile
25233 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25234 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25235 fi
25236 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25237 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25238 cat junk1.c junk2.c > Makefile.new
25239 rm -f junk.c junk1.c junk2.c
25240 chmod 444 Makefile.new
25241 mv -f Makefile.new Makefile
25242 )
25243
25244 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25245 echo creating src/.gdbinit
25246 echo source $srcdir/src/.gdbinit > src/.gdbinit
25247 fi
25248
25249 # This is how we know whether to re-run configure in certain cases.
25250 touch src/config.stamp
25251
25252 ;;
25253
25254 esac
25255 done # for ac_tag
25256
25257
25258 { (exit 0); exit 0; }
25259 _ACEOF
25260 chmod +x $CONFIG_STATUS
25261 ac_clean_files=$ac_clean_files_save
25262
25263
25264 # configure is writing to config.log, and then calls config.status.
25265 # config.status does its own redirection, appending to config.log.
25266 # Unfortunately, on DOS this fails, as config.log is still kept open
25267 # by configure, so config.status won't be able to write to it; its
25268 # output is simply discarded. So we exec the FD to /dev/null,
25269 # effectively closing config.log, so it can be properly (re)opened and
25270 # appended to by config.status. When coming back to configure, we
25271 # need to make the FD available again.
25272 if test "$no_create" != yes; then
25273 ac_cs_success=:
25274 ac_config_status_args=
25275 test "$silent" = yes &&
25276 ac_config_status_args="$ac_config_status_args --quiet"
25277 exec 5>/dev/null
25278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25279 exec 5>>config.log
25280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25281 # would make configure fail if this is the last instruction.
25282 $ac_cs_success || { (exit 1); exit 1; }
25283 fi
25284
25285