Regenerate.
[bpt/emacs.git] / 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.91.
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.91'
576 PACKAGE_STRING='emacs 23.0.91'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_config_libobj_dir=src
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 FONTCONFIG_CFLAGS
698 FONTCONFIG_LIBS
699 XFT_CFLAGS
700 XFT_LIBS
701 FREETYPE_CFLAGS
702 FREETYPE_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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP
756 XMKMF'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
886
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
895
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
899
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
906
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
911
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
917
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
924
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
929
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
934
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
941
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
946
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
953
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
958
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
962
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
966
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
970
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
979
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
984
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
991
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
998
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 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1015
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1020
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1025
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1029
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1035
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1046
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1051
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1056
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1063
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1068
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1071
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1074
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1083
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131 ;;
1132
1133 esac
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1140 fi
1141
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1147 do
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1156
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1163
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173 fi
1174
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178 test "$silent" = yes && exec 6>/dev/null
1179
1180
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1189
1190
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1221 fi
1222 else
1223 ac_srcdir_defaulted=no
1224 fi
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1229 fi
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1238 fi
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1251
1252 #
1253 # Report the --help message.
1254 #
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.91 to adapt to many kinds of systems.
1260
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1262
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1265
1266 Defaults for the options are specified in brackets.
1267
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1284
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1289
1290 For better control, use the options below.
1291
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1313
1314 cat <<\_ACEOF
1315
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1320
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.91:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful (and
1345 sometimes confusing) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search for lisp files
1348 specific to this site
1349 --disable-largefile omit support for large files
1350
1351 Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --without-pop don't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1361 motif, gtk, no)
1362 --without-xpm don't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-freetype don't use Freetype for local font support
1369 --without-xft don't use XFT for anti aliased fonts
1370 --without-libotf don't use libotf for OpenType font support
1371 --without-m17n-flt don't use m17n-flt for text shaping
1372 --without-toolkit-scroll-bars
1373 don't use Motif or Xaw3d scroll bars
1374 --without-xaw3d don't use Xaw3d
1375 --without-xim don't use X11 XIM
1376 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1377 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1378 console
1379 --without-dbus don't compile with D-Bus support
1380 --without-makeinfo don't require makeinfo for building manuals
1381
1382 --with-pkg-config-prog=PATH
1383 path to pkg-config for finding GTK and librsvg
1384 --with-gnustep-conf=PATH
1385 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1386 or /etc/GNUstep/GNUstep.conf
1387 --with-x use the X Window System
1388
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398 XMKMF Path to xmkmf, Makefile generator for X Window System
1399
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1402
1403 _ACEOF
1404 ac_status=$?
1405 fi
1406
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" || continue
1411 ac_builddir=.
1412
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *)
1416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1428
1429 case $srcdir in
1430 .) # We are building in place.
1431 ac_srcdir=.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1438 *) # Relative name.
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1453 else
1454 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 fi || ac_status=$?
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1457 done
1458 fi
1459
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462 cat <<\_ACEOF
1463 emacs configure 23.0.91
1464 generated by GNU Autoconf 2.61
1465
1466 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1467 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1472 fi
1473 cat >config.log <<_ACEOF
1474 This file contains any messages produced by compilers while
1475 running configure, to aid debugging if configure makes a mistake.
1476
1477 It was created by emacs $as_me 23.0.91, which was
1478 generated by GNU Autoconf 2.61. Invocation command line was
1479
1480 $ $0 $@
1481
1482 _ACEOF
1483 exec 5>>config.log
1484 {
1485 cat <<_ASUNAME
1486 ## --------- ##
1487 ## Platform. ##
1488 ## --------- ##
1489
1490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1495
1496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1498
1499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1506
1507 _ASUNAME
1508
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1511 do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 echo "PATH: $as_dir"
1515 done
1516 IFS=$as_save_IFS
1517
1518 } >&5
1519
1520 cat >&5 <<_ACEOF
1521
1522
1523 ## ----------- ##
1524 ## Core tests. ##
1525 ## ----------- ##
1526
1527 _ACEOF
1528
1529
1530 # Keep a trace of the command line.
1531 # Strip out --no-create and --no-recursion so they do not pile up.
1532 # Strip out --silent because we don't want to record it for future runs.
1533 # Also quote any args containing shell meta-characters.
1534 # Make two passes to allow for proper duplicate-argument suppression.
1535 ac_configure_args=
1536 ac_configure_args0=
1537 ac_configure_args1=
1538 ac_must_keep_next=false
1539 for ac_pass in 1 2
1540 do
1541 for ac_arg
1542 do
1543 case $ac_arg in
1544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1546 | -silent | --silent | --silen | --sile | --sil)
1547 continue ;;
1548 *\'*)
1549 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1550 esac
1551 case $ac_pass in
1552 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1553 2)
1554 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1555 if test $ac_must_keep_next = true; then
1556 ac_must_keep_next=false # Got value, back to normal.
1557 else
1558 case $ac_arg in
1559 *=* | --config-cache | -C | -disable-* | --disable-* \
1560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1562 | -with-* | --with-* | -without-* | --without-* | --x)
1563 case "$ac_configure_args0 " in
1564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1565 esac
1566 ;;
1567 -* ) ac_must_keep_next=true ;;
1568 esac
1569 fi
1570 ac_configure_args="$ac_configure_args '$ac_arg'"
1571 ;;
1572 esac
1573 done
1574 done
1575 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1576 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1577
1578 # When interrupted or exit'd, cleanup temporary files, and complete
1579 # config.log. We remove comments because anyway the quotes in there
1580 # would cause problems or look ugly.
1581 # WARNING: Use '\'' to represent an apostrophe within the trap.
1582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1583 trap 'exit_status=$?
1584 # Save into config.log some information that might help in debugging.
1585 {
1586 echo
1587
1588 cat <<\_ASBOX
1589 ## ---------------- ##
1590 ## Cache variables. ##
1591 ## ---------------- ##
1592 _ASBOX
1593 echo
1594 # The following way of writing the cache mishandles newlines in values,
1595 (
1596 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1597 eval ac_val=\$$ac_var
1598 case $ac_val in #(
1599 *${as_nl}*)
1600 case $ac_var in #(
1601 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1602 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1603 esac
1604 case $ac_var in #(
1605 _ | IFS | as_nl) ;; #(
1606 *) $as_unset $ac_var ;;
1607 esac ;;
1608 esac
1609 done
1610 (set) 2>&1 |
1611 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 *${as_nl}ac_space=\ *)
1613 sed -n \
1614 "s/'\''/'\''\\\\'\'''\''/g;
1615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1616 ;; #(
1617 *)
1618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 ;;
1620 esac |
1621 sort
1622 )
1623 echo
1624
1625 cat <<\_ASBOX
1626 ## ----------------- ##
1627 ## Output variables. ##
1628 ## ----------------- ##
1629 _ASBOX
1630 echo
1631 for ac_var in $ac_subst_vars
1632 do
1633 eval ac_val=\$$ac_var
1634 case $ac_val in
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 esac
1637 echo "$ac_var='\''$ac_val'\''"
1638 done | sort
1639 echo
1640
1641 if test -n "$ac_subst_files"; then
1642 cat <<\_ASBOX
1643 ## ------------------- ##
1644 ## File substitutions. ##
1645 ## ------------------- ##
1646 _ASBOX
1647 echo
1648 for ac_var in $ac_subst_files
1649 do
1650 eval ac_val=\$$ac_var
1651 case $ac_val in
1652 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 esac
1654 echo "$ac_var='\''$ac_val'\''"
1655 done | sort
1656 echo
1657 fi
1658
1659 if test -s confdefs.h; then
1660 cat <<\_ASBOX
1661 ## ----------- ##
1662 ## confdefs.h. ##
1663 ## ----------- ##
1664 _ASBOX
1665 echo
1666 cat confdefs.h
1667 echo
1668 fi
1669 test "$ac_signal" != 0 &&
1670 echo "$as_me: caught signal $ac_signal"
1671 echo "$as_me: exit $exit_status"
1672 } >&5
1673 rm -f core *.core core.conftest.* &&
1674 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1675 exit $exit_status
1676 ' 0
1677 for ac_signal in 1 2 13 15; do
1678 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1679 done
1680 ac_signal=0
1681
1682 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1683 rm -f -r conftest* confdefs.h
1684
1685 # Predefined preprocessor variables.
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_NAME "$PACKAGE_NAME"
1689 _ACEOF
1690
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1694 _ACEOF
1695
1696
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1699 _ACEOF
1700
1701
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_STRING "$PACKAGE_STRING"
1704 _ACEOF
1705
1706
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1709 _ACEOF
1710
1711
1712 # Let the site file select an alternate cache file if it wants to.
1713 # Prefer explicitly selected file to automatically selected ones.
1714 if test -n "$CONFIG_SITE"; then
1715 set x "$CONFIG_SITE"
1716 elif test "x$prefix" != xNONE; then
1717 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1718 else
1719 set x "$ac_default_prefix/share/config.site" \
1720 "$ac_default_prefix/etc/config.site"
1721 fi
1722 shift
1723 for ac_site_file
1724 do
1725 if test -r "$ac_site_file"; then
1726 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1727 echo "$as_me: loading site script $ac_site_file" >&6;}
1728 sed 's/^/| /' "$ac_site_file" >&5
1729 . "$ac_site_file"
1730 fi
1731 done
1732
1733 if test -r "$cache_file"; then
1734 # Some versions of bash will fail to source /dev/null (special
1735 # files actually), so we avoid doing that.
1736 if test -f "$cache_file"; then
1737 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1738 echo "$as_me: loading cache $cache_file" >&6;}
1739 case $cache_file in
1740 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1741 *) . "./$cache_file";;
1742 esac
1743 fi
1744 else
1745 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1746 echo "$as_me: creating cache $cache_file" >&6;}
1747 >$cache_file
1748 fi
1749
1750 ac_header_list="$ac_header_list sys/time.h"
1751 ac_header_list="$ac_header_list unistd.h"
1752 ac_func_list="$ac_func_list alarm"
1753 # Check that the precious variables saved in the cache have kept the same
1754 # value.
1755 ac_cache_corrupted=false
1756 for ac_var in $ac_precious_vars; do
1757 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1758 eval ac_new_set=\$ac_env_${ac_var}_set
1759 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1760 eval ac_new_val=\$ac_env_${ac_var}_value
1761 case $ac_old_set,$ac_new_set in
1762 set,)
1763 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1764 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1765 ac_cache_corrupted=: ;;
1766 ,set)
1767 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1768 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1769 ac_cache_corrupted=: ;;
1770 ,);;
1771 *)
1772 if test "x$ac_old_val" != "x$ac_new_val"; then
1773 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1774 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1775 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1776 echo "$as_me: former value: $ac_old_val" >&2;}
1777 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1778 echo "$as_me: current value: $ac_new_val" >&2;}
1779 ac_cache_corrupted=:
1780 fi;;
1781 esac
1782 # Pass precious variables to config.status.
1783 if test "$ac_new_set" = set; then
1784 case $ac_new_val in
1785 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 *) ac_arg=$ac_var=$ac_new_val ;;
1787 esac
1788 case " $ac_configure_args " in
1789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1790 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1791 esac
1792 fi
1793 done
1794 if $ac_cache_corrupted; then
1795 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1796 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1797 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1798 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1799 { (exit 1); exit 1; }; }
1800 fi
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826 ac_ext=c
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831
1832
1833 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1834
1835
1836
1837 test "$program_prefix" != NONE &&
1838 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1839 # Use a double $ so make ignores it.
1840 test "$program_suffix" != NONE &&
1841 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1842 # Double any \ or $. echo might interpret backslashes.
1843 # By default was `s,x,x', remove it if useless.
1844 cat <<\_ACEOF >conftest.sed
1845 s/[\\$]/&&/g;s/;s,x,x,$//
1846 _ACEOF
1847 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1848 rm -f conftest.sed
1849
1850
1851 lispdir='${datadir}/emacs/${version}/lisp'
1852 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1853 '${datadir}/emacs/site-lisp'
1854 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1855 etcdir='${datadir}/emacs/${version}/etc'
1856 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1857 docdir='${datadir}/emacs/${version}/etc'
1858 gamedir='${localstatedir}/games/emacs'
1859
1860 gameuser=games
1861
1862
1863
1864
1865 # Check whether --with-pop was given.
1866 if test "${with_pop+set}" = set; then
1867 withval=$with_pop;
1868 else
1869 with_pop=yes
1870 fi
1871
1872 if test "$with_pop" = yes; then
1873 cat >>confdefs.h <<\_ACEOF
1874 #define MAIL_USE_POP 1
1875 _ACEOF
1876
1877 fi
1878
1879
1880
1881 # Check whether --with-kerberos was given.
1882 if test "${with_kerberos+set}" = set; then
1883 withval=$with_kerberos;
1884 else
1885 with_kerberos=no
1886 fi
1887
1888 if test "$with_kerberos" != no; then
1889 cat >>confdefs.h <<\_ACEOF
1890 #define KERBEROS 1
1891 _ACEOF
1892
1893 fi
1894
1895
1896
1897 # Check whether --with-kerberos5 was given.
1898 if test "${with_kerberos5+set}" = set; then
1899 withval=$with_kerberos5;
1900 else
1901 with_kerberos5=no
1902 fi
1903
1904 if test "${with_kerberos5}" != no; then
1905 if test "${with_kerberos}" = no; then
1906 with_kerberos=yes
1907 cat >>confdefs.h <<\_ACEOF
1908 #define KERBEROS 1
1909 _ACEOF
1910
1911 fi
1912
1913 cat >>confdefs.h <<\_ACEOF
1914 #define KERBEROS5 1
1915 _ACEOF
1916
1917 fi
1918
1919
1920 # Check whether --with-hesiod was given.
1921 if test "${with_hesiod+set}" = set; then
1922 withval=$with_hesiod;
1923 else
1924 with_hesiod=no
1925 fi
1926
1927 if test "$with_hesiod" != no; then
1928
1929 cat >>confdefs.h <<\_ACEOF
1930 #define HESIOD 1
1931 _ACEOF
1932
1933 fi
1934
1935
1936 # Check whether --with-sound was given.
1937 if test "${with_sound+set}" = set; then
1938 withval=$with_sound;
1939 else
1940 with_sound=yes
1941 fi
1942
1943
1944
1945 # Check whether --with-sync-input was given.
1946 if test "${with_sync_input+set}" = set; then
1947 withval=$with_sync_input;
1948 else
1949 with_sync_input=yes
1950 fi
1951
1952 if test "$with_sync_input" = yes; then
1953
1954 cat >>confdefs.h <<\_ACEOF
1955 #define SYNC_INPUT 1
1956 _ACEOF
1957
1958 fi
1959
1960
1961 # Check whether --with-x-toolkit was given.
1962 if test "${with_x_toolkit+set}" = set; then
1963 withval=$with_x_toolkit; case "${withval}" in
1964 y | ye | yes ) val=gtk ;;
1965 n | no ) val=no ;;
1966 l | lu | luc | luci | lucid ) val=lucid ;;
1967 a | at | ath | athe | athen | athena ) val=athena ;;
1968 m | mo | mot | moti | motif ) val=motif ;;
1969 g | gt | gtk ) val=gtk ;;
1970 * )
1971 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1972 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1973 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1974 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1975 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1976 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1977 { (exit 1); exit 1; }; }
1978 ;;
1979 esac
1980 with_x_toolkit=$val
1981
1982 fi
1983
1984
1985
1986 # Check whether --with-xpm was given.
1987 if test "${with_xpm+set}" = set; then
1988 withval=$with_xpm;
1989 else
1990 with_xpm=yes
1991 fi
1992
1993
1994 # Check whether --with-jpeg was given.
1995 if test "${with_jpeg+set}" = set; then
1996 withval=$with_jpeg;
1997 else
1998 with_jpeg=yes
1999 fi
2000
2001
2002 # Check whether --with-tiff was given.
2003 if test "${with_tiff+set}" = set; then
2004 withval=$with_tiff;
2005 else
2006 with_tiff=yes
2007 fi
2008
2009
2010 # Check whether --with-gif was given.
2011 if test "${with_gif+set}" = set; then
2012 withval=$with_gif;
2013 else
2014 with_gif=yes
2015 fi
2016
2017
2018 # Check whether --with-png was given.
2019 if test "${with_png+set}" = set; then
2020 withval=$with_png;
2021 else
2022 with_png=yes
2023 fi
2024
2025
2026 # Check whether --with-rsvg was given.
2027 if test "${with_rsvg+set}" = set; then
2028 withval=$with_rsvg;
2029 else
2030 with_rsvg=yes
2031 fi
2032
2033
2034
2035 # Check whether --with-freetype was given.
2036 if test "${with_freetype+set}" = set; then
2037 withval=$with_freetype;
2038 else
2039 with_freetype=yes
2040 fi
2041
2042
2043 # Check whether --with-xft was given.
2044 if test "${with_xft+set}" = set; then
2045 withval=$with_xft;
2046 else
2047 with_xft=yes
2048 fi
2049
2050
2051 # Check whether --with-libotf was given.
2052 if test "${with_libotf+set}" = set; then
2053 withval=$with_libotf;
2054 else
2055 with_libotf=yes
2056 fi
2057
2058
2059 # Check whether --with-m17n-flt was given.
2060 if test "${with_m17n_flt+set}" = set; then
2061 withval=$with_m17n_flt;
2062 else
2063 with_m17n_flt=yes
2064 fi
2065
2066
2067
2068 # Check whether --with-toolkit-scroll-bars was given.
2069 if test "${with_toolkit_scroll_bars+set}" = set; then
2070 withval=$with_toolkit_scroll_bars;
2071 else
2072 with_toolkit_scroll_bars=yes
2073 fi
2074
2075
2076 # Check whether --with-xaw3d was given.
2077 if test "${with_xaw3d+set}" = set; then
2078 withval=$with_xaw3d;
2079 else
2080 with_xaw3d=yes
2081 fi
2082
2083
2084 # Check whether --with-xim was given.
2085 if test "${with_xim+set}" = set; then
2086 withval=$with_xim;
2087 else
2088 with_xim=yes
2089 fi
2090
2091
2092 # Check whether --with-ns was given.
2093 if test "${with_ns+set}" = set; then
2094 withval=$with_ns;
2095 else
2096 with_ns=no
2097 fi
2098
2099
2100
2101 # Check whether --with-gpm was given.
2102 if test "${with_gpm+set}" = set; then
2103 withval=$with_gpm;
2104 else
2105 with_gpm=yes
2106 fi
2107
2108
2109 # Check whether --with-dbus was given.
2110 if test "${with_dbus+set}" = set; then
2111 withval=$with_dbus;
2112 else
2113 with_dbus=yes
2114 fi
2115
2116
2117 ## For the times when you want to build Emacs but don't have
2118 ## a suitable makeinfo, and can live without the manuals.
2119
2120 # Check whether --with-makeinfo was given.
2121 if test "${with_makeinfo+set}" = set; then
2122 withval=$with_makeinfo;
2123 else
2124 with_makeinfo=yes
2125 fi
2126
2127
2128
2129 # Check whether --with-gtk was given.
2130 if test "${with_gtk+set}" = set; then
2131 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2132 specify a toolkit." >&5
2133 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&2;}
2135 { (exit 1); exit 1; }; }
2136 fi
2137
2138
2139
2140 # Check whether --with-gcc was given.
2141 if test "${with_gcc+set}" = set; then
2142 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2143 variable to specify a compiler." >&5
2144 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi
2148
2149
2150
2151 # Check whether --with-pkg-config-prog was given.
2152 if test "${with_pkg_config_prog+set}" = set; then
2153 withval=$with_pkg_config_prog;
2154 fi
2155
2156 if test "X${with_pkg_config_prog}" != X; then
2157 if test "${with_pkg_config_prog}" != yes; then
2158 PKG_CONFIG="${with_pkg_config_prog}"
2159 fi
2160 fi
2161
2162
2163 # Check whether --with-gnustep-conf was given.
2164 if test "${with_gnustep_conf+set}" = set; then
2165 withval=$with_gnustep_conf;
2166 fi
2167
2168 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2169 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2170 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2171 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2172
2173 # Check whether --enable-ns-self-contained was given.
2174 if test "${enable_ns_self_contained+set}" = set; then
2175 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2176 else
2177 EN_NS_SELF_CONTAINED=yes
2178 fi
2179
2180
2181 # Check whether --enable-asserts was given.
2182 if test "${enable_asserts+set}" = set; then
2183 enableval=$enable_asserts; USE_XASSERTS=$enableval
2184 else
2185 USE_XASSERTS=no
2186 fi
2187
2188
2189 # Check whether --enable-maintainer-mode was given.
2190 if test "${enable_maintainer_mode+set}" = set; then
2191 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2192 else
2193 USE_MAINTAINER_MODE=no
2194 fi
2195
2196 if test $USE_MAINTAINER_MODE = yes; then
2197 MAINT=
2198 else
2199 MAINT=#
2200 fi
2201
2202
2203 # Check whether --enable-locallisppath was given.
2204 if test "${enable_locallisppath+set}" = set; then
2205 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2206 locallisppath=
2207 elif test "${enableval}" != "yes"; then
2208 locallisppath=${enableval}
2209 fi
2210 fi
2211
2212
2213 #### Make srcdir absolute, if it isn't already. It's important to
2214 #### avoid running the path through pwd unnecessarily, since pwd can
2215 #### give you automounter prefixes, which can go away. We do all this
2216 #### so Emacs can find its files when run uninstalled.
2217 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2218 unset CDPATH
2219 case "${srcdir}" in
2220 /* ) ;;
2221 . )
2222 ## We may be able to use the $PWD environment variable to make this
2223 ## absolute. But sometimes PWD is inaccurate.
2224 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2225 ## but that tested only for a well-formed and valid PWD,
2226 ## it did not object when PWD was well-formed and valid but just wrong.
2227 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2228 then
2229 srcdir="$PWD"
2230 else
2231 srcdir="`(cd ${srcdir}; pwd)`"
2232 fi
2233 ;;
2234 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2235 esac
2236
2237 #### Check if the source directory already has a configured system in it.
2238 if test `pwd` != `(cd ${srcdir} && pwd)` \
2239 && test -f "${srcdir}/src/config.h" ; then
2240 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2241 as a build directory right now; it has been configured in its own
2242 right. To configure in another directory as well, you MUST
2243 use GNU make. If you do not have GNU make, then you must
2244 now do \`make distclean' in ${srcdir},
2245 and then run $0 again." >&5
2246 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2247 as a build directory right now; it has been configured in its own
2248 right. To configure in another directory as well, you MUST
2249 use GNU make. If you do not have GNU make, then you must
2250 now do \`make distclean' in ${srcdir},
2251 and then run $0 again." >&2;}
2252 fi
2253
2254 #### Given the configuration name, set machfile and opsysfile to the
2255 #### names of the m/*.h and s/*.h files we should use.
2256
2257 ### Canonicalize the configuration name.
2258
2259 ac_aux_dir=
2260 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2261 if test -f "$ac_dir/install-sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 break
2265 elif test -f "$ac_dir/install.sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 break
2269 elif test -f "$ac_dir/shtool"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/shtool install -c"
2272 break
2273 fi
2274 done
2275 if test -z "$ac_aux_dir"; then
2276 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2277 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2278 { (exit 1); exit 1; }; }
2279 fi
2280
2281 # These three variables are undocumented and unsupported,
2282 # and are intended to be withdrawn in a future Autoconf release.
2283 # They can cause serious problems if a builder's source tree is in a directory
2284 # whose full name contains unusual characters.
2285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2288
2289
2290 # Make sure we can run config.sub.
2291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2292 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2293 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2294 { (exit 1); exit 1; }; }
2295
2296 { echo "$as_me:$LINENO: checking build system type" >&5
2297 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2298 if test "${ac_cv_build+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 ac_build_alias=$build_alias
2302 test "x$ac_build_alias" = x &&
2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2304 test "x$ac_build_alias" = x &&
2305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2307 { (exit 1); exit 1; }; }
2308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2309 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2310 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2311 { (exit 1); exit 1; }; }
2312
2313 fi
2314 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2315 echo "${ECHO_T}$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2317 *-*-*) ;;
2318 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2319 echo "$as_me: error: invalid value of canonical build" >&2;}
2320 { (exit 1); exit 1; }; };;
2321 esac
2322 build=$ac_cv_build
2323 ac_save_IFS=$IFS; IFS='-'
2324 set x $ac_cv_build
2325 shift
2326 build_cpu=$1
2327 build_vendor=$2
2328 shift; shift
2329 # Remember, the first character of IFS is used to create $*,
2330 # except with old shells:
2331 build_os=$*
2332 IFS=$ac_save_IFS
2333 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2334
2335
2336 { echo "$as_me:$LINENO: checking host system type" >&5
2337 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2338 if test "${ac_cv_host+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test "x$host_alias" = x; then
2342 ac_cv_host=$ac_cv_build
2343 else
2344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2345 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2346 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2347 { (exit 1); exit 1; }; }
2348 fi
2349
2350 fi
2351 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2352 echo "${ECHO_T}$ac_cv_host" >&6; }
2353 case $ac_cv_host in
2354 *-*-*) ;;
2355 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2356 echo "$as_me: error: invalid value of canonical host" >&2;}
2357 { (exit 1); exit 1; }; };;
2358 esac
2359 host=$ac_cv_host
2360 ac_save_IFS=$IFS; IFS='-'
2361 set x $ac_cv_host
2362 shift
2363 host_cpu=$1
2364 host_vendor=$2
2365 shift; shift
2366 # Remember, the first character of IFS is used to create $*,
2367 # except with old shells:
2368 host_os=$*
2369 IFS=$ac_save_IFS
2370 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2371
2372
2373 canonical=$host
2374 configuration=${host_alias-${build_alias-$host}}
2375
2376
2377
2378 ### If you add support for a new configuration, add code to this
2379 ### switch statement to recognize your configuration name and select
2380 ### the appropriate operating system and machine description files.
2381
2382 ### You would hope that you could choose an m/*.h file pretty much
2383 ### based on the machine portion of the configuration name, and an s-
2384 ### file based on the operating system portion. However, it turns out
2385 ### that each m/*.h file is pretty manufacturer-specific - for
2386 ### example mips.h is MIPS
2387 ### So we basically have to have a special case for each
2388 ### configuration name.
2389 ###
2390 ### As far as handling version numbers on operating systems is
2391 ### concerned, make sure things will fail in a fixable way. If
2392 ### /etc/MACHINES doesn't say anything about version numbers, be
2393 ### prepared to handle anything reasonably. If version numbers
2394 ### matter, be sure /etc/MACHINES says something about it.
2395 ###
2396 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2397 ### "System V Release 4"; he writes, "The old convention encouraged
2398 ### confusion between `system' and `release' levels'."
2399
2400 machine='' opsys='' unported=no
2401 case "${canonical}" in
2402
2403 ## FreeBSD ports
2404 *-*-freebsd* )
2405 opsys=freebsd
2406 case "${canonical}" in
2407 alpha*-*-freebsd*) machine=alpha ;;
2408 arm*-*-freebsd*) machine=arm ;;
2409 ia64-*-freebsd*) machine=ia64 ;;
2410 sparc-*-freebsd*) machine=sparc ;;
2411 sparc64-*-freebsd*) machine=sparc ;;
2412 powerpc-*-freebsd*) machine=macppc ;;
2413 i[3456]86-*-freebsd*) machine=intel386 ;;
2414 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2415 esac
2416 ;;
2417
2418 ## FreeBSD kernel + glibc based userland
2419 *-*-kfreebsd*gnu* )
2420 opsys=gnu-kfreebsd
2421 case "${canonical}" in
2422 alpha*-*-kfreebsd*) machine=alpha ;;
2423 ia64-*-kfreebsd*) machine=ia64 ;;
2424 sparc-*-kfreebsd*) machine=sparc ;;
2425 sparc64-*-kfreebsd*) machine=sparc ;;
2426 powerpc-*-kfreebsd*) machine=macppc ;;
2427 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2428 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2429 esac
2430 ;;
2431
2432 ## NetBSD ports
2433 *-*-netbsd* )
2434 opsys=netbsd
2435 if test -f /usr/lib/crti.o; then
2436
2437 cat >>confdefs.h <<\_ACEOF
2438 #define HAVE_CRTIN
2439 _ACEOF
2440
2441 fi
2442
2443 case "${canonical}" in
2444 alpha*-*-netbsd*) machine=alpha ;;
2445 i[3456]86-*-netbsd*) machine=intel386 ;;
2446 powerpc-*-netbsd*) machine=macppc ;;
2447 sparc*-*-netbsd*) machine=sparc ;;
2448 vax-*-netbsd*) machine=vax ;;
2449 arm-*-netbsd*) machine=arm ;;
2450 x86_64-*-netbsd*) machine=amdx86-64 ;;
2451 hppa-*-netbsd*) machine=hp800 ;;
2452 m68k-*-netbsd*) machine=m68k ;;
2453 esac
2454 ;;
2455
2456 ## OpenBSD ports
2457 *-*-openbsd* )
2458 opsys=openbsd
2459 case "${canonical}" in
2460 alpha*-*-openbsd*) machine=alpha ;;
2461 arm-*-openbsd*) machine=arm ;;
2462 i386-*-openbsd*) machine=intel386 ;;
2463 powerpc-*-openbsd*) machine=macppc ;;
2464 sparc*-*-openbsd*) machine=sparc ;;
2465 vax-*-openbsd*) machine=vax ;;
2466 x86_64-*-openbsd*) machine=amdx86-64 ;;
2467 hppa-*-openbsd*) machine=hp800 ;;
2468 esac
2469 ;;
2470
2471 ## LynxOS ports
2472 *-*-lynxos* )
2473 opsys=lynxos
2474 case "${canonical}" in
2475 i[3456]86-*-lynxos*) machine=intel386 ;;
2476 powerpc-*-lynxos*) machine=powerpc ;;
2477 esac
2478 ;;
2479
2480 alpha*-*-linux-gnu* )
2481 machine=alpha opsys=gnu-linux
2482 ;;
2483
2484 arm*-*-linux-gnu* )
2485 machine=arm opsys=gnu-linux
2486 ;;
2487
2488 ## Apple Darwin / Mac OS X
2489 *-apple-darwin* )
2490 case "${canonical}" in
2491 i[3456]86-* ) machine=intel386 ;;
2492 powerpc-* ) machine=macppc ;;
2493 * ) unported=yes ;;
2494 esac
2495 opsys=darwin
2496 # Define CPP as follows to make autoconf work correctly.
2497 CPP="${CC-cc} -E -no-cpp-precomp"
2498 # Use fink packages if available.
2499 if test -d /sw/include && test -d /sw/lib; then
2500 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2501 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2502 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2503 fi
2504 ;;
2505
2506 ## HP 9000 series 700 and 800, running HP/UX
2507 hppa*-hp-hpux10.2* )
2508 machine=hp800 opsys=hpux10-20
2509 ;;
2510 hppa*-hp-hpux1[1-9]* )
2511 machine=hp800 opsys=hpux11
2512 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2513 ;;
2514
2515 hppa*-*-linux-gnu* )
2516 machine=hp800 opsys=gnu-linux
2517 ;;
2518
2519 ## IBM machines
2520 s390-*-linux-gnu* )
2521 machine=ibms390 opsys=gnu-linux
2522 ;;
2523 s390x-*-linux-gnu* )
2524 machine=ibms390x opsys=gnu-linux
2525 ;;
2526 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2527 machine=ibmrs6000 opsys=aix4-2
2528 ;;
2529 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2530 machine=ibmrs6000 opsys=aix4-2
2531 ;;
2532 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2533 machine=ibmrs6000 opsys=aix4-2
2534 ;;
2535 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2536 machine=ibmrs6000 opsys=aix4-2
2537 ;;
2538
2539 ## Macintosh PowerPC
2540 powerpc*-*-linux-gnu* )
2541 machine=macppc opsys=gnu-linux
2542 ;;
2543
2544 ## Silicon Graphics machines
2545 ## Iris 4D
2546 mips-sgi-irix6.5 )
2547 machine=iris4d opsys=irix6-5
2548 # Without defining _LANGUAGE_C, things get masked out in the headers
2549 # so that, for instance, grepping for `free' in stdlib.h fails and
2550 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2551 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2552 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2553 ;;
2554
2555 ## Suns
2556 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2557 machine=sparc opsys=gnu-linux
2558 ;;
2559
2560 *-sun-solaris* \
2561 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2562 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2563 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2564 case "${canonical}" in
2565 i[3456]86-*-* ) machine=intel386 ;;
2566 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2567 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2568 sparc* ) machine=sparc ;;
2569 * ) unported=yes ;;
2570 esac
2571 case "${canonical}" in
2572 *-sunos5.3* | *-solaris2.3* )
2573 opsys=sol2-3
2574 NON_GNU_CPP=/usr/ccs/lib/cpp
2575 ;;
2576 *-sunos5.4* | *-solaris2.4* )
2577 opsys=sol2-4
2578 NON_GNU_CPP=/usr/ccs/lib/cpp
2579 RANLIB="ar -ts"
2580 ;;
2581 *-sunos5.5* | *-solaris2.5* )
2582 opsys=sol2-5
2583 NON_GNU_CPP=/usr/ccs/lib/cpp
2584 RANLIB="ar -ts"
2585 ;;
2586 *-sunos5.6* | *-solaris2.6* )
2587 opsys=sol2-6
2588 NON_GNU_CPP=/usr/ccs/lib/cpp
2589 RANLIB="ar -ts"
2590 ;;
2591 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2592 opsys=sol2-6
2593 emacs_check_sunpro_c=yes
2594 NON_GNU_CPP=/usr/ccs/lib/cpp
2595 ;;
2596 *-sunos5* | *-solaris* )
2597 opsys=sol2-10
2598 emacs_check_sunpro_c=yes
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 ;;
2601 esac
2602 ## Watch out for a compiler that we know will not work.
2603 case "${canonical}" in
2604 *-solaris* | *-sunos5* )
2605 if [ "x$CC" = x/usr/ucb/cc ]; then
2606 ## /usr/ucb/cc doesn't work;
2607 ## we should find some other compiler that does work.
2608 unset CC
2609 fi
2610 ;;
2611 *) ;;
2612 esac
2613 ;;
2614
2615 ## Vaxen.
2616 vax-dec-* )
2617 machine=vax
2618 case "${canonical}" in
2619 *-vms* ) opsys=vms ;;
2620 * ) unported=yes
2621 esac
2622 ;;
2623
2624 ## IA-64
2625 ia64*-*-linux* )
2626 machine=ia64 opsys=gnu-linux
2627 ;;
2628
2629 ## Intel 386 machines where we don't care about the manufacturer
2630 i[3456]86-*-* )
2631 machine=intel386
2632 case "${canonical}" in
2633 *-cygwin ) opsys=cygwin ;;
2634 *-darwin* ) opsys=darwin
2635 CPP="${CC-cc} -E -no-cpp-precomp"
2636 ;;
2637 *-linux-gnu* ) opsys=gnu-linux ;;
2638 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2639 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2641 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2642 esac
2643 ;;
2644
2645 ## m68k Linux-based GNU system
2646 m68k-*-linux-gnu* )
2647 machine=m68k opsys=gnu-linux
2648 ;;
2649
2650 ## Mips Linux-based GNU system
2651 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2652 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2653 machine=mips opsys=gnu-linux
2654 ;;
2655
2656 ## AMD x86-64 Linux-based GNU system
2657 x86_64-*-linux-gnu* )
2658 machine=amdx86-64 opsys=gnu-linux
2659 ;;
2660
2661 ## Tensilica Xtensa Linux-based GNU system
2662 xtensa*-*-linux-gnu* )
2663 machine=xtensa opsys=gnu-linux
2664 ;;
2665
2666 ## SuperH Linux-based GNU system
2667 sh[34]*-*-linux-gnu* )
2668 machine=sh3 opsys=gnu-linux
2669 ;;
2670
2671 * )
2672 unported=yes
2673 ;;
2674 esac
2675
2676 ### If the code above didn't choose an operating system, just choose
2677 ### an operating system based on the configuration name. You really
2678 ### only want to use this when you have no idea what the right
2679 ### operating system is; if you know what operating systems a machine
2680 ### runs, it's cleaner to make it explicit in the case statement
2681 ### above.
2682 if test x"${opsys}" = x; then
2683 case "${canonical}" in
2684 *-gnu* ) opsys=gnu ;;
2685 *-sysv4.2uw* ) opsys=unixware ;;
2686 *-sysv5uw* ) opsys=unixware ;;
2687 *-sysv5OpenUNIX* ) opsys=unixware ;;
2688 *-sysv4.1* | *-sysvr4.1* )
2689 NON_GNU_CPP=/usr/lib/cpp
2690 opsys=usg5-4 ;;
2691 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2692 if [ x$NON_GNU_CPP = x ]; then
2693 if [ -f /usr/ccs/lib/cpp ]; then
2694 NON_GNU_CPP=/usr/ccs/lib/cpp
2695 else
2696 NON_GNU_CPP=/lib/cpp
2697 fi
2698 fi
2699 opsys=usg5-4-2 ;;
2700 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2701 * )
2702 unported=yes
2703 ;;
2704 esac
2705 fi
2706
2707
2708
2709 if test $unported = yes; then
2710 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2711 Check \`etc/MACHINES' for recognized configuration names." >&5
2712 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2713 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2714 { (exit 1); exit 1; }; }
2715 fi
2716
2717 machfile="m/${machine}.h"
2718 opsysfile="s/${opsys}.h"
2719
2720
2721 #### Choose a compiler.
2722 test -n "$CC" && cc_specified=yes
2723
2724 # Save the value of CFLAGS that the user specified.
2725 SPECIFIED_CFLAGS="$CFLAGS"
2726
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762 { echo "$as_me:$LINENO: result: $CC" >&5
2763 echo "${ECHO_T}$CC" >&6; }
2764 else
2765 { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2767 fi
2768
2769
2770 fi
2771 if test -z "$ac_cv_prog_CC"; then
2772 ac_ct_CC=$CC
2773 # Extract the first word of "gcc", so it can be a program name with args.
2774 set dummy gcc; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_ac_ct_CC="gcc"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if test -n "$ac_ct_CC"; then
2802 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2803 echo "${ECHO_T}$ac_ct_CC" >&6; }
2804 else
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2807 fi
2808
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2815 whose name does not start with the host triplet. If you think this
2816 configuration is useful to you, please write to autoconf@gnu.org." >&5
2817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822 CC=$ac_ct_CC
2823 fi
2824 else
2825 CC="$ac_cv_prog_CC"
2826 fi
2827
2828 if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}cc; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="${ac_tool_prefix}cc"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6; }
2861 else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867 fi
2868 fi
2869 if test -z "$CC"; then
2870 # Extract the first word of "cc", so it can be a program name with args.
2871 set dummy cc; ac_word=$2
2872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 ac_prog_rejected=no
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889 ac_prog_rejected=yes
2890 continue
2891 fi
2892 ac_cv_prog_CC="cc"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2903 shift
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2908 shift
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2910 fi
2911 fi
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { echo "$as_me:$LINENO: result: $CC" >&5
2917 echo "${ECHO_T}$CC" >&6; }
2918 else
2919 { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 for ac_prog in cl.exe
2928 do
2929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { echo "$as_me:$LINENO: result: $CC" >&5
2959 echo "${ECHO_T}$CC" >&6; }
2960 else
2961 { echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6; }
2963 fi
2964
2965
2966 test -n "$CC" && break
2967 done
2968 fi
2969 if test -z "$CC"; then
2970 ac_ct_CC=$CC
2971 for ac_prog in cl.exe
2972 do
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_CC="$ac_prog"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3003 echo "${ECHO_T}$ac_ct_CC" >&6; }
3004 else
3005 { echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6; }
3007 fi
3008
3009
3010 test -n "$ac_ct_CC" && break
3011 done
3012
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet. If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&5
3021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet. If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3024 ac_tool_warned=yes ;;
3025 esac
3026 CC=$ac_ct_CC
3027 fi
3028 fi
3029
3030 fi
3031
3032
3033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: no acceptable C compiler found in \$PATH
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038
3039 # Provide some information about the compiler.
3040 echo "$as_me:$LINENO: checking for C compiler version" >&5
3041 ac_compiler=`set X $ac_compile; echo $2`
3042 { (ac_try="$ac_compiler --version >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler --version >&5") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (ac_try="$ac_compiler -v >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler -v >&5") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062 { (ac_try="$ac_compiler -V >&5"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compiler -V >&5") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }
3072
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079
3080 int
3081 main ()
3082 {
3083
3084 ;
3085 return 0;
3086 }
3087 _ACEOF
3088 ac_clean_files_save=$ac_clean_files
3089 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3090 # Try to create an executable without -o first, disregard a.out.
3091 # It will help us diagnose broken compilers, and finding out an intuition
3092 # of exeext.
3093 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3094 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3095 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3096 #
3097 # List of possible output files, starting from the most likely.
3098 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3099 # only as a last resort. b.out is created by i960 compilers.
3100 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3101 #
3102 # The IRIX 6 linker writes into existing files which may not be
3103 # executable, retaining their permissions. Remove them first so a
3104 # subsequent execution test works.
3105 ac_rmfiles=
3106 for ac_file in $ac_files
3107 do
3108 case $ac_file in
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3110 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3111 esac
3112 done
3113 rm -f $ac_rmfiles
3114
3115 if { (ac_try="$ac_link_default"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_link_default") 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; then
3125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3128 # so that the user can short-circuit this test for compilers unknown to
3129 # Autoconf.
3130 for ac_file in $ac_files ''
3131 do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3135 ;;
3136 [ab].out )
3137 # We found the default executable, but exeext='' is most
3138 # certainly right.
3139 break;;
3140 *.* )
3141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142 then :; else
3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 fi
3145 # We set ac_cv_exeext here because the later test for it is not
3146 # safe: cross compilers may not add the suffix if given an `-o'
3147 # argument, so we may need to know it at that point already.
3148 # Even if this section looks crufty: it has the advantage of
3149 # actually working.
3150 break;;
3151 * )
3152 break;;
3153 esac
3154 done
3155 test "$ac_cv_exeext" = no && ac_cv_exeext=
3156
3157 else
3158 ac_file=''
3159 fi
3160
3161 { echo "$as_me:$LINENO: result: $ac_file" >&5
3162 echo "${ECHO_T}$ac_file" >&6; }
3163 if test -z "$ac_file"; then
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3166
3167 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: C compiler cannot create executables
3170 See \`config.log' for more details." >&2;}
3171 { (exit 77); exit 77; }; }
3172 fi
3173
3174 ac_exeext=$ac_cv_exeext
3175
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3181 # If not cross compiling, check that we can run a simple program.
3182 if test "$cross_compiling" != yes; then
3183 if { ac_try='./$ac_file'
3184 { (case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_try") 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 cross_compiling=no
3194 else
3195 if test "$cross_compiling" = maybe; then
3196 cross_compiling=yes
3197 else
3198 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3199 If you meant to cross compile, use \`--host'.
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3205 fi
3206 fi
3207 fi
3208 { echo "$as_me:$LINENO: result: yes" >&5
3209 echo "${ECHO_T}yes" >&6; }
3210
3211 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3212 ac_clean_files=$ac_clean_files_save
3213 # Check that the compiler produces executables we can run. If not, either
3214 # the compiler is broken, or we cross compile.
3215 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3216 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3217 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3218 echo "${ECHO_T}$cross_compiling" >&6; }
3219
3220 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3221 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3222 if { (ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_link") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; then
3232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3234 # work properly (i.e., refer to `conftest.exe'), while it won't with
3235 # `rm'.
3236 for ac_file in conftest.exe conftest conftest.*; do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 break;;
3242 * ) break;;
3243 esac
3244 done
3245 else
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3251 fi
3252
3253 rm -f conftest$ac_cv_exeext
3254 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3255 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3256
3257 rm -f conftest.$ac_ext
3258 EXEEXT=$ac_cv_exeext
3259 ac_exeext=$EXEEXT
3260 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3262 if test "${ac_cv_objext+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3271
3272 int
3273 main ()
3274 {
3275
3276 ;
3277 return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.o conftest.obj
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; then
3291 for ac_file in conftest.o conftest.obj conftest.*; do
3292 test -f "$ac_file" || continue;
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 break;;
3297 esac
3298 done
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3306 See \`config.log' for more details." >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 fi
3312 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3313 echo "${ECHO_T}$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331 #ifndef __GNUC__
3332 choke me
3333 #endif
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest.$ac_objext; then
3356 ac_compiler_gnu=yes
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 ac_compiler_gnu=no
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366
3367 fi
3368 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3370 GCC=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_cc_g+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3380 ac_cv_prog_cc_g=no
3381 CFLAGS="-g"
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3414 ac_cv_prog_cc_g=yes
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 CFLAGS=""
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426
3427 int
3428 main ()
3429 {
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3452 :
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && {
3488 test -z "$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 } && test -s conftest.$ac_objext; then
3491 ac_cv_prog_cc_g=yes
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_c_werror_flag=$ac_save_c_werror_flag
3507 fi
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS=$ac_save_CFLAGS
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3514 CFLAGS="-g -O2"
3515 else
3516 CFLAGS="-g"
3517 fi
3518 else
3519 if test "$GCC" = yes; then
3520 CFLAGS="-O2"
3521 else
3522 CFLAGS=
3523 fi
3524 fi
3525 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3526 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_cc_c89+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 ac_cv_prog_cc_c89=no
3531 ac_save_CC=$CC
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <stdarg.h>
3539 #include <stdio.h>
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3546 char **p;
3547 int i;
3548 {
3549 return p[i];
3550 }
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3552 {
3553 char *s;
3554 va_list v;
3555 va_start (v,p);
3556 s = g (p, va_arg (v,int));
3557 va_end (v);
3558 return s;
3559 }
3560
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562 function prototypes and stuff, but not '\xHH' hex character constants.
3563 These don't provoke an error unfortunately, instead are silently treated
3564 as 'x'. The following induces an error, until -std is added to get
3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566 array size at least. It's necessary to write '\x00'==0 to get something
3567 that's true only with -std. */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3569
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571 inside strings and character constants. */
3572 #define FOO(x) 'x'
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3574
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 int argc;
3580 char **argv;
3581 int
3582 main ()
3583 {
3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591 do
3592 CC="$ac_save_CC $ac_arg"
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3610 ac_cv_prog_cc_c89=$ac_arg
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615
3616 fi
3617
3618 rm -f core conftest.err conftest.$ac_objext
3619 test "x$ac_cv_prog_cc_c89" != "xno" && break
3620 done
3621 rm -f conftest.$ac_ext
3622 CC=$ac_save_CC
3623
3624 fi
3625 # AC_CACHE_VAL
3626 case "x$ac_cv_prog_cc_c89" in
3627 x)
3628 { echo "$as_me:$LINENO: result: none needed" >&5
3629 echo "${ECHO_T}none needed" >&6; } ;;
3630 xno)
3631 { echo "$as_me:$LINENO: result: unsupported" >&5
3632 echo "${ECHO_T}unsupported" >&6; } ;;
3633 *)
3634 CC="$CC $ac_cv_prog_cc_c89"
3635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3636 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3637 esac
3638
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649 CPP=
3650 fi
3651
3652 ## If not using gcc, and on Solaris, and no CPP specified, see if
3653 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3654 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3655 test x"$CPP" = x; then
3656 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3657 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3658
3659 if test "${emacs_cv_sunpro_c+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672 #ifndef __SUNPRO_C
3673 fail;
3674 #endif
3675
3676 ;
3677 return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.$ac_objext conftest$ac_exeext
3681 if { (ac_try="$ac_link"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_link") 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest$ac_exeext &&
3697 $as_test_x conftest$ac_exeext; then
3698 emacs_cv_sunpro_c=yes
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 emacs_cv_sunpro_c=no
3704 fi
3705
3706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3707 conftest$ac_exeext conftest.$ac_ext
3708 fi
3709
3710 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3711 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3712
3713 if test x"$emacs_cv_sunpro_c" = xyes; then
3714 NON_GNU_CPP="$CC -E -Xs"
3715 fi
3716 fi
3717
3718 #### Some systems specify a CPP to use unless we are using GCC.
3719 #### Now that we know whether we are using GCC, we can decide whether
3720 #### to use that one.
3721 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3722 then
3723 CPP="$NON_GNU_CPP"
3724 fi
3725
3726 #### Some systems specify a CC to use unless we are using GCC.
3727 #### Now that we know whether we are using GCC, we can decide whether
3728 #### to use that one.
3729 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3730 test x$cc_specified != xyes
3731 then
3732 CC="$NON_GNU_CC"
3733 fi
3734
3735 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3736 then
3737 CC="$CC $GCC_TEST_OPTIONS"
3738 fi
3739
3740 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3741 then
3742 CC="$CC $NON_GCC_TEST_OPTIONS"
3743 fi
3744
3745
3746 cat >>confdefs.h <<\_ACEOF
3747 #define _GNU_SOURCE 1
3748 _ACEOF
3749
3750
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3758 # On Suns, sometimes $CPP names a directory.
3759 if test -n "$CPP" && test -d "$CPP"; then
3760 CPP=
3761 fi
3762 if test -z "$CPP"; then
3763 if test "${ac_cv_prog_CPP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 # Double quotes because CPP needs to be expanded
3767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768 do
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3771 do
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #ifdef __STDC__
3785 # include <limits.h>
3786 #else
3787 # include <assert.h>
3788 #endif
3789 Syntax error
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } >/dev/null && {
3804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3805 test ! -s conftest.err
3806 }; then
3807 :
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 # Broken: fails on valid input.
3813 continue
3814 fi
3815
3816 rm -f conftest.err conftest.$ac_ext
3817
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <ac_nonexistent.h>
3827 _ACEOF
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null && {
3841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 }; then
3844 # Broken: success on invalid input.
3845 continue
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861 break
3862 fi
3863
3864 done
3865 ac_cv_prog_CPP=$CPP
3866
3867 fi
3868 CPP=$ac_cv_prog_CPP
3869 else
3870 ac_cv_prog_CPP=$CPP
3871 fi
3872 { echo "$as_me:$LINENO: result: $CPP" >&5
3873 echo "${ECHO_T}$CPP" >&6; }
3874 ac_preproc_ok=false
3875 for ac_c_preproc_warn_flag in '' yes
3876 do
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #ifdef __STDC__
3890 # include <limits.h>
3891 #else
3892 # include <assert.h>
3893 #endif
3894 Syntax error
3895 _ACEOF
3896 if { (ac_try="$ac_cpp conftest.$ac_ext"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null && {
3909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 }; then
3912 :
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 # Broken: fails on valid input.
3918 continue
3919 fi
3920
3921 rm -f conftest.err conftest.$ac_ext
3922
3923 # OK, works on sane cases. Now check whether nonexistent headers
3924 # can be detected and how.
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <ac_nonexistent.h>
3932 _ACEOF
3933 if { (ac_try="$ac_cpp conftest.$ac_ext"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null && {
3946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 }; then
3949 # Broken: success on invalid input.
3950 continue
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 # Passes both tests.
3956 ac_preproc_ok=:
3957 break
3958 fi
3959
3960 rm -f conftest.err conftest.$ac_ext
3961
3962 done
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then
3966 :
3967 else
3968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3969 See \`config.log' for more details." >&5
3970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3971 See \`config.log' for more details." >&2;}
3972 { (exit 1); exit 1; }; }
3973 fi
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
3981
3982 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3983 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 # Extract the first word of "grep ggrep" to use in msg output
3988 if test -z "$GREP"; then
3989 set dummy grep ggrep; ac_prog_name=$2
3990 if test "${ac_cv_path_GREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in grep ggrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004 # Check for GNU ac_path_GREP and select it if it is found.
4005 # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 *)
4010 ac_count=0
4011 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4012 while :
4013 do
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 echo 'GREP' >> "conftest.nl"
4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 ac_count=`expr $ac_count + 1`
4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_GREP="$ac_path_GREP"
4024 ac_path_GREP_max=$ac_count
4025 fi
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032
4033 $ac_path_GREP_found && break 3
4034 done
4035 done
4036
4037 done
4038 IFS=$as_save_IFS
4039
4040
4041 fi
4042
4043 GREP="$ac_cv_path_GREP"
4044 if test -z "$GREP"; then
4045 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4046 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4047 { (exit 1); exit 1; }; }
4048 fi
4049
4050 else
4051 ac_cv_path_GREP=$GREP
4052 fi
4053
4054
4055 fi
4056 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4057 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4058 GREP="$ac_cv_path_GREP"
4059
4060
4061 { echo "$as_me:$LINENO: checking for egrep" >&5
4062 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4067 then ac_cv_path_EGREP="$GREP -E"
4068 else
4069 # Extract the first word of "egrep" to use in msg output
4070 if test -z "$EGREP"; then
4071 set dummy egrep; ac_prog_name=$2
4072 if test "${ac_cv_path_EGREP+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 ac_path_EGREP_found=false
4076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_prog in egrep; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4085 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4086 # Check for GNU ac_path_EGREP and select it if it is found.
4087 # Check for GNU $ac_path_EGREP
4088 case `"$ac_path_EGREP" --version 2>&1` in
4089 *GNU*)
4090 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4091 *)
4092 ac_count=0
4093 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4094 while :
4095 do
4096 cat "conftest.in" "conftest.in" >"conftest.tmp"
4097 mv "conftest.tmp" "conftest.in"
4098 cp "conftest.in" "conftest.nl"
4099 echo 'EGREP' >> "conftest.nl"
4100 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102 ac_count=`expr $ac_count + 1`
4103 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4104 # Best one so far, save it but keep looking for a better one
4105 ac_cv_path_EGREP="$ac_path_EGREP"
4106 ac_path_EGREP_max=$ac_count
4107 fi
4108 # 10*(2^10) chars as input seems more than enough
4109 test $ac_count -gt 10 && break
4110 done
4111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 esac
4113
4114
4115 $ac_path_EGREP_found && break 3
4116 done
4117 done
4118
4119 done
4120 IFS=$as_save_IFS
4121
4122
4123 fi
4124
4125 EGREP="$ac_cv_path_EGREP"
4126 if test -z "$EGREP"; then
4127 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4128 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4129 { (exit 1); exit 1; }; }
4130 fi
4131
4132 else
4133 ac_cv_path_EGREP=$EGREP
4134 fi
4135
4136
4137 fi
4138 fi
4139 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4140 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4142
4143
4144
4145 { echo "$as_me:$LINENO: checking for AIX" >&5
4146 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #ifdef _AIX
4154 yes
4155 #endif
4156
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "yes" >/dev/null 2>&1; then
4160 { echo "$as_me:$LINENO: result: yes" >&5
4161 echo "${ECHO_T}yes" >&6; }
4162 cat >>confdefs.h <<\_ACEOF
4163 #define _ALL_SOURCE 1
4164 _ACEOF
4165
4166 else
4167 { echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6; }
4169 fi
4170 rm -f conftest*
4171
4172
4173 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4175 if test "${ac_cv_header_stdc+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #include <stdlib.h>
4185 #include <stdarg.h>
4186 #include <string.h>
4187 #include <float.h>
4188
4189 int
4190 main ()
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_compile") 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && {
4211 test -z "$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 } && test -s conftest.$ac_objext; then
4214 ac_cv_header_stdc=yes
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 ac_cv_header_stdc=no
4220 fi
4221
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223
4224 if test $ac_cv_header_stdc = yes; then
4225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 #include <string.h>
4233
4234 _ACEOF
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "memchr" >/dev/null 2>&1; then
4237 :
4238 else
4239 ac_cv_header_stdc=no
4240 fi
4241 rm -f conftest*
4242
4243 fi
4244
4245 if test $ac_cv_header_stdc = yes; then
4246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <stdlib.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then
4258 :
4259 else
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then
4269 :
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <ctype.h>
4278 #include <stdlib.h>
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282 #else
4283 # define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #endif
4289
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291 int
4292 main ()
4293 {
4294 int i;
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4298 return 2;
4299 return 0;
4300 }
4301 _ACEOF
4302 rm -f conftest$ac_exeext
4303 if { (ac_try="$ac_link"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_link") 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313 { (case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_try") 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4322 :
4323 else
4324 echo "$as_me: program exited with status $ac_status" >&5
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 ( exit $ac_status )
4329 ac_cv_header_stdc=no
4330 fi
4331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4332 fi
4333
4334
4335 fi
4336 fi
4337 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4339 if test $ac_cv_header_stdc = yes; then
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define STDC_HEADERS 1
4343 _ACEOF
4344
4345 fi
4346
4347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4358 inttypes.h stdint.h unistd.h
4359 do
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 $ac_includes_default
4373
4374 #include <$ac_header>
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 eval "$as_ac_Header=yes"
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 eval "$as_ac_Header=no"
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 fi
4403 ac_res=`eval echo '${'$as_ac_Header'}'`
4404 { echo "$as_me:$LINENO: result: $ac_res" >&5
4405 echo "${ECHO_T}$ac_res" >&6; }
4406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409 _ACEOF
4410
4411 fi
4412
4413 done
4414
4415
4416 if test "${ac_cv_header_minix_config_h+set}" = set; then
4417 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4418 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4419 if test "${ac_cv_header_minix_config_h+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 fi
4422 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4423 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4424 else
4425 # Is the header compilable?
4426 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4427 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h. */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 $ac_includes_default
4435 #include <minix/config.h>
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (ac_try="$ac_compile"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_compile") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } && {
4451 test -z "$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 } && test -s conftest.$ac_objext; then
4454 ac_header_compiler=yes
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459 ac_header_compiler=no
4460 fi
4461
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4464 echo "${ECHO_T}$ac_header_compiler" >&6; }
4465
4466 # Is the header present?
4467 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4468 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <minix/config.h>
4476 _ACEOF
4477 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null && {
4490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 }; then
4493 ac_header_preproc=yes
4494 else
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 ac_header_preproc=no
4499 fi
4500
4501 rm -f conftest.err conftest.$ac_ext
4502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4503 echo "${ECHO_T}$ac_header_preproc" >&6; }
4504
4505 # So? What about this header?
4506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4507 yes:no: )
4508 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4509 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4511 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4512 ac_header_preproc=yes
4513 ;;
4514 no:yes:* )
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4516 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4518 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4520 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4522 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4524 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4526 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4527
4528 ;;
4529 esac
4530 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4531 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4532 if test "${ac_cv_header_minix_config_h+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 ac_cv_header_minix_config_h=$ac_header_preproc
4536 fi
4537 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4538 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4539
4540 fi
4541 if test $ac_cv_header_minix_config_h = yes; then
4542 MINIX=yes
4543 else
4544 MINIX=
4545 fi
4546
4547
4548 if test "$MINIX" = yes; then
4549
4550 cat >>confdefs.h <<\_ACEOF
4551 #define _POSIX_SOURCE 1
4552 _ACEOF
4553
4554
4555 cat >>confdefs.h <<\_ACEOF
4556 #define _POSIX_1_SOURCE 2
4557 _ACEOF
4558
4559
4560 cat >>confdefs.h <<\_ACEOF
4561 #define _MINIX 1
4562 _ACEOF
4563
4564 fi
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4577 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4578 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587
4588 # define __EXTENSIONS__ 1
4589 $ac_includes_default
4590 int
4591 main ()
4592 {
4593
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_compile") 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest.$ac_objext; then
4615 ac_cv_safe_to_define___extensions__=yes
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_cv_safe_to_define___extensions__=no
4621 fi
4622
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 fi
4625 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4626 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4627 test $ac_cv_safe_to_define___extensions__ = yes &&
4628 cat >>confdefs.h <<\_ACEOF
4629 #define __EXTENSIONS__ 1
4630 _ACEOF
4631
4632 cat >>confdefs.h <<\_ACEOF
4633 #define _POSIX_PTHREAD_SEMANTICS 1
4634 _ACEOF
4635
4636 cat >>confdefs.h <<\_ACEOF
4637 #define _TANDEM_SOURCE 1
4638 _ACEOF
4639
4640
4641
4642 ### Use -Wno-pointer-sign if the compiler supports it
4643 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4644 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4645 SAVE_CFLAGS="$CFLAGS"
4646 CFLAGS="$CFLAGS -Wno-pointer-sign"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653
4654 int
4655 main ()
4656 {
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (ac_try="$ac_compile"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 has_option=yes
4680 else
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 has_option=no
4685 fi
4686
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 if test $has_option = yes; then
4689 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4690 fi
4691 { echo "$as_me:$LINENO: result: $has_option" >&5
4692 echo "${ECHO_T}$has_option" >&6; }
4693 CFLAGS="$SAVE_CFLAGS"
4694 unset has_option
4695 unset SAVE_CFLAGS
4696
4697 #### Some other nice autoconf tests.
4698
4699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4701 LN_S=$as_ln_s
4702 if test "$LN_S" = "ln -s"; then
4703 { echo "$as_me:$LINENO: result: yes" >&5
4704 echo "${ECHO_T}yes" >&6; }
4705 else
4706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4707 echo "${ECHO_T}no, using $LN_S" >&6; }
4708 fi
4709
4710 ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4716 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4717 # On Suns, sometimes $CPP names a directory.
4718 if test -n "$CPP" && test -d "$CPP"; then
4719 CPP=
4720 fi
4721 if test -z "$CPP"; then
4722 if test "${ac_cv_prog_CPP+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 # Double quotes because CPP needs to be expanded
4726 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4727 do
4728 ac_preproc_ok=false
4729 for ac_c_preproc_warn_flag in '' yes
4730 do
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748 Syntax error
4749 _ACEOF
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null && {
4763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 }; then
4766 :
4767 else
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771 # Broken: fails on valid input.
4772 continue
4773 fi
4774
4775 rm -f conftest.err conftest.$ac_ext
4776
4777 # OK, works on sane cases. Now check whether nonexistent headers
4778 # can be detected and how.
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <ac_nonexistent.h>
4786 _ACEOF
4787 if { (ac_try="$ac_cpp conftest.$ac_ext"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null && {
4800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 }; then
4803 # Broken: success on invalid input.
4804 continue
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 # Passes both tests.
4810 ac_preproc_ok=:
4811 break
4812 fi
4813
4814 rm -f conftest.err conftest.$ac_ext
4815
4816 done
4817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4818 rm -f conftest.err conftest.$ac_ext
4819 if $ac_preproc_ok; then
4820 break
4821 fi
4822
4823 done
4824 ac_cv_prog_CPP=$CPP
4825
4826 fi
4827 CPP=$ac_cv_prog_CPP
4828 else
4829 ac_cv_prog_CPP=$CPP
4830 fi
4831 { echo "$as_me:$LINENO: result: $CPP" >&5
4832 echo "${ECHO_T}$CPP" >&6; }
4833 ac_preproc_ok=false
4834 for ac_c_preproc_warn_flag in '' yes
4835 do
4836 # Use a header file that comes with gcc, so configuring glibc
4837 # with a fresh cross-compiler works.
4838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4839 # <limits.h> exists even on freestanding compilers.
4840 # On the NeXT, cc -E runs the code through the compiler's parser,
4841 # not just through cpp. "Syntax error" is here to catch this case.
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #ifdef __STDC__
4849 # include <limits.h>
4850 #else
4851 # include <assert.h>
4852 #endif
4853 Syntax error
4854 _ACEOF
4855 if { (ac_try="$ac_cpp conftest.$ac_ext"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null && {
4868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4869 test ! -s conftest.err
4870 }; then
4871 :
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 # Broken: fails on valid input.
4877 continue
4878 fi
4879
4880 rm -f conftest.err conftest.$ac_ext
4881
4882 # OK, works on sane cases. Now check whether nonexistent headers
4883 # can be detected and how.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4891 _ACEOF
4892 if { (ac_try="$ac_cpp conftest.$ac_ext"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev/null && {
4905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 }; then
4908 # Broken: success on invalid input.
4909 continue
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 # Passes both tests.
4915 ac_preproc_ok=:
4916 break
4917 fi
4918
4919 rm -f conftest.err conftest.$ac_ext
4920
4921 done
4922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4923 rm -f conftest.err conftest.$ac_ext
4924 if $ac_preproc_ok; then
4925 :
4926 else
4927 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4928 See \`config.log' for more details." >&5
4929 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4930 See \`config.log' for more details." >&2;}
4931 { (exit 1); exit 1; }; }
4932 fi
4933
4934 ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940 # Find a good install program. We prefer a C program (faster),
4941 # so one script is as good as another. But avoid the broken or
4942 # incompatible versions:
4943 # SysV /etc/install, /usr/sbin/install
4944 # SunOS /usr/etc/install
4945 # IRIX /sbin/install
4946 # AIX /bin/install
4947 # AmigaOS /C/install, which installs bootblocks on floppy discs
4948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4951 # OS/2's system install, which has a completely different semantic
4952 # ./install, which can be erroneously created by make from ./install.sh.
4953 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4954 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4955 if test -z "$INSTALL"; then
4956 if test "${ac_cv_path_install+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 # Account for people who put trailing slashes in PATH elements.
4965 case $as_dir/ in
4966 ./ | .// | /cC/* | \
4967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4968 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4969 /usr/ucb/* ) ;;
4970 *)
4971 # OSF1 and SCO ODT 3.0 have their own names for install.
4972 # Don't use installbsd from OSF since it installs stuff as root
4973 # by default.
4974 for ac_prog in ginstall scoinst install; do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4977 if test $ac_prog = install &&
4978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4979 # AIX install. It has an incompatible calling convention.
4980 :
4981 elif test $ac_prog = install &&
4982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4983 # program-specific install script used by HP pwplus--don't use.
4984 :
4985 else
4986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4987 break 3
4988 fi
4989 fi
4990 done
4991 done
4992 ;;
4993 esac
4994 done
4995 IFS=$as_save_IFS
4996
4997
4998 fi
4999 if test "${ac_cv_path_install+set}" = set; then
5000 INSTALL=$ac_cv_path_install
5001 else
5002 # As a last resort, use the slow shell script. Don't cache a
5003 # value for INSTALL within a source directory, because that will
5004 # break other packages using the cache if that directory is
5005 # removed, or if the value is a relative name.
5006 INSTALL=$ac_install_sh
5007 fi
5008 fi
5009 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5010 echo "${ECHO_T}$INSTALL" >&6; }
5011
5012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5013 # It thinks the first close brace ends the variable substitution.
5014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5015
5016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5017
5018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5019
5020 if test "x$RANLIB" = x; then
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5026 if test "${ac_cv_prog_RANLIB+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 if test -n "$RANLIB"; then
5030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 RANLIB=$ac_cv_prog_RANLIB
5050 if test -n "$RANLIB"; then
5051 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5052 echo "${ECHO_T}$RANLIB" >&6; }
5053 else
5054 { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5056 fi
5057
5058
5059 fi
5060 if test -z "$ac_cv_prog_RANLIB"; then
5061 ac_ct_RANLIB=$RANLIB
5062 # Extract the first word of "ranlib", so it can be a program name with args.
5063 set dummy ranlib; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 if test -n "$ac_ct_RANLIB"; then
5070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_RANLIB="ranlib"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5090 if test -n "$ac_ct_RANLIB"; then
5091 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5092 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5093 else
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5096 fi
5097
5098 if test "x$ac_ct_RANLIB" = x; then
5099 RANLIB=":"
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet. If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet. If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111 RANLIB=$ac_ct_RANLIB
5112 fi
5113 else
5114 RANLIB="$ac_cv_prog_RANLIB"
5115 fi
5116
5117 fi
5118 # Extract the first word of "install-info", so it can be a program name with args.
5119 set dummy install-info; ac_word=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 case $INSTALL_INFO in
5126 [\\/]* | ?:[\\/]*)
5127 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5128 ;;
5129 *)
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 ;;
5146 esac
5147 fi
5148 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5149 if test -n "$INSTALL_INFO"; then
5150 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5151 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5152 else
5153 { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5155 fi
5156
5157
5158 # Extract the first word of "install-info", so it can be a program name with args.
5159 set dummy install-info; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 case $INSTALL_INFO in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in /usr/sbin
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5183 IFS=$as_save_IFS
5184
5185 ;;
5186 esac
5187 fi
5188 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5189 if test -n "$INSTALL_INFO"; then
5190 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5191 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5192 else
5193 { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5195 fi
5196
5197
5198 # Extract the first word of "install-info", so it can be a program name with args.
5199 set dummy install-info; ac_word=$2
5200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 case $INSTALL_INFO in
5206 [\\/]* | ?:[\\/]*)
5207 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5208 ;;
5209 *)
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in /sbin
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5226 ;;
5227 esac
5228 fi
5229 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5230 if test -n "$INSTALL_INFO"; then
5231 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5232 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5233 else
5234 { echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6; }
5236 fi
5237
5238
5239 # Extract the first word of "gzip", so it can be a program name with args.
5240 set dummy gzip; ac_word=$2
5241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5243 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 case $GZIP_PROG in
5247 [\\/]* | ?:[\\/]*)
5248 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5249 ;;
5250 *)
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 ;;
5267 esac
5268 fi
5269 GZIP_PROG=$ac_cv_path_GZIP_PROG
5270 if test -n "$GZIP_PROG"; then
5271 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5272 echo "${ECHO_T}$GZIP_PROG" >&6; }
5273 else
5274 { echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6; }
5276 fi
5277
5278
5279
5280
5281 ## Need makeinfo >= 4.6 (?) to build the manuals.
5282 # Extract the first word of "makeinfo", so it can be a program name with args.
5283 set dummy makeinfo; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 case $MAKEINFO in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5292 ;;
5293 *)
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305 done
5306 done
5307 IFS=$as_save_IFS
5308
5309 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5310 ;;
5311 esac
5312 fi
5313 MAKEINFO=$ac_cv_path_MAKEINFO
5314 if test -n "$MAKEINFO"; then
5315 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5316 echo "${ECHO_T}$MAKEINFO" >&6; }
5317 else
5318 { echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6; }
5320 fi
5321
5322
5323 if test "$MAKEINFO" != "no" && \
5324 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
5325 MAKEINFO=no
5326 fi
5327
5328 ## Makeinfo is unusual. For a released Emacs, the manuals are
5329 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5330 ## therefore in the category of "special tools" not normally required, which
5331 ## configure does not have to check for (eg autoconf itself).
5332 ## In a CVS checkout on the other hand, the manuals are not included.
5333 ## So makeinfo is a requirement to build from CVS, and configure
5334 ## should test for it as it does for any other build requirement.
5335 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5336 ## with pre-built manuals, from a CVS checkout.
5337 if test "$MAKEINFO" = "no"; then
5338 if test "x${with_makeinfo}" = "xno"; then
5339 MAKEINFO=off
5340 elif ! test -e $srcdir/info/emacs; then
5341 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5342 source tree does not seem to have pre-built manuals in the \`info' directory.
5343 Either install a suitable version of makeinfo, or re-run configure
5344 with the \`--without-makeinfo' option to build without the manuals. " >&5
5345 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5346 source tree does not seem to have pre-built manuals in the \`info' directory.
5347 Either install a suitable version of makeinfo, or re-run configure
5348 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5349 { (exit 1); exit 1; }; }
5350 fi
5351 fi
5352
5353
5354 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5355 then
5356 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5357 fi
5358
5359 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5360 then
5361 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5362 fi
5363
5364
5365 late_LDFLAGS=$LDFLAGS
5366 if test "$GCC" = yes; then
5367 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5368 else
5369 LDFLAGS="$LDFLAGS -znocombreloc"
5370 fi
5371
5372 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5373 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5374 cat >conftest.$ac_ext <<_ACEOF
5375 main(){return 0;}
5376 _ACEOF
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (ac_try="$ac_link"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_link") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest$ac_exeext &&
5394 $as_test_x conftest$ac_exeext; then
5395 { echo "$as_me:$LINENO: result: yes" >&5
5396 echo "${ECHO_T}yes" >&6; }
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5400
5401 LDFLAGS=$late_LDFLAGS
5402 { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5404 fi
5405
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5408
5409 #### Extract some information from the operating system and machine files.
5410
5411 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5412 - which libraries the lib-src programs will want, and
5413 - whether the GNU malloc routines are usable..." >&5
5414 echo "$as_me: checking the machine- and system-dependent files to find out
5415 - which libraries the lib-src programs will want, and
5416 - whether the GNU malloc routines are usable..." >&6;}
5417
5418 ### First figure out CFLAGS (which we use for running the compiler here)
5419 ### and REAL_CFLAGS (which we use for real compilation).
5420 ### The two are the same except on a few systems, where they are made
5421 ### different to work around various lossages. For example,
5422 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5423 ### as implying static linking.
5424
5425 ### If the CFLAGS env var is specified, we use that value
5426 ### instead of the default.
5427
5428 ### It's not important that this name contain the PID; you can't run
5429 ### two configures in the same directory and have anything work
5430 ### anyway.
5431 tempcname="conftest.c"
5432
5433 echo '
5434 #include "'${srcdir}'/src/'${opsysfile}'"
5435 #include "'${srcdir}'/src/'${machfile}'"
5436 #ifndef LIBS_MACHINE
5437 #define LIBS_MACHINE
5438 #endif
5439 #ifndef LIBS_SYSTEM
5440 #define LIBS_SYSTEM
5441 #endif
5442 #ifndef C_SWITCH_SYSTEM
5443 #define C_SWITCH_SYSTEM
5444 #endif
5445 #ifndef C_SWITCH_MACHINE
5446 #define C_SWITCH_MACHINE
5447 #endif
5448 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5449 configure___ c_switch_system=C_SWITCH_SYSTEM
5450 configure___ c_switch_machine=C_SWITCH_MACHINE
5451
5452 #ifndef LIB_X11_LIB
5453 #define LIB_X11_LIB -lX11
5454 #endif
5455
5456 #ifndef LIBX11_SYSTEM
5457 #define LIBX11_SYSTEM
5458 #endif
5459 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5460
5461 #ifdef UNEXEC
5462 configure___ unexec=UNEXEC
5463 #else
5464 configure___ unexec=unexec.o
5465 #endif
5466
5467 #ifdef SYSTEM_MALLOC
5468 configure___ system_malloc=yes
5469 #else
5470 configure___ system_malloc=no
5471 #endif
5472
5473 #ifdef USE_MMAP_FOR_BUFFERS
5474 configure___ use_mmap_for_buffers=yes
5475 #else
5476 configure___ use_mmap_for_buffers=no
5477 #endif
5478
5479 #ifndef C_DEBUG_SWITCH
5480 #define C_DEBUG_SWITCH -g
5481 #endif
5482
5483 #ifndef C_OPTIMIZE_SWITCH
5484 #ifdef __GNUC__
5485 #define C_OPTIMIZE_SWITCH -O2
5486 #else
5487 #define C_OPTIMIZE_SWITCH -O
5488 #endif
5489 #endif
5490
5491 #ifndef C_WARNINGS_SWITCH
5492 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5493 #endif
5494
5495 #ifndef LD_SWITCH_MACHINE
5496 #define LD_SWITCH_MACHINE
5497 #endif
5498
5499 #ifndef LD_SWITCH_SYSTEM
5500 #define LD_SWITCH_SYSTEM
5501 #endif
5502
5503 #ifndef LD_SWITCH_X_SITE_AUX
5504 #define LD_SWITCH_X_SITE_AUX
5505 #endif
5506
5507 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5508 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5509
5510 #ifdef THIS_IS_CONFIGURE
5511
5512 /* Get the CFLAGS for tests in configure. */
5513 #ifdef __GNUC__
5514 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5515 #else
5516 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5517 #endif
5518
5519 #else /* not THIS_IS_CONFIGURE */
5520
5521 /* Get the CFLAGS for real compilation. */
5522 #ifdef __GNUC__
5523 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5524 #else
5525 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5526 #endif
5527
5528 #endif /* not THIS_IS_CONFIGURE */
5529 ' > ${tempcname}
5530
5531 # The value of CPP is a quoted variable reference, so we need to do this
5532 # to get its actual value...
5533 CPP=`eval "echo $CPP"`
5534 eval `${CPP} -Isrc ${tempcname} \
5535 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5536 if test "x$SPECIFIED_CFLAGS" = x; then
5537 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5538 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5539 else
5540 REAL_CFLAGS="$CFLAGS"
5541 fi
5542 rm ${tempcname}
5543
5544 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5545
5546 ### Make sure subsequent tests use flags consistent with the build flags.
5547
5548 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5549 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5550 else
5551 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5552 fi
5553
5554
5555
5556 # Check whether --enable-largefile was given.
5557 if test "${enable_largefile+set}" = set; then
5558 enableval=$enable_largefile;
5559 fi
5560
5561 if test "$enable_largefile" != no; then
5562
5563 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5564 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5565 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 ac_cv_sys_largefile_CC=no
5569 if test "$GCC" != yes; then
5570 ac_save_CC=$CC
5571 while :; do
5572 # IRIX 6.2 and later do not support large files by default,
5573 # so use the C compiler's -n32 option if that helps.
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <sys/types.h>
5581 /* Check that off_t can represent 2**63 - 1 correctly.
5582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5583 since some C++ compilers masquerading as C compilers
5584 incorrectly reject 9223372036854775807. */
5585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5587 && LARGE_OFF_T % 2147483647 == 1)
5588 ? 1 : -1];
5589 int
5590 main ()
5591 {
5592
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 break
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext
5623 CC="$CC -n32"
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_cv_sys_largefile_CC=' -n32'; break
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646
5647 fi
5648
5649 rm -f core conftest.err conftest.$ac_objext
5650 break
5651 done
5652 CC=$ac_save_CC
5653 rm -f conftest.$ac_ext
5654 fi
5655 fi
5656 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5657 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5658 if test "$ac_cv_sys_largefile_CC" != no; then
5659 CC=$CC$ac_cv_sys_largefile_CC
5660 fi
5661
5662 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5663 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5664 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 while :; do
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5682 ? 1 : -1];
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_cv_sys_file_offset_bits=no; break
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713
5714 fi
5715
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723 #define _FILE_OFFSET_BITS 64
5724 #include <sys/types.h>
5725 /* Check that off_t can represent 2**63 - 1 correctly.
5726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5727 since some C++ compilers masquerading as C compilers
5728 incorrectly reject 9223372036854775807. */
5729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5731 && LARGE_OFF_T % 2147483647 == 1)
5732 ? 1 : -1];
5733 int
5734 main ()
5735 {
5736
5737 ;
5738 return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext
5742 if { (ac_try="$ac_compile"
5743 case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && {
5755 test -z "$ac_c_werror_flag" ||
5756 test ! -s conftest.err
5757 } && test -s conftest.$ac_objext; then
5758 ac_cv_sys_file_offset_bits=64; break
5759 else
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763
5764 fi
5765
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 ac_cv_sys_file_offset_bits=unknown
5768 break
5769 done
5770 fi
5771 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5772 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5773 case $ac_cv_sys_file_offset_bits in #(
5774 no | unknown) ;;
5775 *)
5776 cat >>confdefs.h <<_ACEOF
5777 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5778 _ACEOF
5779 ;;
5780 esac
5781 rm -f conftest*
5782 if test $ac_cv_sys_file_offset_bits = unknown; then
5783 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5784 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5785 if test "${ac_cv_sys_large_files+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788 while :; do
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #include <sys/types.h>
5796 /* Check that off_t can represent 2**63 - 1 correctly.
5797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5798 since some C++ compilers masquerading as C compilers
5799 incorrectly reject 9223372036854775807. */
5800 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5802 && LARGE_OFF_T % 2147483647 == 1)
5803 ? 1 : -1];
5804 int
5805 main ()
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
5829 ac_cv_sys_large_files=no; break
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834
5835 fi
5836
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #define _LARGE_FILES 1
5845 #include <sys/types.h>
5846 /* Check that off_t can represent 2**63 - 1 correctly.
5847 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5848 since some C++ compilers masquerading as C compilers
5849 incorrectly reject 9223372036854775807. */
5850 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5851 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5852 && LARGE_OFF_T % 2147483647 == 1)
5853 ? 1 : -1];
5854 int
5855 main ()
5856 {
5857
5858 ;
5859 return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 ac_cv_sys_large_files=1; break
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884
5885 fi
5886
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_sys_large_files=unknown
5889 break
5890 done
5891 fi
5892 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5893 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5894 case $ac_cv_sys_large_files in #(
5895 no | unknown) ;;
5896 *)
5897 cat >>confdefs.h <<_ACEOF
5898 #define _LARGE_FILES $ac_cv_sys_large_files
5899 _ACEOF
5900 ;;
5901 esac
5902 rm -f conftest*
5903 fi
5904 fi
5905
5906
5907
5908 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5909 ### be located in either /usr/lib64 or /usr/lib.
5910 ### In some rare cases, /usr/lib64 exists but does not contain the
5911 ### relevant files (bug#1287). Hence test for crtn.o.
5912 case "${canonical}" in
5913 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5914 if test -e /usr/lib64/crtn.o; then
5915
5916 cat >>confdefs.h <<\_ACEOF
5917 #define HAVE_LIB64_DIR 1
5918 _ACEOF
5919
5920 fi
5921 esac
5922
5923
5924
5925
5926 if test "${with_sound}" != "no"; then
5927 # Sound support for GNU/Linux and the free BSDs.
5928
5929
5930
5931 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5932 do
5933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 fi
5940 ac_res=`eval echo '${'$as_ac_Header'}'`
5941 { echo "$as_me:$LINENO: result: $ac_res" >&5
5942 echo "${ECHO_T}$ac_res" >&6; }
5943 else
5944 # Is the header compilable?
5945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5954 #include <$ac_header>
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5973 ac_header_compiler=yes
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 ac_header_compiler=no
5979 fi
5980
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5983 echo "${ECHO_T}$ac_header_compiler" >&6; }
5984
5985 # Is the header present?
5986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <$ac_header>
5995 _ACEOF
5996 if { (ac_try="$ac_cpp conftest.$ac_ext"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } >/dev/null && {
6009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 }; then
6012 ac_header_preproc=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_header_preproc=no
6018 fi
6019
6020 rm -f conftest.err conftest.$ac_ext
6021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6022 echo "${ECHO_T}$ac_header_preproc" >&6; }
6023
6024 # So? What about this header?
6025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6026 yes:no: )
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6031 ac_header_preproc=yes
6032 ;;
6033 no:yes:* )
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6046
6047 ;;
6048 esac
6049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 eval "$as_ac_Header=\$ac_header_preproc"
6055 fi
6056 ac_res=`eval echo '${'$as_ac_Header'}'`
6057 { echo "$as_me:$LINENO: result: $ac_res" >&5
6058 echo "${ECHO_T}$ac_res" >&6; }
6059
6060 fi
6061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 _ACEOF
6065
6066 fi
6067
6068 done
6069
6070 # Emulation library used on NetBSD.
6071 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6072 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6073 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 ac_check_lib_save_LIBS=$LIBS
6077 LIBS="-lossaudio $LIBS"
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084
6085 /* Override any GCC internal prototype to avoid an error.
6086 Use char because int might match the return type of a GCC
6087 builtin and then its argument prototype would still apply. */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 char _oss_ioctl ();
6092 int
6093 main ()
6094 {
6095 return _oss_ioctl ();
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (ac_try="$ac_link"
6102 case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_link") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest$ac_exeext &&
6117 $as_test_x conftest$ac_exeext; then
6118 ac_cv_lib_ossaudio__oss_ioctl=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_lib_ossaudio__oss_ioctl=no
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6127 conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6129 fi
6130 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6131 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6132 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6133 LIBSOUND=-lossaudio
6134 else
6135 LIBSOUND=
6136 fi
6137
6138
6139
6140 ALSA_REQUIRED=1.0.0
6141 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6142
6143 succeeded=no
6144
6145 # Extract the first word of "pkg-config", so it can be a program name with args.
6146 set dummy pkg-config; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 case $PKG_CONFIG in
6153 [\\/]* | ?:[\\/]*)
6154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6155 ;;
6156 *)
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6173 ;;
6174 esac
6175 fi
6176 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6177 if test -n "$PKG_CONFIG"; then
6178 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6179 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6180 else
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6183 fi
6184
6185
6186
6187 if test "$PKG_CONFIG" = "no" ; then
6188 HAVE_ALSA=no
6189 else
6190 PKG_CONFIG_MIN_VERSION=0.9.0
6191 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6192 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6193 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6194
6195 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6196 { echo "$as_me:$LINENO: result: yes" >&5
6197 echo "${ECHO_T}yes" >&6; }
6198 succeeded=yes
6199
6200 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6201 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6202 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6203 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6204 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6205
6206 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6207 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6208 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6209 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6210 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 ALSA_CFLAGS=""
6215 ALSA_LIBS=""
6216 ## If we have a custom action on failure, don't print errors, but
6217 ## do set a variable so people can do so.
6218 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6219
6220 fi
6221
6222
6223
6224 else
6225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6227 fi
6228 fi
6229
6230 if test $succeeded = yes; then
6231 HAVE_ALSA=yes
6232 else
6233 HAVE_ALSA=no
6234 fi
6235
6236 if test $HAVE_ALSA = yes; then
6237 SAVE_CFLAGS="$CFLAGS"
6238 SAVE_LDFLAGS="$LDFLAGS"
6239 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6240 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 #include <asoundlib.h>
6248 int
6249 main ()
6250 {
6251 snd_lib_error_set_handler (0);
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 emacs_alsa_normal=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 emacs_alsa_normal=no
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 if test "$emacs_alsa_normal" != yes; then
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 #include <alsa/asoundlib.h>
6290 int
6291 main ()
6292 {
6293 snd_lib_error_set_handler (0);
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 emacs_alsa_subdir=yes
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 emacs_alsa_subdir=no
6321 fi
6322
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 if test "$emacs_alsa_subdir" != yes; then
6325 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6326 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6327 { (exit 1); exit 1; }; }
6328 fi
6329 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6330 fi
6331
6332 CFLAGS="$SAVE_CFLAGS"
6333 LDFLAGS="$SAVE_LDFLAGS"
6334 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6335 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6336
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_ALSA 1
6339 _ACEOF
6340
6341 fi
6342
6343 fi
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6371 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6372 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6373 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6374 sys/utsname.h pwd.h
6375 do
6376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 fi
6383 ac_res=`eval echo '${'$as_ac_Header'}'`
6384 { echo "$as_me:$LINENO: result: $ac_res" >&5
6385 echo "${ECHO_T}$ac_res" >&6; }
6386 else
6387 # Is the header compilable?
6388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6401 case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest.$ac_objext; then
6416 ac_header_compiler=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_header_compiler=no
6422 fi
6423
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6426 echo "${ECHO_T}$ac_header_compiler" >&6; }
6427
6428 # Is the header present?
6429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <$ac_header>
6438 _ACEOF
6439 if { (ac_try="$ac_cpp conftest.$ac_ext"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } >/dev/null && {
6452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 }; then
6455 ac_header_preproc=yes
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 ac_header_preproc=no
6461 fi
6462
6463 rm -f conftest.err conftest.$ac_ext
6464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6; }
6466
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 yes:no: )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
6475 ;;
6476 no:yes:* )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6489
6490 ;;
6491 esac
6492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 eval "$as_ac_Header=\$ac_header_preproc"
6498 fi
6499 ac_res=`eval echo '${'$as_ac_Header'}'`
6500 { echo "$as_me:$LINENO: result: $ac_res" >&5
6501 echo "${ECHO_T}$ac_res" >&6; }
6502
6503 fi
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6508
6509 fi
6510
6511 done
6512
6513
6514 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6515 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 #include <sys/personality.h>
6523 int
6524 main ()
6525 {
6526 personality (PER_LINUX32)
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6533 case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 emacs_cv_personality_linux32=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 emacs_cv_personality_linux32=no
6554 fi
6555
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6558 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6559
6560 if test $emacs_cv_personality_linux32 = yes; then
6561
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_PERSONALITY_LINUX32 1
6564 _ACEOF
6565
6566 fi
6567
6568
6569 for ac_header in term.h
6570 do
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <$ac_header>
6584 _ACEOF
6585 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } >/dev/null && {
6598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 }; then
6601 eval "$as_ac_Header=yes"
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 eval "$as_ac_Header=no"
6607 fi
6608
6609 rm -f conftest.err conftest.$ac_ext
6610 fi
6611 ac_res=`eval echo '${'$as_ac_Header'}'`
6612 { echo "$as_me:$LINENO: result: $ac_res" >&5
6613 echo "${ECHO_T}$ac_res" >&6; }
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 _ACEOF
6618
6619 fi
6620
6621 done
6622
6623 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6625 if test "${ac_cv_header_stdc+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <stdlib.h>
6635 #include <stdarg.h>
6636 #include <string.h>
6637 #include <float.h>
6638
6639 int
6640 main ()
6641 {
6642
6643 ;
6644 return 0;
6645 }
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6649 case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_header_stdc=yes
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_cv_header_stdc=no
6670 fi
6671
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673
6674 if test $ac_cv_header_stdc = yes; then
6675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <string.h>
6683
6684 _ACEOF
6685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6686 $EGREP "memchr" >/dev/null 2>&1; then
6687 :
6688 else
6689 ac_cv_header_stdc=no
6690 fi
6691 rm -f conftest*
6692
6693 fi
6694
6695 if test $ac_cv_header_stdc = yes; then
6696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <stdlib.h>
6704
6705 _ACEOF
6706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6707 $EGREP "free" >/dev/null 2>&1; then
6708 :
6709 else
6710 ac_cv_header_stdc=no
6711 fi
6712 rm -f conftest*
6713
6714 fi
6715
6716 if test $ac_cv_header_stdc = yes; then
6717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6718 if test "$cross_compiling" = yes; then
6719 :
6720 else
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 #include <ctype.h>
6728 #include <stdlib.h>
6729 #if ((' ' & 0x0FF) == 0x020)
6730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6732 #else
6733 # define ISLOWER(c) \
6734 (('a' <= (c) && (c) <= 'i') \
6735 || ('j' <= (c) && (c) <= 'r') \
6736 || ('s' <= (c) && (c) <= 'z'))
6737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6738 #endif
6739
6740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6741 int
6742 main ()
6743 {
6744 int i;
6745 for (i = 0; i < 256; i++)
6746 if (XOR (islower (i), ISLOWER (i))
6747 || toupper (i) != TOUPPER (i))
6748 return 2;
6749 return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest$ac_exeext
6753 if { (ac_try="$ac_link"
6754 case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_link") 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6763 { (case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_try") 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }; then
6772 :
6773 else
6774 echo "$as_me: program exited with status $ac_status" >&5
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778 ( exit $ac_status )
6779 ac_cv_header_stdc=no
6780 fi
6781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6782 fi
6783
6784
6785 fi
6786 fi
6787 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6788 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6789 if test $ac_cv_header_stdc = yes; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define STDC_HEADERS 1
6793 _ACEOF
6794
6795 fi
6796
6797 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6798 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6799 if test "${ac_cv_header_time+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6809 #include <sys/time.h>
6810 #include <time.h>
6811
6812 int
6813 main ()
6814 {
6815 if ((struct tm *) 0)
6816 return 0;
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (ac_try="$ac_compile"
6823 case "(($ac_try" in
6824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6826 esac
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_compile") 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && {
6835 test -z "$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6837 } && test -s conftest.$ac_objext; then
6838 ac_cv_header_time=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 ac_cv_header_time=no
6844 fi
6845
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6849 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6850 if test $ac_cv_header_time = yes; then
6851
6852 cat >>confdefs.h <<\_ACEOF
6853 #define TIME_WITH_SYS_TIME 1
6854 _ACEOF
6855
6856 fi
6857
6858 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6859 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6860 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 $ac_includes_default
6870 int
6871 main ()
6872 {
6873 #ifndef sys_siglist
6874 (void) sys_siglist;
6875 #endif
6876
6877 ;
6878 return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_have_decl_sys_siglist=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 ac_cv_have_decl_sys_siglist=no
6904 fi
6905
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6909 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6910 if test $ac_cv_have_decl_sys_siglist = yes; then
6911
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_DECL_SYS_SIGLIST 1
6914 _ACEOF
6915
6916
6917 else
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_DECL_SYS_SIGLIST 0
6920 _ACEOF
6921
6922
6923 fi
6924
6925
6926 if test $ac_cv_have_decl_sys_siglist != yes; then
6927 # For Tru64, at least:
6928 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6929 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6930 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 $ac_includes_default
6940 int
6941 main ()
6942 {
6943 #ifndef __sys_siglist
6944 (void) __sys_siglist;
6945 #endif
6946
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_have_decl___sys_siglist=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ac_cv_have_decl___sys_siglist=no
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6979 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6980 if test $ac_cv_have_decl___sys_siglist = yes; then
6981
6982 cat >>confdefs.h <<_ACEOF
6983 #define HAVE_DECL___SYS_SIGLIST 1
6984 _ACEOF
6985
6986
6987 else
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_DECL___SYS_SIGLIST 0
6990 _ACEOF
6991
6992
6993 fi
6994
6995
6996 if test $ac_cv_have_decl___sys_siglist = yes; then
6997
6998 cat >>confdefs.h <<\_ACEOF
6999 #define sys_siglist __sys_siglist
7000 _ACEOF
7001
7002 fi
7003 fi
7004 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7005 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7006 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 #include <sys/types.h>
7016 #include <sys/wait.h>
7017 #ifndef WEXITSTATUS
7018 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7019 #endif
7020 #ifndef WIFEXITED
7021 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7022 #endif
7023
7024 int
7025 main ()
7026 {
7027 int s;
7028 wait (&s);
7029 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 rm -f conftest.$ac_objext
7035 if { (ac_try="$ac_compile"
7036 case "(($ac_try" in
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7039 esac
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041 (eval "$ac_compile") 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && {
7048 test -z "$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7050 } && test -s conftest.$ac_objext; then
7051 ac_cv_header_sys_wait_h=yes
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056 ac_cv_header_sys_wait_h=no
7057 fi
7058
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 fi
7061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7062 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7063 if test $ac_cv_header_sys_wait_h = yes; then
7064
7065 cat >>confdefs.h <<\_ACEOF
7066 #define HAVE_SYS_WAIT_H 1
7067 _ACEOF
7068
7069 fi
7070
7071
7072 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7073 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7074 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 #ifdef TIME_WITH_SYS_TIME
7084 #include <sys/time.h>
7085 #include <time.h>
7086 #else
7087 #ifdef HAVE_SYS_TIME_H
7088 #include <sys/time.h>
7089 #else
7090 #include <time.h>
7091 #endif
7092 #endif
7093 #ifdef HAVE_UTIME_H
7094 #include <utime.h>
7095 #endif
7096 int
7097 main ()
7098 {
7099 static struct utimbuf x; x.actime = x.modtime;
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 emacs_cv_struct_utimbuf=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 emacs_cv_struct_utimbuf=no
7127 fi
7128
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7132 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7133 if test $emacs_cv_struct_utimbuf = yes; then
7134
7135 cat >>confdefs.h <<\_ACEOF
7136 #define HAVE_STRUCT_UTIMBUF 1
7137 _ACEOF
7138
7139 fi
7140
7141 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7143 if test "${ac_cv_type_signal+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7153 #include <signal.h>
7154
7155 int
7156 main ()
7157 {
7158 return *(signal (0, 0)) (0) == 1;
7159 ;
7160 return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (ac_try="$ac_compile"
7165 case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 ac_cv_type_signal=int
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7184
7185 ac_cv_type_signal=void
7186 fi
7187
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 fi
7190 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7191 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7192
7193 cat >>confdefs.h <<_ACEOF
7194 #define RETSIGTYPE $ac_cv_type_signal
7195 _ACEOF
7196
7197
7198
7199 { echo "$as_me:$LINENO: checking for speed_t" >&5
7200 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7201 if test "${emacs_cv_speed_t+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #include <termios.h>
7211 int
7212 main ()
7213 {
7214 speed_t x = 1;
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 emacs_cv_speed_t=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 emacs_cv_speed_t=no
7242 fi
7243
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7247 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7248 if test $emacs_cv_speed_t = yes; then
7249
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_SPEED_T 1
7252 _ACEOF
7253
7254 fi
7255
7256 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7257 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7258 if test "${emacs_cv_struct_timeval+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #ifdef TIME_WITH_SYS_TIME
7268 #include <sys/time.h>
7269 #include <time.h>
7270 #else
7271 #ifdef HAVE_SYS_TIME_H
7272 #include <sys/time.h>
7273 #else
7274 #include <time.h>
7275 #endif
7276 #endif
7277 int
7278 main ()
7279 {
7280 static struct timeval x; x.tv_sec = x.tv_usec;
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 emacs_cv_struct_timeval=yes
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 emacs_cv_struct_timeval=no
7308 fi
7309
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7313 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7314 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7315 if test $emacs_cv_struct_timeval = yes; then
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define HAVE_TIMEVAL 1
7319 _ACEOF
7320
7321 fi
7322
7323 { echo "$as_me:$LINENO: checking for struct exception" >&5
7324 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7325 if test "${emacs_cv_struct_exception+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 #include <math.h>
7335 int
7336 main ()
7337 {
7338 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7345 case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 emacs_cv_struct_exception=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 emacs_cv_struct_exception=no
7366 fi
7367
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7371 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7372 HAVE_EXCEPTION=$emacs_cv_struct_exception
7373 if test $emacs_cv_struct_exception != yes; then
7374
7375 cat >>confdefs.h <<\_ACEOF
7376 #define NO_MATHERR 1
7377 _ACEOF
7378
7379 fi
7380
7381
7382 for ac_header in sys/socket.h
7383 do
7384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 fi
7391 ac_res=`eval echo '${'$as_ac_Header'}'`
7392 { echo "$as_me:$LINENO: result: $ac_res" >&5
7393 echo "${ECHO_T}$ac_res" >&6; }
7394 else
7395 # Is the header compilable?
7396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7405 #include <$ac_header>
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_header_compiler=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_header_compiler=no
7430 fi
7431
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7434 echo "${ECHO_T}$ac_header_compiler" >&6; }
7435
7436 # Is the header present?
7437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <$ac_header>
7446 _ACEOF
7447 if { (ac_try="$ac_cpp conftest.$ac_ext"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } >/dev/null && {
7460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 }; then
7463 ac_header_preproc=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ac_header_preproc=no
7469 fi
7470
7471 rm -f conftest.err conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6; }
7474
7475 # So? What about this header?
7476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7477 yes:no: )
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7482 ac_header_preproc=yes
7483 ;;
7484 no:yes:* )
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7497
7498 ;;
7499 esac
7500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 eval "$as_ac_Header=\$ac_header_preproc"
7506 fi
7507 ac_res=`eval echo '${'$as_ac_Header'}'`
7508 { echo "$as_me:$LINENO: result: $ac_res" >&5
7509 echo "${ECHO_T}$ac_res" >&6; }
7510
7511 fi
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513 cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7516
7517 fi
7518
7519 done
7520
7521
7522 for ac_header in net/if.h
7523 do
7524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h. */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7537 #if HAVE_SYS_SOCKET_H
7538 #include <sys/socket.h>
7539 #endif
7540
7541 #include <$ac_header>
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 eval "$as_ac_Header=yes"
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 eval "$as_ac_Header=no"
7566 fi
7567
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 fi
7570 ac_res=`eval echo '${'$as_ac_Header'}'`
7571 { echo "$as_me:$LINENO: result: $ac_res" >&5
7572 echo "${ECHO_T}$ac_res" >&6; }
7573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7576 _ACEOF
7577
7578 fi
7579
7580 done
7581
7582
7583 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7584 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7585 if test "${ac_cv_struct_tm+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <sys/types.h>
7595 #include <time.h>
7596
7597 int
7598 main ()
7599 {
7600 struct tm tm;
7601 int *p = &tm.tm_sec;
7602 return !p;
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7624 ac_cv_struct_tm=time.h
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ac_cv_struct_tm=sys/time.h
7630 fi
7631
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7635 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7636 if test $ac_cv_struct_tm = sys/time.h; then
7637
7638 cat >>confdefs.h <<\_ACEOF
7639 #define TM_IN_SYS_TIME 1
7640 _ACEOF
7641
7642 fi
7643
7644 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7645 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7646 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <sys/types.h>
7656 #include <$ac_cv_struct_tm>
7657
7658
7659 int
7660 main ()
7661 {
7662 static struct tm ac_aggr;
7663 if (ac_aggr.tm_zone)
7664 return 0;
7665 ;
7666 return 0;
7667 }
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (ac_try="$ac_compile"
7671 case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674 esac
7675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 ac_cv_member_struct_tm_tm_zone=yes
7687 else
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7690
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h. */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 #include <sys/types.h>
7698 #include <$ac_cv_struct_tm>
7699
7700
7701 int
7702 main ()
7703 {
7704 static struct tm ac_aggr;
7705 if (sizeof ac_aggr.tm_zone)
7706 return 0;
7707 ;
7708 return 0;
7709 }
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_compile") 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest.$ac_objext; then
7728 ac_cv_member_struct_tm_tm_zone=yes
7729 else
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733 ac_cv_member_struct_tm_tm_zone=no
7734 fi
7735
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 fi
7741 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7742 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7743 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7744
7745 cat >>confdefs.h <<_ACEOF
7746 #define HAVE_STRUCT_TM_TM_ZONE 1
7747 _ACEOF
7748
7749
7750 fi
7751
7752 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7753
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_TM_ZONE 1
7756 _ACEOF
7757
7758 else
7759 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7760 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7761 if test "${ac_cv_have_decl_tzname+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <time.h>
7771
7772 int
7773 main ()
7774 {
7775 #ifndef tzname
7776 (void) tzname;
7777 #endif
7778
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7785 case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7800 ac_cv_have_decl_tzname=yes
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 ac_cv_have_decl_tzname=no
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 fi
7810 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7811 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7812 if test $ac_cv_have_decl_tzname = yes; then
7813
7814 cat >>confdefs.h <<_ACEOF
7815 #define HAVE_DECL_TZNAME 1
7816 _ACEOF
7817
7818
7819 else
7820 cat >>confdefs.h <<_ACEOF
7821 #define HAVE_DECL_TZNAME 0
7822 _ACEOF
7823
7824
7825 fi
7826
7827
7828 { echo "$as_me:$LINENO: checking for tzname" >&5
7829 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7830 if test "${ac_cv_var_tzname+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 #include <time.h>
7840 #if !HAVE_DECL_TZNAME
7841 extern char *tzname[];
7842 #endif
7843
7844 int
7845 main ()
7846 {
7847 return tzname[0][0];
7848 ;
7849 return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest$ac_exeext &&
7869 $as_test_x conftest$ac_exeext; then
7870 ac_cv_var_tzname=yes
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7874
7875 ac_cv_var_tzname=no
7876 fi
7877
7878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7879 conftest$ac_exeext conftest.$ac_ext
7880 fi
7881 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7882 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7883 if test $ac_cv_var_tzname = yes; then
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_TZNAME 1
7887 _ACEOF
7888
7889 fi
7890 fi
7891
7892 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7893 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7894 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <time.h>
7904
7905 int
7906 main ()
7907 {
7908 static struct tm ac_aggr;
7909 if (ac_aggr.tm_gmtoff)
7910 return 0;
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 ac_cv_member_struct_tm_tm_gmtoff=yes
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h. */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 #include <time.h>
7944
7945 int
7946 main ()
7947 {
7948 static struct tm ac_aggr;
7949 if (sizeof ac_aggr.tm_gmtoff)
7950 return 0;
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_cv_member_struct_tm_tm_gmtoff=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ac_cv_member_struct_tm_tm_gmtoff=no
7978 fi
7979
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 fi
7982
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 fi
7985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7986 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7987 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7988
7989 cat >>confdefs.h <<\_ACEOF
7990 #define HAVE_TM_GMTOFF 1
7991 _ACEOF
7992
7993 fi
7994
7995 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7996 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7997 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 $ac_includes_default
8007 #if HAVE_SYS_SOCKET_H
8008 #include <sys/socket.h>
8009 #endif
8010 #if HAVE_NET_IF_H
8011 #include <net/if.h>
8012 #endif
8013
8014 int
8015 main ()
8016 {
8017 static struct ifreq ac_aggr;
8018 if (ac_aggr.ifr_flags)
8019 return 0;
8020 ;
8021 return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_cv_member_struct_ifreq_ifr_flags=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8053 #if HAVE_SYS_SOCKET_H
8054 #include <sys/socket.h>
8055 #endif
8056 #if HAVE_NET_IF_H
8057 #include <net/if.h>
8058 #endif
8059
8060 int
8061 main ()
8062 {
8063 static struct ifreq ac_aggr;
8064 if (sizeof ac_aggr.ifr_flags)
8065 return 0;
8066 ;
8067 return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 ac_cv_member_struct_ifreq_ifr_flags=yes
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 ac_cv_member_struct_ifreq_ifr_flags=no
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 fi
8100 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8101 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8102 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8103
8104 cat >>confdefs.h <<_ACEOF
8105 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8106 _ACEOF
8107
8108
8109 fi
8110 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8111 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8112 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 #if HAVE_SYS_SOCKET_H
8123 #include <sys/socket.h>
8124 #endif
8125 #if HAVE_NET_IF_H
8126 #include <net/if.h>
8127 #endif
8128
8129 int
8130 main ()
8131 {
8132 static struct ifreq ac_aggr;
8133 if (ac_aggr.ifr_hwaddr)
8134 return 0;
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8141 case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_compile") 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } && {
8153 test -z "$ac_c_werror_flag" ||
8154 test ! -s conftest.err
8155 } && test -s conftest.$ac_objext; then
8156 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 $ac_includes_default
8168 #if HAVE_SYS_SOCKET_H
8169 #include <sys/socket.h>
8170 #endif
8171 #if HAVE_NET_IF_H
8172 #include <net/if.h>
8173 #endif
8174
8175 int
8176 main ()
8177 {
8178 static struct ifreq ac_aggr;
8179 if (sizeof ac_aggr.ifr_hwaddr)
8180 return 0;
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 fi
8215 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8216 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8217 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8218
8219 cat >>confdefs.h <<_ACEOF
8220 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8221 _ACEOF
8222
8223
8224 fi
8225 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8226 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8227 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 #if HAVE_SYS_SOCKET_H
8238 #include <sys/socket.h>
8239 #endif
8240 #if HAVE_NET_IF_H
8241 #include <net/if.h>
8242 #endif
8243
8244 int
8245 main ()
8246 {
8247 static struct ifreq ac_aggr;
8248 if (ac_aggr.ifr_netmask)
8249 return 0;
8250 ;
8251 return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest.$ac_objext; then
8271 ac_cv_member_struct_ifreq_ifr_netmask=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8275
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8283 #if HAVE_SYS_SOCKET_H
8284 #include <sys/socket.h>
8285 #endif
8286 #if HAVE_NET_IF_H
8287 #include <net/if.h>
8288 #endif
8289
8290 int
8291 main ()
8292 {
8293 static struct ifreq ac_aggr;
8294 if (sizeof ac_aggr.ifr_netmask)
8295 return 0;
8296 ;
8297 return 0;
8298 }
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8317 ac_cv_member_struct_ifreq_ifr_netmask=yes
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_cv_member_struct_ifreq_ifr_netmask=no
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8331 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8332 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8333
8334 cat >>confdefs.h <<_ACEOF
8335 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8336 _ACEOF
8337
8338
8339 fi
8340 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8341 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8342 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8352 #if HAVE_SYS_SOCKET_H
8353 #include <sys/socket.h>
8354 #endif
8355 #if HAVE_NET_IF_H
8356 #include <net/if.h>
8357 #endif
8358
8359 int
8360 main ()
8361 {
8362 static struct ifreq ac_aggr;
8363 if (ac_aggr.ifr_broadaddr)
8364 return 0;
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_compile") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest.$ac_objext; then
8386 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 $ac_includes_default
8398 #if HAVE_SYS_SOCKET_H
8399 #include <sys/socket.h>
8400 #endif
8401 #if HAVE_NET_IF_H
8402 #include <net/if.h>
8403 #endif
8404
8405 int
8406 main ()
8407 {
8408 static struct ifreq ac_aggr;
8409 if (sizeof ac_aggr.ifr_broadaddr)
8410 return 0;
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && {
8429 test -z "$ac_c_werror_flag" ||
8430 test ! -s conftest.err
8431 } && test -s conftest.$ac_objext; then
8432 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8438 fi
8439
8440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 fi
8442
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8446 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8447 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8451 _ACEOF
8452
8453
8454 fi
8455 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8456 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8457 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 #if HAVE_SYS_SOCKET_H
8468 #include <sys/socket.h>
8469 #endif
8470 #if HAVE_NET_IF_H
8471 #include <net/if.h>
8472 #endif
8473
8474 int
8475 main ()
8476 {
8477 static struct ifreq ac_aggr;
8478 if (ac_aggr.ifr_addr)
8479 return 0;
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest.$ac_objext; then
8501 ac_cv_member_struct_ifreq_ifr_addr=yes
8502 else
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #if HAVE_SYS_SOCKET_H
8514 #include <sys/socket.h>
8515 #endif
8516 #if HAVE_NET_IF_H
8517 #include <net/if.h>
8518 #endif
8519
8520 int
8521 main ()
8522 {
8523 static struct ifreq ac_aggr;
8524 if (sizeof ac_aggr.ifr_addr)
8525 return 0;
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (ac_try="$ac_compile"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_compile") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest.$ac_objext; then
8547 ac_cv_member_struct_ifreq_ifr_addr=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_member_struct_ifreq_ifr_addr=no
8553 fi
8554
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8561 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8562 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8563
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8566 _ACEOF
8567
8568
8569 fi
8570
8571
8572
8573 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8575 if test "$ac_cv_prog_cc_c89" != no; then
8576 { echo "$as_me:$LINENO: result: yes" >&5
8577 echo "${ECHO_T}yes" >&6; }
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define PROTOTYPES 1
8581 _ACEOF
8582
8583
8584 cat >>confdefs.h <<\_ACEOF
8585 #define __PROTOTYPES 1
8586 _ACEOF
8587
8588 else
8589 { echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6; }
8591 fi
8592
8593 { echo "$as_me:$LINENO: checking for working volatile" >&5
8594 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8595 if test "${ac_cv_c_volatile+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604
8605 int
8606 main ()
8607 {
8608
8609 volatile int x;
8610 int * volatile y = (int *) 0;
8611 return !x && !y;
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.$ac_objext; then
8633 ac_cv_c_volatile=yes
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638 ac_cv_c_volatile=no
8639 fi
8640
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8644 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8645 if test $ac_cv_c_volatile = no; then
8646
8647 cat >>confdefs.h <<\_ACEOF
8648 #define volatile
8649 _ACEOF
8650
8651 fi
8652
8653 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8655 if test "${ac_cv_c_const+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8664
8665 int
8666 main ()
8667 {
8668 /* FIXME: Include the comments suggested by Paul. */
8669 #ifndef __cplusplus
8670 /* Ultrix mips cc rejects this. */
8671 typedef int charset[2];
8672 const charset cs;
8673 /* SunOS 4.1.1 cc rejects this. */
8674 char const *const *pcpcc;
8675 char **ppc;
8676 /* NEC SVR4.0.2 mips cc rejects this. */
8677 struct point {int x, y;};
8678 static struct point const zero = {0,0};
8679 /* AIX XL C 1.02.0.0 rejects this.
8680 It does not let you subtract one const X* pointer from another in
8681 an arm of an if-expression whose if-part is not a constant
8682 expression */
8683 const char *g = "string";
8684 pcpcc = &g + (g ? g-g : 0);
8685 /* HPUX 7.0 cc rejects these. */
8686 ++pcpcc;
8687 ppc = (char**) pcpcc;
8688 pcpcc = (char const *const *) ppc;
8689 { /* SCO 3.2v4 cc rejects this. */
8690 char *t;
8691 char const *s = 0 ? (char *) 0 : (char const *) 0;
8692
8693 *t++ = 0;
8694 if (s) return 0;
8695 }
8696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8697 int x[] = {25, 17};
8698 const int *foo = &x[0];
8699 ++foo;
8700 }
8701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8702 typedef const int *iptr;
8703 iptr p = 0;
8704 ++p;
8705 }
8706 { /* AIX XL C 1.02.0.0 rejects this saying
8707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8708 struct s { int j; const int *ap[3]; };
8709 struct s *b; b->j = 5;
8710 }
8711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8712 const int foo = 10;
8713 if (!foo) return 0;
8714 }
8715 return !cs[0] && !zero.x;
8716 #endif
8717
8718 ;
8719 return 0;
8720 }
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8724 case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.$ac_objext; then
8739 ac_cv_c_const=yes
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 ac_cv_c_const=no
8745 fi
8746
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8750 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8751 if test $ac_cv_c_const = no; then
8752
8753 cat >>confdefs.h <<\_ACEOF
8754 #define const
8755 _ACEOF
8756
8757 fi
8758
8759 { echo "$as_me:$LINENO: checking for void * support" >&5
8760 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8761 if test "${emacs_cv_void_star+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770
8771 int
8772 main ()
8773 {
8774 void * foo;
8775 ;
8776 return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext
8780 if { (ac_try="$ac_compile"
8781 case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 emacs_cv_void_star=yes
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 emacs_cv_void_star=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8807 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8808 if test $emacs_cv_void_star = yes; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define POINTER_TYPE void
8811 _ACEOF
8812
8813 else
8814 cat >>confdefs.h <<\_ACEOF
8815 #define POINTER_TYPE char
8816 _ACEOF
8817
8818 fi
8819
8820
8821
8822
8823
8824 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8825 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8826 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8827 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830 cat >conftest.make <<\_ACEOF
8831 SHELL = /bin/sh
8832 all:
8833 @echo '@@@%%%=$(MAKE)=@@@%%%'
8834 _ACEOF
8835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8837 *@@@%%%=?*=@@@%%%*)
8838 eval ac_cv_prog_make_${ac_make}_set=yes;;
8839 *)
8840 eval ac_cv_prog_make_${ac_make}_set=no;;
8841 esac
8842 rm -f conftest.make
8843 fi
8844 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8845 { echo "$as_me:$LINENO: result: yes" >&5
8846 echo "${ECHO_T}yes" >&6; }
8847 SET_MAKE=
8848 else
8849 { echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6; }
8851 SET_MAKE="MAKE=${MAKE-make}"
8852 fi
8853
8854
8855 { echo "$as_me:$LINENO: checking for long file names" >&5
8856 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8857 if test "${ac_cv_sys_long_file_names+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_cv_sys_long_file_names=yes
8861 # Test for long file names in all the places we know might matter:
8862 # . the current directory, where building will happen
8863 # $prefix/lib where we will be installing things
8864 # $exec_prefix/lib likewise
8865 # $TMPDIR if set, where it might want to write temporary files
8866 # /tmp where it might want to write temporary files
8867 # /var/tmp likewise
8868 # /usr/tmp likewise
8869 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8870 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8871 # in the usual case where exec_prefix is '${prefix}'.
8872 case $ac_dir in #(
8873 . | /* | ?:[\\/]*) ;; #(
8874 *) continue;;
8875 esac
8876 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8877 ac_xdir=$ac_dir/cf$$
8878 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8879 ac_tf1=$ac_xdir/conftest9012345
8880 ac_tf2=$ac_xdir/conftest9012346
8881 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8882 ac_cv_sys_long_file_names=no
8883 rm -f -r "$ac_xdir" 2>/dev/null
8884 test $ac_cv_sys_long_file_names = no && break
8885 done
8886 fi
8887 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8888 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8889 if test $ac_cv_sys_long_file_names = yes; then
8890
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_LONG_FILE_NAMES 1
8893 _ACEOF
8894
8895 fi
8896
8897
8898 #### Choose a window system.
8899
8900 { echo "$as_me:$LINENO: checking for X" >&5
8901 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8902
8903
8904 # Check whether --with-x was given.
8905 if test "${with_x+set}" = set; then
8906 withval=$with_x;
8907 fi
8908
8909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8910 if test "x$with_x" = xno; then
8911 # The user explicitly disabled X.
8912 have_x=disabled
8913 else
8914 case $x_includes,$x_libraries in #(
8915 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8916 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8917 { (exit 1); exit 1; }; };; #(
8918 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 # One or both of the vars are not set, and there is no cached value.
8922 ac_x_includes=no ac_x_libraries=no
8923 rm -f -r conftest.dir
8924 if mkdir conftest.dir; then
8925 cd conftest.dir
8926 cat >Imakefile <<'_ACEOF'
8927 incroot:
8928 @echo incroot='${INCROOT}'
8929 usrlibdir:
8930 @echo usrlibdir='${USRLIBDIR}'
8931 libdir:
8932 @echo libdir='${LIBDIR}'
8933 _ACEOF
8934 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8935 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8936 for ac_var in incroot usrlibdir libdir; do
8937 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8938 done
8939 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8940 for ac_extension in a so sl; do
8941 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8942 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8943 ac_im_usrlibdir=$ac_im_libdir; break
8944 fi
8945 done
8946 # Screen out bogus values from the imake configuration. They are
8947 # bogus both because they are the default anyway, and because
8948 # using them would break gcc on systems where it needs fixed includes.
8949 case $ac_im_incroot in
8950 /usr/include) ac_x_includes= ;;
8951 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8952 esac
8953 case $ac_im_usrlibdir in
8954 /usr/lib | /lib) ;;
8955 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8956 esac
8957 fi
8958 cd ..
8959 rm -f -r conftest.dir
8960 fi
8961
8962 # Standard set of common directories for X headers.
8963 # Check X11 before X11Rn because it is often a symlink to the current release.
8964 ac_x_header_dirs='
8965 /usr/X11/include
8966 /usr/X11R6/include
8967 /usr/X11R5/include
8968 /usr/X11R4/include
8969
8970 /usr/include/X11
8971 /usr/include/X11R6
8972 /usr/include/X11R5
8973 /usr/include/X11R4
8974
8975 /usr/local/X11/include
8976 /usr/local/X11R6/include
8977 /usr/local/X11R5/include
8978 /usr/local/X11R4/include
8979
8980 /usr/local/include/X11
8981 /usr/local/include/X11R6
8982 /usr/local/include/X11R5
8983 /usr/local/include/X11R4
8984
8985 /usr/X386/include
8986 /usr/x386/include
8987 /usr/XFree86/include/X11
8988
8989 /usr/include
8990 /usr/local/include
8991 /usr/unsupported/include
8992 /usr/athena/include
8993 /usr/local/x11r5/include
8994 /usr/lpp/Xamples/include
8995
8996 /usr/openwin/include
8997 /usr/openwin/share/include'
8998
8999 if test "$ac_x_includes" = no; then
9000 # Guess where to find include files, by looking for Xlib.h.
9001 # First, try using that file with no special directory specified.
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 #include <X11/Xlib.h>
9009 _ACEOF
9010 if { (ac_try="$ac_cpp conftest.$ac_ext"
9011 case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } >/dev/null && {
9023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 }; then
9026 # We can compile using X headers with no special include directory.
9027 ac_x_includes=
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 for ac_dir in $ac_x_header_dirs; do
9033 if test -r "$ac_dir/X11/Xlib.h"; then
9034 ac_x_includes=$ac_dir
9035 break
9036 fi
9037 done
9038 fi
9039
9040 rm -f conftest.err conftest.$ac_ext
9041 fi # $ac_x_includes = no
9042
9043 if test "$ac_x_libraries" = no; then
9044 # Check for the libraries.
9045 # See if we find them without any special options.
9046 # Don't add to $LIBS permanently.
9047 ac_save_LIBS=$LIBS
9048 LIBS="-lX11 $LIBS"
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 #include <X11/Xlib.h>
9056 int
9057 main ()
9058 {
9059 XrmInitialize ()
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9066 case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err
9080 } && test -s conftest$ac_exeext &&
9081 $as_test_x conftest$ac_exeext; then
9082 LIBS=$ac_save_LIBS
9083 # We can link X programs with no special library path.
9084 ac_x_libraries=
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 LIBS=$ac_save_LIBS
9090 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9091 do
9092 # Don't even attempt the hair of trying to link an X program!
9093 for ac_extension in a so sl; do
9094 if test -r "$ac_dir/libX11.$ac_extension"; then
9095 ac_x_libraries=$ac_dir
9096 break 2
9097 fi
9098 done
9099 done
9100 fi
9101
9102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103 conftest$ac_exeext conftest.$ac_ext
9104 fi # $ac_x_libraries = no
9105
9106 case $ac_x_includes,$ac_x_libraries in #(
9107 no,* | *,no | *\'*)
9108 # Didn't find X, or a directory has "'" in its name.
9109 ac_cv_have_x="have_x=no";; #(
9110 *)
9111 # Record where we found X for the cache.
9112 ac_cv_have_x="have_x=yes\
9113 ac_x_includes='$ac_x_includes'\
9114 ac_x_libraries='$ac_x_libraries'"
9115 esac
9116 fi
9117 ;; #(
9118 *) have_x=yes;;
9119 esac
9120 eval "$ac_cv_have_x"
9121 fi # $with_x != no
9122
9123 if test "$have_x" != yes; then
9124 { echo "$as_me:$LINENO: result: $have_x" >&5
9125 echo "${ECHO_T}$have_x" >&6; }
9126 no_x=yes
9127 else
9128 # If each of the values was on the command line, it overrides each guess.
9129 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9130 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9131 # Update the cache value to reflect the command line values.
9132 ac_cv_have_x="have_x=yes\
9133 ac_x_includes='$x_includes'\
9134 ac_x_libraries='$x_libraries'"
9135 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9136 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9137 fi
9138
9139 if test "$no_x" = yes; then
9140 window_system=none
9141 else
9142 window_system=x11
9143 fi
9144
9145 ## Workaround for bug in autoconf <= 2.62.
9146 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9147 ## No need to do anything special for these standard directories.
9148 ## This is an experiment, take it out if it causes problems.
9149 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9150
9151 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9152
9153 fi
9154
9155 if test "${x_libraries}" != NONE; then
9156 if test -n "${x_libraries}"; then
9157 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9158 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9159 fi
9160 x_default_search_path=""
9161 x_search_path=${x_libraries}
9162 if test -z "${x_search_path}"; then
9163 x_search_path=/usr/lib
9164 fi
9165 for x_library in `echo ${x_search_path}: | \
9166 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9167 x_search_path="\
9168 ${x_library}/X11/%L/%T/%N%C%S:\
9169 ${x_library}/X11/%l/%T/%N%C%S:\
9170 ${x_library}/X11/%T/%N%C%S:\
9171 ${x_library}/X11/%L/%T/%N%S:\
9172 ${x_library}/X11/%l/%T/%N%S:\
9173 ${x_library}/X11/%T/%N%S"
9174 if test x"${x_default_search_path}" = x; then
9175 x_default_search_path=${x_search_path}
9176 else
9177 x_default_search_path="${x_search_path}:${x_default_search_path}"
9178 fi
9179 done
9180 fi
9181 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9182 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9183 fi
9184
9185 if test x"${x_includes}" = x; then
9186 bitmapdir=/usr/include/X11/bitmaps
9187 else
9188 # accumulate include directories that have X11 bitmap subdirectories
9189 bmd_acc="dummyval"
9190 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9191 if test -d "${bmd}/X11/bitmaps"; then
9192 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9193 fi
9194 if test -d "${bmd}/bitmaps"; then
9195 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9196 fi
9197 done
9198 if test ${bmd_acc} != "dummyval"; then
9199 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9200 fi
9201 fi
9202
9203 HAVE_NS=no
9204 NS_IMPL_COCOA=no
9205 NS_IMPL_GNUSTEP=no
9206 tmp_CPPFLAGS="$CPPFLAGS"
9207 tmp_CFLAGS="$CFLAGS"
9208 CPPFLAGS="$CPPFLAGS -x objective-c"
9209 CFLAGS="$CFLAGS -x objective-c"
9210 if test "${with_ns}" != no; then
9211 if test "${opsys}" = darwin; then
9212 NS_IMPL_COCOA=yes
9213 ns_appdir=`pwd`/nextstep/Emacs.app
9214 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9215 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9216 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9217 elif test -f $GNUSTEP_CONFIG_FILE; then
9218 NS_IMPL_GNUSTEP=yes
9219 ns_appdir=`pwd`/nextstep/Emacs.app
9220 ns_appbindir=`pwd`/nextstep/Emacs.app
9221 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9222 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9223 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9224 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9225 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9226 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9227 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9228 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9229 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9230 fi
9231 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9232 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9233 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9234 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 fi
9237 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9238 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9239 else
9240 # Is the header compilable?
9241 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9242 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9250 #include <AppKit/AppKit.h>
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (ac_try="$ac_compile"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_header_compiler=yes
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 ac_header_compiler=no
9275 fi
9276
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9279 echo "${ECHO_T}$ac_header_compiler" >&6; }
9280
9281 # Is the header present?
9282 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9283 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <AppKit/AppKit.h>
9291 _ACEOF
9292 if { (ac_try="$ac_cpp conftest.$ac_ext"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } >/dev/null && {
9305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 }; then
9308 ac_header_preproc=yes
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 ac_header_preproc=no
9314 fi
9315
9316 rm -f conftest.err conftest.$ac_ext
9317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9318 echo "${ECHO_T}$ac_header_preproc" >&6; }
9319
9320 # So? What about this header?
9321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9322 yes:no: )
9323 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9324 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9326 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9327 ac_header_preproc=yes
9328 ;;
9329 no:yes:* )
9330 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9331 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9333 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9335 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9337 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9339 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9342
9343 ;;
9344 esac
9345 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9346 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9347 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9351 fi
9352 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9353 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9354
9355 fi
9356 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9357 HAVE_NS=yes
9358 else
9359 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9360 files are missing or cannot be compiled." >&5
9361 echo "$as_me: error: \`--with-ns' was specified, but the include
9362 files are missing or cannot be compiled." >&2;}
9363 { (exit 1); exit 1; }; }
9364 fi
9365
9366
9367 NS_HAVE_NSINTEGER=yes
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <Foundation/NSObjCRuntime.h>
9375 int
9376 main ()
9377 {
9378 NSInteger i;
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.$ac_objext; then
9400 ns_have_nsinteger=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405 ns_have_nsinteger=no
9406 fi
9407
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 if test $ns_have_nsinteger = no; then
9410 NS_HAVE_NSINTEGER=no
9411 fi
9412 fi
9413 if test "${HAVE_NS}" = yes; then
9414 window_system=nextstep
9415 with_xft=no
9416 with_freetype=no
9417 # set up packaging dirs
9418 exec_prefix=${ns_appbindir}
9419 libexecdir=${ns_appbindir}/libexec
9420 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9421 prefix=${ns_appresdir}
9422 fi
9423 fi
9424 CFLAGS="$tmp_CFLAGS"
9425 CPPFLAGS="$tmp_CPPFLAGS"
9426
9427 case "${window_system}" in
9428 x11 )
9429 HAVE_X_WINDOWS=yes
9430 HAVE_X11=yes
9431 case "${with_x_toolkit}" in
9432 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9433 motif ) USE_X_TOOLKIT=MOTIF ;;
9434 gtk ) with_gtk=yes
9435 USE_X_TOOLKIT=none ;;
9436 no ) USE_X_TOOLKIT=none ;;
9437 * ) USE_X_TOOLKIT=maybe ;;
9438 esac
9439 ;;
9440 nextstep | none )
9441 HAVE_X_WINDOWS=no
9442 HAVE_X11=no
9443 USE_X_TOOLKIT=none
9444 ;;
9445 esac
9446
9447 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9448 # Extract the first word of "X", so it can be a program name with args.
9449 set dummy X; ac_word=$2
9450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9452 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455 if test -n "$HAVE_XSERVER"; then
9456 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9457 else
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9460 do
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_prog_HAVE_XSERVER="true"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9468 fi
9469 done
9470 done
9471 IFS=$as_save_IFS
9472
9473 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9474 fi
9475 fi
9476 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9477 if test -n "$HAVE_XSERVER"; then
9478 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9479 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9480 else
9481 { echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6; }
9483 fi
9484
9485
9486 if test "$HAVE_XSERVER" = true ||
9487 test -n "$DISPLAY" ||
9488 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9489 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9490 were found. You should install the relevant development files for X
9491 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9492 sure you have development files for image handling, i.e.
9493 tiff, gif, jpeg, png and xpm.
9494 If you are sure you want Emacs compiled without X window support, pass
9495 --without-x
9496 to configure." >&5
9497 echo "$as_me: error: You seem to be running X, but no X development libraries
9498 were found. You should install the relevant development files for X
9499 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9500 sure you have development files for image handling, i.e.
9501 tiff, gif, jpeg, png and xpm.
9502 If you are sure you want Emacs compiled without X window support, pass
9503 --without-x
9504 to configure." >&2;}
9505 { (exit 1); exit 1; }; }
9506 fi
9507 fi
9508
9509 ### If we're using X11, we should use the X menu package.
9510 HAVE_MENUS=no
9511 case ${HAVE_X11} in
9512 yes ) HAVE_MENUS=yes ;;
9513 esac
9514
9515 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9516 # Assume not, until told otherwise.
9517 GNU_MALLOC=yes
9518 doug_lea_malloc=yes
9519 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9520 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9521 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9532 #define malloc_get_state innocuous_malloc_get_state
9533
9534 /* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char malloc_get_state (); below.
9536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9537 <limits.h> exists even on freestanding compilers. */
9538
9539 #ifdef __STDC__
9540 # include <limits.h>
9541 #else
9542 # include <assert.h>
9543 #endif
9544
9545 #undef malloc_get_state
9546
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char malloc_get_state ();
9554 /* The GNU C library defines this for functions which it implements
9555 to always fail with ENOSYS. Some functions are actually named
9556 something starting with __ and the normal name is an alias. */
9557 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9558 choke me
9559 #endif
9560
9561 int
9562 main ()
9563 {
9564 return malloc_get_state ();
9565 ;
9566 return 0;
9567 }
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest$ac_exeext &&
9586 $as_test_x conftest$ac_exeext; then
9587 ac_cv_func_malloc_get_state=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 ac_cv_func_malloc_get_state=no
9593 fi
9594
9595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9596 conftest$ac_exeext conftest.$ac_ext
9597 fi
9598 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9599 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9600 if test $ac_cv_func_malloc_get_state = yes; then
9601 :
9602 else
9603 doug_lea_malloc=no
9604 fi
9605
9606 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9607 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9608 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define malloc_set_state innocuous_malloc_set_state
9620
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char malloc_set_state (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9625
9626 #ifdef __STDC__
9627 # include <limits.h>
9628 #else
9629 # include <assert.h>
9630 #endif
9631
9632 #undef malloc_set_state
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char malloc_set_state ();
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9645 choke me
9646 #endif
9647
9648 int
9649 main ()
9650 {
9651 return malloc_set_state ();
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9658 case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_link") 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest$ac_exeext &&
9673 $as_test_x conftest$ac_exeext; then
9674 ac_cv_func_malloc_set_state=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_func_malloc_set_state=no
9680 fi
9681
9682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9683 conftest$ac_exeext conftest.$ac_ext
9684 fi
9685 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9686 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9687 if test $ac_cv_func_malloc_set_state = yes; then
9688 :
9689 else
9690 doug_lea_malloc=no
9691 fi
9692
9693 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9694 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9695 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 extern void (* __after_morecore_hook)();
9705 int
9706 main ()
9707 {
9708 __after_morecore_hook = 0
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 emacs_cv_var___after_morecore_hook=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 emacs_cv_var___after_morecore_hook=no
9737 fi
9738
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9741 fi
9742 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9743 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9744 if test $emacs_cv_var___after_morecore_hook = no; then
9745 doug_lea_malloc=no
9746 fi
9747 if test "${system_malloc}" = "yes"; then
9748 GNU_MALLOC=no
9749 GNU_MALLOC_reason="
9750 (The GNU allocators don't work with this system configuration.)"
9751 fi
9752 if test "$doug_lea_malloc" = "yes" ; then
9753 if test "$GNU_MALLOC" = yes ; then
9754 GNU_MALLOC_reason="
9755 (Using Doug Lea's new malloc from the GNU C Library.)"
9756 fi
9757
9758 cat >>confdefs.h <<\_ACEOF
9759 #define DOUG_LEA_MALLOC 1
9760 _ACEOF
9761
9762 fi
9763
9764 if test x"${REL_ALLOC}" = x; then
9765 REL_ALLOC=${GNU_MALLOC}
9766 fi
9767
9768
9769
9770
9771 for ac_header in stdlib.h unistd.h
9772 do
9773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 fi
9780 ac_res=`eval echo '${'$as_ac_Header'}'`
9781 { echo "$as_me:$LINENO: result: $ac_res" >&5
9782 echo "${ECHO_T}$ac_res" >&6; }
9783 else
9784 # Is the header compilable?
9785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_header_compiler=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_header_compiler=no
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9823 echo "${ECHO_T}$ac_header_compiler" >&6; }
9824
9825 # Is the header present?
9826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <$ac_header>
9835 _ACEOF
9836 if { (ac_try="$ac_cpp conftest.$ac_ext"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } >/dev/null && {
9849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 }; then
9852 ac_header_preproc=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_header_preproc=no
9858 fi
9859
9860 rm -f conftest.err conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9862 echo "${ECHO_T}$ac_header_preproc" >&6; }
9863
9864 # So? What about this header?
9865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9866 yes:no: )
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9871 ac_header_preproc=yes
9872 ;;
9873 no:yes:* )
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9886
9887 ;;
9888 esac
9889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 eval "$as_ac_Header=\$ac_header_preproc"
9895 fi
9896 ac_res=`eval echo '${'$as_ac_Header'}'`
9897 { echo "$as_me:$LINENO: result: $ac_res" >&5
9898 echo "${ECHO_T}$ac_res" >&6; }
9899
9900 fi
9901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904 _ACEOF
9905
9906 fi
9907
9908 done
9909
9910
9911 for ac_func in getpagesize
9912 do
9913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9927 #define $ac_func innocuous_$ac_func
9928
9929 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char $ac_func (); below.
9931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9932 <limits.h> exists even on freestanding compilers. */
9933
9934 #ifdef __STDC__
9935 # include <limits.h>
9936 #else
9937 # include <assert.h>
9938 #endif
9939
9940 #undef $ac_func
9941
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char $ac_func ();
9949 /* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952 #if defined __stub_$ac_func || defined __stub___$ac_func
9953 choke me
9954 #endif
9955
9956 int
9957 main ()
9958 {
9959 return $ac_func ();
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext &&
9981 $as_test_x conftest$ac_exeext; then
9982 eval "$as_ac_var=yes"
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 eval "$as_ac_var=no"
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9991 conftest$ac_exeext conftest.$ac_ext
9992 fi
9993 ac_res=`eval echo '${'$as_ac_var'}'`
9994 { echo "$as_me:$LINENO: result: $ac_res" >&5
9995 echo "${ECHO_T}$ac_res" >&6; }
9996 if test `eval echo '${'$as_ac_var'}'` = yes; then
9997 cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9999 _ACEOF
10000
10001 fi
10002 done
10003
10004 { echo "$as_me:$LINENO: checking for working mmap" >&5
10005 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10006 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 if test "$cross_compiling" = yes; then
10010 ac_cv_func_mmap_fixed_mapped=no
10011 else
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 $ac_includes_default
10019 /* malloc might have been renamed as rpl_malloc. */
10020 #undef malloc
10021
10022 /* Thanks to Mike Haertel and Jim Avera for this test.
10023 Here is a matrix of mmap possibilities:
10024 mmap private not fixed
10025 mmap private fixed at somewhere currently unmapped
10026 mmap private fixed at somewhere already mapped
10027 mmap shared not fixed
10028 mmap shared fixed at somewhere currently unmapped
10029 mmap shared fixed at somewhere already mapped
10030 For private mappings, we should verify that changes cannot be read()
10031 back from the file, nor mmap's back from the file at a different
10032 address. (There have been systems where private was not correctly
10033 implemented like the infamous i386 svr4.0, and systems where the
10034 VM page cache was not coherent with the file system buffer cache
10035 like early versions of FreeBSD and possibly contemporary NetBSD.)
10036 For shared mappings, we should conversely verify that changes get
10037 propagated back to all the places they're supposed to be.
10038
10039 Grep wants private fixed already mapped.
10040 The main things grep needs to know about mmap are:
10041 * does it exist and is it safe to write into the mmap'd area
10042 * how to use it (BSD variants) */
10043
10044 #include <fcntl.h>
10045 #include <sys/mman.h>
10046
10047 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10048 char *malloc ();
10049 #endif
10050
10051 /* This mess was copied from the GNU getpagesize.h. */
10052 #ifndef HAVE_GETPAGESIZE
10053 /* Assume that all systems that can run configure have sys/param.h. */
10054 # ifndef HAVE_SYS_PARAM_H
10055 # define HAVE_SYS_PARAM_H 1
10056 # endif
10057
10058 # ifdef _SC_PAGESIZE
10059 # define getpagesize() sysconf(_SC_PAGESIZE)
10060 # else /* no _SC_PAGESIZE */
10061 # ifdef HAVE_SYS_PARAM_H
10062 # include <sys/param.h>
10063 # ifdef EXEC_PAGESIZE
10064 # define getpagesize() EXEC_PAGESIZE
10065 # else /* no EXEC_PAGESIZE */
10066 # ifdef NBPG
10067 # define getpagesize() NBPG * CLSIZE
10068 # ifndef CLSIZE
10069 # define CLSIZE 1
10070 # endif /* no CLSIZE */
10071 # else /* no NBPG */
10072 # ifdef NBPC
10073 # define getpagesize() NBPC
10074 # else /* no NBPC */
10075 # ifdef PAGESIZE
10076 # define getpagesize() PAGESIZE
10077 # endif /* PAGESIZE */
10078 # endif /* no NBPC */
10079 # endif /* no NBPG */
10080 # endif /* no EXEC_PAGESIZE */
10081 # else /* no HAVE_SYS_PARAM_H */
10082 # define getpagesize() 8192 /* punt totally */
10083 # endif /* no HAVE_SYS_PARAM_H */
10084 # endif /* no _SC_PAGESIZE */
10085
10086 #endif /* no HAVE_GETPAGESIZE */
10087
10088 int
10089 main ()
10090 {
10091 char *data, *data2, *data3;
10092 int i, pagesize;
10093 int fd;
10094
10095 pagesize = getpagesize ();
10096
10097 /* First, make a file with some known garbage in it. */
10098 data = (char *) malloc (pagesize);
10099 if (!data)
10100 return 1;
10101 for (i = 0; i < pagesize; ++i)
10102 *(data + i) = rand ();
10103 umask (0);
10104 fd = creat ("conftest.mmap", 0600);
10105 if (fd < 0)
10106 return 1;
10107 if (write (fd, data, pagesize) != pagesize)
10108 return 1;
10109 close (fd);
10110
10111 /* Next, try to mmap the file at a fixed address which already has
10112 something else allocated at it. If we can, also make sure that
10113 we see the same garbage. */
10114 fd = open ("conftest.mmap", O_RDWR);
10115 if (fd < 0)
10116 return 1;
10117 data2 = (char *) malloc (2 * pagesize);
10118 if (!data2)
10119 return 1;
10120 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10121 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10122 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10123 return 1;
10124 for (i = 0; i < pagesize; ++i)
10125 if (*(data + i) != *(data2 + i))
10126 return 1;
10127
10128 /* Finally, make sure that changes to the mapped area do not
10129 percolate back to the file as seen by read(). (This is a bug on
10130 some variants of i386 svr4.0.) */
10131 for (i = 0; i < pagesize; ++i)
10132 *(data2 + i) = *(data2 + i) + 1;
10133 data3 = (char *) malloc (pagesize);
10134 if (!data3)
10135 return 1;
10136 if (read (fd, data3, pagesize) != pagesize)
10137 return 1;
10138 for (i = 0; i < pagesize; ++i)
10139 if (*(data + i) != *(data3 + i))
10140 return 1;
10141 close (fd);
10142 return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_func_mmap_fixed_mapped=yes
10166 else
10167 echo "$as_me: program exited with status $ac_status" >&5
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171 ( exit $ac_status )
10172 ac_cv_func_mmap_fixed_mapped=no
10173 fi
10174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10175 fi
10176
10177
10178 fi
10179 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10180 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_MMAP 1
10185 _ACEOF
10186
10187 fi
10188 rm -f conftest.mmap
10189
10190 if test $use_mmap_for_buffers = yes; then
10191 REL_ALLOC=no
10192 fi
10193
10194 LIBS="$libsrc_libs $LIBS"
10195
10196
10197 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10198 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10199 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-ldnet $LIBS"
10204 cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h. */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10210
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char dnet_ntoa ();
10218 int
10219 main ()
10220 {
10221 return dnet_ntoa ();
10222 ;
10223 return 0;
10224 }
10225 _ACEOF
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest$ac_exeext &&
10243 $as_test_x conftest$ac_exeext; then
10244 ac_cv_lib_dnet_dnet_ntoa=yes
10245 else
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_cv_lib_dnet_dnet_ntoa=no
10250 fi
10251
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10255 fi
10256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10257 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10258 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_LIBDNET 1
10261 _ACEOF
10262
10263 LIBS="-ldnet $LIBS"
10264
10265 fi
10266
10267
10268 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10269 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10270 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273 ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-lXbsd $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281
10282
10283 int
10284 main ()
10285 {
10286 return main ();
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest$ac_exeext &&
10308 $as_test_x conftest$ac_exeext; then
10309 ac_cv_lib_Xbsd_main=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_cv_lib_Xbsd_main=no
10315 fi
10316
10317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10320 fi
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10322 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10323 if test $ac_cv_lib_Xbsd_main = yes; then
10324 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10325 fi
10326
10327
10328
10329 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10330 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10331 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-lpthreads $LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char cma_open ();
10350 int
10351 main ()
10352 {
10353 return cma_open ();
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest$ac_exeext &&
10375 $as_test_x conftest$ac_exeext; then
10376 ac_cv_lib_pthreads_cma_open=yes
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10380
10381 ac_cv_lib_pthreads_cma_open=no
10382 fi
10383
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10387 fi
10388 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10389 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10390 if test $ac_cv_lib_pthreads_cma_open = yes; then
10391 cat >>confdefs.h <<_ACEOF
10392 #define HAVE_LIBPTHREADS 1
10393 _ACEOF
10394
10395 LIBS="-lpthreads $LIBS"
10396
10397 fi
10398
10399
10400
10401 case ${host_os} in
10402 aix*)
10403 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10404 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10405 if test "${gdb_cv_bigtoc+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408
10409 case $GCC in
10410 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10411 *) gdb_cv_bigtoc=-bbigtoc ;;
10412 esac
10413
10414 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421
10422 int
10423 main ()
10424 {
10425 int i;
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_link") 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest$ac_exeext &&
10447 $as_test_x conftest$ac_exeext; then
10448 :
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453 gdb_cv_bigtoc=
10454 fi
10455
10456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10457 conftest$ac_exeext conftest.$ac_ext
10458
10459 fi
10460 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10461 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10462 ;;
10463 esac
10464
10465 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10466 # used for the tests that follow. We set them back to REAL_CFLAGS and
10467 # REAL_CPPFLAGS later on.
10468
10469 REAL_CPPFLAGS="$CPPFLAGS"
10470
10471 if test "${HAVE_X11}" = "yes"; then
10472 DEFS="$C_SWITCH_X_SITE $DEFS"
10473 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10474 LIBS="$LIBX $LIBS"
10475 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10476 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10477
10478 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10479 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10480 # but it's more convenient here to set LD_RUN_PATH
10481 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10482 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10483 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10484 export LD_RUN_PATH
10485 fi
10486
10487 if test "${opsys}" = "gnu-linux"; then
10488 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10489 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496
10497 int
10498 main ()
10499 {
10500 XOpenDisplay ("foo");
10501 ;
10502 return 0;
10503 }
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (ac_try="$ac_link"
10507 case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510 esac
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_link") 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && {
10519 test -z "$ac_c_werror_flag" ||
10520 test ! -s conftest.err
10521 } && test -s conftest$ac_exeext &&
10522 $as_test_x conftest$ac_exeext; then
10523 xlinux_first_failure=no
10524 else
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10527
10528 xlinux_first_failure=yes
10529 fi
10530
10531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10532 conftest$ac_exeext conftest.$ac_ext
10533 if test "${xlinux_first_failure}" = "yes"; then
10534 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10535 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10536 OLD_CPPFLAGS="$CPPFLAGS"
10537 OLD_LIBS="$LIBS"
10538 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10539 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10540 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10541 LIBS="$LIBS -b i486-linuxaout"
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h. */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548
10549 int
10550 main ()
10551 {
10552 XOpenDisplay ("foo");
10553 ;
10554 return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext &&
10574 $as_test_x conftest$ac_exeext; then
10575 xlinux_second_failure=no
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 xlinux_second_failure=yes
10581 fi
10582
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext conftest.$ac_ext
10585 if test "${xlinux_second_failure}" = "yes"; then
10586 # If we get the same failure with -b, there is no use adding -b.
10587 # So take it out. This plays safe.
10588 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10589 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10590 CPPFLAGS="$OLD_CPPFLAGS"
10591 LIBS="$OLD_LIBS"
10592 { echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6; }
10594 else
10595 { echo "$as_me:$LINENO: result: yes" >&5
10596 echo "${ECHO_T}yes" >&6; }
10597 fi
10598 else
10599 { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10601 fi
10602 fi
10603
10604 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10605 # header files included from there.
10606 { echo "$as_me:$LINENO: checking for Xkb" >&5
10607 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <X11/Xlib.h>
10615 #include <X11/XKBlib.h>
10616 int
10617 main ()
10618 {
10619 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest$ac_exeext &&
10641 $as_test_x conftest$ac_exeext; then
10642 emacs_xkb=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647 emacs_xkb=no
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651 conftest$ac_exeext conftest.$ac_ext
10652 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10653 echo "${ECHO_T}$emacs_xkb" >&6; }
10654 if test $emacs_xkb = yes; then
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_XKBGETKEYBOARD 1
10658 _ACEOF
10659
10660 fi
10661
10662
10663
10664
10665
10666 for ac_func in XrmSetDatabase XScreenResourceString \
10667 XScreenNumberOfScreen XSetWMProtocols
10668 do
10669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683 #define $ac_func innocuous_$ac_func
10684
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
10689
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10695
10696 #undef $ac_func
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char $ac_func ();
10705 /* The GNU C library defines this for functions which it implements
10706 to always fail with ENOSYS. Some functions are actually named
10707 something starting with __ and the normal name is an alias. */
10708 #if defined __stub_$ac_func || defined __stub___$ac_func
10709 choke me
10710 #endif
10711
10712 int
10713 main ()
10714 {
10715 return $ac_func ();
10716 ;
10717 return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_link") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
10736 } && test -s conftest$ac_exeext &&
10737 $as_test_x conftest$ac_exeext; then
10738 eval "$as_ac_var=yes"
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 eval "$as_ac_var=no"
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747 conftest$ac_exeext conftest.$ac_ext
10748 fi
10749 ac_res=`eval echo '${'$as_ac_var'}'`
10750 { echo "$as_me:$LINENO: result: $ac_res" >&5
10751 echo "${ECHO_T}$ac_res" >&6; }
10752 if test `eval echo '${'$as_ac_var'}'` = yes; then
10753 cat >>confdefs.h <<_ACEOF
10754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10755 _ACEOF
10756
10757 fi
10758 done
10759
10760 fi
10761
10762 if test "${window_system}" = "x11"; then
10763 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10764 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10765 if test "${emacs_cv_x11_version_6+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <X11/Xlib.h>
10775 int
10776 main ()
10777 {
10778 #if XlibSpecificationRelease < 6
10779 fail;
10780 #endif
10781
10782 ;
10783 return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_link") 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest$ac_exeext &&
10803 $as_test_x conftest$ac_exeext; then
10804 emacs_cv_x11_version_6=yes
10805 else
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 emacs_cv_x11_version_6=no
10810 fi
10811
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 fi
10815
10816 if test $emacs_cv_x11_version_6 = yes; then
10817 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10818 echo "${ECHO_T}6 or newer" >&6; }
10819
10820 cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_X11R6 1
10822 _ACEOF
10823
10824 else
10825 { echo "$as_me:$LINENO: result: before 6" >&5
10826 echo "${ECHO_T}before 6" >&6; }
10827 fi
10828 fi
10829
10830
10831 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10832 HAVE_RSVG=no
10833 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10834 if test "${with_rsvg}" != "no"; then
10835 RSVG_REQUIRED=2.0.0
10836 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10837
10838
10839 succeeded=no
10840
10841 # Extract the first word of "pkg-config", so it can be a program name with args.
10842 set dummy pkg-config; ac_word=$2
10843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 case $PKG_CONFIG in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10851 ;;
10852 *)
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10855 do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864 done
10865 done
10866 IFS=$as_save_IFS
10867
10868 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10869 ;;
10870 esac
10871 fi
10872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10873 if test -n "$PKG_CONFIG"; then
10874 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10875 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10876 else
10877 { echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6; }
10879 fi
10880
10881
10882
10883 if test "$PKG_CONFIG" = "no" ; then
10884 :
10885 else
10886 PKG_CONFIG_MIN_VERSION=0.9.0
10887 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10888 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10889 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10890
10891 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10892 { echo "$as_me:$LINENO: result: yes" >&5
10893 echo "${ECHO_T}yes" >&6; }
10894 succeeded=yes
10895
10896 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10897 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10898 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10899 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10900 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10901
10902 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10903 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10904 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10906 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10907 else
10908 { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10910 RSVG_CFLAGS=""
10911 RSVG_LIBS=""
10912 ## If we have a custom action on failure, don't print errors, but
10913 ## do set a variable so people can do so.
10914 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10915
10916 fi
10917
10918
10919
10920 else
10921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10923 fi
10924 fi
10925
10926 if test $succeeded = yes; then
10927 :
10928 else
10929 :
10930 fi
10931
10932
10933
10934
10935 if test ".${RSVG_CFLAGS}" != "."; then
10936 HAVE_RSVG=yes
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_RSVG 1
10940 _ACEOF
10941
10942 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10943 LIBS="$RSVG_LIBS $LIBS"
10944 fi
10945 fi
10946 fi
10947
10948
10949 HAVE_GTK=no
10950 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10951 GLIB_REQUIRED=2.6
10952 GTK_REQUIRED=2.6
10953 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10954
10955
10956 succeeded=no
10957
10958 # Extract the first word of "pkg-config", so it can be a program name with args.
10959 set dummy pkg-config; ac_word=$2
10960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10962 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 case $PKG_CONFIG in
10966 [\\/]* | ?:[\\/]*)
10967 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10968 ;;
10969 *)
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981 done
10982 done
10983 IFS=$as_save_IFS
10984
10985 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10986 ;;
10987 esac
10988 fi
10989 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10990 if test -n "$PKG_CONFIG"; then
10991 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10992 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10993 else
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10996 fi
10997
10998
10999
11000 if test "$PKG_CONFIG" = "no" ; then
11001 pkg_check_gtk=no
11002 else
11003 PKG_CONFIG_MIN_VERSION=0.9.0
11004 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11005 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11006 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11007
11008 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11009 { echo "$as_me:$LINENO: result: yes" >&5
11010 echo "${ECHO_T}yes" >&6; }
11011 succeeded=yes
11012
11013 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11014 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11015 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11016 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11017 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11018
11019 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11020 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11021 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11022 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11023 echo "${ECHO_T}$GTK_LIBS" >&6; }
11024 else
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11027 GTK_CFLAGS=""
11028 GTK_LIBS=""
11029 ## If we have a custom action on failure, don't print errors, but
11030 ## do set a variable so people can do so.
11031 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11032
11033 fi
11034
11035
11036
11037 else
11038 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11039 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11040 fi
11041 fi
11042
11043 if test $succeeded = yes; then
11044 pkg_check_gtk=yes
11045 else
11046 pkg_check_gtk=no
11047 fi
11048
11049 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11050 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11051 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11052 { (exit 1); exit 1; }; }
11053 fi
11054 fi
11055
11056
11057 if test x"$pkg_check_gtk" = xyes; then
11058
11059
11060
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11062 CFLAGS="$CFLAGS $GTK_CFLAGS"
11063 LIBS="$GTK_LIBS $LIBS"
11064 GTK_COMPILES=no
11065
11066 for ac_func in gtk_main
11067 do
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11083
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11088
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094
11095 #undef $ac_func
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11108 choke me
11109 #endif
11110
11111 int
11112 main ()
11113 {
11114 return $ac_func ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 eval "$as_ac_var=yes"
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 eval "$as_ac_var=no"
11143 fi
11144
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11147 fi
11148 ac_res=`eval echo '${'$as_ac_var'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_var'}'` = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11154 _ACEOF
11155 GTK_COMPILES=yes
11156 fi
11157 done
11158
11159 if test "${GTK_COMPILES}" != "yes"; then
11160 if test "$USE_X_TOOLKIT" != "maybe"; then
11161 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11162 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11163 { (exit 1); exit 1; }; };
11164 fi
11165 else
11166 HAVE_GTK=yes
11167
11168 cat >>confdefs.h <<\_ACEOF
11169 #define USE_GTK 1
11170 _ACEOF
11171
11172 USE_X_TOOLKIT=none
11173 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11174 :
11175 else
11176 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11177 closing open displays. This is no problem if you just use
11178 one display, but if you use more than one and close one of them
11179 Emacs may crash." >&5
11180 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11181 closing open displays. This is no problem if you just use
11182 one display, but if you use more than one and close one of them
11183 Emacs may crash." >&2;}
11184 sleep 3
11185 fi
11186 fi
11187
11188 fi
11189
11190
11191 if test "${HAVE_GTK}" = "yes"; then
11192
11193 if test "$with_toolkit_scroll_bars" != no; then
11194 with_toolkit_scroll_bars=yes
11195 fi
11196
11197 HAVE_GTK_MULTIDISPLAY=no
11198
11199 for ac_func in gdk_display_open
11200 do
11201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11215 #define $ac_func innocuous_$ac_func
11216
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below.
11219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220 <limits.h> exists even on freestanding compilers. */
11221
11222 #ifdef __STDC__
11223 # include <limits.h>
11224 #else
11225 # include <assert.h>
11226 #endif
11227
11228 #undef $ac_func
11229
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char $ac_func ();
11237 /* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240 #if defined __stub_$ac_func || defined __stub___$ac_func
11241 choke me
11242 #endif
11243
11244 int
11245 main ()
11246 {
11247 return $ac_func ();
11248 ;
11249 return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest$ac_exeext &&
11269 $as_test_x conftest$ac_exeext; then
11270 eval "$as_ac_var=yes"
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 eval "$as_ac_var=no"
11276 fi
11277
11278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11279 conftest$ac_exeext conftest.$ac_ext
11280 fi
11281 ac_res=`eval echo '${'$as_ac_var'}'`
11282 { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11284 if test `eval echo '${'$as_ac_var'}'` = yes; then
11285 cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 _ACEOF
11288 HAVE_GTK_MULTIDISPLAY=yes
11289 fi
11290 done
11291
11292 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11293
11294 cat >>confdefs.h <<\_ACEOF
11295 #define HAVE_GTK_MULTIDISPLAY 1
11296 _ACEOF
11297
11298 fi
11299
11300 HAVE_GTK_FILE_SELECTION=no
11301
11302 for ac_func in gtk_file_selection_new
11303 do
11304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11318 #define $ac_func innocuous_$ac_func
11319
11320 /* System header to define __stub macros and hopefully few prototypes,
11321 which can conflict with char $ac_func (); below.
11322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11323 <limits.h> exists even on freestanding compilers. */
11324
11325 #ifdef __STDC__
11326 # include <limits.h>
11327 #else
11328 # include <assert.h>
11329 #endif
11330
11331 #undef $ac_func
11332
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char $ac_func ();
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined __stub_$ac_func || defined __stub___$ac_func
11344 choke me
11345 #endif
11346
11347 int
11348 main ()
11349 {
11350 return $ac_func ();
11351 ;
11352 return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (ac_try="$ac_link"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_link") 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
11371 } && test -s conftest$ac_exeext &&
11372 $as_test_x conftest$ac_exeext; then
11373 eval "$as_ac_var=yes"
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 eval "$as_ac_var=no"
11379 fi
11380
11381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11382 conftest$ac_exeext conftest.$ac_ext
11383 fi
11384 ac_res=`eval echo '${'$as_ac_var'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387 if test `eval echo '${'$as_ac_var'}'` = yes; then
11388 cat >>confdefs.h <<_ACEOF
11389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11390 _ACEOF
11391 HAVE_GTK_FILE_SELECTION=yes
11392 fi
11393 done
11394
11395
11396 HAVE_GTK_FILE_CHOOSER=no
11397
11398 for ac_func in gtk_file_chooser_dialog_new
11399 do
11400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414 #define $ac_func innocuous_$ac_func
11415
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11420
11421 #ifdef __STDC__
11422 # include <limits.h>
11423 #else
11424 # include <assert.h>
11425 #endif
11426
11427 #undef $ac_func
11428
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char $ac_func ();
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined __stub_$ac_func || defined __stub___$ac_func
11440 choke me
11441 #endif
11442
11443 int
11444 main ()
11445 {
11446 return $ac_func ();
11447 ;
11448 return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11469 eval "$as_ac_var=yes"
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 eval "$as_ac_var=no"
11475 fi
11476
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11479 fi
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 _ACEOF
11487 HAVE_GTK_FILE_CHOOSER=yes
11488 fi
11489 done
11490
11491
11492 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11493 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11494
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_GTK_FILE_BOTH 1
11497 _ACEOF
11498
11499 fi
11500
11501 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11502 HAVE_GTK_AND_PTHREAD=no
11503
11504 for ac_header in pthread.h
11505 do
11506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 fi
11513 ac_res=`eval echo '${'$as_ac_Header'}'`
11514 { echo "$as_me:$LINENO: result: $ac_res" >&5
11515 echo "${ECHO_T}$ac_res" >&6; }
11516 else
11517 # Is the header compilable?
11518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 $ac_includes_default
11527 #include <$ac_header>
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (ac_try="$ac_compile"
11531 case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_compile") 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest.$ac_objext; then
11546 ac_header_compiler=yes
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 ac_header_compiler=no
11552 fi
11553
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 echo "${ECHO_T}$ac_header_compiler" >&6; }
11557
11558 # Is the header present?
11559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <$ac_header>
11568 _ACEOF
11569 if { (ac_try="$ac_cpp conftest.$ac_ext"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } >/dev/null && {
11582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11583 test ! -s conftest.err
11584 }; then
11585 ac_header_preproc=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_header_preproc=no
11591 fi
11592
11593 rm -f conftest.err conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595 echo "${ECHO_T}$ac_header_preproc" >&6; }
11596
11597 # So? What about this header?
11598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 yes:no: )
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604 ac_header_preproc=yes
11605 ;;
11606 no:yes:* )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11619
11620 ;;
11621 esac
11622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627 eval "$as_ac_Header=\$ac_header_preproc"
11628 fi
11629 ac_res=`eval echo '${'$as_ac_Header'}'`
11630 { echo "$as_me:$LINENO: result: $ac_res" >&5
11631 echo "${ECHO_T}$ac_res" >&6; }
11632
11633 fi
11634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11635 cat >>confdefs.h <<_ACEOF
11636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 _ACEOF
11638
11639 fi
11640
11641 done
11642
11643 if test "$ac_cv_header_pthread_h"; then
11644 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11645 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11646 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lpthread $LIBS"
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char pthread_self ();
11665 int
11666 main ()
11667 {
11668 return pthread_self ();
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest$ac_exeext &&
11690 $as_test_x conftest$ac_exeext; then
11691 ac_cv_lib_pthread_pthread_self=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696 ac_cv_lib_pthread_pthread_self=no
11697 fi
11698
11699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11700 conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11702 fi
11703 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11704 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11705 if test $ac_cv_lib_pthread_pthread_self = yes; then
11706 HAVE_GTK_AND_PTHREAD=yes
11707 fi
11708
11709 fi
11710 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11711 case "${canonical}" in
11712 *-hpux*) ;;
11713 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11714 esac
11715
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_GTK_AND_PTHREAD 1
11718 _ACEOF
11719
11720 fi
11721 fi
11722 fi
11723
11724 HAVE_DBUS=no
11725 if test "${with_dbus}" = "yes"; then
11726
11727 succeeded=no
11728
11729 # Extract the first word of "pkg-config", so it can be a program name with args.
11730 set dummy pkg-config; ac_word=$2
11731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 case $PKG_CONFIG in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11739 ;;
11740 *)
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11751 fi
11752 done
11753 done
11754 IFS=$as_save_IFS
11755
11756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11757 ;;
11758 esac
11759 fi
11760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11761 if test -n "$PKG_CONFIG"; then
11762 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11763 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11764 else
11765 { echo "$as_me:$LINENO: result: no" >&5
11766 echo "${ECHO_T}no" >&6; }
11767 fi
11768
11769
11770
11771 if test "$PKG_CONFIG" = "no" ; then
11772 HAVE_DBUS=no
11773 else
11774 PKG_CONFIG_MIN_VERSION=0.9.0
11775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11776 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11777 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11778
11779 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11780 { echo "$as_me:$LINENO: result: yes" >&5
11781 echo "${ECHO_T}yes" >&6; }
11782 succeeded=yes
11783
11784 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11785 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11786 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11787 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11788 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11789
11790 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11791 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11792 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11793 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11794 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11795 else
11796 { echo "$as_me:$LINENO: result: no" >&5
11797 echo "${ECHO_T}no" >&6; }
11798 DBUS_CFLAGS=""
11799 DBUS_LIBS=""
11800 ## If we have a custom action on failure, don't print errors, but
11801 ## do set a variable so people can do so.
11802 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11803
11804 fi
11805
11806
11807
11808 else
11809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11811 fi
11812 fi
11813
11814 if test $succeeded = yes; then
11815 HAVE_DBUS=yes
11816 else
11817 HAVE_DBUS=no
11818 fi
11819
11820 if test "$HAVE_DBUS" = yes; then
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define HAVE_DBUS 1
11824 _ACEOF
11825
11826 fi
11827 fi
11828
11829 HAVE_XAW3D=no
11830 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11831 if test "$with_xaw3d" != no; then
11832 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11833 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11834 if test "${emacs_cv_xaw3d+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843
11844 #include <X11/Intrinsic.h>
11845 #include <X11/Xaw3d/Simple.h>
11846 int
11847 main ()
11848 {
11849
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (ac_try="$ac_link"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_link") 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest$ac_exeext &&
11871 $as_test_x conftest$ac_exeext; then
11872 emacs_cv_xaw3d=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 emacs_cv_xaw3d=no
11878 fi
11879
11880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11881 conftest$ac_exeext conftest.$ac_ext
11882 fi
11883
11884 else
11885 emacs_cv_xaw3d=no
11886 fi
11887 if test $emacs_cv_xaw3d = yes; then
11888 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11889 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11890 USE_X_TOOLKIT=LUCID
11891 HAVE_XAW3D=yes
11892
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_XAW3D 1
11895 _ACEOF
11896
11897 else
11898 { echo "$as_me:$LINENO: result: no" >&5
11899 echo "${ECHO_T}no" >&6; }
11900 { echo "$as_me:$LINENO: checking for libXaw" >&5
11901 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11902 if test "${emacs_cv_xaw+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911
11912 #include <X11/Intrinsic.h>
11913 #include <X11/Xaw/Simple.h>
11914 int
11915 main ()
11916 {
11917
11918 ;
11919 return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_link") 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } && {
11936 test -z "$ac_c_werror_flag" ||
11937 test ! -s conftest.err
11938 } && test -s conftest$ac_exeext &&
11939 $as_test_x conftest$ac_exeext; then
11940 emacs_cv_xaw=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 emacs_cv_xaw=no
11946 fi
11947
11948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11949 conftest$ac_exeext conftest.$ac_ext
11950 fi
11951
11952 if test $emacs_cv_xaw = yes; then
11953 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11954 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11955 USE_X_TOOLKIT=LUCID
11956 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11957 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11958 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11959 { (exit 1); exit 1; }; }
11960 else
11961 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11962 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11963 USE_X_TOOLKIT=none
11964 fi
11965 fi
11966 fi
11967
11968 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11969
11970 if test "${USE_X_TOOLKIT}" != "none"; then
11971 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11972 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11973 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 #include <X11/Intrinsic.h>
11983 int
11984 main ()
11985 {
11986 #if XtSpecificationRelease < 6
11987 fail;
11988 #endif
11989
11990 ;
11991 return 0;
11992 }
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (ac_try="$ac_link"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_link") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest$ac_exeext &&
12011 $as_test_x conftest$ac_exeext; then
12012 emacs_cv_x11_toolkit_version_6=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 emacs_cv_x11_toolkit_version_6=no
12018 fi
12019
12020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021 conftest$ac_exeext conftest.$ac_ext
12022 fi
12023
12024 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12025 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12026 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12027 echo "${ECHO_T}6 or newer" >&6; }
12028
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_X11XTR6 1
12031 _ACEOF
12032
12033 else
12034 { echo "$as_me:$LINENO: result: before 6" >&5
12035 echo "${ECHO_T}before 6" >&6; }
12036 fi
12037
12038 OLDLIBS="$LIBS"
12039 if test x$HAVE_X11XTR6 = xyes; then
12040 LIBS="-lXt -lSM -lICE $LIBS"
12041 else
12042 LIBS="-lXt $LIBS"
12043 fi
12044
12045 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12046 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXmu $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char XmuConvertStandardSelection ();
12066 int
12067 main ()
12068 {
12069 return XmuConvertStandardSelection ();
12070 ;
12071 return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest$ac_exeext &&
12091 $as_test_x conftest$ac_exeext; then
12092 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12098 fi
12099
12100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12103 fi
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12106 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_LIBXMU 1
12109 _ACEOF
12110
12111 LIBS="-lXmu $LIBS"
12112
12113 fi
12114
12115 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12116 fi
12117
12118 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12119 if test "${HAVE_X11}" = "yes"; then
12120 if test "${USE_X_TOOLKIT}" != "none"; then
12121
12122 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12123 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12124 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-lXext $LIBS"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char XShapeQueryExtension ();
12143 int
12144 main ()
12145 {
12146 return XShapeQueryExtension ();
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest$ac_exeext &&
12168 $as_test_x conftest$ac_exeext; then
12169 ac_cv_lib_Xext_XShapeQueryExtension=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174 ac_cv_lib_Xext_XShapeQueryExtension=no
12175 fi
12176
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12182 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12183 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12184 cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBXEXT 1
12186 _ACEOF
12187
12188 LIBS="-lXext $LIBS"
12189
12190 fi
12191
12192 fi
12193 fi
12194
12195 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12196 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12197 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12198 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201 cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h. */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 #include <Xm/Xm.h>
12208 int
12209 main ()
12210 {
12211 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12212 int x = 5;
12213 #else
12214 Motif version prior to 2.1.
12215 #endif
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (ac_try="$ac_compile"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_compile") 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } && {
12234 test -z "$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 } && test -s conftest.$ac_objext; then
12237 emacs_cv_motif_version_2_1=yes
12238 else
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 emacs_cv_motif_version_2_1=no
12243 fi
12244
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 fi
12247 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12248 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12249 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12250 if test $emacs_cv_motif_version_2_1 = yes; then
12251 HAVE_LIBXP=no
12252
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_MOTIF_2_1 1
12255 _ACEOF
12256
12257 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12258 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12259 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262 ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-lXp $LIBS"
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h. */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char XpCreateContext ();
12278 int
12279 main ()
12280 {
12281 return XpCreateContext ();
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } && {
12300 test -z "$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 } && test -s conftest$ac_exeext &&
12303 $as_test_x conftest$ac_exeext; then
12304 ac_cv_lib_Xp_XpCreateContext=yes
12305 else
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 ac_cv_lib_Xp_XpCreateContext=no
12310 fi
12311
12312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12315 fi
12316 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12317 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12318 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12319 HAVE_LIBXP=yes
12320 fi
12321
12322 if test ${HAVE_LIBXP} = yes; then
12323
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_LIBXP 1
12326 _ACEOF
12327
12328 fi
12329 else
12330 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12331 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12332 if test "${emacs_cv_lesstif+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 else
12335 # We put this in CFLAGS temporarily to precede other -I options
12336 # that might be in CFLAGS temporarily.
12337 # We put this in CPPFLAGS where it precedes the other -I options.
12338 OLD_CPPFLAGS=$CPPFLAGS
12339 OLD_CFLAGS=$CFLAGS
12340 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12341 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12349 int
12350 main ()
12351 {
12352 int x = 5;
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 emacs_cv_lesstif=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 emacs_cv_lesstif=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 fi
12384 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12385 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12386 if test $emacs_cv_lesstif = yes; then
12387 # Make sure this -I option remains in CPPFLAGS after it is set
12388 # back to REAL_CPPFLAGS.
12389 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12390 # have those other -I options anyway. Ultimately, having this
12391 # directory ultimately in CPPFLAGS will be enough.
12392 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12393 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12394 else
12395 CFLAGS=$OLD_CFLAGS
12396 CPPFLAGS=$OLD_CPPFLAGS
12397 fi
12398 fi
12399 fi
12400
12401
12402
12403 USE_TOOLKIT_SCROLL_BARS=no
12404 if test "${with_toolkit_scroll_bars}" != "no"; then
12405 if test "${USE_X_TOOLKIT}" != "none"; then
12406 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12407 cat >>confdefs.h <<\_ACEOF
12408 #define USE_TOOLKIT_SCROLL_BARS 1
12409 _ACEOF
12410
12411 HAVE_XAW3D=no
12412 USE_TOOLKIT_SCROLL_BARS=yes
12413 elif test "${HAVE_XAW3D}" = "yes"; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define USE_TOOLKIT_SCROLL_BARS 1
12416 _ACEOF
12417
12418 USE_TOOLKIT_SCROLL_BARS=yes
12419 fi
12420 elif test "${HAVE_GTK}" = "yes"; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define USE_TOOLKIT_SCROLL_BARS 1
12423 _ACEOF
12424
12425 USE_TOOLKIT_SCROLL_BARS=yes
12426 elif test "${HAVE_NS}" = "yes"; then
12427 cat >>confdefs.h <<\_ACEOF
12428 #define USE_TOOLKIT_SCROLL_BARS 1
12429 _ACEOF
12430
12431 USE_TOOLKIT_SCROLL_BARS=yes
12432 fi
12433 fi
12434
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h. */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441
12442 #include <X11/Xlib.h>
12443 #include <X11/Xresource.h>
12444 int
12445 main ()
12446 {
12447 XIMProc callback;
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext
12453 if { (ac_try="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 HAVE_XIM=yes
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_XIM 1
12473 _ACEOF
12474
12475 else
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 HAVE_XIM=no
12480 fi
12481
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483
12484
12485 if test "${with_xim}" != "no"; then
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define USE_XIM 1
12489 _ACEOF
12490
12491 fi
12492
12493
12494 if test "${HAVE_XIM}" != "no"; then
12495 late_CFLAGS=$CFLAGS
12496 if test "$GCC" = yes; then
12497 CFLAGS="$CFLAGS --pedantic-errors"
12498 fi
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505
12506 #include <X11/Xlib.h>
12507 #include <X11/Xresource.h>
12508 int
12509 main ()
12510 {
12511 Display *display;
12512 XrmDatabase db;
12513 char *res_name;
12514 char *res_class;
12515 XIMProc callback;
12516 XPointer *client_data;
12517 #ifndef __GNUC__
12518 /* If we're not using GCC, it's probably not XFree86, and this is
12519 probably right, but we can't use something like --pedantic-errors. */
12520 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12521 char*, XIMProc, XPointer*);
12522 #endif
12523 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12524 client_data);
12525 ;
12526 return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.$ac_objext; then
12546 emacs_cv_arg6_star=yes
12547 else
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555
12556 if test "$emacs_cv_arg6_star" = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12559 _ACEOF
12560
12561 else
12562 cat >>confdefs.h <<\_ACEOF
12563 #define XRegisterIMInstantiateCallback_arg6 XPointer
12564 _ACEOF
12565
12566 fi
12567 CFLAGS=$late_CFLAGS
12568 fi
12569
12570 ### Start of font-backend section.
12571
12572 succeeded=no
12573
12574 # Extract the first word of "pkg-config", so it can be a program name with args.
12575 set dummy pkg-config; ac_word=$2
12576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12578 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581 case $PKG_CONFIG in
12582 [\\/]* | ?:[\\/]*)
12583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12584 ;;
12585 *)
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12588 do
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12593 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12595 break 2
12596 fi
12597 done
12598 done
12599 IFS=$as_save_IFS
12600
12601 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12602 ;;
12603 esac
12604 fi
12605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12606 if test -n "$PKG_CONFIG"; then
12607 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12608 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12609 else
12610 { echo "$as_me:$LINENO: result: no" >&5
12611 echo "${ECHO_T}no" >&6; }
12612 fi
12613
12614
12615
12616 if test "$PKG_CONFIG" = "no" ; then
12617 HAVE_FC=no
12618 else
12619 PKG_CONFIG_MIN_VERSION=0.9.0
12620 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12621 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12622 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12623
12624 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12625 { echo "$as_me:$LINENO: result: yes" >&5
12626 echo "${ECHO_T}yes" >&6; }
12627 succeeded=yes
12628
12629 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12630 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12631 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12632 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12633 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12634
12635 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12636 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12637 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12638 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12639 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12640 else
12641 { echo "$as_me:$LINENO: result: no" >&5
12642 echo "${ECHO_T}no" >&6; }
12643 FONTCONFIG_CFLAGS=""
12644 FONTCONFIG_LIBS=""
12645 ## If we have a custom action on failure, don't print errors, but
12646 ## do set a variable so people can do so.
12647 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12648
12649 fi
12650
12651
12652
12653 else
12654 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12655 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12656 fi
12657 fi
12658
12659 if test $succeeded = yes; then
12660 HAVE_FC=yes
12661 else
12662 HAVE_FC=no
12663 fi
12664
12665 test "${HAVE_FC}" = "no" && with_freetype=no
12666
12667 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12668 HAVE_XFT=maybe
12669 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12670 with_xft="no";
12671 fi
12672 if test "x${with_xft}" != "xno"; then
12673
12674
12675 succeeded=no
12676
12677 # Extract the first word of "pkg-config", so it can be a program name with args.
12678 set dummy pkg-config; ac_word=$2
12679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12681 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684 case $PKG_CONFIG in
12685 [\\/]* | ?:[\\/]*)
12686 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12687 ;;
12688 *)
12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12691 do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12696 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700 done
12701 done
12702 IFS=$as_save_IFS
12703
12704 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12705 ;;
12706 esac
12707 fi
12708 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12709 if test -n "$PKG_CONFIG"; then
12710 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12711 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12712 else
12713 { echo "$as_me:$LINENO: result: no" >&5
12714 echo "${ECHO_T}no" >&6; }
12715 fi
12716
12717
12718
12719 if test "$PKG_CONFIG" = "no" ; then
12720 HAVE_XFT=no
12721 else
12722 PKG_CONFIG_MIN_VERSION=0.9.0
12723 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12724 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12725 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12726
12727 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12728 { echo "$as_me:$LINENO: result: yes" >&5
12729 echo "${ECHO_T}yes" >&6; }
12730 succeeded=yes
12731
12732 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12733 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12734 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12735 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12736 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12737
12738 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12739 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12740 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12741 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12742 echo "${ECHO_T}$XFT_LIBS" >&6; }
12743 else
12744 { echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6; }
12746 XFT_CFLAGS=""
12747 XFT_LIBS=""
12748 ## If we have a custom action on failure, don't print errors, but
12749 ## do set a variable so people can do so.
12750 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12751
12752 fi
12753
12754
12755
12756 else
12757 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12758 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12759 fi
12760 fi
12761
12762 if test $succeeded = yes; then
12763 :
12764 else
12765 HAVE_XFT=no
12766 fi
12767
12768 if test "$HAVE_XFT" != no; then
12769 OLD_CPPFLAGS="$CPPFLAGS"
12770 OLD_CFLAGS="$CFLAGS"
12771 OLD_LIBS="$LIBS"
12772 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12773 CFLAGS="$CFLAGS $XFT_CFLAGS"
12774 LIBS="$XFT_LIBS $LIBS"
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12777 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12778 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 fi
12781 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12782 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12783 else
12784 # Is the header compilable?
12785 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12786 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 $ac_includes_default
12794 #include <X11/Xft/Xft.h>
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_compile") 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
12813 ac_header_compiler=yes
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 ac_header_compiler=no
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12823 echo "${ECHO_T}$ac_header_compiler" >&6; }
12824
12825 # Is the header present?
12826 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12827 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 #include <X11/Xft/Xft.h>
12835 _ACEOF
12836 if { (ac_try="$ac_cpp conftest.$ac_ext"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } >/dev/null && {
12849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 }; then
12852 ac_header_preproc=yes
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ac_header_preproc=no
12858 fi
12859
12860 rm -f conftest.err conftest.$ac_ext
12861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12862 echo "${ECHO_T}$ac_header_preproc" >&6; }
12863
12864 # So? What about this header?
12865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12866 yes:no: )
12867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12868 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12870 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12871 ac_header_preproc=yes
12872 ;;
12873 no:yes:* )
12874 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12875 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12877 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12879 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12881 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12882 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12883 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12884 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12885 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12886
12887 ;;
12888 esac
12889 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12890 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12891 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12895 fi
12896 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12897 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12898
12899 fi
12900 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12901 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12902 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12903 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906 ac_check_lib_save_LIBS=$LIBS
12907 LIBS="-lXft $XFT_LIBS $LIBS"
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914
12915 /* Override any GCC internal prototype to avoid an error.
12916 Use char because int might match the return type of a GCC
12917 builtin and then its argument prototype would still apply. */
12918 #ifdef __cplusplus
12919 extern "C"
12920 #endif
12921 char XftFontOpen ();
12922 int
12923 main ()
12924 {
12925 return XftFontOpen ();
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 rm -f conftest.$ac_objext conftest$ac_exeext
12931 if { (ac_try="$ac_link"
12932 case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935 esac
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_link") 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest$ac_exeext &&
12947 $as_test_x conftest$ac_exeext; then
12948 ac_cv_lib_Xft_XftFontOpen=yes
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 ac_cv_lib_Xft_XftFontOpen=no
12954 fi
12955
12956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12959 fi
12960 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12961 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12962 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12963 HAVE_XFT=yes
12964 fi
12965
12966 fi
12967
12968
12969
12970 if test "${HAVE_XFT}" = "yes"; then
12971
12972 cat >>confdefs.h <<\_ACEOF
12973 #define HAVE_XFT 1
12974 _ACEOF
12975
12976
12977 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12978 else
12979 CPPFLAGS="$OLD_CPPFLAGS"
12980 CFLAGS="$OLD_CFLAGS"
12981 LIBS="$OLD_LIBS"
12982 fi # "${HAVE_XFT}" = "yes"
12983 fi # "$HAVE_XFT" != no
12984 fi # "x${with_xft}" != "xno"
12985
12986 if test "$HAVE_XFT" != "yes"; then
12987 HAVE_XFT=no
12988 fi
12989
12990
12991 HAVE_FREETYPE=no
12992 ### Use -lfreetype if available, unless `--with-freetype=no'.
12993 if test "${HAVE_XFT}" = "yes"; then
12994 HAVE_FREETYPE=yes
12995 FONTCONFIG_CFLAGS=
12996 FONTCONFIG_LIBS=
12997 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12998
12999
13000 succeeded=no
13001
13002 # Extract the first word of "pkg-config", so it can be a program name with args.
13003 set dummy pkg-config; ac_word=$2
13004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 case $PKG_CONFIG in
13010 [\\/]* | ?:[\\/]*)
13011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13012 ;;
13013 *)
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13030 ;;
13031 esac
13032 fi
13033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13034 if test -n "$PKG_CONFIG"; then
13035 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13036 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13037 else
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13040 fi
13041
13042
13043
13044 if test "$PKG_CONFIG" = "no" ; then
13045 HAVE_FREETYPE=no
13046 else
13047 PKG_CONFIG_MIN_VERSION=0.9.0
13048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13049 { echo "$as_me:$LINENO: checking for freetype2" >&5
13050 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13051
13052 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13053 { echo "$as_me:$LINENO: result: yes" >&5
13054 echo "${ECHO_T}yes" >&6; }
13055 succeeded=yes
13056
13057 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13058 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13059 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13060 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13061 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13062
13063 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13064 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13065 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13066 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13067 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13068 else
13069 { echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6; }
13071 FREETYPE_CFLAGS=""
13072 FREETYPE_LIBS=""
13073 ## If we have a custom action on failure, don't print errors, but
13074 ## do set a variable so people can do so.
13075 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13076
13077 fi
13078
13079
13080
13081 else
13082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13084 fi
13085 fi
13086
13087 if test $succeeded = yes; then
13088 HAVE_FREETYPE=yes
13089 else
13090 HAVE_FREETYPE=no
13091 fi
13092
13093 fi
13094
13095 HAVE_LIBOTF=no
13096 if test "${HAVE_FREETYPE}" = "yes"; then
13097
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_FREETYPE 1
13100 _ACEOF
13101
13102 if test "${with_libotf}" != "no"; then
13103
13104 succeeded=no
13105
13106 # Extract the first word of "pkg-config", so it can be a program name with args.
13107 set dummy pkg-config; ac_word=$2
13108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113 case $PKG_CONFIG in
13114 [\\/]* | ?:[\\/]*)
13115 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13116 ;;
13117 *)
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13128 fi
13129 done
13130 done
13131 IFS=$as_save_IFS
13132
13133 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13134 ;;
13135 esac
13136 fi
13137 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13138 if test -n "$PKG_CONFIG"; then
13139 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13140 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13141 else
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13144 fi
13145
13146
13147
13148 if test "$PKG_CONFIG" = "no" ; then
13149 HAVE_LIBOTF=no
13150 else
13151 PKG_CONFIG_MIN_VERSION=0.9.0
13152 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13153 { echo "$as_me:$LINENO: checking for libotf" >&5
13154 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13155
13156 if $PKG_CONFIG --exists "libotf" 2>&5; then
13157 { echo "$as_me:$LINENO: result: yes" >&5
13158 echo "${ECHO_T}yes" >&6; }
13159 succeeded=yes
13160
13161 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13162 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13163 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13164 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13165 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13166
13167 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13168 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13169 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13170 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13171 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13172 else
13173 { echo "$as_me:$LINENO: result: no" >&5
13174 echo "${ECHO_T}no" >&6; }
13175 LIBOTF_CFLAGS=""
13176 LIBOTF_LIBS=""
13177 ## If we have a custom action on failure, don't print errors, but
13178 ## do set a variable so people can do so.
13179 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13180
13181 fi
13182
13183
13184
13185 else
13186 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13187 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13188 fi
13189 fi
13190
13191 if test $succeeded = yes; then
13192 HAVE_LIBOTF=yes
13193 else
13194 HAVE_LIBOTF=no
13195 fi
13196
13197 if test "$HAVE_LIBOTF" = "yes"; then
13198
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_LIBOTF 1
13201 _ACEOF
13202
13203 { echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13204 echo $ECHO_N "checking for OTF_get_variation_glyphs in -lotf... $ECHO_C" >&6; }
13205 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208 ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lotf $LIBS"
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char OTF_get_variation_glyphs ();
13224 int
13225 main ()
13226 {
13227 return OTF_get_variation_glyphs ();
13228 ;
13229 return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_link") 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } && {
13246 test -z "$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13248 } && test -s conftest$ac_exeext &&
13249 $as_test_x conftest$ac_exeext; then
13250 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13256 fi
13257
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13261 fi
13262 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13263 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13264 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13265 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13266 else
13267 HAVE_OTF_GET_VARIATION_GLYPHS=no
13268 fi
13269
13270 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13271
13272 cat >>confdefs.h <<\_ACEOF
13273 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13274 _ACEOF
13275
13276 fi
13277 fi
13278 fi
13279 fi
13280
13281 HAVE_M17N_FLT=no
13282 if test "${HAVE_LIBOTF}" = yes; then
13283 if test "${with_m17n_flt}" != "no"; then
13284
13285 succeeded=no
13286
13287 # Extract the first word of "pkg-config", so it can be a program name with args.
13288 set dummy pkg-config; ac_word=$2
13289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13291 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13292 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 else
13294 case $PKG_CONFIG in
13295 [\\/]* | ?:[\\/]*)
13296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13297 ;;
13298 *)
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13301 do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13309 fi
13310 done
13311 done
13312 IFS=$as_save_IFS
13313
13314 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13315 ;;
13316 esac
13317 fi
13318 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13319 if test -n "$PKG_CONFIG"; then
13320 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13321 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13322 else
13323 { echo "$as_me:$LINENO: result: no" >&5
13324 echo "${ECHO_T}no" >&6; }
13325 fi
13326
13327
13328
13329 if test "$PKG_CONFIG" = "no" ; then
13330 HAVE_M17N_FLT=no
13331 else
13332 PKG_CONFIG_MIN_VERSION=0.9.0
13333 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13334 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13335 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13336
13337 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13338 { echo "$as_me:$LINENO: result: yes" >&5
13339 echo "${ECHO_T}yes" >&6; }
13340 succeeded=yes
13341
13342 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13343 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13344 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13345 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13346 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13347
13348 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13349 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13350 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13351 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13352 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13353 else
13354 { echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6; }
13356 M17N_FLT_CFLAGS=""
13357 M17N_FLT_LIBS=""
13358 ## If we have a custom action on failure, don't print errors, but
13359 ## do set a variable so people can do so.
13360 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13361
13362 fi
13363
13364
13365
13366 else
13367 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13368 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13369 fi
13370 fi
13371
13372 if test $succeeded = yes; then
13373 HAVE_M17N_FLT=yes
13374 else
13375 HAVE_M17N_FLT=no
13376 fi
13377
13378 if test "$HAVE_M17N_FLT" = "yes"; then
13379
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_M17N_FLT 1
13382 _ACEOF
13383
13384 fi
13385 fi
13386 fi
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397 ### End of font-backend section.
13398
13399 ### Use -lXpm if available, unless `--with-xpm=no'.
13400 HAVE_XPM=no
13401 if test "${HAVE_X11}" = "yes"; then
13402 if test "${with_xpm}" != "no"; then
13403 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13404 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13405 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13406 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 fi
13409 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13410 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13411 else
13412 # Is the header compilable?
13413 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13414 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13422 #include <X11/xpm.h>
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_compile") 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
13441 ac_header_compiler=yes
13442 else
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_header_compiler=no
13447 fi
13448
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 echo "${ECHO_T}$ac_header_compiler" >&6; }
13452
13453 # Is the header present?
13454 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13455 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <X11/xpm.h>
13463 _ACEOF
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } >/dev/null && {
13477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13478 test ! -s conftest.err
13479 }; then
13480 ac_header_preproc=yes
13481 else
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_header_preproc=no
13486 fi
13487
13488 rm -f conftest.err conftest.$ac_ext
13489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13490 echo "${ECHO_T}$ac_header_preproc" >&6; }
13491
13492 # So? What about this header?
13493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13494 yes:no: )
13495 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13496 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13498 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13499 ac_header_preproc=yes
13500 ;;
13501 no:yes:* )
13502 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13503 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13505 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13507 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13509 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13511 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13514
13515 ;;
13516 esac
13517 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13518 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13519 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 else
13522 ac_cv_header_X11_xpm_h=$ac_header_preproc
13523 fi
13524 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13525 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13526
13527 fi
13528 if test $ac_cv_header_X11_xpm_h = yes; then
13529 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13530 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13531 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533 else
13534 ac_check_lib_save_LIBS=$LIBS
13535 LIBS="-lXpm -lX11 $LIBS"
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h. */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542
13543 /* Override any GCC internal prototype to avoid an error.
13544 Use char because int might match the return type of a GCC
13545 builtin and then its argument prototype would still apply. */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 char XpmReadFileToPixmap ();
13550 int
13551 main ()
13552 {
13553 return XpmReadFileToPixmap ();
13554 ;
13555 return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (ac_try="$ac_link"
13560 case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_link") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } && {
13572 test -z "$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 } && test -s conftest$ac_exeext &&
13575 $as_test_x conftest$ac_exeext; then
13576 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13577 else
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13582 fi
13583
13584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13585 conftest$ac_exeext conftest.$ac_ext
13586 LIBS=$ac_check_lib_save_LIBS
13587 fi
13588 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13589 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13590 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13591 HAVE_XPM=yes
13592 fi
13593
13594 fi
13595
13596
13597 if test "${HAVE_XPM}" = "yes"; then
13598 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13599 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 #include "X11/xpm.h"
13607 #ifndef XpmReturnAllocPixels
13608 no_return_alloc_pixels
13609 #endif
13610
13611 _ACEOF
13612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13613 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13614 HAVE_XPM=no
13615 else
13616 HAVE_XPM=yes
13617 fi
13618 rm -f conftest*
13619
13620
13621 if test "${HAVE_XPM}" = "yes"; then
13622 { echo "$as_me:$LINENO: result: yes" >&5
13623 echo "${ECHO_T}yes" >&6; }
13624 else
13625 { echo "$as_me:$LINENO: result: no" >&5
13626 echo "${ECHO_T}no" >&6; }
13627 fi
13628 fi
13629 fi
13630
13631 if test "${HAVE_XPM}" = "yes"; then
13632
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_XPM 1
13635 _ACEOF
13636
13637 fi
13638 fi
13639
13640 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13641 HAVE_JPEG=no
13642 if test "${HAVE_X11}" = "yes"; then
13643 if test "${with_jpeg}" != "no"; then
13644 if test "${ac_cv_header_jerror_h+set}" = set; then
13645 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13646 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13647 if test "${ac_cv_header_jerror_h+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 fi
13650 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13651 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13652 else
13653 # Is the header compilable?
13654 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13655 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 $ac_includes_default
13663 #include <jerror.h>
13664 _ACEOF
13665 rm -f conftest.$ac_objext
13666 if { (ac_try="$ac_compile"
13667 case "(($ac_try" in
13668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669 *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672 (eval "$ac_compile") 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } && {
13679 test -z "$ac_c_werror_flag" ||
13680 test ! -s conftest.err
13681 } && test -s conftest.$ac_objext; then
13682 ac_header_compiler=yes
13683 else
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13686
13687 ac_header_compiler=no
13688 fi
13689
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13692 echo "${ECHO_T}$ac_header_compiler" >&6; }
13693
13694 # Is the header present?
13695 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13696 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h. */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 #include <jerror.h>
13704 _ACEOF
13705 if { (ac_try="$ac_cpp conftest.$ac_ext"
13706 case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } >/dev/null && {
13718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13720 }; then
13721 ac_header_preproc=yes
13722 else
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 ac_header_preproc=no
13727 fi
13728
13729 rm -f conftest.err conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13731 echo "${ECHO_T}$ac_header_preproc" >&6; }
13732
13733 # So? What about this header?
13734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13735 yes:no: )
13736 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13737 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13738 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13739 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13740 ac_header_preproc=yes
13741 ;;
13742 no:yes:* )
13743 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13744 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13745 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13746 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13748 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13750 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13752 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13754 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13755
13756 ;;
13757 esac
13758 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13759 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13760 if test "${ac_cv_header_jerror_h+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763 ac_cv_header_jerror_h=$ac_header_preproc
13764 fi
13765 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13766 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13767
13768 fi
13769 if test $ac_cv_header_jerror_h = yes; then
13770 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13771 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13772 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775 ac_check_lib_save_LIBS=$LIBS
13776 LIBS="-ljpeg $LIBS"
13777 cat >conftest.$ac_ext <<_ACEOF
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783
13784 /* Override any GCC internal prototype to avoid an error.
13785 Use char because int might match the return type of a GCC
13786 builtin and then its argument prototype would still apply. */
13787 #ifdef __cplusplus
13788 extern "C"
13789 #endif
13790 char jpeg_destroy_compress ();
13791 int
13792 main ()
13793 {
13794 return jpeg_destroy_compress ();
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (ac_try="$ac_link"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest$ac_exeext &&
13816 $as_test_x conftest$ac_exeext; then
13817 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13823 fi
13824
13825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13826 conftest$ac_exeext conftest.$ac_ext
13827 LIBS=$ac_check_lib_save_LIBS
13828 fi
13829 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13830 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13831 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13832 HAVE_JPEG=yes
13833 fi
13834
13835 fi
13836
13837
13838 fi
13839
13840
13841 if test "${HAVE_JPEG}" = "yes"; then
13842 cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_JPEG 1
13844 _ACEOF
13845
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h. */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13852 #include <jpeglib.h>
13853 version=JPEG_LIB_VERSION
13854
13855 _ACEOF
13856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13857 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13858 cat >>confdefs.h <<\_ACEOF
13859 #define HAVE_JPEG 1
13860 _ACEOF
13861
13862 else
13863 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13864 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13865 HAVE_JPEG=no
13866 fi
13867 rm -f conftest*
13868
13869 fi
13870 fi
13871
13872 ### Use -lpng if available, unless `--with-png=no'.
13873 HAVE_PNG=no
13874 if test "${HAVE_X11}" = "yes"; then
13875 if test "${with_png}" != "no"; then
13876 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13877 # in /usr/include/libpng.
13878
13879
13880 for ac_header in png.h libpng/png.h
13881 do
13882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 fi
13889 ac_res=`eval echo '${'$as_ac_Header'}'`
13890 { echo "$as_me:$LINENO: result: $ac_res" >&5
13891 echo "${ECHO_T}$ac_res" >&6; }
13892 else
13893 # Is the header compilable?
13894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 $ac_includes_default
13903 #include <$ac_header>
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (ac_try="$ac_compile"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_compile") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest.$ac_objext; then
13922 ac_header_compiler=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_header_compiler=no
13928 fi
13929
13930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13932 echo "${ECHO_T}$ac_header_compiler" >&6; }
13933
13934 # Is the header present?
13935 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13936 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 #include <$ac_header>
13944 _ACEOF
13945 if { (ac_try="$ac_cpp conftest.$ac_ext"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } >/dev/null && {
13958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13960 }; then
13961 ac_header_preproc=yes
13962 else
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966 ac_header_preproc=no
13967 fi
13968
13969 rm -f conftest.err conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6; }
13972
13973 # So? What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13975 yes:no: )
13976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc=yes
13981 ;;
13982 no:yes:* )
13983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13995
13996 ;;
13997 esac
13998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 eval "$as_ac_Header=\$ac_header_preproc"
14004 fi
14005 ac_res=`eval echo '${'$as_ac_Header'}'`
14006 { echo "$as_me:$LINENO: result: $ac_res" >&5
14007 echo "${ECHO_T}$ac_res" >&6; }
14008
14009 fi
14010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14011 cat >>confdefs.h <<_ACEOF
14012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14013 _ACEOF
14014
14015 fi
14016
14017 done
14018
14019 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14020 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14021 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14022 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025 ac_check_lib_save_LIBS=$LIBS
14026 LIBS="-lpng -lz -lm $LIBS"
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14033
14034 /* Override any GCC internal prototype to avoid an error.
14035 Use char because int might match the return type of a GCC
14036 builtin and then its argument prototype would still apply. */
14037 #ifdef __cplusplus
14038 extern "C"
14039 #endif
14040 char png_get_channels ();
14041 int
14042 main ()
14043 {
14044 return png_get_channels ();
14045 ;
14046 return 0;
14047 }
14048 _ACEOF
14049 rm -f conftest.$ac_objext conftest$ac_exeext
14050 if { (ac_try="$ac_link"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14054 esac
14055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14056 (eval "$ac_link") 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } && {
14063 test -z "$ac_c_werror_flag" ||
14064 test ! -s conftest.err
14065 } && test -s conftest$ac_exeext &&
14066 $as_test_x conftest$ac_exeext; then
14067 ac_cv_lib_png_png_get_channels=yes
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_cv_lib_png_png_get_channels=no
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14076 conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14078 fi
14079 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14080 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14081 if test $ac_cv_lib_png_png_get_channels = yes; then
14082 HAVE_PNG=yes
14083 fi
14084
14085 fi
14086 fi
14087
14088 if test "${HAVE_PNG}" = "yes"; then
14089
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_PNG 1
14092 _ACEOF
14093
14094 fi
14095 fi
14096
14097 ### Use -ltiff if available, unless `--with-tiff=no'.
14098 HAVE_TIFF=no
14099 if test "${HAVE_X11}" = "yes"; then
14100 if test "${with_tiff}" != "no"; then
14101 if test "${ac_cv_header_tiffio_h+set}" = set; then
14102 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14103 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14104 if test "${ac_cv_header_tiffio_h+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 fi
14107 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14108 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14109 else
14110 # Is the header compilable?
14111 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14112 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h. */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 $ac_includes_default
14120 #include <tiffio.h>
14121 _ACEOF
14122 rm -f conftest.$ac_objext
14123 if { (ac_try="$ac_compile"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_compile") 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } && {
14136 test -z "$ac_c_werror_flag" ||
14137 test ! -s conftest.err
14138 } && test -s conftest.$ac_objext; then
14139 ac_header_compiler=yes
14140 else
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14143
14144 ac_header_compiler=no
14145 fi
14146
14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14149 echo "${ECHO_T}$ac_header_compiler" >&6; }
14150
14151 # Is the header present?
14152 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14153 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <tiffio.h>
14161 _ACEOF
14162 if { (ac_try="$ac_cpp conftest.$ac_ext"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14169 ac_status=$?
14170 grep -v '^ *+' conftest.er1 >conftest.err
14171 rm -f conftest.er1
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } >/dev/null && {
14175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14176 test ! -s conftest.err
14177 }; then
14178 ac_header_preproc=yes
14179 else
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ac_header_preproc=no
14184 fi
14185
14186 rm -f conftest.err conftest.$ac_ext
14187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14188 echo "${ECHO_T}$ac_header_preproc" >&6; }
14189
14190 # So? What about this header?
14191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14192 yes:no: )
14193 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14194 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14196 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14197 ac_header_preproc=yes
14198 ;;
14199 no:yes:* )
14200 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14201 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14203 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14205 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14207 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14209 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14211 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14212
14213 ;;
14214 esac
14215 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14216 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14217 if test "${ac_cv_header_tiffio_h+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220 ac_cv_header_tiffio_h=$ac_header_preproc
14221 fi
14222 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14223 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14224
14225 fi
14226 if test $ac_cv_header_tiffio_h = yes; then
14227 tifflibs="-lz -lm"
14228 # At least one tiff package requires the jpeg library.
14229 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14230 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14231 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14232 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235 ac_check_lib_save_LIBS=$LIBS
14236 LIBS="-ltiff $tifflibs $LIBS"
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243
14244 /* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14247 #ifdef __cplusplus
14248 extern "C"
14249 #endif
14250 char TIFFGetVersion ();
14251 int
14252 main ()
14253 {
14254 return TIFFGetVersion ();
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest$ac_exeext &&
14276 $as_test_x conftest$ac_exeext; then
14277 ac_cv_lib_tiff_TIFFGetVersion=yes
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 ac_cv_lib_tiff_TIFFGetVersion=no
14283 fi
14284
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14287 LIBS=$ac_check_lib_save_LIBS
14288 fi
14289 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14290 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14291 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14292 HAVE_TIFF=yes
14293 fi
14294
14295 fi
14296
14297
14298 fi
14299
14300 if test "${HAVE_TIFF}" = "yes"; then
14301
14302 cat >>confdefs.h <<\_ACEOF
14303 #define HAVE_TIFF 1
14304 _ACEOF
14305
14306 fi
14307 fi
14308
14309 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14310 HAVE_GIF=no
14311 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14312 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14313 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14314 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14315 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 fi
14318 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14319 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14320 else
14321 # Is the header compilable?
14322 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14323 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h. */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 $ac_includes_default
14331 #include <gif_lib.h>
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (ac_try="$ac_compile"
14335 case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14338 esac
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_compile") 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } && {
14347 test -z "$ac_c_werror_flag" ||
14348 test ! -s conftest.err
14349 } && test -s conftest.$ac_objext; then
14350 ac_header_compiler=yes
14351 else
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 ac_header_compiler=no
14356 fi
14357
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14360 echo "${ECHO_T}$ac_header_compiler" >&6; }
14361
14362 # Is the header present?
14363 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14364 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 #include <gif_lib.h>
14372 _ACEOF
14373 if { (ac_try="$ac_cpp conftest.$ac_ext"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } >/dev/null && {
14386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 }; then
14389 ac_header_preproc=yes
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_header_preproc=no
14395 fi
14396
14397 rm -f conftest.err conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14399 echo "${ECHO_T}$ac_header_preproc" >&6; }
14400
14401 # So? What about this header?
14402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14403 yes:no: )
14404 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14405 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14407 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14408 ac_header_preproc=yes
14409 ;;
14410 no:yes:* )
14411 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14412 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14414 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14416 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14418 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14420 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14422 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14423
14424 ;;
14425 esac
14426 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14427 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14428 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 ac_cv_header_gif_lib_h=$ac_header_preproc
14432 fi
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14434 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14435
14436 fi
14437 if test $ac_cv_header_gif_lib_h = yes; then
14438 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14439 # Earlier versions can crash Emacs.
14440 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14441 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14442 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445 ac_check_lib_save_LIBS=$LIBS
14446 LIBS="-lgif $LIBS"
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply. */
14457 #ifdef __cplusplus
14458 extern "C"
14459 #endif
14460 char EGifPutExtensionLast ();
14461 int
14462 main ()
14463 {
14464 return EGifPutExtensionLast ();
14465 ;
14466 return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (ac_try="$ac_link"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_link") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest$ac_exeext &&
14486 $as_test_x conftest$ac_exeext; then
14487 ac_cv_lib_gif_EGifPutExtensionLast=yes
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492 ac_cv_lib_gif_EGifPutExtensionLast=no
14493 fi
14494
14495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14496 conftest$ac_exeext conftest.$ac_ext
14497 LIBS=$ac_check_lib_save_LIBS
14498 fi
14499 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14500 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14501 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14502 HAVE_GIF=yes
14503 else
14504 try_libungif=yes
14505 fi
14506
14507 fi
14508
14509
14510
14511 if test "$HAVE_GIF" = yes; then
14512 ac_gif_lib_name="-lgif"
14513 fi
14514
14515 # If gif_lib.h but no libgif, try libungif.
14516 if test x"$try_libungif" = xyes; then
14517 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14518 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14519 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 else
14522 ac_check_lib_save_LIBS=$LIBS
14523 LIBS="-lungif $LIBS"
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530
14531 /* Override any GCC internal prototype to avoid an error.
14532 Use char because int might match the return type of a GCC
14533 builtin and then its argument prototype would still apply. */
14534 #ifdef __cplusplus
14535 extern "C"
14536 #endif
14537 char EGifPutExtensionLast ();
14538 int
14539 main ()
14540 {
14541 return EGifPutExtensionLast ();
14542 ;
14543 return 0;
14544 }
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } && {
14560 test -z "$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 } && test -s conftest$ac_exeext &&
14563 $as_test_x conftest$ac_exeext; then
14564 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 ac_cv_lib_ungif_EGifPutExtensionLast=no
14570 fi
14571
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14575 fi
14576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14577 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14578 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14579 HAVE_GIF=yes
14580 fi
14581
14582
14583 if test "$HAVE_GIF" = yes; then
14584
14585 cat >>confdefs.h <<\_ACEOF
14586 #define LIBGIF -lungif
14587 _ACEOF
14588
14589 ac_gif_lib_name="-lungif"
14590 fi
14591 fi
14592
14593 if test "${HAVE_GIF}" = "yes"; then
14594
14595 cat >>confdefs.h <<\_ACEOF
14596 #define HAVE_GIF 1
14597 _ACEOF
14598
14599 fi
14600 fi
14601
14602 if test "${HAVE_X11}" = "yes"; then
14603 MISSING=""
14604 WITH_NO=""
14605 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14606 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14607 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14608 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14609 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14610 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14611 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14612 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14613 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14614 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14615
14616 if test "X${MISSING}" != X; then
14617 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14618 $MISSING
14619 Maybe some development libraries/packages are missing?
14620 If you don't want to link with them give
14621 $WITH_NO
14622 as options to configure" >&5
14623 echo "$as_me: error: The following required libraries were not found:
14624 $MISSING
14625 Maybe some development libraries/packages are missing?
14626 If you don't want to link with them give
14627 $WITH_NO
14628 as options to configure" >&2;}
14629 { (exit 1); exit 1; }; }
14630 fi
14631 fi
14632
14633 ### Use -lgpm if available, unless `--with-gpm=no'.
14634 HAVE_GPM=no
14635 if test "${with_gpm}" != "no"; then
14636 if test "${ac_cv_header_gpm_h+set}" = set; then
14637 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14638 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14639 if test "${ac_cv_header_gpm_h+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 fi
14642 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14643 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14644 else
14645 # Is the header compilable?
14646 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14647 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h. */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 $ac_includes_default
14655 #include <gpm.h>
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_compile") 2>conftest.er1
14665 ac_status=$?
14666 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && {
14671 test -z "$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14673 } && test -s conftest.$ac_objext; then
14674 ac_header_compiler=yes
14675 else
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679 ac_header_compiler=no
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684 echo "${ECHO_T}$ac_header_compiler" >&6; }
14685
14686 # Is the header present?
14687 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14688 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include <gpm.h>
14696 _ACEOF
14697 if { (ac_try="$ac_cpp conftest.$ac_ext"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } >/dev/null && {
14710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 }; then
14713 ac_header_preproc=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ac_header_preproc=no
14719 fi
14720
14721 rm -f conftest.err conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723 echo "${ECHO_T}$ac_header_preproc" >&6; }
14724
14725 # So? What about this header?
14726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14727 yes:no: )
14728 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14729 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14731 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14732 ac_header_preproc=yes
14733 ;;
14734 no:yes:* )
14735 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14736 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14738 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14740 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14742 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14744 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14746 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14747
14748 ;;
14749 esac
14750 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14751 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14752 if test "${ac_cv_header_gpm_h+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 ac_cv_header_gpm_h=$ac_header_preproc
14756 fi
14757 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14758 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14759
14760 fi
14761 if test $ac_cv_header_gpm_h = yes; then
14762 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14763 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14764 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767 ac_check_lib_save_LIBS=$LIBS
14768 LIBS="-lgpm $LIBS"
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 char Gpm_Open ();
14783 int
14784 main ()
14785 {
14786 return Gpm_Open ();
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (ac_try="$ac_link"
14793 case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_link") 2>conftest.er1
14799 ac_status=$?
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest$ac_exeext &&
14808 $as_test_x conftest$ac_exeext; then
14809 ac_cv_lib_gpm_Gpm_Open=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ac_cv_lib_gpm_Gpm_Open=no
14815 fi
14816
14817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14818 conftest$ac_exeext conftest.$ac_ext
14819 LIBS=$ac_check_lib_save_LIBS
14820 fi
14821 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14822 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14823 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14824 HAVE_GPM=yes
14825 fi
14826
14827 fi
14828
14829
14830 fi
14831
14832 if test "${HAVE_GPM}" = "yes"; then
14833
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_GPM 1
14836 _ACEOF
14837
14838 fi
14839
14840 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14841 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14842 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14843 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 fi
14846 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14847 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14848 else
14849 # Is the header compilable?
14850 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14851 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 $ac_includes_default
14859 #include <malloc/malloc.h>
14860 _ACEOF
14861 rm -f conftest.$ac_objext
14862 if { (ac_try="$ac_compile"
14863 case "(($ac_try" in
14864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14866 esac
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_compile") 2>conftest.er1
14869 ac_status=$?
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && {
14875 test -z "$ac_c_werror_flag" ||
14876 test ! -s conftest.err
14877 } && test -s conftest.$ac_objext; then
14878 ac_header_compiler=yes
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 ac_header_compiler=no
14884 fi
14885
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6; }
14889
14890 # Is the header present?
14891 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14892 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <malloc/malloc.h>
14900 _ACEOF
14901 if { (ac_try="$ac_cpp conftest.$ac_ext"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14908 ac_status=$?
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } >/dev/null && {
14914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14915 test ! -s conftest.err
14916 }; then
14917 ac_header_preproc=yes
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ac_header_preproc=no
14923 fi
14924
14925 rm -f conftest.err conftest.$ac_ext
14926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14927 echo "${ECHO_T}$ac_header_preproc" >&6; }
14928
14929 # So? What about this header?
14930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14931 yes:no: )
14932 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14933 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14935 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14936 ac_header_preproc=yes
14937 ;;
14938 no:yes:* )
14939 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14940 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14942 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14944 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14946 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14948 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14951
14952 ;;
14953 esac
14954 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14955 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14956 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14960 fi
14961 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14962 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14963
14964 fi
14965 if test $ac_cv_header_malloc_malloc_h = yes; then
14966
14967 cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_MALLOC_MALLOC_H 1
14969 _ACEOF
14970
14971 fi
14972
14973
14974
14975 ### Use NeXTstep API to implement GUI.
14976 if test "${HAVE_NS}" = "yes"; then
14977
14978 cat >>confdefs.h <<\_ACEOF
14979 #define HAVE_NS 1
14980 _ACEOF
14981
14982 if test "${NS_IMPL_COCOA}" = "yes"; then
14983
14984 cat >>confdefs.h <<\_ACEOF
14985 #define NS_IMPL_COCOA 1
14986 _ACEOF
14987
14988 GNU_OBJC_CFLAGS=
14989 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14990 fi
14991 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14992
14993 cat >>confdefs.h <<\_ACEOF
14994 #define NS_IMPL_GNUSTEP 1
14995 _ACEOF
14996
14997 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14998 fi
14999 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15000
15001 cat >>confdefs.h <<\_ACEOF
15002 #define NS_HAVE_NSINTEGER 1
15003 _ACEOF
15004
15005 fi
15006 # We also have mouse menus.
15007 HAVE_MENUS=yes
15008 fi
15009
15010
15011 ### Use session management (-lSM -lICE) if available
15012 HAVE_X_SM=no
15013 if test "${HAVE_X11}" = "yes"; then
15014 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15015 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15016 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15017 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 fi
15020 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15021 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15022 else
15023 # Is the header compilable?
15024 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15025 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h. */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032 $ac_includes_default
15033 #include <X11/SM/SMlib.h>
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (ac_try="$ac_compile"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } && {
15049 test -z "$ac_c_werror_flag" ||
15050 test ! -s conftest.err
15051 } && test -s conftest.$ac_objext; then
15052 ac_header_compiler=yes
15053 else
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_header_compiler=no
15058 fi
15059
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 echo "${ECHO_T}$ac_header_compiler" >&6; }
15063
15064 # Is the header present?
15065 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15066 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <X11/SM/SMlib.h>
15074 _ACEOF
15075 if { (ac_try="$ac_cpp conftest.$ac_ext"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } >/dev/null && {
15088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 }; then
15091 ac_header_preproc=yes
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096 ac_header_preproc=no
15097 fi
15098
15099 rm -f conftest.err conftest.$ac_ext
15100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101 echo "${ECHO_T}$ac_header_preproc" >&6; }
15102
15103 # So? What about this header?
15104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15105 yes:no: )
15106 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15107 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15109 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15110 ac_header_preproc=yes
15111 ;;
15112 no:yes:* )
15113 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15114 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15116 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15118 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15120 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15122 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15124 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15125
15126 ;;
15127 esac
15128 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15129 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15130 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15134 fi
15135 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15136 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15137
15138 fi
15139 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15140 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15141 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15142 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 ac_check_lib_save_LIBS=$LIBS
15146 LIBS="-lSM -lICE $LIBS"
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h. */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153
15154 /* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
15157 #ifdef __cplusplus
15158 extern "C"
15159 #endif
15160 char SmcOpenConnection ();
15161 int
15162 main ()
15163 {
15164 return SmcOpenConnection ();
15165 ;
15166 return 0;
15167 }
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (ac_try="$ac_link"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174 esac
15175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15176 (eval "$ac_link") 2>conftest.er1
15177 ac_status=$?
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } && {
15183 test -z "$ac_c_werror_flag" ||
15184 test ! -s conftest.err
15185 } && test -s conftest$ac_exeext &&
15186 $as_test_x conftest$ac_exeext; then
15187 ac_cv_lib_SM_SmcOpenConnection=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_cv_lib_SM_SmcOpenConnection=no
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15198 fi
15199 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15200 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15201 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15202 HAVE_X_SM=yes
15203 fi
15204
15205 fi
15206
15207
15208
15209 if test "${HAVE_X_SM}" = "yes"; then
15210
15211 cat >>confdefs.h <<\_ACEOF
15212 #define HAVE_X_SM 1
15213 _ACEOF
15214
15215 case "$LIBS" in
15216 *-lSM*) ;;
15217 *) LIBS="-lSM -lICE $LIBS" ;;
15218 esac
15219 fi
15220 fi
15221
15222 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15223 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15224 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15225 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <netdb.h>
15235 int
15236 main ()
15237 {
15238 return h_errno;
15239 ;
15240 return 0;
15241 }
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (ac_try="$ac_link"
15245 case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_link") 2>conftest.er1
15251 ac_status=$?
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } && {
15257 test -z "$ac_c_werror_flag" ||
15258 test ! -s conftest.err
15259 } && test -s conftest$ac_exeext &&
15260 $as_test_x conftest$ac_exeext; then
15261 emacs_cv_netdb_declares_h_errno=yes
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15265
15266 emacs_cv_netdb_declares_h_errno=no
15267 fi
15268
15269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15270 conftest$ac_exeext conftest.$ac_ext
15271 fi
15272 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15273 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15274 if test $emacs_cv_netdb_declares_h_errno = yes; then
15275
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE_H_ERRNO 1
15278 _ACEOF
15279
15280 fi
15281
15282 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15283 # for constant arguments. Useless!
15284 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15285 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15286 if test "${ac_cv_working_alloca_h+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <alloca.h>
15296 int
15297 main ()
15298 {
15299 char *p = (char *) alloca (2 * sizeof (int));
15300 if (p) return 0;
15301 ;
15302 return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (ac_try="$ac_link"
15307 case "(($ac_try" in
15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309 *) ac_try_echo=$ac_try;;
15310 esac
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_link") 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
15321 } && test -s conftest$ac_exeext &&
15322 $as_test_x conftest$ac_exeext; then
15323 ac_cv_working_alloca_h=yes
15324 else
15325 echo "$as_me: failed program was:" >&5
15326 sed 's/^/| /' conftest.$ac_ext >&5
15327
15328 ac_cv_working_alloca_h=no
15329 fi
15330
15331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15332 conftest$ac_exeext conftest.$ac_ext
15333 fi
15334 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15335 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15336 if test $ac_cv_working_alloca_h = yes; then
15337
15338 cat >>confdefs.h <<\_ACEOF
15339 #define HAVE_ALLOCA_H 1
15340 _ACEOF
15341
15342 fi
15343
15344 { echo "$as_me:$LINENO: checking for alloca" >&5
15345 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15346 if test "${ac_cv_func_alloca_works+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h. */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 #ifdef __GNUC__
15356 # define alloca __builtin_alloca
15357 #else
15358 # ifdef _MSC_VER
15359 # include <malloc.h>
15360 # define alloca _alloca
15361 # else
15362 # ifdef HAVE_ALLOCA_H
15363 # include <alloca.h>
15364 # else
15365 # ifdef _AIX
15366 #pragma alloca
15367 # else
15368 # ifndef alloca /* predefined by HP cc +Olibcalls */
15369 char *alloca ();
15370 # endif
15371 # endif
15372 # endif
15373 # endif
15374 #endif
15375
15376 int
15377 main ()
15378 {
15379 char *p = (char *) alloca (1);
15380 if (p) return 0;
15381 ;
15382 return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (ac_try="$ac_link"
15387 case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_link") 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } && {
15399 test -z "$ac_c_werror_flag" ||
15400 test ! -s conftest.err
15401 } && test -s conftest$ac_exeext &&
15402 $as_test_x conftest$ac_exeext; then
15403 ac_cv_func_alloca_works=yes
15404 else
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_cv_func_alloca_works=no
15409 fi
15410
15411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15412 conftest$ac_exeext conftest.$ac_ext
15413 fi
15414 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15415 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15416
15417 if test $ac_cv_func_alloca_works = yes; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_ALLOCA 1
15421 _ACEOF
15422
15423 else
15424 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15425 # that cause trouble. Some versions do not even contain alloca or
15426 # contain a buggy version. If you still want to use their alloca,
15427 # use ar to extract alloca.o from them instead of compiling alloca.c.
15428
15429 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15430
15431 cat >>confdefs.h <<\_ACEOF
15432 #define C_ALLOCA 1
15433 _ACEOF
15434
15435
15436 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15437 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15438 if test "${ac_cv_os_cray+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #if defined CRAY && ! defined CRAY2
15448 webecray
15449 #else
15450 wenotbecray
15451 #endif
15452
15453 _ACEOF
15454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15455 $EGREP "webecray" >/dev/null 2>&1; then
15456 ac_cv_os_cray=yes
15457 else
15458 ac_cv_os_cray=no
15459 fi
15460 rm -f conftest*
15461
15462 fi
15463 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15464 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15465 if test $ac_cv_os_cray = yes; then
15466 for ac_func in _getb67 GETB67 getb67; do
15467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h. */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15481 #define $ac_func innocuous_$ac_func
15482
15483 /* System header to define __stub macros and hopefully few prototypes,
15484 which can conflict with char $ac_func (); below.
15485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15486 <limits.h> exists even on freestanding compilers. */
15487
15488 #ifdef __STDC__
15489 # include <limits.h>
15490 #else
15491 # include <assert.h>
15492 #endif
15493
15494 #undef $ac_func
15495
15496 /* Override any GCC internal prototype to avoid an error.
15497 Use char because int might match the return type of a GCC
15498 builtin and then its argument prototype would still apply. */
15499 #ifdef __cplusplus
15500 extern "C"
15501 #endif
15502 char $ac_func ();
15503 /* The GNU C library defines this for functions which it implements
15504 to always fail with ENOSYS. Some functions are actually named
15505 something starting with __ and the normal name is an alias. */
15506 #if defined __stub_$ac_func || defined __stub___$ac_func
15507 choke me
15508 #endif
15509
15510 int
15511 main ()
15512 {
15513 return $ac_func ();
15514 ;
15515 return 0;
15516 }
15517 _ACEOF
15518 rm -f conftest.$ac_objext conftest$ac_exeext
15519 if { (ac_try="$ac_link"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_link") 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && {
15532 test -z "$ac_c_werror_flag" ||
15533 test ! -s conftest.err
15534 } && test -s conftest$ac_exeext &&
15535 $as_test_x conftest$ac_exeext; then
15536 eval "$as_ac_var=yes"
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 eval "$as_ac_var=no"
15542 fi
15543
15544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545 conftest$ac_exeext conftest.$ac_ext
15546 fi
15547 ac_res=`eval echo '${'$as_ac_var'}'`
15548 { echo "$as_me:$LINENO: result: $ac_res" >&5
15549 echo "${ECHO_T}$ac_res" >&6; }
15550 if test `eval echo '${'$as_ac_var'}'` = yes; then
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define CRAY_STACKSEG_END $ac_func
15554 _ACEOF
15555
15556 break
15557 fi
15558
15559 done
15560 fi
15561
15562 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15563 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15564 if test "${ac_cv_c_stack_direction+set}" = set; then
15565 echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567 if test "$cross_compiling" = yes; then
15568 ac_cv_c_stack_direction=0
15569 else
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h. */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 $ac_includes_default
15577 int
15578 find_stack_direction ()
15579 {
15580 static char *addr = 0;
15581 auto char dummy;
15582 if (addr == 0)
15583 {
15584 addr = &dummy;
15585 return find_stack_direction ();
15586 }
15587 else
15588 return (&dummy > addr) ? 1 : -1;
15589 }
15590
15591 int
15592 main ()
15593 {
15594 return find_stack_direction () < 0;
15595 }
15596 _ACEOF
15597 rm -f conftest$ac_exeext
15598 if { (ac_try="$ac_link"
15599 case "(($ac_try" in
15600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15601 *) ac_try_echo=$ac_try;;
15602 esac
15603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15604 (eval "$ac_link") 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15614 ac_status=$?
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_cv_c_stack_direction=1
15618 else
15619 echo "$as_me: program exited with status $ac_status" >&5
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ( exit $ac_status )
15624 ac_cv_c_stack_direction=-1
15625 fi
15626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15627 fi
15628
15629
15630 fi
15631 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15632 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15633
15634 cat >>confdefs.h <<_ACEOF
15635 #define STACK_DIRECTION $ac_cv_c_stack_direction
15636 _ACEOF
15637
15638
15639 fi
15640
15641
15642 if test x"$ac_cv_func_alloca_works" != xyes; then
15643 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15644 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15645 { (exit 1); exit 1; }; }
15646 fi
15647
15648 # fmod, logb, and frexp are found in -lm on most systems.
15649 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15650
15651 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15652 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15653 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 else
15656 ac_check_lib_save_LIBS=$LIBS
15657 LIBS="-lm $LIBS"
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char sqrt ();
15672 int
15673 main ()
15674 {
15675 return sqrt ();
15676 ;
15677 return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_link") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && {
15694 test -z "$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 } && test -s conftest$ac_exeext &&
15697 $as_test_x conftest$ac_exeext; then
15698 ac_cv_lib_m_sqrt=yes
15699 else
15700 echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_cv_lib_m_sqrt=no
15704 fi
15705
15706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15709 fi
15710 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15711 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15712 if test $ac_cv_lib_m_sqrt = yes; then
15713 cat >>confdefs.h <<_ACEOF
15714 #define HAVE_LIBM 1
15715 _ACEOF
15716
15717 LIBS="-lm $LIBS"
15718
15719 fi
15720
15721
15722 # Check for mail-locking functions in a "mail" library. Probably this should
15723 # have the same check as for liblockfile below.
15724
15725 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15726 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15727 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15728 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 else
15730 ac_check_lib_save_LIBS=$LIBS
15731 LIBS="-lmail $LIBS"
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738
15739 /* Override any GCC internal prototype to avoid an error.
15740 Use char because int might match the return type of a GCC
15741 builtin and then its argument prototype would still apply. */
15742 #ifdef __cplusplus
15743 extern "C"
15744 #endif
15745 char maillock ();
15746 int
15747 main ()
15748 {
15749 return maillock ();
15750 ;
15751 return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_link") 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } && {
15768 test -z "$ac_c_werror_flag" ||
15769 test ! -s conftest.err
15770 } && test -s conftest$ac_exeext &&
15771 $as_test_x conftest$ac_exeext; then
15772 ac_cv_lib_mail_maillock=yes
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15776
15777 ac_cv_lib_mail_maillock=no
15778 fi
15779
15780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15781 conftest$ac_exeext conftest.$ac_ext
15782 LIBS=$ac_check_lib_save_LIBS
15783 fi
15784 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15785 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15786 if test $ac_cv_lib_mail_maillock = yes; then
15787 cat >>confdefs.h <<_ACEOF
15788 #define HAVE_LIBMAIL 1
15789 _ACEOF
15790
15791 LIBS="-lmail $LIBS"
15792
15793 fi
15794
15795
15796 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15797 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15798 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801 ac_check_lib_save_LIBS=$LIBS
15802 LIBS="-llockfile $LIBS"
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809
15810 /* Override any GCC internal prototype to avoid an error.
15811 Use char because int might match the return type of a GCC
15812 builtin and then its argument prototype would still apply. */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 char maillock ();
15817 int
15818 main ()
15819 {
15820 return maillock ();
15821 ;
15822 return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (ac_try="$ac_link"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15830 esac
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_link") 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } && {
15839 test -z "$ac_c_werror_flag" ||
15840 test ! -s conftest.err
15841 } && test -s conftest$ac_exeext &&
15842 $as_test_x conftest$ac_exeext; then
15843 ac_cv_lib_lockfile_maillock=yes
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_cv_lib_lockfile_maillock=no
15849 fi
15850
15851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15852 conftest$ac_exeext conftest.$ac_ext
15853 LIBS=$ac_check_lib_save_LIBS
15854 fi
15855 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15856 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15857 if test $ac_cv_lib_lockfile_maillock = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define HAVE_LIBLOCKFILE 1
15860 _ACEOF
15861
15862 LIBS="-llockfile $LIBS"
15863
15864 fi
15865
15866 # If we have the shared liblockfile, assume we must use it for mail
15867 # locking (e.g. Debian). If we couldn't link against liblockfile
15868 # (no liblockfile.a installed), ensure that we don't need to.
15869 if test "$ac_cv_lib_lockfile_maillock" = no; then
15870 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15871 set dummy liblockfile.so; ac_word=$2
15872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15874 if test "${ac_cv_prog_liblockfile+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877 if test -n "$liblockfile"; then
15878 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15879 else
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15882 for as_dir in $as_dummy
15883 do
15884 IFS=$as_save_IFS
15885 test -z "$as_dir" && as_dir=.
15886 for ac_exec_ext in '' $ac_executable_extensions; do
15887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15888 ac_cv_prog_liblockfile="yes"
15889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15890 break 2
15891 fi
15892 done
15893 done
15894 IFS=$as_save_IFS
15895
15896 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15897 fi
15898 fi
15899 liblockfile=$ac_cv_prog_liblockfile
15900 if test -n "$liblockfile"; then
15901 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15902 echo "${ECHO_T}$liblockfile" >&6; }
15903 else
15904 { echo "$as_me:$LINENO: result: no" >&5
15905 echo "${ECHO_T}no" >&6; }
15906 fi
15907
15908
15909 if test $ac_cv_prog_liblockfile = yes; then
15910 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15911 This probably means that movemail could lose mail.
15912 There may be a \`development' package to install containing liblockfile." >&5
15913 echo "$as_me: error: Shared liblockfile found but can't link against it.
15914 This probably means that movemail could lose mail.
15915 There may be a \`development' package to install containing liblockfile." >&2;}
15916 { (exit 1); exit 1; }; }
15917 else :
15918 fi
15919 fi
15920
15921 for ac_func in touchlock
15922 do
15923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h. */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15937 #define $ac_func innocuous_$ac_func
15938
15939 /* System header to define __stub macros and hopefully few prototypes,
15940 which can conflict with char $ac_func (); below.
15941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15942 <limits.h> exists even on freestanding compilers. */
15943
15944 #ifdef __STDC__
15945 # include <limits.h>
15946 #else
15947 # include <assert.h>
15948 #endif
15949
15950 #undef $ac_func
15951
15952 /* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15955 #ifdef __cplusplus
15956 extern "C"
15957 #endif
15958 char $ac_func ();
15959 /* The GNU C library defines this for functions which it implements
15960 to always fail with ENOSYS. Some functions are actually named
15961 something starting with __ and the normal name is an alias. */
15962 #if defined __stub_$ac_func || defined __stub___$ac_func
15963 choke me
15964 #endif
15965
15966 int
15967 main ()
15968 {
15969 return $ac_func ();
15970 ;
15971 return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_link") 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } && {
15988 test -z "$ac_c_werror_flag" ||
15989 test ! -s conftest.err
15990 } && test -s conftest$ac_exeext &&
15991 $as_test_x conftest$ac_exeext; then
15992 eval "$as_ac_var=yes"
15993 else
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997 eval "$as_ac_var=no"
15998 fi
15999
16000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16001 conftest$ac_exeext conftest.$ac_ext
16002 fi
16003 ac_res=`eval echo '${'$as_ac_var'}'`
16004 { echo "$as_me:$LINENO: result: $ac_res" >&5
16005 echo "${ECHO_T}$ac_res" >&6; }
16006 if test `eval echo '${'$as_ac_var'}'` = yes; then
16007 cat >>confdefs.h <<_ACEOF
16008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16009 _ACEOF
16010
16011 fi
16012 done
16013
16014
16015 for ac_header in maillock.h
16016 do
16017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 fi
16024 ac_res=`eval echo '${'$as_ac_Header'}'`
16025 { echo "$as_me:$LINENO: result: $ac_res" >&5
16026 echo "${ECHO_T}$ac_res" >&6; }
16027 else
16028 # Is the header compilable?
16029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 $ac_includes_default
16038 #include <$ac_header>
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_compile") 2>conftest.er1
16048 ac_status=$?
16049 grep -v '^ *+' conftest.er1 >conftest.err
16050 rm -f conftest.er1
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest.$ac_objext; then
16057 ac_header_compiler=yes
16058 else
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_header_compiler=no
16063 fi
16064
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16067 echo "${ECHO_T}$ac_header_compiler" >&6; }
16068
16069 # Is the header present?
16070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16072 cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h. */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 #include <$ac_header>
16079 _ACEOF
16080 if { (ac_try="$ac_cpp conftest.$ac_ext"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev/null && {
16093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 }; then
16096 ac_header_preproc=yes
16097 else
16098 echo "$as_me: failed program was:" >&5
16099 sed 's/^/| /' conftest.$ac_ext >&5
16100
16101 ac_header_preproc=no
16102 fi
16103
16104 rm -f conftest.err conftest.$ac_ext
16105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 echo "${ECHO_T}$ac_header_preproc" >&6; }
16107
16108 # So? What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16110 yes:no: )
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16115 ac_header_preproc=yes
16116 ;;
16117 no:yes:* )
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16121 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16125 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16130
16131 ;;
16132 esac
16133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138 eval "$as_ac_Header=\$ac_header_preproc"
16139 fi
16140 ac_res=`eval echo '${'$as_ac_Header'}'`
16141 { echo "$as_me:$LINENO: result: $ac_res" >&5
16142 echo "${ECHO_T}$ac_res" >&6; }
16143
16144 fi
16145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16146 cat >>confdefs.h <<_ACEOF
16147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16148 _ACEOF
16149
16150 fi
16151
16152 done
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226 for ac_func in gethostname getdomainname dup2 \
16227 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16228 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16229 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16230 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16231 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16232 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16233 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16234 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16235 cfmakeraw cfsetspeed
16236 do
16237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16251 #define $ac_func innocuous_$ac_func
16252
16253 /* System header to define __stub macros and hopefully few prototypes,
16254 which can conflict with char $ac_func (); below.
16255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16256 <limits.h> exists even on freestanding compilers. */
16257
16258 #ifdef __STDC__
16259 # include <limits.h>
16260 #else
16261 # include <assert.h>
16262 #endif
16263
16264 #undef $ac_func
16265
16266 /* Override any GCC internal prototype to avoid an error.
16267 Use char because int might match the return type of a GCC
16268 builtin and then its argument prototype would still apply. */
16269 #ifdef __cplusplus
16270 extern "C"
16271 #endif
16272 char $ac_func ();
16273 /* The GNU C library defines this for functions which it implements
16274 to always fail with ENOSYS. Some functions are actually named
16275 something starting with __ and the normal name is an alias. */
16276 #if defined __stub_$ac_func || defined __stub___$ac_func
16277 choke me
16278 #endif
16279
16280 int
16281 main ()
16282 {
16283 return $ac_func ();
16284 ;
16285 return 0;
16286 }
16287 _ACEOF
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (ac_try="$ac_link"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_link") 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } && {
16302 test -z "$ac_c_werror_flag" ||
16303 test ! -s conftest.err
16304 } && test -s conftest$ac_exeext &&
16305 $as_test_x conftest$ac_exeext; then
16306 eval "$as_ac_var=yes"
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 eval "$as_ac_var=no"
16312 fi
16313
16314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16315 conftest$ac_exeext conftest.$ac_ext
16316 fi
16317 ac_res=`eval echo '${'$as_ac_var'}'`
16318 { echo "$as_me:$LINENO: result: $ac_res" >&5
16319 echo "${ECHO_T}$ac_res" >&6; }
16320 if test `eval echo '${'$as_ac_var'}'` = yes; then
16321 cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323 _ACEOF
16324
16325 fi
16326 done
16327
16328
16329
16330 for ac_header in sys/un.h
16331 do
16332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 fi
16339 ac_res=`eval echo '${'$as_ac_Header'}'`
16340 { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16342 else
16343 # Is the header compilable?
16344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16346 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h. */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16352 $ac_includes_default
16353 #include <$ac_header>
16354 _ACEOF
16355 rm -f conftest.$ac_objext
16356 if { (ac_try="$ac_compile"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16363 ac_status=$?
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -f conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16372 ac_header_compiler=yes
16373 else
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_header_compiler=no
16378 fi
16379
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16382 echo "${ECHO_T}$ac_header_compiler" >&6; }
16383
16384 # Is the header present?
16385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16387 cat >conftest.$ac_ext <<_ACEOF
16388 /* confdefs.h. */
16389 _ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393 #include <$ac_header>
16394 _ACEOF
16395 if { (ac_try="$ac_cpp conftest.$ac_ext"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16402 ac_status=$?
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } >/dev/null && {
16408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16409 test ! -s conftest.err
16410 }; then
16411 ac_header_preproc=yes
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 ac_header_preproc=no
16417 fi
16418
16419 rm -f conftest.err conftest.$ac_ext
16420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16421 echo "${ECHO_T}$ac_header_preproc" >&6; }
16422
16423 # So? What about this header?
16424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16425 yes:no: )
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16430 ac_header_preproc=yes
16431 ;;
16432 no:yes:* )
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16445
16446 ;;
16447 esac
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16452 else
16453 eval "$as_ac_Header=\$ac_header_preproc"
16454 fi
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458
16459 fi
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466
16467 done
16468
16469
16470
16471
16472
16473
16474 for ac_header in $ac_header_list
16475 do
16476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 fi
16483 ac_res=`eval echo '${'$as_ac_Header'}'`
16484 { echo "$as_me:$LINENO: result: $ac_res" >&5
16485 echo "${ECHO_T}$ac_res" >&6; }
16486 else
16487 # Is the header compilable?
16488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496 $ac_includes_default
16497 #include <$ac_header>
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (ac_try="$ac_compile"
16501 case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_compile") 2>conftest.er1
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } && {
16513 test -z "$ac_c_werror_flag" ||
16514 test ! -s conftest.err
16515 } && test -s conftest.$ac_objext; then
16516 ac_header_compiler=yes
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_header_compiler=no
16522 fi
16523
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16526 echo "${ECHO_T}$ac_header_compiler" >&6; }
16527
16528 # Is the header present?
16529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16531 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h. */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 #include <$ac_header>
16538 _ACEOF
16539 if { (ac_try="$ac_cpp conftest.$ac_ext"
16540 case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } >/dev/null && {
16552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16553 test ! -s conftest.err
16554 }; then
16555 ac_header_preproc=yes
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ac_header_preproc=no
16561 fi
16562
16563 rm -f conftest.err conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16565 echo "${ECHO_T}$ac_header_preproc" >&6; }
16566
16567 # So? What about this header?
16568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16569 yes:no: )
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16574 ac_header_preproc=yes
16575 ;;
16576 no:yes:* )
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16589
16590 ;;
16591 esac
16592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 else
16597 eval "$as_ac_Header=\$ac_header_preproc"
16598 fi
16599 ac_res=`eval echo '${'$as_ac_Header'}'`
16600 { echo "$as_me:$LINENO: result: $ac_res" >&5
16601 echo "${ECHO_T}$ac_res" >&6; }
16602
16603 fi
16604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16607 _ACEOF
16608
16609 fi
16610
16611 done
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621 for ac_func in $ac_func_list
16622 do
16623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16637 #define $ac_func innocuous_$ac_func
16638
16639 /* System header to define __stub macros and hopefully few prototypes,
16640 which can conflict with char $ac_func (); below.
16641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16642 <limits.h> exists even on freestanding compilers. */
16643
16644 #ifdef __STDC__
16645 # include <limits.h>
16646 #else
16647 # include <assert.h>
16648 #endif
16649
16650 #undef $ac_func
16651
16652 /* Override any GCC internal prototype to avoid an error.
16653 Use char because int might match the return type of a GCC
16654 builtin and then its argument prototype would still apply. */
16655 #ifdef __cplusplus
16656 extern "C"
16657 #endif
16658 char $ac_func ();
16659 /* The GNU C library defines this for functions which it implements
16660 to always fail with ENOSYS. Some functions are actually named
16661 something starting with __ and the normal name is an alias. */
16662 #if defined __stub_$ac_func || defined __stub___$ac_func
16663 choke me
16664 #endif
16665
16666 int
16667 main ()
16668 {
16669 return $ac_func ();
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (ac_try="$ac_link"
16676 case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_link") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest$ac_exeext &&
16691 $as_test_x conftest$ac_exeext; then
16692 eval "$as_ac_var=yes"
16693 else
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 eval "$as_ac_var=no"
16698 fi
16699
16700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16701 conftest$ac_exeext conftest.$ac_ext
16702 fi
16703 ac_res=`eval echo '${'$as_ac_var'}'`
16704 { echo "$as_me:$LINENO: result: $ac_res" >&5
16705 echo "${ECHO_T}$ac_res" >&6; }
16706 if test `eval echo '${'$as_ac_var'}'` = yes; then
16707 cat >>confdefs.h <<_ACEOF
16708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16709 _ACEOF
16710
16711 fi
16712 done
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730 { echo "$as_me:$LINENO: checking for working mktime" >&5
16731 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16732 if test "${ac_cv_func_working_mktime+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735 if test "$cross_compiling" = yes; then
16736 ac_cv_func_working_mktime=no
16737 else
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 /* Test program from Paul Eggert and Tony Leneis. */
16745 #ifdef TIME_WITH_SYS_TIME
16746 # include <sys/time.h>
16747 # include <time.h>
16748 #else
16749 # ifdef HAVE_SYS_TIME_H
16750 # include <sys/time.h>
16751 # else
16752 # include <time.h>
16753 # endif
16754 #endif
16755
16756 #include <stdlib.h>
16757
16758 #ifdef HAVE_UNISTD_H
16759 # include <unistd.h>
16760 #endif
16761
16762 #ifndef HAVE_ALARM
16763 # define alarm(X) /* empty */
16764 #endif
16765
16766 /* Work around redefinition to rpl_putenv by other config tests. */
16767 #undef putenv
16768
16769 static time_t time_t_max;
16770 static time_t time_t_min;
16771
16772 /* Values we'll use to set the TZ environment variable. */
16773 static char *tz_strings[] = {
16774 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16775 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16776 };
16777 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16778
16779 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16780 Based on a problem report from Andreas Jaeger. */
16781 static int
16782 spring_forward_gap ()
16783 {
16784 /* glibc (up to about 1998-10-07) failed this test. */
16785 struct tm tm;
16786
16787 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16788 instead of "TZ=America/Vancouver" in order to detect the bug even
16789 on systems that don't support the Olson extension, or don't have the
16790 full zoneinfo tables installed. */
16791 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16792
16793 tm.tm_year = 98;
16794 tm.tm_mon = 3;
16795 tm.tm_mday = 5;
16796 tm.tm_hour = 2;
16797 tm.tm_min = 0;
16798 tm.tm_sec = 0;
16799 tm.tm_isdst = -1;
16800 return mktime (&tm) != (time_t) -1;
16801 }
16802
16803 static int
16804 mktime_test1 (now)
16805 time_t now;
16806 {
16807 struct tm *lt;
16808 return ! (lt = localtime (&now)) || mktime (lt) == now;
16809 }
16810
16811 static int
16812 mktime_test (now)
16813 time_t now;
16814 {
16815 return (mktime_test1 (now)
16816 && mktime_test1 ((time_t) (time_t_max - now))
16817 && mktime_test1 ((time_t) (time_t_min + now)));
16818 }
16819
16820 static int
16821 irix_6_4_bug ()
16822 {
16823 /* Based on code from Ariel Faigon. */
16824 struct tm tm;
16825 tm.tm_year = 96;
16826 tm.tm_mon = 3;
16827 tm.tm_mday = 0;
16828 tm.tm_hour = 0;
16829 tm.tm_min = 0;
16830 tm.tm_sec = 0;
16831 tm.tm_isdst = -1;
16832 mktime (&tm);
16833 return tm.tm_mon == 2 && tm.tm_mday == 31;
16834 }
16835
16836 static int
16837 bigtime_test (j)
16838 int j;
16839 {
16840 struct tm tm;
16841 time_t now;
16842 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16843 now = mktime (&tm);
16844 if (now != (time_t) -1)
16845 {
16846 struct tm *lt = localtime (&now);
16847 if (! (lt
16848 && lt->tm_year == tm.tm_year
16849 && lt->tm_mon == tm.tm_mon
16850 && lt->tm_mday == tm.tm_mday
16851 && lt->tm_hour == tm.tm_hour
16852 && lt->tm_min == tm.tm_min
16853 && lt->tm_sec == tm.tm_sec
16854 && lt->tm_yday == tm.tm_yday
16855 && lt->tm_wday == tm.tm_wday
16856 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16857 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16858 return 0;
16859 }
16860 return 1;
16861 }
16862
16863 static int
16864 year_2050_test ()
16865 {
16866 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16867 ignoring leap seconds. */
16868 unsigned long int answer = 2527315200UL;
16869
16870 struct tm tm;
16871 time_t t;
16872 tm.tm_year = 2050 - 1900;
16873 tm.tm_mon = 2 - 1;
16874 tm.tm_mday = 1;
16875 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16876 tm.tm_isdst = -1;
16877
16878 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16879 instead of "TZ=America/Vancouver" in order to detect the bug even
16880 on systems that don't support the Olson extension, or don't have the
16881 full zoneinfo tables installed. */
16882 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16883
16884 t = mktime (&tm);
16885
16886 /* Check that the result is either a failure, or close enough
16887 to the correct answer that we can assume the discrepancy is
16888 due to leap seconds. */
16889 return (t == (time_t) -1
16890 || (0 < t && answer - 120 <= t && t <= answer + 120));
16891 }
16892
16893 int
16894 main ()
16895 {
16896 time_t t, delta;
16897 int i, j;
16898
16899 /* This test makes some buggy mktime implementations loop.
16900 Give up after 60 seconds; a mktime slower than that
16901 isn't worth using anyway. */
16902 alarm (60);
16903
16904 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16905 continue;
16906 time_t_max--;
16907 if ((time_t) -1 < 0)
16908 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16909 continue;
16910 delta = time_t_max / 997; /* a suitable prime number */
16911 for (i = 0; i < N_STRINGS; i++)
16912 {
16913 if (tz_strings[i])
16914 putenv (tz_strings[i]);
16915
16916 for (t = 0; t <= time_t_max - delta; t += delta)
16917 if (! mktime_test (t))
16918 return 1;
16919 if (! (mktime_test ((time_t) 1)
16920 && mktime_test ((time_t) (60 * 60))
16921 && mktime_test ((time_t) (60 * 60 * 24))))
16922 return 1;
16923
16924 for (j = 1; 0 < j; j *= 2)
16925 if (! bigtime_test (j))
16926 return 1;
16927 if (! bigtime_test (j - 1))
16928 return 1;
16929 }
16930 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16931 }
16932 _ACEOF
16933 rm -f conftest$ac_exeext
16934 if { (ac_try="$ac_link"
16935 case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938 esac
16939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_link") 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_cv_func_working_mktime=yes
16954 else
16955 echo "$as_me: program exited with status $ac_status" >&5
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 ( exit $ac_status )
16960 ac_cv_func_working_mktime=no
16961 fi
16962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16963 fi
16964
16965
16966 fi
16967 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16968 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16969 if test $ac_cv_func_working_mktime = no; then
16970 case " $LIBOBJS " in
16971 *" mktime.$ac_objext "* ) ;;
16972 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16973 ;;
16974 esac
16975
16976 fi
16977
16978 if test "$ac_cv_func_working_mktime" = no; then
16979
16980 cat >>confdefs.h <<\_ACEOF
16981 #define BROKEN_MKTIME 1
16982 _ACEOF
16983
16984 fi
16985
16986 ac_have_func=no # yes means we've found a way to get the load average.
16987
16988 # Make sure getloadavg.c is where it belongs, at configure-time.
16989 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16990 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16991 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16992 { (exit 1); exit 1; }; }
16993
16994 ac_save_LIBS=$LIBS
16995
16996 # Check for getloadavg, but be sure not to touch the cache variable.
16997 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16998 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16999 if test "${ac_cv_func_getloadavg+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17010 #define getloadavg innocuous_getloadavg
17011
17012 /* System header to define __stub macros and hopefully few prototypes,
17013 which can conflict with char getloadavg (); below.
17014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17015 <limits.h> exists even on freestanding compilers. */
17016
17017 #ifdef __STDC__
17018 # include <limits.h>
17019 #else
17020 # include <assert.h>
17021 #endif
17022
17023 #undef getloadavg
17024
17025 /* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply. */
17028 #ifdef __cplusplus
17029 extern "C"
17030 #endif
17031 char getloadavg ();
17032 /* The GNU C library defines this for functions which it implements
17033 to always fail with ENOSYS. Some functions are actually named
17034 something starting with __ and the normal name is an alias. */
17035 #if defined __stub_getloadavg || defined __stub___getloadavg
17036 choke me
17037 #endif
17038
17039 int
17040 main ()
17041 {
17042 return getloadavg ();
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } && {
17061 test -z "$ac_c_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest$ac_exeext &&
17064 $as_test_x conftest$ac_exeext; then
17065 ac_cv_func_getloadavg=yes
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_cv_func_getloadavg=no
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074 conftest$ac_exeext conftest.$ac_ext
17075 fi
17076 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17077 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17078 if test $ac_cv_func_getloadavg = yes; then
17079 exit 0
17080 else
17081 exit 1
17082 fi
17083 ) && ac_have_func=yes
17084
17085 # On HPUX9, an unprivileged user can get load averages through this function.
17086
17087 for ac_func in pstat_getdynamic
17088 do
17089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095 cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h. */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17103 #define $ac_func innocuous_$ac_func
17104
17105 /* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func (); below.
17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108 <limits.h> exists even on freestanding compilers. */
17109
17110 #ifdef __STDC__
17111 # include <limits.h>
17112 #else
17113 # include <assert.h>
17114 #endif
17115
17116 #undef $ac_func
17117
17118 /* Override any GCC internal prototype to avoid an error.
17119 Use char because int might match the return type of a GCC
17120 builtin and then its argument prototype would still apply. */
17121 #ifdef __cplusplus
17122 extern "C"
17123 #endif
17124 char $ac_func ();
17125 /* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128 #if defined __stub_$ac_func || defined __stub___$ac_func
17129 choke me
17130 #endif
17131
17132 int
17133 main ()
17134 {
17135 return $ac_func ();
17136 ;
17137 return 0;
17138 }
17139 _ACEOF
17140 rm -f conftest.$ac_objext conftest$ac_exeext
17141 if { (ac_try="$ac_link"
17142 case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145 esac
17146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && {
17154 test -z "$ac_c_werror_flag" ||
17155 test ! -s conftest.err
17156 } && test -s conftest$ac_exeext &&
17157 $as_test_x conftest$ac_exeext; then
17158 eval "$as_ac_var=yes"
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163 eval "$as_ac_var=no"
17164 fi
17165
17166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17167 conftest$ac_exeext conftest.$ac_ext
17168 fi
17169 ac_res=`eval echo '${'$as_ac_var'}'`
17170 { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172 if test `eval echo '${'$as_ac_var'}'` = yes; then
17173 cat >>confdefs.h <<_ACEOF
17174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17175 _ACEOF
17176
17177 fi
17178 done
17179
17180
17181 # Solaris has libkstat which does not require root.
17182
17183 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17184 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17185 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 else
17188 ac_check_lib_save_LIBS=$LIBS
17189 LIBS="-lkstat $LIBS"
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h. */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17196
17197 /* Override any GCC internal prototype to avoid an error.
17198 Use char because int might match the return type of a GCC
17199 builtin and then its argument prototype would still apply. */
17200 #ifdef __cplusplus
17201 extern "C"
17202 #endif
17203 char kstat_open ();
17204 int
17205 main ()
17206 {
17207 return kstat_open ();
17208 ;
17209 return 0;
17210 }
17211 _ACEOF
17212 rm -f conftest.$ac_objext conftest$ac_exeext
17213 if { (ac_try="$ac_link"
17214 case "(($ac_try" in
17215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17216 *) ac_try_echo=$ac_try;;
17217 esac
17218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17219 (eval "$ac_link") 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } && {
17226 test -z "$ac_c_werror_flag" ||
17227 test ! -s conftest.err
17228 } && test -s conftest$ac_exeext &&
17229 $as_test_x conftest$ac_exeext; then
17230 ac_cv_lib_kstat_kstat_open=yes
17231 else
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ac_cv_lib_kstat_kstat_open=no
17236 fi
17237
17238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17239 conftest$ac_exeext conftest.$ac_ext
17240 LIBS=$ac_check_lib_save_LIBS
17241 fi
17242 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17243 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17244 if test $ac_cv_lib_kstat_kstat_open = yes; then
17245 cat >>confdefs.h <<_ACEOF
17246 #define HAVE_LIBKSTAT 1
17247 _ACEOF
17248
17249 LIBS="-lkstat $LIBS"
17250
17251 fi
17252
17253 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17254
17255 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17256 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17257 # to get the right answer into the cache.
17258 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17259 if test $ac_have_func = no; then
17260 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17261 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17262 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 else
17265 ac_check_lib_save_LIBS=$LIBS
17266 LIBS="-lelf $LIBS"
17267 cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h. */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17273
17274 /* Override any GCC internal prototype to avoid an error.
17275 Use char because int might match the return type of a GCC
17276 builtin and then its argument prototype would still apply. */
17277 #ifdef __cplusplus
17278 extern "C"
17279 #endif
17280 char elf_begin ();
17281 int
17282 main ()
17283 {
17284 return elf_begin ();
17285 ;
17286 return 0;
17287 }
17288 _ACEOF
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (ac_try="$ac_link"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17294 esac
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_link") 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } && {
17303 test -z "$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17305 } && test -s conftest$ac_exeext &&
17306 $as_test_x conftest$ac_exeext; then
17307 ac_cv_lib_elf_elf_begin=yes
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_cv_lib_elf_elf_begin=no
17313 fi
17314
17315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17316 conftest$ac_exeext conftest.$ac_ext
17317 LIBS=$ac_check_lib_save_LIBS
17318 fi
17319 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17320 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17321 if test $ac_cv_lib_elf_elf_begin = yes; then
17322 LIBS="-lelf $LIBS"
17323 fi
17324
17325 fi
17326 if test $ac_have_func = no; then
17327 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17328 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332 ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-lkvm $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char kvm_open ();
17348 int
17349 main ()
17350 {
17351 return kvm_open ();
17352 ;
17353 return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext &&
17373 $as_test_x conftest$ac_exeext; then
17374 ac_cv_lib_kvm_kvm_open=yes
17375 else
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 ac_cv_lib_kvm_kvm_open=no
17380 fi
17381
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17387 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17388 if test $ac_cv_lib_kvm_kvm_open = yes; then
17389 LIBS="-lkvm $LIBS"
17390 fi
17391
17392 # Check for the 4.4BSD definition of getloadavg.
17393 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17394 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17395 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-lutil $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406
17407 /* Override any GCC internal prototype to avoid an error.
17408 Use char because int might match the return type of a GCC
17409 builtin and then its argument prototype would still apply. */
17410 #ifdef __cplusplus
17411 extern "C"
17412 #endif
17413 char getloadavg ();
17414 int
17415 main ()
17416 {
17417 return getloadavg ();
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427 esac
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17430 ac_status=$?
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 ac_cv_lib_util_getloadavg=yes
17441 else
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445 ac_cv_lib_util_getloadavg=no
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 LIBS=$ac_check_lib_save_LIBS
17451 fi
17452 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17453 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17454 if test $ac_cv_lib_util_getloadavg = yes; then
17455 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17456 fi
17457
17458 fi
17459
17460 if test $ac_have_func = no; then
17461 # There is a commonly available library for RS/6000 AIX.
17462 # Since it is not a standard part of AIX, it might be installed locally.
17463 ac_getloadavg_LIBS=$LIBS
17464 LIBS="-L/usr/local/lib $LIBS"
17465 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17466 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17467 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 else
17470 ac_check_lib_save_LIBS=$LIBS
17471 LIBS="-lgetloadavg $LIBS"
17472 cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h. */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478
17479 /* Override any GCC internal prototype to avoid an error.
17480 Use char because int might match the return type of a GCC
17481 builtin and then its argument prototype would still apply. */
17482 #ifdef __cplusplus
17483 extern "C"
17484 #endif
17485 char getloadavg ();
17486 int
17487 main ()
17488 {
17489 return getloadavg ();
17490 ;
17491 return 0;
17492 }
17493 _ACEOF
17494 rm -f conftest.$ac_objext conftest$ac_exeext
17495 if { (ac_try="$ac_link"
17496 case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_link") 2>conftest.er1
17502 ac_status=$?
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } && {
17508 test -z "$ac_c_werror_flag" ||
17509 test ! -s conftest.err
17510 } && test -s conftest$ac_exeext &&
17511 $as_test_x conftest$ac_exeext; then
17512 ac_cv_lib_getloadavg_getloadavg=yes
17513 else
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17516
17517 ac_cv_lib_getloadavg_getloadavg=no
17518 fi
17519
17520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17521 conftest$ac_exeext conftest.$ac_ext
17522 LIBS=$ac_check_lib_save_LIBS
17523 fi
17524 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17525 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17526 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17527 LIBS="-lgetloadavg $LIBS"
17528 else
17529 LIBS=$ac_getloadavg_LIBS
17530 fi
17531
17532 fi
17533
17534 # Make sure it is really in the library, if we think we found it,
17535 # otherwise set up the replacement function.
17536
17537 for ac_func in getloadavg
17538 do
17539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545 cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h. */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h. */
17551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17553 #define $ac_func innocuous_$ac_func
17554
17555 /* System header to define __stub macros and hopefully few prototypes,
17556 which can conflict with char $ac_func (); below.
17557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17558 <limits.h> exists even on freestanding compilers. */
17559
17560 #ifdef __STDC__
17561 # include <limits.h>
17562 #else
17563 # include <assert.h>
17564 #endif
17565
17566 #undef $ac_func
17567
17568 /* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17571 #ifdef __cplusplus
17572 extern "C"
17573 #endif
17574 char $ac_func ();
17575 /* The GNU C library defines this for functions which it implements
17576 to always fail with ENOSYS. Some functions are actually named
17577 something starting with __ and the normal name is an alias. */
17578 #if defined __stub_$ac_func || defined __stub___$ac_func
17579 choke me
17580 #endif
17581
17582 int
17583 main ()
17584 {
17585 return $ac_func ();
17586 ;
17587 return 0;
17588 }
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_link") 2>conftest.er1
17598 ac_status=$?
17599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); } && {
17604 test -z "$ac_c_werror_flag" ||
17605 test ! -s conftest.err
17606 } && test -s conftest$ac_exeext &&
17607 $as_test_x conftest$ac_exeext; then
17608 eval "$as_ac_var=yes"
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 eval "$as_ac_var=no"
17614 fi
17615
17616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17617 conftest$ac_exeext conftest.$ac_ext
17618 fi
17619 ac_res=`eval echo '${'$as_ac_var'}'`
17620 { echo "$as_me:$LINENO: result: $ac_res" >&5
17621 echo "${ECHO_T}$ac_res" >&6; }
17622 if test `eval echo '${'$as_ac_var'}'` = yes; then
17623 cat >>confdefs.h <<_ACEOF
17624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17625 _ACEOF
17626
17627 else
17628 case " $LIBOBJS " in
17629 *" getloadavg.$ac_objext "* ) ;;
17630 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17631 ;;
17632 esac
17633
17634
17635 cat >>confdefs.h <<\_ACEOF
17636 #define C_GETLOADAVG 1
17637 _ACEOF
17638
17639 # Figure out what our getloadavg.c needs.
17640 ac_have_func=no
17641 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17642 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17643 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17644 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17645 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 fi
17647 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17648 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17649 else
17650 # Is the header compilable?
17651 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17652 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h. */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17659 $ac_includes_default
17660 #include <sys/dg_sys_info.h>
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_compile") 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } && {
17676 test -z "$ac_c_werror_flag" ||
17677 test ! -s conftest.err
17678 } && test -s conftest.$ac_objext; then
17679 ac_header_compiler=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_header_compiler=no
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17689 echo "${ECHO_T}$ac_header_compiler" >&6; }
17690
17691 # Is the header present?
17692 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17693 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h. */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h. */
17700 #include <sys/dg_sys_info.h>
17701 _ACEOF
17702 if { (ac_try="$ac_cpp conftest.$ac_ext"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } >/dev/null && {
17715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 }; then
17718 ac_header_preproc=yes
17719 else
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 ac_header_preproc=no
17724 fi
17725
17726 rm -f conftest.err conftest.$ac_ext
17727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17728 echo "${ECHO_T}$ac_header_preproc" >&6; }
17729
17730 # So? What about this header?
17731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17732 yes:no: )
17733 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17734 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17736 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17737 ac_header_preproc=yes
17738 ;;
17739 no:yes:* )
17740 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17741 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17743 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17744 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17745 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17747 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17749 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17751 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17752
17753 ;;
17754 esac
17755 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17756 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17757 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17761 fi
17762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17763 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17764
17765 fi
17766 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17767 ac_have_func=yes
17768
17769 cat >>confdefs.h <<\_ACEOF
17770 #define DGUX 1
17771 _ACEOF
17772
17773
17774 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17775 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17776 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 else
17779 ac_check_lib_save_LIBS=$LIBS
17780 LIBS="-ldgc $LIBS"
17781 cat >conftest.$ac_ext <<_ACEOF
17782 /* confdefs.h. */
17783 _ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787
17788 /* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17791 #ifdef __cplusplus
17792 extern "C"
17793 #endif
17794 char dg_sys_info ();
17795 int
17796 main ()
17797 {
17798 return dg_sys_info ();
17799 ;
17800 return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext conftest$ac_exeext
17804 if { (ac_try="$ac_link"
17805 case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_link") 2>conftest.er1
17811 ac_status=$?
17812 grep -v '^ *+' conftest.er1 >conftest.err
17813 rm -f conftest.er1
17814 cat conftest.err >&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); } && {
17817 test -z "$ac_c_werror_flag" ||
17818 test ! -s conftest.err
17819 } && test -s conftest$ac_exeext &&
17820 $as_test_x conftest$ac_exeext; then
17821 ac_cv_lib_dgc_dg_sys_info=yes
17822 else
17823 echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17825
17826 ac_cv_lib_dgc_dg_sys_info=no
17827 fi
17828
17829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830 conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17832 fi
17833 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17834 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17835 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_LIBDGC 1
17838 _ACEOF
17839
17840 LIBS="-ldgc $LIBS"
17841
17842 fi
17843
17844 fi
17845
17846
17847
17848 if test "${ac_cv_header_locale_h+set}" = set; then
17849 { echo "$as_me:$LINENO: checking for locale.h" >&5
17850 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17851 if test "${ac_cv_header_locale_h+set}" = set; then
17852 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 fi
17854 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17855 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17856 else
17857 # Is the header compilable?
17858 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17859 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 $ac_includes_default
17867 #include <locale.h>
17868 _ACEOF
17869 rm -f conftest.$ac_objext
17870 if { (ac_try="$ac_compile"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874 esac
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_compile") 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } && {
17883 test -z "$ac_c_werror_flag" ||
17884 test ! -s conftest.err
17885 } && test -s conftest.$ac_objext; then
17886 ac_header_compiler=yes
17887 else
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17890
17891 ac_header_compiler=no
17892 fi
17893
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17896 echo "${ECHO_T}$ac_header_compiler" >&6; }
17897
17898 # Is the header present?
17899 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17900 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17901 cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h. */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 #include <locale.h>
17908 _ACEOF
17909 if { (ac_try="$ac_cpp conftest.$ac_ext"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17916 ac_status=$?
17917 grep -v '^ *+' conftest.er1 >conftest.err
17918 rm -f conftest.er1
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } >/dev/null && {
17922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 }; then
17925 ac_header_preproc=yes
17926 else
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930 ac_header_preproc=no
17931 fi
17932
17933 rm -f conftest.err conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17935 echo "${ECHO_T}$ac_header_preproc" >&6; }
17936
17937 # So? What about this header?
17938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17939 yes:no: )
17940 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17941 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17943 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17944 ac_header_preproc=yes
17945 ;;
17946 no:yes:* )
17947 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17948 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17950 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17952 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17953 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17954 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17955 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17956 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17957 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17958 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17959
17960 ;;
17961 esac
17962 { echo "$as_me:$LINENO: checking for locale.h" >&5
17963 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17964 if test "${ac_cv_header_locale_h+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966 else
17967 ac_cv_header_locale_h=$ac_header_preproc
17968 fi
17969 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17970 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17971
17972 fi
17973
17974
17975
17976 for ac_func in setlocale
17977 do
17978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h. */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17992 #define $ac_func innocuous_$ac_func
17993
17994 /* System header to define __stub macros and hopefully few prototypes,
17995 which can conflict with char $ac_func (); below.
17996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17997 <limits.h> exists even on freestanding compilers. */
17998
17999 #ifdef __STDC__
18000 # include <limits.h>
18001 #else
18002 # include <assert.h>
18003 #endif
18004
18005 #undef $ac_func
18006
18007 /* Override any GCC internal prototype to avoid an error.
18008 Use char because int might match the return type of a GCC
18009 builtin and then its argument prototype would still apply. */
18010 #ifdef __cplusplus
18011 extern "C"
18012 #endif
18013 char $ac_func ();
18014 /* The GNU C library defines this for functions which it implements
18015 to always fail with ENOSYS. Some functions are actually named
18016 something starting with __ and the normal name is an alias. */
18017 #if defined __stub_$ac_func || defined __stub___$ac_func
18018 choke me
18019 #endif
18020
18021 int
18022 main ()
18023 {
18024 return $ac_func ();
18025 ;
18026 return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (ac_try="$ac_link"
18031 case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_link") 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && {
18043 test -z "$ac_c_werror_flag" ||
18044 test ! -s conftest.err
18045 } && test -s conftest$ac_exeext &&
18046 $as_test_x conftest$ac_exeext; then
18047 eval "$as_ac_var=yes"
18048 else
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18051
18052 eval "$as_ac_var=no"
18053 fi
18054
18055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18056 conftest$ac_exeext conftest.$ac_ext
18057 fi
18058 ac_res=`eval echo '${'$as_ac_var'}'`
18059 { echo "$as_me:$LINENO: result: $ac_res" >&5
18060 echo "${ECHO_T}$ac_res" >&6; }
18061 if test `eval echo '${'$as_ac_var'}'` = yes; then
18062 cat >>confdefs.h <<_ACEOF
18063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18064 _ACEOF
18065
18066 fi
18067 done
18068
18069
18070 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18071 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18072 # Irix 4.0.5F has the header but not the library.
18073 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18074 ac_have_func=yes
18075
18076 cat >>confdefs.h <<\_ACEOF
18077 #define SVR4 1
18078 _ACEOF
18079
18080 fi
18081
18082 if test $ac_have_func = no; then
18083 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18084 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18085 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18086 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 fi
18089 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18090 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18091 else
18092 # Is the header compilable?
18093 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18094 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18095 cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h. */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 $ac_includes_default
18102 #include <inq_stats/cpustats.h>
18103 _ACEOF
18104 rm -f conftest.$ac_objext
18105 if { (ac_try="$ac_compile"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_compile") 2>conftest.er1
18112 ac_status=$?
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } && {
18118 test -z "$ac_c_werror_flag" ||
18119 test ! -s conftest.err
18120 } && test -s conftest.$ac_objext; then
18121 ac_header_compiler=yes
18122 else
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_header_compiler=no
18127 fi
18128
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18131 echo "${ECHO_T}$ac_header_compiler" >&6; }
18132
18133 # Is the header present?
18134 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18135 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 #include <inq_stats/cpustats.h>
18143 _ACEOF
18144 if { (ac_try="$ac_cpp conftest.$ac_ext"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } >/dev/null && {
18157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 }; then
18160 ac_header_preproc=yes
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_header_preproc=no
18166 fi
18167
18168 rm -f conftest.err conftest.$ac_ext
18169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18170 echo "${ECHO_T}$ac_header_preproc" >&6; }
18171
18172 # So? What about this header?
18173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18174 yes:no: )
18175 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18176 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18178 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18179 ac_header_preproc=yes
18180 ;;
18181 no:yes:* )
18182 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18183 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18184 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18185 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18186 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18187 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18188 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18189 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18190 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18191 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18192 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18193 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18194
18195 ;;
18196 esac
18197 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18198 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18199 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 else
18202 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18203 fi
18204 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18205 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18206
18207 fi
18208 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18209 ac_have_func=yes
18210
18211 cat >>confdefs.h <<\_ACEOF
18212 #define UMAX 1
18213 _ACEOF
18214
18215
18216 cat >>confdefs.h <<\_ACEOF
18217 #define UMAX4_3 1
18218 _ACEOF
18219
18220 fi
18221
18222
18223 fi
18224
18225 if test $ac_have_func = no; then
18226 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18227 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18228 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18229 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 fi
18232 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18233 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18234 else
18235 # Is the header compilable?
18236 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18237 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h. */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 $ac_includes_default
18245 #include <sys/cpustats.h>
18246 _ACEOF
18247 rm -f conftest.$ac_objext
18248 if { (ac_try="$ac_compile"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254 (eval "$ac_compile") 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && {
18261 test -z "$ac_c_werror_flag" ||
18262 test ! -s conftest.err
18263 } && test -s conftest.$ac_objext; then
18264 ac_header_compiler=yes
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269 ac_header_compiler=no
18270 fi
18271
18272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18274 echo "${ECHO_T}$ac_header_compiler" >&6; }
18275
18276 # Is the header present?
18277 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18278 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 #include <sys/cpustats.h>
18286 _ACEOF
18287 if { (ac_try="$ac_cpp conftest.$ac_ext"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } >/dev/null && {
18300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 }; then
18303 ac_header_preproc=yes
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_header_preproc=no
18309 fi
18310
18311 rm -f conftest.err conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18313 echo "${ECHO_T}$ac_header_preproc" >&6; }
18314
18315 # So? What about this header?
18316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18317 yes:no: )
18318 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18319 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18321 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18322 ac_header_preproc=yes
18323 ;;
18324 no:yes:* )
18325 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18326 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18327 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18328 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18329 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18330 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18332 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18333 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18334 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18335 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18336 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18337
18338 ;;
18339 esac
18340 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18341 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18342 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18346 fi
18347 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18348 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18349
18350 fi
18351 if test $ac_cv_header_sys_cpustats_h = yes; then
18352 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18353 #define UMAX 1
18354 _ACEOF
18355
18356 fi
18357
18358
18359 fi
18360
18361 if test $ac_have_func = no; then
18362
18363 for ac_header in mach/mach.h
18364 do
18365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 fi
18372 ac_res=`eval echo '${'$as_ac_Header'}'`
18373 { echo "$as_me:$LINENO: result: $ac_res" >&5
18374 echo "${ECHO_T}$ac_res" >&6; }
18375 else
18376 # Is the header compilable?
18377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h. */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 $ac_includes_default
18386 #include <$ac_header>
18387 _ACEOF
18388 rm -f conftest.$ac_objext
18389 if { (ac_try="$ac_compile"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_compile") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest.$ac_objext; then
18405 ac_header_compiler=yes
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 ac_header_compiler=no
18411 fi
18412
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18415 echo "${ECHO_T}$ac_header_compiler" >&6; }
18416
18417 # Is the header present?
18418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18420 cat >conftest.$ac_ext <<_ACEOF
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 #include <$ac_header>
18427 _ACEOF
18428 if { (ac_try="$ac_cpp conftest.$ac_ext"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } >/dev/null && {
18441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 }; then
18444 ac_header_preproc=yes
18445 else
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 ac_header_preproc=no
18450 fi
18451
18452 rm -f conftest.err conftest.$ac_ext
18453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18454 echo "${ECHO_T}$ac_header_preproc" >&6; }
18455
18456 # So? What about this header?
18457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18458 yes:no: )
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18463 ac_header_preproc=yes
18464 ;;
18465 no:yes:* )
18466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18478
18479 ;;
18480 esac
18481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486 eval "$as_ac_Header=\$ac_header_preproc"
18487 fi
18488 ac_res=`eval echo '${'$as_ac_Header'}'`
18489 { echo "$as_me:$LINENO: result: $ac_res" >&5
18490 echo "${ECHO_T}$ac_res" >&6; }
18491
18492 fi
18493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18494 cat >>confdefs.h <<_ACEOF
18495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18496 _ACEOF
18497
18498 fi
18499
18500 done
18501
18502 fi
18503
18504
18505 for ac_header in nlist.h
18506 do
18507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 fi
18514 ac_res=`eval echo '${'$as_ac_Header'}'`
18515 { echo "$as_me:$LINENO: result: $ac_res" >&5
18516 echo "${ECHO_T}$ac_res" >&6; }
18517 else
18518 # Is the header compilable?
18519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 $ac_includes_default
18528 #include <$ac_header>
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (ac_try="$ac_compile"
18532 case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18535 esac
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_compile") 2>conftest.er1
18538 ac_status=$?
18539 grep -v '^ *+' conftest.er1 >conftest.err
18540 rm -f conftest.er1
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && {
18544 test -z "$ac_c_werror_flag" ||
18545 test ! -s conftest.err
18546 } && test -s conftest.$ac_objext; then
18547 ac_header_compiler=yes
18548 else
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552 ac_header_compiler=no
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18557 echo "${ECHO_T}$ac_header_compiler" >&6; }
18558
18559 # Is the header present?
18560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18562 cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 #include <$ac_header>
18569 _ACEOF
18570 if { (ac_try="$ac_cpp conftest.$ac_ext"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } >/dev/null && {
18583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 }; then
18586 ac_header_preproc=yes
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 ac_header_preproc=no
18592 fi
18593
18594 rm -f conftest.err conftest.$ac_ext
18595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18596 echo "${ECHO_T}$ac_header_preproc" >&6; }
18597
18598 # So? What about this header?
18599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18600 yes:no: )
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18605 ac_header_preproc=yes
18606 ;;
18607 no:yes:* )
18608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18620
18621 ;;
18622 esac
18623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628 eval "$as_ac_Header=\$ac_header_preproc"
18629 fi
18630 ac_res=`eval echo '${'$as_ac_Header'}'`
18631 { echo "$as_me:$LINENO: result: $ac_res" >&5
18632 echo "${ECHO_T}$ac_res" >&6; }
18633
18634 fi
18635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18636 cat >>confdefs.h <<_ACEOF
18637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18638 _ACEOF
18639 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18640 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18641 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h. */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18650 #include <nlist.h>
18651
18652 int
18653 main ()
18654 {
18655 static struct nlist ac_aggr;
18656 if (ac_aggr.n_un.n_name)
18657 return 0;
18658 ;
18659 return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext
18663 if { (ac_try="$ac_compile"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_compile") 2>conftest.er1
18670 ac_status=$?
18671 grep -v '^ *+' conftest.er1 >conftest.err
18672 rm -f conftest.er1
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest.$ac_objext; then
18679 ac_cv_member_struct_nlist_n_un_n_name=yes
18680 else
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18683
18684 cat >conftest.$ac_ext <<_ACEOF
18685 /* confdefs.h. */
18686 _ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18690 #include <nlist.h>
18691
18692 int
18693 main ()
18694 {
18695 static struct nlist ac_aggr;
18696 if (sizeof ac_aggr.n_un.n_name)
18697 return 0;
18698 ;
18699 return 0;
18700 }
18701 _ACEOF
18702 rm -f conftest.$ac_objext
18703 if { (ac_try="$ac_compile"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest.$ac_objext; then
18719 ac_cv_member_struct_nlist_n_un_n_name=yes
18720 else
18721 echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18723
18724 ac_cv_member_struct_nlist_n_un_n_name=no
18725 fi
18726
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18733 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18734 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18735
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18738 _ACEOF
18739
18740
18741 cat >>confdefs.h <<\_ACEOF
18742 #define NLIST_NAME_UNION 1
18743 _ACEOF
18744
18745 fi
18746
18747
18748 fi
18749
18750 done
18751
18752 fi
18753 done
18754
18755
18756 # Some definitions of getloadavg require that the program be installed setgid.
18757 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18758 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18759 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18760 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 else
18762 cat >conftest.$ac_ext <<_ACEOF
18763 /* confdefs.h. */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18769 #ifdef LDAV_PRIVILEGED
18770 Yowza Am I SETGID yet
18771 #endif
18772 _ACEOF
18773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18774 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18775 ac_cv_func_getloadavg_setgid=yes
18776 else
18777 ac_cv_func_getloadavg_setgid=no
18778 fi
18779 rm -f conftest*
18780
18781 fi
18782 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18783 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18784 if test $ac_cv_func_getloadavg_setgid = yes; then
18785 NEED_SETGID=true
18786
18787 cat >>confdefs.h <<\_ACEOF
18788 #define GETLOADAVG_PRIVILEGED 1
18789 _ACEOF
18790
18791 else
18792 NEED_SETGID=false
18793 fi
18794
18795 if test $ac_cv_func_getloadavg_setgid = yes; then
18796 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18797 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18798 if test "${ac_cv_group_kmem+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18802 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18803 # If we got an error (system does not support symlinks), try without -L.
18804 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18805 ac_cv_group_kmem=`echo $ac_ls_output \
18806 | sed -ne 's/[ ][ ]*/ /g;
18807 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18808 / /s/.* //;p;'`
18809
18810 fi
18811 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18812 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18813 KMEM_GROUP=$ac_cv_group_kmem
18814 fi
18815 if test "x$ac_save_LIBS" = x; then
18816 GETLOADAVG_LIBS=$LIBS
18817 else
18818 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18819 fi
18820 LIBS=$ac_save_LIBS
18821
18822
18823
18824 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18825 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18826 if test "${ac_cv_sys_largefile_source+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829 while :; do
18830 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h. */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 #include <stdio.h>
18837 int
18838 main ()
18839 {
18840 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18841 ;
18842 return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_link") 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest$ac_exeext &&
18862 $as_test_x conftest$ac_exeext; then
18863 ac_cv_sys_largefile_source=no; break
18864 else
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868
18869 fi
18870
18871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18872 conftest$ac_exeext conftest.$ac_ext
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h. */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18879 #define _LARGEFILE_SOURCE 1
18880 #include <stdio.h>
18881 int
18882 main ()
18883 {
18884 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18885 ;
18886 return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_sys_largefile_source=1; break
18908 else
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 ac_cv_sys_largefile_source=unknown
18918 break
18919 done
18920 fi
18921 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18922 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18923 case $ac_cv_sys_largefile_source in #(
18924 no | unknown) ;;
18925 *)
18926 cat >>confdefs.h <<_ACEOF
18927 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18928 _ACEOF
18929 ;;
18930 esac
18931 rm -f conftest*
18932
18933 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18934 # in glibc 2.1.3, but that breaks too many other things.
18935 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18936 if test $ac_cv_sys_largefile_source != unknown; then
18937
18938 cat >>confdefs.h <<\_ACEOF
18939 #define HAVE_FSEEKO 1
18940 _ACEOF
18941
18942 fi
18943
18944
18945 # Configure getopt.
18946 # getopt.m4 serial 10
18947
18948 # The getopt module assume you want GNU getopt, with getopt_long etc,
18949 # rather than vanilla POSIX getopt. This means your your code should
18950 # always include <getopt.h> for the getopt prototypes.
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962 # Prerequisites of lib/getopt*.
18963
18964
18965
18966
18967 GETOPT_H=
18968
18969 for ac_header in getopt.h
18970 do
18971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 fi
18978 ac_res=`eval echo '${'$as_ac_Header'}'`
18979 { echo "$as_me:$LINENO: result: $ac_res" >&5
18980 echo "${ECHO_T}$ac_res" >&6; }
18981 else
18982 # Is the header compilable?
18983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18985 cat >conftest.$ac_ext <<_ACEOF
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 $ac_includes_default
18992 #include <$ac_header>
18993 _ACEOF
18994 rm -f conftest.$ac_objext
18995 if { (ac_try="$ac_compile"
18996 case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
18999 esac
19000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_compile") 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } && {
19008 test -z "$ac_c_werror_flag" ||
19009 test ! -s conftest.err
19010 } && test -s conftest.$ac_objext; then
19011 ac_header_compiler=yes
19012 else
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 ac_header_compiler=no
19017 fi
19018
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19021 echo "${ECHO_T}$ac_header_compiler" >&6; }
19022
19023 # Is the header present?
19024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19026 cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h. */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 #include <$ac_header>
19033 _ACEOF
19034 if { (ac_try="$ac_cpp conftest.$ac_ext"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } >/dev/null && {
19047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 }; then
19050 ac_header_preproc=yes
19051 else
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 ac_header_preproc=no
19056 fi
19057
19058 rm -f conftest.err conftest.$ac_ext
19059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19060 echo "${ECHO_T}$ac_header_preproc" >&6; }
19061
19062 # So? What about this header?
19063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19064 yes:no: )
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19069 ac_header_preproc=yes
19070 ;;
19071 no:yes:* )
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19084
19085 ;;
19086 esac
19087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092 eval "$as_ac_Header=\$ac_header_preproc"
19093 fi
19094 ac_res=`eval echo '${'$as_ac_Header'}'`
19095 { echo "$as_me:$LINENO: result: $ac_res" >&5
19096 echo "${ECHO_T}$ac_res" >&6; }
19097
19098 fi
19099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19100 cat >>confdefs.h <<_ACEOF
19101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19102 _ACEOF
19103
19104 else
19105 GETOPT_H=getopt.h
19106 fi
19107
19108 done
19109
19110 if test -z "$GETOPT_H"; then
19111
19112 for ac_func in getopt_long_only
19113 do
19114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19128 #define $ac_func innocuous_$ac_func
19129
19130 /* System header to define __stub macros and hopefully few prototypes,
19131 which can conflict with char $ac_func (); below.
19132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19133 <limits.h> exists even on freestanding compilers. */
19134
19135 #ifdef __STDC__
19136 # include <limits.h>
19137 #else
19138 # include <assert.h>
19139 #endif
19140
19141 #undef $ac_func
19142
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char $ac_func ();
19150 /* The GNU C library defines this for functions which it implements
19151 to always fail with ENOSYS. Some functions are actually named
19152 something starting with __ and the normal name is an alias. */
19153 #if defined __stub_$ac_func || defined __stub___$ac_func
19154 choke me
19155 #endif
19156
19157 int
19158 main ()
19159 {
19160 return $ac_func ();
19161 ;
19162 return 0;
19163 }
19164 _ACEOF
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (ac_try="$ac_link"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_link") 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } && {
19179 test -z "$ac_c_werror_flag" ||
19180 test ! -s conftest.err
19181 } && test -s conftest$ac_exeext &&
19182 $as_test_x conftest$ac_exeext; then
19183 eval "$as_ac_var=yes"
19184 else
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19187
19188 eval "$as_ac_var=no"
19189 fi
19190
19191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19192 conftest$ac_exeext conftest.$ac_ext
19193 fi
19194 ac_res=`eval echo '${'$as_ac_var'}'`
19195 { echo "$as_me:$LINENO: result: $ac_res" >&5
19196 echo "${ECHO_T}$ac_res" >&6; }
19197 if test `eval echo '${'$as_ac_var'}'` = yes; then
19198 cat >>confdefs.h <<_ACEOF
19199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19200 _ACEOF
19201
19202 else
19203 GETOPT_H=getopt.h
19204 fi
19205 done
19206
19207 fi
19208
19209 if test -z "$GETOPT_H"; then
19210 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19211 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19212 if test "${ac_cv_have_decl_optreset+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215 cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h. */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 #include <getopt.h>
19222
19223 int
19224 main ()
19225 {
19226 #ifndef optreset
19227 (void) optreset;
19228 #endif
19229
19230 ;
19231 return 0;
19232 }
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
19236 case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } && {
19248 test -z "$ac_c_werror_flag" ||
19249 test ! -s conftest.err
19250 } && test -s conftest.$ac_objext; then
19251 ac_cv_have_decl_optreset=yes
19252 else
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 ac_cv_have_decl_optreset=no
19257 fi
19258
19259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 fi
19261 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19262 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19263 if test $ac_cv_have_decl_optreset = yes; then
19264 GETOPT_H=getopt.h
19265 fi
19266
19267 fi
19268
19269 if test -z "$GETOPT_H"; then
19270 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19271 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19272 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275 if test "$cross_compiling" = yes; then
19276 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19277 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19278 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <getopt.h>
19288
19289 int
19290 main ()
19291 {
19292 #ifndef getopt_clip
19293 (void) getopt_clip;
19294 #endif
19295
19296 ;
19297 return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext
19301 if { (ac_try="$ac_compile"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_compile") 2>conftest.er1
19308 ac_status=$?
19309 grep -v '^ *+' conftest.er1 >conftest.err
19310 rm -f conftest.er1
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && {
19314 test -z "$ac_c_werror_flag" ||
19315 test ! -s conftest.err
19316 } && test -s conftest.$ac_objext; then
19317 ac_cv_have_decl_getopt_clip=yes
19318 else
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 ac_cv_have_decl_getopt_clip=no
19323 fi
19324
19325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 fi
19327 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19328 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19329 if test $ac_cv_have_decl_getopt_clip = yes; then
19330 gl_cv_func_gnu_getopt=no
19331 else
19332 gl_cv_func_gnu_getopt=yes
19333 fi
19334
19335 else
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h. */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 #include <getopt.h>
19343 int
19344 main ()
19345 {
19346
19347 char *myargv[3];
19348 myargv[0] = "conftest";
19349 myargv[1] = "-+";
19350 myargv[2] = 0;
19351 return getopt (2, myargv, "+a") != '?';
19352
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362 esac
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_link") 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 gl_cv_func_gnu_getopt=yes
19378 else
19379 echo "$as_me: program exited with status $ac_status" >&5
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ( exit $ac_status )
19384 gl_cv_func_gnu_getopt=no
19385 fi
19386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19387 fi
19388
19389
19390 fi
19391 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19392 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19393 if test "$gl_cv_func_gnu_getopt" = "no"; then
19394 GETOPT_H=getopt.h
19395 fi
19396 fi
19397
19398
19399
19400 if test -n "$GETOPT_H"; then
19401
19402
19403 GETOPT_H=getopt.h
19404
19405 cat >>confdefs.h <<\_ACEOF
19406 #define __GETOPT_PREFIX rpl_
19407 _ACEOF
19408
19409
19410
19411 :
19412 GETOPTOBJS='getopt.o getopt1.o'
19413
19414 fi
19415
19416
19417
19418
19419 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19420 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19421 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424 # Use it with a single arg.
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h. */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 $ac_includes_default
19432 int
19433 main ()
19434 {
19435 getpgrp (0);
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext
19441 if { (ac_try="$ac_compile"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_compile") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest.$ac_objext; then
19457 ac_cv_func_getpgrp_void=no
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_cv_func_getpgrp_void=yes
19463 fi
19464
19465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466
19467 fi
19468 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19469 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19470 if test $ac_cv_func_getpgrp_void = yes; then
19471
19472 cat >>confdefs.h <<\_ACEOF
19473 #define GETPGRP_VOID 1
19474 _ACEOF
19475
19476 fi
19477
19478
19479
19480 for ac_func in strftime
19481 do
19482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19496 #define $ac_func innocuous_$ac_func
19497
19498 /* System header to define __stub macros and hopefully few prototypes,
19499 which can conflict with char $ac_func (); below.
19500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19501 <limits.h> exists even on freestanding compilers. */
19502
19503 #ifdef __STDC__
19504 # include <limits.h>
19505 #else
19506 # include <assert.h>
19507 #endif
19508
19509 #undef $ac_func
19510
19511 /* Override any GCC internal prototype to avoid an error.
19512 Use char because int might match the return type of a GCC
19513 builtin and then its argument prototype would still apply. */
19514 #ifdef __cplusplus
19515 extern "C"
19516 #endif
19517 char $ac_func ();
19518 /* The GNU C library defines this for functions which it implements
19519 to always fail with ENOSYS. Some functions are actually named
19520 something starting with __ and the normal name is an alias. */
19521 #if defined __stub_$ac_func || defined __stub___$ac_func
19522 choke me
19523 #endif
19524
19525 int
19526 main ()
19527 {
19528 return $ac_func ();
19529 ;
19530 return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_link") 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } && {
19547 test -z "$ac_c_werror_flag" ||
19548 test ! -s conftest.err
19549 } && test -s conftest$ac_exeext &&
19550 $as_test_x conftest$ac_exeext; then
19551 eval "$as_ac_var=yes"
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 eval "$as_ac_var=no"
19557 fi
19558
19559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19560 conftest$ac_exeext conftest.$ac_ext
19561 fi
19562 ac_res=`eval echo '${'$as_ac_var'}'`
19563 { echo "$as_me:$LINENO: result: $ac_res" >&5
19564 echo "${ECHO_T}$ac_res" >&6; }
19565 if test `eval echo '${'$as_ac_var'}'` = yes; then
19566 cat >>confdefs.h <<_ACEOF
19567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19568 _ACEOF
19569
19570 else
19571 # strftime is in -lintl on SCO UNIX.
19572 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19573 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19574 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577 ac_check_lib_save_LIBS=$LIBS
19578 LIBS="-lintl $LIBS"
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585
19586 /* Override any GCC internal prototype to avoid an error.
19587 Use char because int might match the return type of a GCC
19588 builtin and then its argument prototype would still apply. */
19589 #ifdef __cplusplus
19590 extern "C"
19591 #endif
19592 char strftime ();
19593 int
19594 main ()
19595 {
19596 return strftime ();
19597 ;
19598 return 0;
19599 }
19600 _ACEOF
19601 rm -f conftest.$ac_objext conftest$ac_exeext
19602 if { (ac_try="$ac_link"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_link") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest$ac_exeext &&
19618 $as_test_x conftest$ac_exeext; then
19619 ac_cv_lib_intl_strftime=yes
19620 else
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624 ac_cv_lib_intl_strftime=no
19625 fi
19626
19627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19628 conftest$ac_exeext conftest.$ac_ext
19629 LIBS=$ac_check_lib_save_LIBS
19630 fi
19631 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19632 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19633 if test $ac_cv_lib_intl_strftime = yes; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_STRFTIME 1
19636 _ACEOF
19637
19638 LIBS="-lintl $LIBS"
19639 fi
19640
19641 fi
19642 done
19643
19644
19645 # UNIX98 PTYs.
19646
19647 for ac_func in grantpt
19648 do
19649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19650 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19663 #define $ac_func innocuous_$ac_func
19664
19665 /* System header to define __stub macros and hopefully few prototypes,
19666 which can conflict with char $ac_func (); below.
19667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19668 <limits.h> exists even on freestanding compilers. */
19669
19670 #ifdef __STDC__
19671 # include <limits.h>
19672 #else
19673 # include <assert.h>
19674 #endif
19675
19676 #undef $ac_func
19677
19678 /* Override any GCC internal prototype to avoid an error.
19679 Use char because int might match the return type of a GCC
19680 builtin and then its argument prototype would still apply. */
19681 #ifdef __cplusplus
19682 extern "C"
19683 #endif
19684 char $ac_func ();
19685 /* The GNU C library defines this for functions which it implements
19686 to always fail with ENOSYS. Some functions are actually named
19687 something starting with __ and the normal name is an alias. */
19688 #if defined __stub_$ac_func || defined __stub___$ac_func
19689 choke me
19690 #endif
19691
19692 int
19693 main ()
19694 {
19695 return $ac_func ();
19696 ;
19697 return 0;
19698 }
19699 _ACEOF
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (ac_try="$ac_link"
19702 case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19705 esac
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707 (eval "$ac_link") 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } && {
19714 test -z "$ac_c_werror_flag" ||
19715 test ! -s conftest.err
19716 } && test -s conftest$ac_exeext &&
19717 $as_test_x conftest$ac_exeext; then
19718 eval "$as_ac_var=yes"
19719 else
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 eval "$as_ac_var=no"
19724 fi
19725
19726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19727 conftest$ac_exeext conftest.$ac_ext
19728 fi
19729 ac_res=`eval echo '${'$as_ac_var'}'`
19730 { echo "$as_me:$LINENO: result: $ac_res" >&5
19731 echo "${ECHO_T}$ac_res" >&6; }
19732 if test `eval echo '${'$as_ac_var'}'` = yes; then
19733 cat >>confdefs.h <<_ACEOF
19734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19735 _ACEOF
19736
19737 fi
19738 done
19739
19740
19741 # PTY-related GNU extensions.
19742
19743 for ac_func in getpt
19744 do
19745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 else
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19759 #define $ac_func innocuous_$ac_func
19760
19761 /* System header to define __stub macros and hopefully few prototypes,
19762 which can conflict with char $ac_func (); below.
19763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19764 <limits.h> exists even on freestanding compilers. */
19765
19766 #ifdef __STDC__
19767 # include <limits.h>
19768 #else
19769 # include <assert.h>
19770 #endif
19771
19772 #undef $ac_func
19773
19774 /* Override any GCC internal prototype to avoid an error.
19775 Use char because int might match the return type of a GCC
19776 builtin and then its argument prototype would still apply. */
19777 #ifdef __cplusplus
19778 extern "C"
19779 #endif
19780 char $ac_func ();
19781 /* The GNU C library defines this for functions which it implements
19782 to always fail with ENOSYS. Some functions are actually named
19783 something starting with __ and the normal name is an alias. */
19784 #if defined __stub_$ac_func || defined __stub___$ac_func
19785 choke me
19786 #endif
19787
19788 int
19789 main ()
19790 {
19791 return $ac_func ();
19792 ;
19793 return 0;
19794 }
19795 _ACEOF
19796 rm -f conftest.$ac_objext conftest$ac_exeext
19797 if { (ac_try="$ac_link"
19798 case "(($ac_try" in
19799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19801 esac
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && {
19810 test -z "$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 } && test -s conftest$ac_exeext &&
19813 $as_test_x conftest$ac_exeext; then
19814 eval "$as_ac_var=yes"
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 eval "$as_ac_var=no"
19820 fi
19821
19822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19823 conftest$ac_exeext conftest.$ac_ext
19824 fi
19825 ac_res=`eval echo '${'$as_ac_var'}'`
19826 { echo "$as_me:$LINENO: result: $ac_res" >&5
19827 echo "${ECHO_T}$ac_res" >&6; }
19828 if test `eval echo '${'$as_ac_var'}'` = yes; then
19829 cat >>confdefs.h <<_ACEOF
19830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19831 _ACEOF
19832
19833 fi
19834 done
19835
19836
19837 # Check this now, so that we will NOT find the above functions in ncurses.
19838 # That is because we have not set up to link ncurses in lib-src.
19839 # It's better to believe a function is not available
19840 # than to expect to find it in ncurses.
19841
19842 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19843 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19844 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847 ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lncurses $LIBS"
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19859 #ifdef __cplusplus
19860 extern "C"
19861 #endif
19862 char tparm ();
19863 int
19864 main ()
19865 {
19866 return tparm ();
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest$ac_exeext &&
19888 $as_test_x conftest$ac_exeext; then
19889 ac_cv_lib_ncurses_tparm=yes
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 ac_cv_lib_ncurses_tparm=no
19895 fi
19896
19897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19898 conftest$ac_exeext conftest.$ac_ext
19899 LIBS=$ac_check_lib_save_LIBS
19900 fi
19901 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19902 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19903 if test $ac_cv_lib_ncurses_tparm = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_LIBNCURSES 1
19906 _ACEOF
19907
19908 LIBS="-lncurses $LIBS"
19909
19910 fi
19911
19912
19913 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19914
19915 resolv=no
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h. */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 #include <netinet/in.h>
19923 #include <arpa/nameser.h>
19924 #include <resolv.h>
19925 int
19926 main ()
19927 {
19928 return res_init();
19929 ;
19930 return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest$ac_exeext &&
19950 $as_test_x conftest$ac_exeext; then
19951 have_res_init=yes
19952 else
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19955
19956 have_res_init=no
19957 fi
19958
19959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19960 conftest$ac_exeext conftest.$ac_ext
19961 if test "$have_res_init" = no; then
19962 OLIBS="$LIBS"
19963 LIBS="$LIBS -lresolv"
19964 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19965 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h. */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 #include <netinet/in.h>
19973 #include <arpa/nameser.h>
19974 #include <resolv.h>
19975 int
19976 main ()
19977 {
19978 return res_init();
19979 ;
19980 return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext conftest$ac_exeext
19984 if { (ac_try="$ac_link"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19988 esac
19989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19990 (eval "$ac_link") 2>conftest.er1
19991 ac_status=$?
19992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } && {
19997 test -z "$ac_c_werror_flag" ||
19998 test ! -s conftest.err
19999 } && test -s conftest$ac_exeext &&
20000 $as_test_x conftest$ac_exeext; then
20001 have_res_init=yes
20002 else
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006 have_res_init=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20010 conftest$ac_exeext conftest.$ac_ext
20011 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20012 echo "${ECHO_T}$have_res_init" >&6; }
20013 if test "$have_res_init" = yes ; then
20014 resolv=yes
20015 fi
20016 LIBS="$OLIBS"
20017 fi
20018
20019 if test "$have_res_init" = yes; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_RES_INIT 1
20023 _ACEOF
20024
20025 fi
20026
20027 # Do we need the Hesiod library to provide the support routines?
20028 if test "$with_hesiod" != no ; then
20029 # Don't set $LIBS here -- see comments above.
20030 { echo "$as_me:$LINENO: checking for res_send" >&5
20031 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20032 if test "${ac_cv_func_res_send+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20034 else
20035 cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h. */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20043 #define res_send innocuous_res_send
20044
20045 /* System header to define __stub macros and hopefully few prototypes,
20046 which can conflict with char res_send (); below.
20047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048 <limits.h> exists even on freestanding compilers. */
20049
20050 #ifdef __STDC__
20051 # include <limits.h>
20052 #else
20053 # include <assert.h>
20054 #endif
20055
20056 #undef res_send
20057
20058 /* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 char res_send ();
20065 /* The GNU C library defines this for functions which it implements
20066 to always fail with ENOSYS. Some functions are actually named
20067 something starting with __ and the normal name is an alias. */
20068 #if defined __stub_res_send || defined __stub___res_send
20069 choke me
20070 #endif
20071
20072 int
20073 main ()
20074 {
20075 return res_send ();
20076 ;
20077 return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_link") 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest$ac_exeext &&
20097 $as_test_x conftest$ac_exeext; then
20098 ac_cv_func_res_send=yes
20099 else
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20102
20103 ac_cv_func_res_send=no
20104 fi
20105
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107 conftest$ac_exeext conftest.$ac_ext
20108 fi
20109 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20110 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20111 if test $ac_cv_func_res_send = yes; then
20112 :
20113 else
20114 { echo "$as_me:$LINENO: checking for __res_send" >&5
20115 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20116 if test "${ac_cv_func___res_send+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20127 #define __res_send innocuous___res_send
20128
20129 /* System header to define __stub macros and hopefully few prototypes,
20130 which can conflict with char __res_send (); below.
20131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20132 <limits.h> exists even on freestanding compilers. */
20133
20134 #ifdef __STDC__
20135 # include <limits.h>
20136 #else
20137 # include <assert.h>
20138 #endif
20139
20140 #undef __res_send
20141
20142 /* Override any GCC internal prototype to avoid an error.
20143 Use char because int might match the return type of a GCC
20144 builtin and then its argument prototype would still apply. */
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 char __res_send ();
20149 /* The GNU C library defines this for functions which it implements
20150 to always fail with ENOSYS. Some functions are actually named
20151 something starting with __ and the normal name is an alias. */
20152 #if defined __stub___res_send || defined __stub_____res_send
20153 choke me
20154 #endif
20155
20156 int
20157 main ()
20158 {
20159 return __res_send ();
20160 ;
20161 return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest.$ac_objext conftest$ac_exeext
20165 if { (ac_try="$ac_link"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_link") 2>conftest.er1
20172 ac_status=$?
20173 grep -v '^ *+' conftest.er1 >conftest.err
20174 rm -f conftest.er1
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest$ac_exeext &&
20181 $as_test_x conftest$ac_exeext; then
20182 ac_cv_func___res_send=yes
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_cv_func___res_send=no
20188 fi
20189
20190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20191 conftest$ac_exeext conftest.$ac_ext
20192 fi
20193 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20194 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20195 if test $ac_cv_func___res_send = yes; then
20196 :
20197 else
20198 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20199 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20200 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203 ac_check_lib_save_LIBS=$LIBS
20204 LIBS="-lresolv $LIBS"
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h. */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 char res_send ();
20219 int
20220 main ()
20221 {
20222 return res_send ();
20223 ;
20224 return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (ac_try="$ac_link"
20229 case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_link") 2>conftest.er1
20235 ac_status=$?
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest$ac_exeext &&
20244 $as_test_x conftest$ac_exeext; then
20245 ac_cv_lib_resolv_res_send=yes
20246 else
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250 ac_cv_lib_resolv_res_send=no
20251 fi
20252
20253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20254 conftest$ac_exeext conftest.$ac_ext
20255 LIBS=$ac_check_lib_save_LIBS
20256 fi
20257 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20258 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20259 if test $ac_cv_lib_resolv_res_send = yes; then
20260 resolv=yes
20261 else
20262 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20263 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20264 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267 ac_check_lib_save_LIBS=$LIBS
20268 LIBS="-lresolv $LIBS"
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h. */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275
20276 /* Override any GCC internal prototype to avoid an error.
20277 Use char because int might match the return type of a GCC
20278 builtin and then its argument prototype would still apply. */
20279 #ifdef __cplusplus
20280 extern "C"
20281 #endif
20282 char __res_send ();
20283 int
20284 main ()
20285 {
20286 return __res_send ();
20287 ;
20288 return 0;
20289 }
20290 _ACEOF
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (ac_try="$ac_link"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_link") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest$ac_exeext &&
20308 $as_test_x conftest$ac_exeext; then
20309 ac_cv_lib_resolv___res_send=yes
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_cv_lib_resolv___res_send=no
20315 fi
20316
20317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20318 conftest$ac_exeext conftest.$ac_ext
20319 LIBS=$ac_check_lib_save_LIBS
20320 fi
20321 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20322 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20323 if test $ac_cv_lib_resolv___res_send = yes; then
20324 resolv=yes
20325 fi
20326
20327 fi
20328
20329 fi
20330
20331 fi
20332
20333 if test "$resolv" = yes ; then
20334 RESOLVLIB=-lresolv
20335 else
20336 RESOLVLIB=
20337 fi
20338 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20339 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20340 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20342 else
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20351 #define hes_getmailhost innocuous_hes_getmailhost
20352
20353 /* System header to define __stub macros and hopefully few prototypes,
20354 which can conflict with char hes_getmailhost (); below.
20355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20356 <limits.h> exists even on freestanding compilers. */
20357
20358 #ifdef __STDC__
20359 # include <limits.h>
20360 #else
20361 # include <assert.h>
20362 #endif
20363
20364 #undef hes_getmailhost
20365
20366 /* Override any GCC internal prototype to avoid an error.
20367 Use char because int might match the return type of a GCC
20368 builtin and then its argument prototype would still apply. */
20369 #ifdef __cplusplus
20370 extern "C"
20371 #endif
20372 char hes_getmailhost ();
20373 /* The GNU C library defines this for functions which it implements
20374 to always fail with ENOSYS. Some functions are actually named
20375 something starting with __ and the normal name is an alias. */
20376 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20377 choke me
20378 #endif
20379
20380 int
20381 main ()
20382 {
20383 return hes_getmailhost ();
20384 ;
20385 return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext &&
20405 $as_test_x conftest$ac_exeext; then
20406 ac_cv_func_hes_getmailhost=yes
20407 else
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20410
20411 ac_cv_func_hes_getmailhost=no
20412 fi
20413
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20418 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20419 if test $ac_cv_func_hes_getmailhost = yes; then
20420 :
20421 else
20422 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20423 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20424 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 ac_check_lib_save_LIBS=$LIBS
20428 LIBS="-lhesiod $RESOLVLIB $LIBS"
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h. */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char hes_getmailhost ();
20443 int
20444 main ()
20445 {
20446 return hes_getmailhost ();
20447 ;
20448 return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest$ac_exeext &&
20468 $as_test_x conftest$ac_exeext; then
20469 ac_cv_lib_hesiod_hes_getmailhost=yes
20470 else
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_cv_lib_hesiod_hes_getmailhost=no
20475 fi
20476
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478 conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20480 fi
20481 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20482 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20483 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20484
20485 cat >>confdefs.h <<\_ACEOF
20486 #define HAVE_LIBHESIOD 1
20487 _ACEOF
20488
20489 else
20490 :
20491 fi
20492
20493 fi
20494
20495 fi
20496
20497 # Do we need libresolv (due to res_init or Hesiod)?
20498 if test "$resolv" = yes ; then
20499
20500 cat >>confdefs.h <<\_ACEOF
20501 #define HAVE_LIBRESOLV 1
20502 _ACEOF
20503
20504 fi
20505
20506 # These tell us which Kerberos-related libraries to use.
20507 if test "${with_kerberos}" != no; then
20508
20509 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20510 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20511 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 else
20514 ac_check_lib_save_LIBS=$LIBS
20515 LIBS="-lcom_err $LIBS"
20516 cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h. */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522
20523 /* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20526 #ifdef __cplusplus
20527 extern "C"
20528 #endif
20529 char com_err ();
20530 int
20531 main ()
20532 {
20533 return com_err ();
20534 ;
20535 return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_link") 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && {
20552 test -z "$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20554 } && test -s conftest$ac_exeext &&
20555 $as_test_x conftest$ac_exeext; then
20556 ac_cv_lib_com_err_com_err=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 ac_cv_lib_com_err_com_err=no
20562 fi
20563
20564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20565 conftest$ac_exeext conftest.$ac_ext
20566 LIBS=$ac_check_lib_save_LIBS
20567 fi
20568 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20569 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20570 if test $ac_cv_lib_com_err_com_err = yes; then
20571 cat >>confdefs.h <<_ACEOF
20572 #define HAVE_LIBCOM_ERR 1
20573 _ACEOF
20574
20575 LIBS="-lcom_err $LIBS"
20576
20577 fi
20578
20579
20580 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20581 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20582 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585 ac_check_lib_save_LIBS=$LIBS
20586 LIBS="-lk5crypto $LIBS"
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593
20594 /* Override any GCC internal prototype to avoid an error.
20595 Use char because int might match the return type of a GCC
20596 builtin and then its argument prototype would still apply. */
20597 #ifdef __cplusplus
20598 extern "C"
20599 #endif
20600 char mit_des_cbc_encrypt ();
20601 int
20602 main ()
20603 {
20604 return mit_des_cbc_encrypt ();
20605 ;
20606 return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (ac_try="$ac_link"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_link") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest$ac_exeext &&
20626 $as_test_x conftest$ac_exeext; then
20627 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20628 else
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20633 fi
20634
20635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20636 conftest$ac_exeext conftest.$ac_ext
20637 LIBS=$ac_check_lib_save_LIBS
20638 fi
20639 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20640 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20641 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20642 cat >>confdefs.h <<_ACEOF
20643 #define HAVE_LIBK5CRYPTO 1
20644 _ACEOF
20645
20646 LIBS="-lk5crypto $LIBS"
20647
20648 fi
20649
20650
20651 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20652 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20653 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656 ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lcrypto $LIBS"
20658 cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h. */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664
20665 /* Override any GCC internal prototype to avoid an error.
20666 Use char because int might match the return type of a GCC
20667 builtin and then its argument prototype would still apply. */
20668 #ifdef __cplusplus
20669 extern "C"
20670 #endif
20671 char mit_des_cbc_encrypt ();
20672 int
20673 main ()
20674 {
20675 return mit_des_cbc_encrypt ();
20676 ;
20677 return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (ac_try="$ac_link"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_link") 2>conftest.er1
20688 ac_status=$?
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest$ac_exeext &&
20697 $as_test_x conftest$ac_exeext; then
20698 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20699 else
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20704 fi
20705
20706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20707 conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20709 fi
20710 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20711 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20712 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_LIBCRYPTO 1
20715 _ACEOF
20716
20717 LIBS="-lcrypto $LIBS"
20718
20719 fi
20720
20721
20722 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20723 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20724 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 ac_check_lib_save_LIBS=$LIBS
20728 LIBS="-lkrb5 $LIBS"
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735
20736 /* Override any GCC internal prototype to avoid an error.
20737 Use char because int might match the return type of a GCC
20738 builtin and then its argument prototype would still apply. */
20739 #ifdef __cplusplus
20740 extern "C"
20741 #endif
20742 char krb5_init_context ();
20743 int
20744 main ()
20745 {
20746 return krb5_init_context ();
20747 ;
20748 return 0;
20749 }
20750 _ACEOF
20751 rm -f conftest.$ac_objext conftest$ac_exeext
20752 if { (ac_try="$ac_link"
20753 case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_link") 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && {
20765 test -z "$ac_c_werror_flag" ||
20766 test ! -s conftest.err
20767 } && test -s conftest$ac_exeext &&
20768 $as_test_x conftest$ac_exeext; then
20769 ac_cv_lib_krb5_krb5_init_context=yes
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 ac_cv_lib_krb5_krb5_init_context=no
20775 fi
20776
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778 conftest$ac_exeext conftest.$ac_ext
20779 LIBS=$ac_check_lib_save_LIBS
20780 fi
20781 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20782 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20783 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20784 cat >>confdefs.h <<_ACEOF
20785 #define HAVE_LIBKRB5 1
20786 _ACEOF
20787
20788 LIBS="-lkrb5 $LIBS"
20789
20790 fi
20791
20792 if test "${with_kerberos5}" = no; then
20793
20794 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20795 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20796 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799 ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-ldes425 $LIBS"
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807
20808 /* Override any GCC internal prototype to avoid an error.
20809 Use char because int might match the return type of a GCC
20810 builtin and then its argument prototype would still apply. */
20811 #ifdef __cplusplus
20812 extern "C"
20813 #endif
20814 char des_cbc_encrypt ();
20815 int
20816 main ()
20817 {
20818 return des_cbc_encrypt ();
20819 ;
20820 return 0;
20821 }
20822 _ACEOF
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (ac_try="$ac_link"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20828 esac
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_link") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest$ac_exeext &&
20840 $as_test_x conftest$ac_exeext; then
20841 ac_cv_lib_des425_des_cbc_encrypt=yes
20842 else
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_cv_lib_des425_des_cbc_encrypt=no
20847 fi
20848
20849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20850 conftest$ac_exeext conftest.$ac_ext
20851 LIBS=$ac_check_lib_save_LIBS
20852 fi
20853 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20854 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20855 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20856 cat >>confdefs.h <<_ACEOF
20857 #define HAVE_LIBDES425 1
20858 _ACEOF
20859
20860 LIBS="-ldes425 $LIBS"
20861
20862 else
20863
20864 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20865 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20866 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869 ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-ldes $LIBS"
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 char des_cbc_encrypt ();
20885 int
20886 main ()
20887 {
20888 return des_cbc_encrypt ();
20889 ;
20890 return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_link") 2>conftest.er1
20901 ac_status=$?
20902 grep -v '^ *+' conftest.er1 >conftest.err
20903 rm -f conftest.er1
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest$ac_exeext &&
20910 $as_test_x conftest$ac_exeext; then
20911 ac_cv_lib_des_des_cbc_encrypt=yes
20912 else
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916 ac_cv_lib_des_des_cbc_encrypt=no
20917 fi
20918
20919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20920 conftest$ac_exeext conftest.$ac_ext
20921 LIBS=$ac_check_lib_save_LIBS
20922 fi
20923 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20924 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20925 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define HAVE_LIBDES 1
20928 _ACEOF
20929
20930 LIBS="-ldes $LIBS"
20931
20932 fi
20933
20934 fi
20935
20936
20937 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20938 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20939 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 ac_check_lib_save_LIBS=$LIBS
20943 LIBS="-lkrb4 $LIBS"
20944 cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h. */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950
20951 /* Override any GCC internal prototype to avoid an error.
20952 Use char because int might match the return type of a GCC
20953 builtin and then its argument prototype would still apply. */
20954 #ifdef __cplusplus
20955 extern "C"
20956 #endif
20957 char krb_get_cred ();
20958 int
20959 main ()
20960 {
20961 return krb_get_cred ();
20962 ;
20963 return 0;
20964 }
20965 _ACEOF
20966 rm -f conftest.$ac_objext conftest$ac_exeext
20967 if { (ac_try="$ac_link"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_link") 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } && {
20980 test -z "$ac_c_werror_flag" ||
20981 test ! -s conftest.err
20982 } && test -s conftest$ac_exeext &&
20983 $as_test_x conftest$ac_exeext; then
20984 ac_cv_lib_krb4_krb_get_cred=yes
20985 else
20986 echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989 ac_cv_lib_krb4_krb_get_cred=no
20990 fi
20991
20992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20993 conftest$ac_exeext conftest.$ac_ext
20994 LIBS=$ac_check_lib_save_LIBS
20995 fi
20996 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20997 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20998 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20999 cat >>confdefs.h <<_ACEOF
21000 #define HAVE_LIBKRB4 1
21001 _ACEOF
21002
21003 LIBS="-lkrb4 $LIBS"
21004
21005 else
21006
21007 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21008 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21009 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012 ac_check_lib_save_LIBS=$LIBS
21013 LIBS="-lkrb $LIBS"
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020
21021 /* Override any GCC internal prototype to avoid an error.
21022 Use char because int might match the return type of a GCC
21023 builtin and then its argument prototype would still apply. */
21024 #ifdef __cplusplus
21025 extern "C"
21026 #endif
21027 char krb_get_cred ();
21028 int
21029 main ()
21030 {
21031 return krb_get_cred ();
21032 ;
21033 return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext conftest$ac_exeext
21037 if { (ac_try="$ac_link"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_link") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest$ac_exeext &&
21053 $as_test_x conftest$ac_exeext; then
21054 ac_cv_lib_krb_krb_get_cred=yes
21055 else
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21058
21059 ac_cv_lib_krb_krb_get_cred=no
21060 fi
21061
21062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21063 conftest$ac_exeext conftest.$ac_ext
21064 LIBS=$ac_check_lib_save_LIBS
21065 fi
21066 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21067 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21068 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21069 cat >>confdefs.h <<_ACEOF
21070 #define HAVE_LIBKRB 1
21071 _ACEOF
21072
21073 LIBS="-lkrb $LIBS"
21074
21075 fi
21076
21077 fi
21078
21079 fi
21080
21081 if test "${with_kerberos5}" != no; then
21082
21083 for ac_header in krb5.h
21084 do
21085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21091 fi
21092 ac_res=`eval echo '${'$as_ac_Header'}'`
21093 { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 else
21096 # Is the header compilable?
21097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105 $ac_includes_default
21106 #include <$ac_header>
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21116 ac_status=$?
21117 grep -v '^ *+' conftest.er1 >conftest.err
21118 rm -f conftest.er1
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21125 ac_header_compiler=yes
21126 else
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130 ac_header_compiler=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21135 echo "${ECHO_T}$ac_header_compiler" >&6; }
21136
21137 # Is the header present?
21138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <$ac_header>
21147 _ACEOF
21148 if { (ac_try="$ac_cpp conftest.$ac_ext"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } >/dev/null && {
21161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 }; then
21164 ac_header_preproc=yes
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ac_header_preproc=no
21170 fi
21171
21172 rm -f conftest.err conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21174 echo "${ECHO_T}$ac_header_preproc" >&6; }
21175
21176 # So? What about this header?
21177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21178 yes:no: )
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21183 ac_header_preproc=yes
21184 ;;
21185 no:yes:* )
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21198
21199 ;;
21200 esac
21201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206 eval "$as_ac_Header=\$ac_header_preproc"
21207 fi
21208 ac_res=`eval echo '${'$as_ac_Header'}'`
21209 { echo "$as_me:$LINENO: result: $ac_res" >&5
21210 echo "${ECHO_T}$ac_res" >&6; }
21211
21212 fi
21213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21214 cat >>confdefs.h <<_ACEOF
21215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21216 _ACEOF
21217 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21218 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21219 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 cat >conftest.$ac_ext <<_ACEOF
21223 /* confdefs.h. */
21224 _ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21228 #include <krb5.h>
21229
21230 int
21231 main ()
21232 {
21233 static krb5_error ac_aggr;
21234 if (ac_aggr.text)
21235 return 0;
21236 ;
21237 return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21248 ac_status=$?
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21257 ac_cv_member_krb5_error_text=yes
21258 else
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 #include <krb5.h>
21269
21270 int
21271 main ()
21272 {
21273 static krb5_error ac_aggr;
21274 if (sizeof ac_aggr.text)
21275 return 0;
21276 ;
21277 return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (ac_try="$ac_compile"
21282 case "(($ac_try" in
21283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284 *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287 (eval "$ac_compile") 2>conftest.er1
21288 ac_status=$?
21289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && {
21294 test -z "$ac_c_werror_flag" ||
21295 test ! -s conftest.err
21296 } && test -s conftest.$ac_objext; then
21297 ac_cv_member_krb5_error_text=yes
21298 else
21299 echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 ac_cv_member_krb5_error_text=no
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 fi
21307
21308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309 fi
21310 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21311 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21312 if test $ac_cv_member_krb5_error_text = yes; then
21313
21314 cat >>confdefs.h <<_ACEOF
21315 #define HAVE_KRB5_ERROR_TEXT 1
21316 _ACEOF
21317
21318
21319 fi
21320 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21321 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21322 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325 cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h. */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include <krb5.h>
21332
21333 int
21334 main ()
21335 {
21336 static krb5_error ac_aggr;
21337 if (ac_aggr.e_text)
21338 return 0;
21339 ;
21340 return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (ac_try="$ac_compile"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348 esac
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_compile") 2>conftest.er1
21351 ac_status=$?
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } && {
21357 test -z "$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21359 } && test -s conftest.$ac_objext; then
21360 ac_cv_member_krb5_error_e_text=yes
21361 else
21362 echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 #include <krb5.h>
21372
21373 int
21374 main ()
21375 {
21376 static krb5_error ac_aggr;
21377 if (sizeof ac_aggr.e_text)
21378 return 0;
21379 ;
21380 return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_compile") 2>conftest.er1
21391 ac_status=$?
21392 grep -v '^ *+' conftest.er1 >conftest.err
21393 rm -f conftest.er1
21394 cat conftest.err >&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } && {
21397 test -z "$ac_c_werror_flag" ||
21398 test ! -s conftest.err
21399 } && test -s conftest.$ac_objext; then
21400 ac_cv_member_krb5_error_e_text=yes
21401 else
21402 echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405 ac_cv_member_krb5_error_e_text=no
21406 fi
21407
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412 fi
21413 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21414 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21415 if test $ac_cv_member_krb5_error_e_text = yes; then
21416
21417 cat >>confdefs.h <<_ACEOF
21418 #define HAVE_KRB5_ERROR_E_TEXT 1
21419 _ACEOF
21420
21421
21422 fi
21423
21424 fi
21425
21426 done
21427
21428 else
21429
21430 for ac_header in des.h
21431 do
21432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 fi
21439 ac_res=`eval echo '${'$as_ac_Header'}'`
21440 { echo "$as_me:$LINENO: result: $ac_res" >&5
21441 echo "${ECHO_T}$ac_res" >&6; }
21442 else
21443 # Is the header compilable?
21444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h. */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 $ac_includes_default
21453 #include <$ac_header>
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.$ac_objext; then
21472 ac_header_compiler=yes
21473 else
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477 ac_header_compiler=no
21478 fi
21479
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 echo "${ECHO_T}$ac_header_compiler" >&6; }
21483
21484 # Is the header present?
21485 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21487 cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h. */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <$ac_header>
21494 _ACEOF
21495 if { (ac_try="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } >/dev/null && {
21508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 }; then
21511 ac_header_preproc=yes
21512 else
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516 ac_header_preproc=no
21517 fi
21518
21519 rm -f conftest.err conftest.$ac_ext
21520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21521 echo "${ECHO_T}$ac_header_preproc" >&6; }
21522
21523 # So? What about this header?
21524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21525 yes:no: )
21526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21530 ac_header_preproc=yes
21531 ;;
21532 no:yes:* )
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21545
21546 ;;
21547 esac
21548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553 eval "$as_ac_Header=\$ac_header_preproc"
21554 fi
21555 ac_res=`eval echo '${'$as_ac_Header'}'`
21556 { echo "$as_me:$LINENO: result: $ac_res" >&5
21557 echo "${ECHO_T}$ac_res" >&6; }
21558
21559 fi
21560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21561 cat >>confdefs.h <<_ACEOF
21562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21563 _ACEOF
21564
21565 else
21566
21567 for ac_header in kerberosIV/des.h
21568 do
21569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 fi
21576 ac_res=`eval echo '${'$as_ac_Header'}'`
21577 { echo "$as_me:$LINENO: result: $ac_res" >&5
21578 echo "${ECHO_T}$ac_res" >&6; }
21579 else
21580 # Is the header compilable?
21581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21583 cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h. */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <$ac_header>
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (ac_try="$ac_compile"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_compile") 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest.$ac_objext; then
21609 ac_header_compiler=yes
21610 else
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 ac_header_compiler=no
21615 fi
21616
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21619 echo "${ECHO_T}$ac_header_compiler" >&6; }
21620
21621 # Is the header present?
21622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21624 cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h. */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 #include <$ac_header>
21631 _ACEOF
21632 if { (ac_try="$ac_cpp conftest.$ac_ext"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21636 esac
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21639 ac_status=$?
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } >/dev/null && {
21645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21646 test ! -s conftest.err
21647 }; then
21648 ac_header_preproc=yes
21649 else
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ac_header_preproc=no
21654 fi
21655
21656 rm -f conftest.err conftest.$ac_ext
21657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21658 echo "${ECHO_T}$ac_header_preproc" >&6; }
21659
21660 # So? What about this header?
21661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21662 yes:no: )
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21667 ac_header_preproc=yes
21668 ;;
21669 no:yes:* )
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21682
21683 ;;
21684 esac
21685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690 eval "$as_ac_Header=\$ac_header_preproc"
21691 fi
21692 ac_res=`eval echo '${'$as_ac_Header'}'`
21693 { echo "$as_me:$LINENO: result: $ac_res" >&5
21694 echo "${ECHO_T}$ac_res" >&6; }
21695
21696 fi
21697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21698 cat >>confdefs.h <<_ACEOF
21699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21700 _ACEOF
21701
21702 else
21703
21704 for ac_header in kerberos/des.h
21705 do
21706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 fi
21713 ac_res=`eval echo '${'$as_ac_Header'}'`
21714 { echo "$as_me:$LINENO: result: $ac_res" >&5
21715 echo "${ECHO_T}$ac_res" >&6; }
21716 else
21717 # Is the header compilable?
21718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21727 #include <$ac_header>
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_compile") 2>conftest.er1
21737 ac_status=$?
21738 grep -v '^ *+' conftest.er1 >conftest.err
21739 rm -f conftest.er1
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } && {
21743 test -z "$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21745 } && test -s conftest.$ac_objext; then
21746 ac_header_compiler=yes
21747 else
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751 ac_header_compiler=no
21752 fi
21753
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21756 echo "${ECHO_T}$ac_header_compiler" >&6; }
21757
21758 # Is the header present?
21759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h. */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21767 #include <$ac_header>
21768 _ACEOF
21769 if { (ac_try="$ac_cpp conftest.$ac_ext"
21770 case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21776 ac_status=$?
21777 grep -v '^ *+' conftest.er1 >conftest.err
21778 rm -f conftest.er1
21779 cat conftest.err >&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } >/dev/null && {
21782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21783 test ! -s conftest.err
21784 }; then
21785 ac_header_preproc=yes
21786 else
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 ac_header_preproc=no
21791 fi
21792
21793 rm -f conftest.err conftest.$ac_ext
21794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21795 echo "${ECHO_T}$ac_header_preproc" >&6; }
21796
21797 # So? What about this header?
21798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21799 yes:no: )
21800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21804 ac_header_preproc=yes
21805 ;;
21806 no:yes:* )
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21819
21820 ;;
21821 esac
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 else
21827 eval "$as_ac_Header=\$ac_header_preproc"
21828 fi
21829 ac_res=`eval echo '${'$as_ac_Header'}'`
21830 { echo "$as_me:$LINENO: result: $ac_res" >&5
21831 echo "${ECHO_T}$ac_res" >&6; }
21832
21833 fi
21834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21835 cat >>confdefs.h <<_ACEOF
21836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21837 _ACEOF
21838
21839 fi
21840
21841 done
21842
21843 fi
21844
21845 done
21846
21847 fi
21848
21849 done
21850
21851
21852 for ac_header in krb.h
21853 do
21854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859 echo $ECHO_N "(cached) $ECHO_C" >&6
21860 fi
21861 ac_res=`eval echo '${'$as_ac_Header'}'`
21862 { echo "$as_me:$LINENO: result: $ac_res" >&5
21863 echo "${ECHO_T}$ac_res" >&6; }
21864 else
21865 # Is the header compilable?
21866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 $ac_includes_default
21875 #include <$ac_header>
21876 _ACEOF
21877 rm -f conftest.$ac_objext
21878 if { (ac_try="$ac_compile"
21879 case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21882 esac
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884 (eval "$ac_compile") 2>conftest.er1
21885 ac_status=$?
21886 grep -v '^ *+' conftest.er1 >conftest.err
21887 rm -f conftest.er1
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } && {
21891 test -z "$ac_c_werror_flag" ||
21892 test ! -s conftest.err
21893 } && test -s conftest.$ac_objext; then
21894 ac_header_compiler=yes
21895 else
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 ac_header_compiler=no
21900 fi
21901
21902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21904 echo "${ECHO_T}$ac_header_compiler" >&6; }
21905
21906 # Is the header present?
21907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21909 cat >conftest.$ac_ext <<_ACEOF
21910 /* confdefs.h. */
21911 _ACEOF
21912 cat confdefs.h >>conftest.$ac_ext
21913 cat >>conftest.$ac_ext <<_ACEOF
21914 /* end confdefs.h. */
21915 #include <$ac_header>
21916 _ACEOF
21917 if { (ac_try="$ac_cpp conftest.$ac_ext"
21918 case "(($ac_try" in
21919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920 *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21924 ac_status=$?
21925 grep -v '^ *+' conftest.er1 >conftest.err
21926 rm -f conftest.er1
21927 cat conftest.err >&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); } >/dev/null && {
21930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21931 test ! -s conftest.err
21932 }; then
21933 ac_header_preproc=yes
21934 else
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 ac_header_preproc=no
21939 fi
21940
21941 rm -f conftest.err conftest.$ac_ext
21942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21943 echo "${ECHO_T}$ac_header_preproc" >&6; }
21944
21945 # So? What about this header?
21946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21947 yes:no: )
21948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21952 ac_header_preproc=yes
21953 ;;
21954 no:yes:* )
21955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21967
21968 ;;
21969 esac
21970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 else
21975 eval "$as_ac_Header=\$ac_header_preproc"
21976 fi
21977 ac_res=`eval echo '${'$as_ac_Header'}'`
21978 { echo "$as_me:$LINENO: result: $ac_res" >&5
21979 echo "${ECHO_T}$ac_res" >&6; }
21980
21981 fi
21982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21983 cat >>confdefs.h <<_ACEOF
21984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21985 _ACEOF
21986
21987 else
21988
21989 for ac_header in kerberosIV/krb.h
21990 do
21991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 fi
21998 ac_res=`eval echo '${'$as_ac_Header'}'`
21999 { echo "$as_me:$LINENO: result: $ac_res" >&5
22000 echo "${ECHO_T}$ac_res" >&6; }
22001 else
22002 # Is the header compilable?
22003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22005 cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h. */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 $ac_includes_default
22012 #include <$ac_header>
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22022 ac_status=$?
22023 grep -v '^ *+' conftest.er1 >conftest.err
22024 rm -f conftest.er1
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22031 ac_header_compiler=yes
22032 else
22033 echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22035
22036 ac_header_compiler=no
22037 fi
22038
22039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22041 echo "${ECHO_T}$ac_header_compiler" >&6; }
22042
22043 # Is the header present?
22044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 #include <$ac_header>
22053 _ACEOF
22054 if { (ac_try="$ac_cpp conftest.$ac_ext"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } >/dev/null && {
22067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 }; then
22070 ac_header_preproc=yes
22071 else
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075 ac_header_preproc=no
22076 fi
22077
22078 rm -f conftest.err conftest.$ac_ext
22079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22080 echo "${ECHO_T}$ac_header_preproc" >&6; }
22081
22082 # So? What about this header?
22083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22084 yes:no: )
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22089 ac_header_preproc=yes
22090 ;;
22091 no:yes:* )
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22104
22105 ;;
22106 esac
22107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112 eval "$as_ac_Header=\$ac_header_preproc"
22113 fi
22114 ac_res=`eval echo '${'$as_ac_Header'}'`
22115 { echo "$as_me:$LINENO: result: $ac_res" >&5
22116 echo "${ECHO_T}$ac_res" >&6; }
22117
22118 fi
22119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22120 cat >>confdefs.h <<_ACEOF
22121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22122 _ACEOF
22123
22124 else
22125
22126 for ac_header in kerberos/krb.h
22127 do
22128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 fi
22135 ac_res=`eval echo '${'$as_ac_Header'}'`
22136 { echo "$as_me:$LINENO: result: $ac_res" >&5
22137 echo "${ECHO_T}$ac_res" >&6; }
22138 else
22139 # Is the header compilable?
22140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22142 cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h. */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 $ac_includes_default
22149 #include <$ac_header>
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (ac_try="$ac_compile"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_compile") 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } && {
22165 test -z "$ac_c_werror_flag" ||
22166 test ! -s conftest.err
22167 } && test -s conftest.$ac_objext; then
22168 ac_header_compiler=yes
22169 else
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173 ac_header_compiler=no
22174 fi
22175
22176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22178 echo "${ECHO_T}$ac_header_compiler" >&6; }
22179
22180 # Is the header present?
22181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h. */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22189 #include <$ac_header>
22190 _ACEOF
22191 if { (ac_try="$ac_cpp conftest.$ac_ext"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22195 esac
22196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } >/dev/null && {
22204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 }; then
22207 ac_header_preproc=yes
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 ac_header_preproc=no
22213 fi
22214
22215 rm -f conftest.err conftest.$ac_ext
22216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 echo "${ECHO_T}$ac_header_preproc" >&6; }
22218
22219 # So? What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 yes:no: )
22222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22226 ac_header_preproc=yes
22227 ;;
22228 no:yes:* )
22229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22241
22242 ;;
22243 esac
22244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249 eval "$as_ac_Header=\$ac_header_preproc"
22250 fi
22251 ac_res=`eval echo '${'$as_ac_Header'}'`
22252 { echo "$as_me:$LINENO: result: $ac_res" >&5
22253 echo "${ECHO_T}$ac_res" >&6; }
22254
22255 fi
22256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22257 cat >>confdefs.h <<_ACEOF
22258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22259 _ACEOF
22260
22261 fi
22262
22263 done
22264
22265 fi
22266
22267 done
22268
22269 fi
22270
22271 done
22272
22273 fi
22274
22275 for ac_header in com_err.h
22276 do
22277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22282 echo $ECHO_N "(cached) $ECHO_C" >&6
22283 fi
22284 ac_res=`eval echo '${'$as_ac_Header'}'`
22285 { echo "$as_me:$LINENO: result: $ac_res" >&5
22286 echo "${ECHO_T}$ac_res" >&6; }
22287 else
22288 # Is the header compilable?
22289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 $ac_includes_default
22298 #include <$ac_header>
22299 _ACEOF
22300 rm -f conftest.$ac_objext
22301 if { (ac_try="$ac_compile"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_compile") 2>conftest.er1
22308 ac_status=$?
22309 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } && {
22314 test -z "$ac_c_werror_flag" ||
22315 test ! -s conftest.err
22316 } && test -s conftest.$ac_objext; then
22317 ac_header_compiler=yes
22318 else
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322 ac_header_compiler=no
22323 fi
22324
22325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22327 echo "${ECHO_T}$ac_header_compiler" >&6; }
22328
22329 # Is the header present?
22330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22332 cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h. */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 #include <$ac_header>
22339 _ACEOF
22340 if { (ac_try="$ac_cpp conftest.$ac_ext"
22341 case "(($ac_try" in
22342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343 *) ac_try_echo=$ac_try;;
22344 esac
22345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22347 ac_status=$?
22348 grep -v '^ *+' conftest.er1 >conftest.err
22349 rm -f conftest.er1
22350 cat conftest.err >&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } >/dev/null && {
22353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22354 test ! -s conftest.err
22355 }; then
22356 ac_header_preproc=yes
22357 else
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22360
22361 ac_header_preproc=no
22362 fi
22363
22364 rm -f conftest.err conftest.$ac_ext
22365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22366 echo "${ECHO_T}$ac_header_preproc" >&6; }
22367
22368 # So? What about this header?
22369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22370 yes:no: )
22371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22375 ac_header_preproc=yes
22376 ;;
22377 no:yes:* )
22378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22390
22391 ;;
22392 esac
22393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 else
22398 eval "$as_ac_Header=\$ac_header_preproc"
22399 fi
22400 ac_res=`eval echo '${'$as_ac_Header'}'`
22401 { echo "$as_me:$LINENO: result: $ac_res" >&5
22402 echo "${ECHO_T}$ac_res" >&6; }
22403
22404 fi
22405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22406 cat >>confdefs.h <<_ACEOF
22407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22408 _ACEOF
22409
22410 fi
22411
22412 done
22413
22414 fi
22415
22416 # Solaris requires -lintl if you want strerror (which calls dgettext)
22417 # to return localized messages.
22418
22419 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22420 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22421 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22422 echo $ECHO_N "(cached) $ECHO_C" >&6
22423 else
22424 ac_check_lib_save_LIBS=$LIBS
22425 LIBS="-lintl $LIBS"
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h. */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432
22433 /* Override any GCC internal prototype to avoid an error.
22434 Use char because int might match the return type of a GCC
22435 builtin and then its argument prototype would still apply. */
22436 #ifdef __cplusplus
22437 extern "C"
22438 #endif
22439 char dgettext ();
22440 int
22441 main ()
22442 {
22443 return dgettext ();
22444 ;
22445 return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext conftest$ac_exeext
22449 if { (ac_try="$ac_link"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_link") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest$ac_exeext &&
22465 $as_test_x conftest$ac_exeext; then
22466 ac_cv_lib_intl_dgettext=yes
22467 else
22468 echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471 ac_cv_lib_intl_dgettext=no
22472 fi
22473
22474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22475 conftest$ac_exeext conftest.$ac_ext
22476 LIBS=$ac_check_lib_save_LIBS
22477 fi
22478 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22479 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22480 if test $ac_cv_lib_intl_dgettext = yes; then
22481 cat >>confdefs.h <<_ACEOF
22482 #define HAVE_LIBINTL 1
22483 _ACEOF
22484
22485 LIBS="-lintl $LIBS"
22486
22487 fi
22488
22489
22490 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22491 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22492 if test "${emacs_cv_localtime_cache+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495 if test x$ac_cv_func_tzset = xyes; then
22496 if test "$cross_compiling" = yes; then
22497 # If we have tzset, assume the worst when cross-compiling.
22498 emacs_cv_localtime_cache=yes
22499 else
22500 cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h. */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22506 #include <time.h>
22507 extern char **environ;
22508 unset_TZ ()
22509 {
22510 char **from, **to;
22511 for (to = from = environ; (*to = *from); from++)
22512 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22513 to++;
22514 }
22515 char TZ_GMT0[] = "TZ=GMT0";
22516 char TZ_PST8[] = "TZ=PST8";
22517 main()
22518 {
22519 time_t now = time ((time_t *) 0);
22520 int hour_GMT0, hour_unset;
22521 if (putenv (TZ_GMT0) != 0)
22522 exit (1);
22523 hour_GMT0 = localtime (&now)->tm_hour;
22524 unset_TZ ();
22525 hour_unset = localtime (&now)->tm_hour;
22526 if (putenv (TZ_PST8) != 0)
22527 exit (1);
22528 if (localtime (&now)->tm_hour == hour_GMT0)
22529 exit (1);
22530 unset_TZ ();
22531 if (localtime (&now)->tm_hour != hour_unset)
22532 exit (1);
22533 exit (0);
22534 }
22535 _ACEOF
22536 rm -f conftest$ac_exeext
22537 if { (ac_try="$ac_link"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_link") 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22547 { (case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_try") 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 emacs_cv_localtime_cache=no
22557 else
22558 echo "$as_me: program exited with status $ac_status" >&5
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22561
22562 ( exit $ac_status )
22563 emacs_cv_localtime_cache=yes
22564 fi
22565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22566 fi
22567
22568
22569 else
22570 # If we lack tzset, report that localtime does not cache TZ,
22571 # since we can't invalidate the cache if we don't have tzset.
22572 emacs_cv_localtime_cache=no
22573 fi
22574 fi
22575 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22576 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22577 if test $emacs_cv_localtime_cache = yes; then
22578
22579 cat >>confdefs.h <<\_ACEOF
22580 #define LOCALTIME_CACHE 1
22581 _ACEOF
22582
22583 fi
22584
22585 if test "x$HAVE_TIMEVAL" = xyes; then
22586
22587 for ac_func in gettimeofday
22588 do
22589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595 cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h. */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22603 #define $ac_func innocuous_$ac_func
22604
22605 /* System header to define __stub macros and hopefully few prototypes,
22606 which can conflict with char $ac_func (); below.
22607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22608 <limits.h> exists even on freestanding compilers. */
22609
22610 #ifdef __STDC__
22611 # include <limits.h>
22612 #else
22613 # include <assert.h>
22614 #endif
22615
22616 #undef $ac_func
22617
22618 /* Override any GCC internal prototype to avoid an error.
22619 Use char because int might match the return type of a GCC
22620 builtin and then its argument prototype would still apply. */
22621 #ifdef __cplusplus
22622 extern "C"
22623 #endif
22624 char $ac_func ();
22625 /* The GNU C library defines this for functions which it implements
22626 to always fail with ENOSYS. Some functions are actually named
22627 something starting with __ and the normal name is an alias. */
22628 #if defined __stub_$ac_func || defined __stub___$ac_func
22629 choke me
22630 #endif
22631
22632 int
22633 main ()
22634 {
22635 return $ac_func ();
22636 ;
22637 return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext conftest$ac_exeext
22641 if { (ac_try="$ac_link"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22645 esac
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647 (eval "$ac_link") 2>conftest.er1
22648 ac_status=$?
22649 grep -v '^ *+' conftest.er1 >conftest.err
22650 rm -f conftest.er1
22651 cat conftest.err >&5
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); } && {
22654 test -z "$ac_c_werror_flag" ||
22655 test ! -s conftest.err
22656 } && test -s conftest$ac_exeext &&
22657 $as_test_x conftest$ac_exeext; then
22658 eval "$as_ac_var=yes"
22659 else
22660 echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663 eval "$as_ac_var=no"
22664 fi
22665
22666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22667 conftest$ac_exeext conftest.$ac_ext
22668 fi
22669 ac_res=`eval echo '${'$as_ac_var'}'`
22670 { echo "$as_me:$LINENO: result: $ac_res" >&5
22671 echo "${ECHO_T}$ac_res" >&6; }
22672 if test `eval echo '${'$as_ac_var'}'` = yes; then
22673 cat >>confdefs.h <<_ACEOF
22674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22675 _ACEOF
22676
22677 fi
22678 done
22679
22680 if test $ac_cv_func_gettimeofday = yes; then
22681 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22682 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22683 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22684 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 else
22686 cat >conftest.$ac_ext <<_ACEOF
22687 /* confdefs.h. */
22688 _ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h. */
22692
22693 #ifdef TIME_WITH_SYS_TIME
22694 #include <sys/time.h>
22695 #include <time.h>
22696 #else
22697 #ifdef HAVE_SYS_TIME_H
22698 #include <sys/time.h>
22699 #else
22700 #include <time.h>
22701 #endif
22702 #endif
22703 int
22704 main ()
22705 {
22706 struct timeval time;
22707 gettimeofday (&time, 0);
22708 ;
22709 return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_compile") 2>conftest.er1
22720 ac_status=$?
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest.$ac_objext; then
22729 emacs_cv_gettimeofday_two_arguments=yes
22730 else
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734 emacs_cv_gettimeofday_two_arguments=no
22735 fi
22736
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 fi
22739 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22740 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22741 if test $emacs_cv_gettimeofday_two_arguments = no; then
22742
22743 cat >>confdefs.h <<\_ACEOF
22744 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22745 _ACEOF
22746
22747 fi
22748 fi
22749 fi
22750
22751 ok_so_far=yes
22752 { echo "$as_me:$LINENO: checking for socket" >&5
22753 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22754 if test "${ac_cv_func_socket+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22756 else
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22765 #define socket innocuous_socket
22766
22767 /* System header to define __stub macros and hopefully few prototypes,
22768 which can conflict with char socket (); below.
22769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22770 <limits.h> exists even on freestanding compilers. */
22771
22772 #ifdef __STDC__
22773 # include <limits.h>
22774 #else
22775 # include <assert.h>
22776 #endif
22777
22778 #undef socket
22779
22780 /* Override any GCC internal prototype to avoid an error.
22781 Use char because int might match the return type of a GCC
22782 builtin and then its argument prototype would still apply. */
22783 #ifdef __cplusplus
22784 extern "C"
22785 #endif
22786 char socket ();
22787 /* The GNU C library defines this for functions which it implements
22788 to always fail with ENOSYS. Some functions are actually named
22789 something starting with __ and the normal name is an alias. */
22790 #if defined __stub_socket || defined __stub___socket
22791 choke me
22792 #endif
22793
22794 int
22795 main ()
22796 {
22797 return socket ();
22798 ;
22799 return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (ac_try="$ac_link"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_link") 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest$ac_exeext &&
22819 $as_test_x conftest$ac_exeext; then
22820 ac_cv_func_socket=yes
22821 else
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825 ac_cv_func_socket=no
22826 fi
22827
22828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22829 conftest$ac_exeext conftest.$ac_ext
22830 fi
22831 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22832 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22833 if test $ac_cv_func_socket = yes; then
22834 :
22835 else
22836 ok_so_far=no
22837 fi
22838
22839 if test $ok_so_far = yes; then
22840 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22841 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22842 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22843 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 fi
22846 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22847 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22848 else
22849 # Is the header compilable?
22850 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22851 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22852 cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h. */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22859 #include <netinet/in.h>
22860 _ACEOF
22861 rm -f conftest.$ac_objext
22862 if { (ac_try="$ac_compile"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866 esac
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_compile") 2>conftest.er1
22869 ac_status=$?
22870 grep -v '^ *+' conftest.er1 >conftest.err
22871 rm -f conftest.er1
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && {
22875 test -z "$ac_c_werror_flag" ||
22876 test ! -s conftest.err
22877 } && test -s conftest.$ac_objext; then
22878 ac_header_compiler=yes
22879 else
22880 echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883 ac_header_compiler=no
22884 fi
22885
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22888 echo "${ECHO_T}$ac_header_compiler" >&6; }
22889
22890 # Is the header present?
22891 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22892 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 #include <netinet/in.h>
22900 _ACEOF
22901 if { (ac_try="$ac_cpp conftest.$ac_ext"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22908 ac_status=$?
22909 grep -v '^ *+' conftest.er1 >conftest.err
22910 rm -f conftest.er1
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } >/dev/null && {
22914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 }; then
22917 ac_header_preproc=yes
22918 else
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922 ac_header_preproc=no
22923 fi
22924
22925 rm -f conftest.err conftest.$ac_ext
22926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22927 echo "${ECHO_T}$ac_header_preproc" >&6; }
22928
22929 # So? What about this header?
22930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22931 yes:no: )
22932 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22933 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22935 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22936 ac_header_preproc=yes
22937 ;;
22938 no:yes:* )
22939 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22940 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22941 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22942 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22943 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22944 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22945 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22946 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22947 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22948 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22949 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22950 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22951
22952 ;;
22953 esac
22954 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22955 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22956 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22958 else
22959 ac_cv_header_netinet_in_h=$ac_header_preproc
22960 fi
22961 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22962 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22963
22964 fi
22965 if test $ac_cv_header_netinet_in_h = yes; then
22966 :
22967 else
22968 ok_so_far=no
22969 fi
22970
22971
22972 fi
22973 if test $ok_so_far = yes; then
22974 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22975 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22976 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22977 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 fi
22980 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22981 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22982 else
22983 # Is the header compilable?
22984 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22985 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h. */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 $ac_includes_default
22993 #include <arpa/inet.h>
22994 _ACEOF
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
23003 ac_status=$?
23004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest.$ac_objext; then
23012 ac_header_compiler=yes
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 ac_header_compiler=no
23018 fi
23019
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23022 echo "${ECHO_T}$ac_header_compiler" >&6; }
23023
23024 # Is the header present?
23025 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23026 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23027 cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h. */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23033 #include <arpa/inet.h>
23034 _ACEOF
23035 if { (ac_try="$ac_cpp conftest.$ac_ext"
23036 case "(($ac_try" in
23037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23038 *) ac_try_echo=$ac_try;;
23039 esac
23040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23042 ac_status=$?
23043 grep -v '^ *+' conftest.er1 >conftest.err
23044 rm -f conftest.er1
23045 cat conftest.err >&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } >/dev/null && {
23048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 }; then
23051 ac_header_preproc=yes
23052 else
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 ac_header_preproc=no
23057 fi
23058
23059 rm -f conftest.err conftest.$ac_ext
23060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23061 echo "${ECHO_T}$ac_header_preproc" >&6; }
23062
23063 # So? What about this header?
23064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23065 yes:no: )
23066 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23067 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23069 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23070 ac_header_preproc=yes
23071 ;;
23072 no:yes:* )
23073 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23074 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23076 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23078 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23079 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23080 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23081 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23082 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23083 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23084 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23085
23086 ;;
23087 esac
23088 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23089 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23090 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093 ac_cv_header_arpa_inet_h=$ac_header_preproc
23094 fi
23095 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23096 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23097
23098 fi
23099 if test $ac_cv_header_arpa_inet_h = yes; then
23100 :
23101 else
23102 ok_so_far=no
23103 fi
23104
23105
23106 fi
23107 if test $ok_so_far = yes; then
23108
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_INET_SOCKETS 1
23111 _ACEOF
23112
23113 fi
23114
23115
23116 for ac_header in sys/ioctl.h
23117 do
23118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 fi
23125 ac_res=`eval echo '${'$as_ac_Header'}'`
23126 { echo "$as_me:$LINENO: result: $ac_res" >&5
23127 echo "${ECHO_T}$ac_res" >&6; }
23128 else
23129 # Is the header compilable?
23130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23132 cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h. */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 $ac_includes_default
23139 #include <$ac_header>
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.$ac_objext; then
23158 ac_header_compiler=yes
23159 else
23160 echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23162
23163 ac_header_compiler=no
23164 fi
23165
23166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23168 echo "${ECHO_T}$ac_header_compiler" >&6; }
23169
23170 # Is the header present?
23171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23173 cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h. */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h. */
23179 #include <$ac_header>
23180 _ACEOF
23181 if { (ac_try="$ac_cpp conftest.$ac_ext"
23182 case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23185 esac
23186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23188 ac_status=$?
23189 grep -v '^ *+' conftest.er1 >conftest.err
23190 rm -f conftest.er1
23191 cat conftest.err >&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); } >/dev/null && {
23194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23195 test ! -s conftest.err
23196 }; then
23197 ac_header_preproc=yes
23198 else
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202 ac_header_preproc=no
23203 fi
23204
23205 rm -f conftest.err conftest.$ac_ext
23206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23207 echo "${ECHO_T}$ac_header_preproc" >&6; }
23208
23209 # So? What about this header?
23210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23211 yes:no: )
23212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23216 ac_header_preproc=yes
23217 ;;
23218 no:yes:* )
23219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23231
23232 ;;
23233 esac
23234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239 eval "$as_ac_Header=\$ac_header_preproc"
23240 fi
23241 ac_res=`eval echo '${'$as_ac_Header'}'`
23242 { echo "$as_me:$LINENO: result: $ac_res" >&5
23243 echo "${ECHO_T}$ac_res" >&6; }
23244
23245 fi
23246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23247 cat >>confdefs.h <<_ACEOF
23248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23249 _ACEOF
23250
23251 fi
23252
23253 done
23254
23255
23256 if test -f /usr/lpp/X11/bin/smt.exp; then
23257
23258 cat >>confdefs.h <<\_ACEOF
23259 #define HAVE_AIX_SMT_EXP 1
23260 _ACEOF
23261
23262 fi
23263
23264 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23265 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23266 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23267 { echo "$as_me:$LINENO: result: yes" >&5
23268 echo "${ECHO_T}yes" >&6; }
23269
23270 cat >>confdefs.h <<\_ACEOF
23271 #define HAVE_DEV_PTMX 1
23272 _ACEOF
23273
23274 else
23275 { echo "$as_me:$LINENO: result: no" >&5
23276 echo "${ECHO_T}no" >&6; }
23277 fi
23278
23279 { echo "$as_me:$LINENO: checking for pid_t" >&5
23280 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23281 if test "${ac_cv_type_pid_t+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284 cat >conftest.$ac_ext <<_ACEOF
23285 /* confdefs.h. */
23286 _ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h. */
23290 $ac_includes_default
23291 typedef pid_t ac__type_new_;
23292 int
23293 main ()
23294 {
23295 if ((ac__type_new_ *) 0)
23296 return 0;
23297 if (sizeof (ac__type_new_))
23298 return 0;
23299 ;
23300 return 0;
23301 }
23302 _ACEOF
23303 rm -f conftest.$ac_objext
23304 if { (ac_try="$ac_compile"
23305 case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_compile") 2>conftest.er1
23311 ac_status=$?
23312 grep -v '^ *+' conftest.er1 >conftest.err
23313 rm -f conftest.er1
23314 cat conftest.err >&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && {
23317 test -z "$ac_c_werror_flag" ||
23318 test ! -s conftest.err
23319 } && test -s conftest.$ac_objext; then
23320 ac_cv_type_pid_t=yes
23321 else
23322 echo "$as_me: failed program was:" >&5
23323 sed 's/^/| /' conftest.$ac_ext >&5
23324
23325 ac_cv_type_pid_t=no
23326 fi
23327
23328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329 fi
23330 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23331 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23332 if test $ac_cv_type_pid_t = yes; then
23333 :
23334 else
23335
23336 cat >>confdefs.h <<_ACEOF
23337 #define pid_t int
23338 _ACEOF
23339
23340 fi
23341
23342
23343 for ac_header in vfork.h
23344 do
23345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23351 fi
23352 ac_res=`eval echo '${'$as_ac_Header'}'`
23353 { echo "$as_me:$LINENO: result: $ac_res" >&5
23354 echo "${ECHO_T}$ac_res" >&6; }
23355 else
23356 # Is the header compilable?
23357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h. */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 $ac_includes_default
23366 #include <$ac_header>
23367 _ACEOF
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_compile") 2>conftest.er1
23376 ac_status=$?
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } && {
23382 test -z "$ac_c_werror_flag" ||
23383 test ! -s conftest.err
23384 } && test -s conftest.$ac_objext; then
23385 ac_header_compiler=yes
23386 else
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ac_header_compiler=no
23391 fi
23392
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23395 echo "${ECHO_T}$ac_header_compiler" >&6; }
23396
23397 # Is the header present?
23398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23400 cat >conftest.$ac_ext <<_ACEOF
23401 /* confdefs.h. */
23402 _ACEOF
23403 cat confdefs.h >>conftest.$ac_ext
23404 cat >>conftest.$ac_ext <<_ACEOF
23405 /* end confdefs.h. */
23406 #include <$ac_header>
23407 _ACEOF
23408 if { (ac_try="$ac_cpp conftest.$ac_ext"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23412 esac
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23415 ac_status=$?
23416 grep -v '^ *+' conftest.er1 >conftest.err
23417 rm -f conftest.er1
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } >/dev/null && {
23421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 }; then
23424 ac_header_preproc=yes
23425 else
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 ac_header_preproc=no
23430 fi
23431
23432 rm -f conftest.err conftest.$ac_ext
23433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23434 echo "${ECHO_T}$ac_header_preproc" >&6; }
23435
23436 # So? What about this header?
23437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23438 yes:no: )
23439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23443 ac_header_preproc=yes
23444 ;;
23445 no:yes:* )
23446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23453 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23458
23459 ;;
23460 esac
23461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23464 echo $ECHO_N "(cached) $ECHO_C" >&6
23465 else
23466 eval "$as_ac_Header=\$ac_header_preproc"
23467 fi
23468 ac_res=`eval echo '${'$as_ac_Header'}'`
23469 { echo "$as_me:$LINENO: result: $ac_res" >&5
23470 echo "${ECHO_T}$ac_res" >&6; }
23471
23472 fi
23473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23474 cat >>confdefs.h <<_ACEOF
23475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23476 _ACEOF
23477
23478 fi
23479
23480 done
23481
23482
23483
23484 for ac_func in fork vfork
23485 do
23486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23491 else
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23500 #define $ac_func innocuous_$ac_func
23501
23502 /* System header to define __stub macros and hopefully few prototypes,
23503 which can conflict with char $ac_func (); below.
23504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23505 <limits.h> exists even on freestanding compilers. */
23506
23507 #ifdef __STDC__
23508 # include <limits.h>
23509 #else
23510 # include <assert.h>
23511 #endif
23512
23513 #undef $ac_func
23514
23515 /* Override any GCC internal prototype to avoid an error.
23516 Use char because int might match the return type of a GCC
23517 builtin and then its argument prototype would still apply. */
23518 #ifdef __cplusplus
23519 extern "C"
23520 #endif
23521 char $ac_func ();
23522 /* The GNU C library defines this for functions which it implements
23523 to always fail with ENOSYS. Some functions are actually named
23524 something starting with __ and the normal name is an alias. */
23525 #if defined __stub_$ac_func || defined __stub___$ac_func
23526 choke me
23527 #endif
23528
23529 int
23530 main ()
23531 {
23532 return $ac_func ();
23533 ;
23534 return 0;
23535 }
23536 _ACEOF
23537 rm -f conftest.$ac_objext conftest$ac_exeext
23538 if { (ac_try="$ac_link"
23539 case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23542 esac
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_link") 2>conftest.er1
23545 ac_status=$?
23546 grep -v '^ *+' conftest.er1 >conftest.err
23547 rm -f conftest.er1
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } && {
23551 test -z "$ac_c_werror_flag" ||
23552 test ! -s conftest.err
23553 } && test -s conftest$ac_exeext &&
23554 $as_test_x conftest$ac_exeext; then
23555 eval "$as_ac_var=yes"
23556 else
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560 eval "$as_ac_var=no"
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23564 conftest$ac_exeext conftest.$ac_ext
23565 fi
23566 ac_res=`eval echo '${'$as_ac_var'}'`
23567 { echo "$as_me:$LINENO: result: $ac_res" >&5
23568 echo "${ECHO_T}$ac_res" >&6; }
23569 if test `eval echo '${'$as_ac_var'}'` = yes; then
23570 cat >>confdefs.h <<_ACEOF
23571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23572 _ACEOF
23573
23574 fi
23575 done
23576
23577 if test "x$ac_cv_func_fork" = xyes; then
23578 { echo "$as_me:$LINENO: checking for working fork" >&5
23579 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23580 if test "${ac_cv_func_fork_works+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23582 else
23583 if test "$cross_compiling" = yes; then
23584 ac_cv_func_fork_works=cross
23585 else
23586 cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h. */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23592 $ac_includes_default
23593 int
23594 main ()
23595 {
23596
23597 /* By Ruediger Kuhlmann. */
23598 return fork () < 0;
23599
23600 ;
23601 return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>&5
23612 ac_status=$?
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615 { (case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_try") 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_cv_func_fork_works=yes
23625 else
23626 echo "$as_me: program exited with status $ac_status" >&5
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630 ( exit $ac_status )
23631 ac_cv_func_fork_works=no
23632 fi
23633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23634 fi
23635
23636
23637 fi
23638 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23639 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23640
23641 else
23642 ac_cv_func_fork_works=$ac_cv_func_fork
23643 fi
23644 if test "x$ac_cv_func_fork_works" = xcross; then
23645 case $host in
23646 *-*-amigaos* | *-*-msdosdjgpp*)
23647 # Override, as these systems have only a dummy fork() stub
23648 ac_cv_func_fork_works=no
23649 ;;
23650 *)
23651 ac_cv_func_fork_works=yes
23652 ;;
23653 esac
23654 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23655 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23656 fi
23657 ac_cv_func_vfork_works=$ac_cv_func_vfork
23658 if test "x$ac_cv_func_vfork" = xyes; then
23659 { echo "$as_me:$LINENO: checking for working vfork" >&5
23660 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23661 if test "${ac_cv_func_vfork_works+set}" = set; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23663 else
23664 if test "$cross_compiling" = yes; then
23665 ac_cv_func_vfork_works=cross
23666 else
23667 cat >conftest.$ac_ext <<_ACEOF
23668 /* confdefs.h. */
23669 _ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 /* Thanks to Paul Eggert for this test. */
23674 $ac_includes_default
23675 #include <sys/wait.h>
23676 #ifdef HAVE_VFORK_H
23677 # include <vfork.h>
23678 #endif
23679 /* On some sparc systems, changes by the child to local and incoming
23680 argument registers are propagated back to the parent. The compiler
23681 is told about this with #include <vfork.h>, but some compilers
23682 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23683 static variable whose address is put into a register that is
23684 clobbered by the vfork. */
23685 static void
23686 #ifdef __cplusplus
23687 sparc_address_test (int arg)
23688 # else
23689 sparc_address_test (arg) int arg;
23690 #endif
23691 {
23692 static pid_t child;
23693 if (!child) {
23694 child = vfork ();
23695 if (child < 0) {
23696 perror ("vfork");
23697 _exit(2);
23698 }
23699 if (!child) {
23700 arg = getpid();
23701 write(-1, "", 0);
23702 _exit (arg);
23703 }
23704 }
23705 }
23706
23707 int
23708 main ()
23709 {
23710 pid_t parent = getpid ();
23711 pid_t child;
23712
23713 sparc_address_test (0);
23714
23715 child = vfork ();
23716
23717 if (child == 0) {
23718 /* Here is another test for sparc vfork register problems. This
23719 test uses lots of local variables, at least as many local
23720 variables as main has allocated so far including compiler
23721 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23722 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23723 reuse the register of parent for one of the local variables,
23724 since it will think that parent can't possibly be used any more
23725 in this routine. Assigning to the local variable will thus
23726 munge parent in the parent process. */
23727 pid_t
23728 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23729 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23730 /* Convince the compiler that p..p7 are live; otherwise, it might
23731 use the same hardware register for all 8 local variables. */
23732 if (p != p1 || p != p2 || p != p3 || p != p4
23733 || p != p5 || p != p6 || p != p7)
23734 _exit(1);
23735
23736 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23737 from child file descriptors. If the child closes a descriptor
23738 before it execs or exits, this munges the parent's descriptor
23739 as well. Test for this by closing stdout in the child. */
23740 _exit(close(fileno(stdout)) != 0);
23741 } else {
23742 int status;
23743 struct stat st;
23744
23745 while (wait(&status) != child)
23746 ;
23747 return (
23748 /* Was there some problem with vforking? */
23749 child < 0
23750
23751 /* Did the child fail? (This shouldn't happen.) */
23752 || status
23753
23754 /* Did the vfork/compiler bug occur? */
23755 || parent != getpid()
23756
23757 /* Did the file descriptor bug occur? */
23758 || fstat(fileno(stdout), &st) != 0
23759 );
23760 }
23761 }
23762 _ACEOF
23763 rm -f conftest$ac_exeext
23764 if { (ac_try="$ac_link"
23765 case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_link") 2>&5
23771 ac_status=$?
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23774 { (case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_try") 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; }; then
23783 ac_cv_func_vfork_works=yes
23784 else
23785 echo "$as_me: program exited with status $ac_status" >&5
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23788
23789 ( exit $ac_status )
23790 ac_cv_func_vfork_works=no
23791 fi
23792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23793 fi
23794
23795
23796 fi
23797 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23798 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23799
23800 fi;
23801 if test "x$ac_cv_func_fork_works" = xcross; then
23802 ac_cv_func_vfork_works=$ac_cv_func_vfork
23803 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23804 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23805 fi
23806
23807 if test "x$ac_cv_func_vfork_works" = xyes; then
23808
23809 cat >>confdefs.h <<\_ACEOF
23810 #define HAVE_WORKING_VFORK 1
23811 _ACEOF
23812
23813 else
23814
23815 cat >>confdefs.h <<\_ACEOF
23816 #define vfork fork
23817 _ACEOF
23818
23819 fi
23820 if test "x$ac_cv_func_fork_works" = xyes; then
23821
23822 cat >>confdefs.h <<\_ACEOF
23823 #define HAVE_WORKING_FORK 1
23824 _ACEOF
23825
23826 fi
23827
23828
23829 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23830 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23831 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834 cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h. */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 #include <langinfo.h>
23841 int
23842 main ()
23843 {
23844 char* cs = nl_langinfo(CODESET);
23845 ;
23846 return 0;
23847 }
23848 _ACEOF
23849 rm -f conftest.$ac_objext conftest$ac_exeext
23850 if { (ac_try="$ac_link"
23851 case "(($ac_try" in
23852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853 *) ac_try_echo=$ac_try;;
23854 esac
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856 (eval "$ac_link") 2>conftest.er1
23857 ac_status=$?
23858 grep -v '^ *+' conftest.er1 >conftest.err
23859 rm -f conftest.er1
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } && {
23863 test -z "$ac_c_werror_flag" ||
23864 test ! -s conftest.err
23865 } && test -s conftest$ac_exeext &&
23866 $as_test_x conftest$ac_exeext; then
23867 emacs_cv_langinfo_codeset=yes
23868 else
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872 emacs_cv_langinfo_codeset=no
23873 fi
23874
23875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23876 conftest$ac_exeext conftest.$ac_ext
23877
23878 fi
23879 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23880 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23881 if test $emacs_cv_langinfo_codeset = yes; then
23882
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_LANGINFO_CODESET 1
23885 _ACEOF
23886
23887 fi
23888
23889 { echo "$as_me:$LINENO: checking for size_t" >&5
23890 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23891 if test "${ac_cv_type_size_t+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23893 else
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h. */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23901 typedef size_t ac__type_new_;
23902 int
23903 main ()
23904 {
23905 if ((ac__type_new_ *) 0)
23906 return 0;
23907 if (sizeof (ac__type_new_))
23908 return 0;
23909 ;
23910 return 0;
23911 }
23912 _ACEOF
23913 rm -f conftest.$ac_objext
23914 if { (ac_try="$ac_compile"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23918 esac
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_compile") 2>conftest.er1
23921 ac_status=$?
23922 grep -v '^ *+' conftest.er1 >conftest.err
23923 rm -f conftest.er1
23924 cat conftest.err >&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); } && {
23927 test -z "$ac_c_werror_flag" ||
23928 test ! -s conftest.err
23929 } && test -s conftest.$ac_objext; then
23930 ac_cv_type_size_t=yes
23931 else
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23934
23935 ac_cv_type_size_t=no
23936 fi
23937
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 fi
23940 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23941 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23942 if test $ac_cv_type_size_t = yes; then
23943
23944 cat >>confdefs.h <<_ACEOF
23945 #define HAVE_SIZE_T 1
23946 _ACEOF
23947
23948
23949 fi
23950
23951
23952 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23953 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23954 if test "${ac_cv_type_mbstate_t+set}" = set; then
23955 echo $ECHO_N "(cached) $ECHO_C" >&6
23956 else
23957 cat >conftest.$ac_ext <<_ACEOF
23958 /* confdefs.h. */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23963 $ac_includes_default
23964 # include <wchar.h>
23965 int
23966 main ()
23967 {
23968 mbstate_t x; return sizeof x;
23969 ;
23970 return 0;
23971 }
23972 _ACEOF
23973 rm -f conftest.$ac_objext
23974 if { (ac_try="$ac_compile"
23975 case "(($ac_try" in
23976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23977 *) ac_try_echo=$ac_try;;
23978 esac
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980 (eval "$ac_compile") 2>conftest.er1
23981 ac_status=$?
23982 grep -v '^ *+' conftest.er1 >conftest.err
23983 rm -f conftest.er1
23984 cat conftest.err >&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && {
23987 test -z "$ac_c_werror_flag" ||
23988 test ! -s conftest.err
23989 } && test -s conftest.$ac_objext; then
23990 ac_cv_type_mbstate_t=yes
23991 else
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23994
23995 ac_cv_type_mbstate_t=no
23996 fi
23997
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 fi
24000 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24001 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24002 if test $ac_cv_type_mbstate_t = yes; then
24003
24004 cat >>confdefs.h <<\_ACEOF
24005 #define HAVE_MBSTATE_T 1
24006 _ACEOF
24007
24008 else
24009
24010 cat >>confdefs.h <<\_ACEOF
24011 #define mbstate_t int
24012 _ACEOF
24013
24014 fi
24015
24016 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24017 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24018 if test "${emacs_cv_c_restrict+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020 else
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 void fred (int *restrict x);
24028 int
24029 main ()
24030 {
24031
24032 ;
24033 return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_compile") 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24053 emacs_cv_c_restrict=yes
24054 else
24055 echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h. */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24064 void fred (int *__restrict x);
24065 int
24066 main ()
24067 {
24068
24069 ;
24070 return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24078 esac
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080 (eval "$ac_compile") 2>conftest.er1
24081 ac_status=$?
24082 grep -v '^ *+' conftest.er1 >conftest.err
24083 rm -f conftest.er1
24084 cat conftest.err >&5
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } && {
24087 test -z "$ac_c_werror_flag" ||
24088 test ! -s conftest.err
24089 } && test -s conftest.$ac_objext; then
24090 emacs_cv_c_restrict=__restrict
24091 else
24092 echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24094
24095 emacs_cv_c_restrict=no
24096 fi
24097
24098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24099 fi
24100
24101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102 fi
24103 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24104 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24105 case "$emacs_cv_c_restrict" in
24106 yes) emacs_restrict=restrict;;
24107 no) emacs_restrict="";;
24108 *) emacs_restrict="$emacs_cv_c_restrict";;
24109 esac
24110 if test "$emacs_restrict" != __restrict; then
24111
24112 cat >>confdefs.h <<_ACEOF
24113 #define __restrict $emacs_restrict
24114 _ACEOF
24115
24116 fi
24117
24118 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24119 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24120 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24121 echo $ECHO_N "(cached) $ECHO_C" >&6
24122 else
24123 cat >conftest.$ac_ext <<_ACEOF
24124 /* confdefs.h. */
24125 _ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h. */
24129 void fred (int x[__restrict]);
24130 int
24131 main ()
24132 {
24133
24134 ;
24135 return 0;
24136 }
24137 _ACEOF
24138 rm -f conftest.$ac_objext
24139 if { (ac_try="$ac_compile"
24140 case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_compile") 2>conftest.er1
24146 ac_status=$?
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest.$ac_objext; then
24155 emacs_cv_c_restrict_arr=yes
24156 else
24157 echo "$as_me: failed program was:" >&5
24158 sed 's/^/| /' conftest.$ac_ext >&5
24159
24160 emacs_cv_c_restrict_arr=no
24161 fi
24162
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164 fi
24165 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24166 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24167 if test "$emacs_cv_c_restrict_arr" = yes; then
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define __restrict_arr __restrict
24171 _ACEOF
24172
24173 fi
24174
24175
24176
24177 # Set up the CFLAGS for real compilation, so we can substitute it.
24178 CFLAGS="$REAL_CFLAGS"
24179 CPPFLAGS="$REAL_CPPFLAGS"
24180
24181 #### Find out which version of Emacs this is.
24182 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24183 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24184 if test x"${version}" = x; then
24185 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24186 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24187 { (exit 1); exit 1; }; }
24188 fi
24189
24190 ### Specify what sort of things we'll be editing into Makefile and config.h.
24191 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235 cat >>confdefs.h <<_ACEOF
24236 #define EMACS_CONFIGURATION "${canonical}"
24237 _ACEOF
24238
24239
24240 cat >>confdefs.h <<_ACEOF
24241 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24242 _ACEOF
24243
24244
24245 cat >>confdefs.h <<_ACEOF
24246 #define config_machfile "${machfile}"
24247 _ACEOF
24248
24249
24250 cat >>confdefs.h <<_ACEOF
24251 #define config_opsysfile "${opsysfile}"
24252 _ACEOF
24253
24254
24255 cat >>confdefs.h <<_ACEOF
24256 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24257 _ACEOF
24258
24259
24260 cat >>confdefs.h <<_ACEOF
24261 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24262 _ACEOF
24263
24264
24265 cat >>confdefs.h <<_ACEOF
24266 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24267 _ACEOF
24268
24269
24270 cat >>confdefs.h <<_ACEOF
24271 #define UNEXEC_SRC ${UNEXEC_SRC}
24272 _ACEOF
24273
24274
24275 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24276
24277 cat >>confdefs.h <<\_ACEOF
24278 #define HAVE_X_WINDOWS 1
24279 _ACEOF
24280
24281 fi
24282 if test "${USE_X_TOOLKIT}" != "none" ; then
24283
24284 cat >>confdefs.h <<\_ACEOF
24285 #define USE_X_TOOLKIT 1
24286 _ACEOF
24287
24288 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24289
24290 cat >>confdefs.h <<\_ACEOF
24291 #define USE_LUCID 1
24292 _ACEOF
24293
24294 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24295
24296 cat >>confdefs.h <<\_ACEOF
24297 #define USE_MOTIF 1
24298 _ACEOF
24299
24300 fi
24301 fi
24302 if test "${HAVE_X11}" = "yes" ; then
24303
24304 cat >>confdefs.h <<\_ACEOF
24305 #define HAVE_X11 1
24306 _ACEOF
24307
24308 fi
24309 if test "${HAVE_MENUS}" = "yes" ; then
24310
24311 cat >>confdefs.h <<\_ACEOF
24312 #define HAVE_MENUS 1
24313 _ACEOF
24314
24315 fi
24316 if test "${GNU_MALLOC}" = "yes" ; then
24317
24318 cat >>confdefs.h <<\_ACEOF
24319 #define GNU_MALLOC 1
24320 _ACEOF
24321
24322 fi
24323 if test "${REL_ALLOC}" = "yes" ; then
24324
24325 cat >>confdefs.h <<\_ACEOF
24326 #define REL_ALLOC 1
24327 _ACEOF
24328
24329 fi
24330
24331
24332
24333
24334
24335
24336 #### Report on what we decided to do.
24337 #### Report GTK as a toolkit, even if it doesn't use Xt.
24338 #### It makes printing result more understandable as using GTK sets
24339 #### toolkit_scroll_bars to yes by default.
24340 if test "${HAVE_GTK}" = "yes"; then
24341 USE_X_TOOLKIT=GTK
24342 fi
24343
24344 echo "
24345 Configured for \`${canonical}'.
24346
24347 Where should the build process find the source code? ${srcdir}
24348 What operating system and machine description files should Emacs use?
24349 \`${opsysfile}' and \`${machfile}'
24350 What compiler should emacs be built with? ${CC} ${CFLAGS}
24351 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24352 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24353 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24354 What window system should Emacs use? ${window_system}
24355 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24356
24357 if test -n "${x_includes}"; then
24358 echo " Where do we find X Windows header files? ${x_includes}"
24359 else
24360 echo " Where do we find X Windows header files? Standard dirs"
24361 fi
24362 if test -n "${x_libraries}"; then
24363 echo " Where do we find X Windows libraries? ${x_libraries}"
24364 else
24365 echo " Where do we find X Windows libraries? Standard dirs"
24366 fi
24367
24368 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24369 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24370 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24371 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24372 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24373 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24374 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24375 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24376 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24377
24378 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24379 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24380 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24381 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24382
24383 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24384 echo
24385
24386 if test $USE_XASSERTS = yes; then
24387 echo " Compiling with asserts turned on."
24388 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24389 fi
24390
24391 echo
24392
24393 if test "$USE_X_TOOLKIT" = GTK; then
24394 case "$canonical" in
24395 *cygwin*)
24396 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24397 will probably get a crash on startup. If this happens, please use another
24398 toolkit for Emacs. See etc/PROBLEMS for more information."
24399 ;;
24400 esac
24401 fi
24402
24403 if test "$HAVE_NS" = "yes"; then
24404 echo
24405 echo "You must run \"make install\" in order to test the built application.
24406 The installed application will go to nextstep/Emacs.app and can be
24407 run or moved from there."
24408 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24409 echo "The application will be fully self-contained."
24410 else
24411 echo "The lisp resources for the application will be installed under ${prefix}.
24412 You may need to run \"make install\" with sudo. The application will fail
24413 to run if these resources are not installed."
24414 fi
24415 echo
24416 fi
24417
24418 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24419 echo "D-Bus integration has been tested for GNU/Linux only."
24420 echo
24421 fi
24422
24423
24424 # Remove any trailing slashes in these variables.
24425 test "${prefix}" != NONE &&
24426 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24427 test "${exec_prefix}" != NONE &&
24428 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24429
24430 # Now get this: Some word that is part of the ${srcdir} directory name
24431 # or the ${configuration} value might, just might, happen to be an
24432 # identifier like `sun4' or `i386' or something, and be predefined by
24433 # the C preprocessor to some helpful value like 1, or maybe the empty
24434 # string. Needless to say consequent macro substitutions are less
24435 # than conducive to the makefile finding the correct directory.
24436 cpp_undefs="`echo $srcdir $configuration $canonical |
24437 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24438 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24439
24440 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24441 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24442 ## from Makefile.c can correctly provide the arg `-traditional' to the
24443 ## C preprocessor.
24444
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h. */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24451 yes..yes
24452 _ACEOF
24453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24454 $EGREP "yes..yes" >/dev/null 2>&1; then
24455 CPP_NEED_TRADITIONAL=no
24456 else
24457 CPP_NEED_TRADITIONAL=yes
24458 fi
24459 rm -f conftest*
24460
24461
24462 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"
24463
24464 ac_config_commands="$ac_config_commands default"
24465
24466 cat >confcache <<\_ACEOF
24467 # This file is a shell script that caches the results of configure
24468 # tests run on this system so they can be shared between configure
24469 # scripts and configure runs, see configure's option --config-cache.
24470 # It is not useful on other systems. If it contains results you don't
24471 # want to keep, you may remove or edit it.
24472 #
24473 # config.status only pays attention to the cache file if you give it
24474 # the --recheck option to rerun configure.
24475 #
24476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24478 # following values.
24479
24480 _ACEOF
24481
24482 # The following way of writing the cache mishandles newlines in values,
24483 # but we know of no workaround that is simple, portable, and efficient.
24484 # So, we kill variables containing newlines.
24485 # Ultrix sh set writes to stderr and can't be redirected directly,
24486 # and sets the high bit in the cache file unless we assign to the vars.
24487 (
24488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24489 eval ac_val=\$$ac_var
24490 case $ac_val in #(
24491 *${as_nl}*)
24492 case $ac_var in #(
24493 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24494 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24495 esac
24496 case $ac_var in #(
24497 _ | IFS | as_nl) ;; #(
24498 *) $as_unset $ac_var ;;
24499 esac ;;
24500 esac
24501 done
24502
24503 (set) 2>&1 |
24504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24505 *${as_nl}ac_space=\ *)
24506 # `set' does not quote correctly, so add quotes (double-quote
24507 # substitution turns \\\\ into \\, and sed turns \\ into \).
24508 sed -n \
24509 "s/'/'\\\\''/g;
24510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24511 ;; #(
24512 *)
24513 # `set' quotes correctly as required by POSIX, so do not add quotes.
24514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24515 ;;
24516 esac |
24517 sort
24518 ) |
24519 sed '
24520 /^ac_cv_env_/b end
24521 t clear
24522 :clear
24523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24524 t end
24525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24526 :end' >>confcache
24527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24528 if test -w "$cache_file"; then
24529 test "x$cache_file" != "x/dev/null" &&
24530 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24531 echo "$as_me: updating cache $cache_file" >&6;}
24532 cat confcache >$cache_file
24533 else
24534 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24535 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24536 fi
24537 fi
24538 rm -f confcache
24539
24540 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24541 # Let make expand exec_prefix.
24542 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24543
24544 DEFS=-DHAVE_CONFIG_H
24545
24546 ac_libobjs=
24547 ac_ltlibobjs=
24548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24549 # 1. Remove the extension, and $U if already installed.
24550 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24551 ac_i=`echo "$ac_i" | sed "$ac_script"`
24552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24553 # will be set to the directory where LIBOBJS objects are built.
24554 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24555 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24556 done
24557 LIBOBJS=$ac_libobjs
24558
24559 LTLIBOBJS=$ac_ltlibobjs
24560
24561
24562
24563 : ${CONFIG_STATUS=./config.status}
24564 ac_clean_files_save=$ac_clean_files
24565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24566 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24567 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24568 cat >$CONFIG_STATUS <<_ACEOF
24569 #! $SHELL
24570 # Generated by $as_me.
24571 # Run this file to recreate the current configuration.
24572 # Compiler output produced by configure, useful for debugging
24573 # configure, is in config.log if it exists.
24574
24575 debug=false
24576 ac_cs_recheck=false
24577 ac_cs_silent=false
24578 SHELL=\${CONFIG_SHELL-$SHELL}
24579 _ACEOF
24580
24581 cat >>$CONFIG_STATUS <<\_ACEOF
24582 ## --------------------- ##
24583 ## M4sh Initialization. ##
24584 ## --------------------- ##
24585
24586 # Be more Bourne compatible
24587 DUALCASE=1; export DUALCASE # for MKS sh
24588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24589 emulate sh
24590 NULLCMD=:
24591 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24592 # is contrary to our usage. Disable this feature.
24593 alias -g '${1+"$@"}'='"$@"'
24594 setopt NO_GLOB_SUBST
24595 else
24596 case `(set -o) 2>/dev/null` in
24597 *posix*) set -o posix ;;
24598 esac
24599
24600 fi
24601
24602
24603
24604
24605 # PATH needs CR
24606 # Avoid depending upon Character Ranges.
24607 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24610 as_cr_digits='0123456789'
24611 as_cr_alnum=$as_cr_Letters$as_cr_digits
24612
24613 # The user is always right.
24614 if test "${PATH_SEPARATOR+set}" != set; then
24615 echo "#! /bin/sh" >conf$$.sh
24616 echo "exit 0" >>conf$$.sh
24617 chmod +x conf$$.sh
24618 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24619 PATH_SEPARATOR=';'
24620 else
24621 PATH_SEPARATOR=:
24622 fi
24623 rm -f conf$$.sh
24624 fi
24625
24626 # Support unset when possible.
24627 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24628 as_unset=unset
24629 else
24630 as_unset=false
24631 fi
24632
24633
24634 # IFS
24635 # We need space, tab and new line, in precisely that order. Quoting is
24636 # there to prevent editors from complaining about space-tab.
24637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24638 # splitting by setting IFS to empty value.)
24639 as_nl='
24640 '
24641 IFS=" "" $as_nl"
24642
24643 # Find who we are. Look in the path if we contain no directory separator.
24644 case $0 in
24645 *[\\/]* ) as_myself=$0 ;;
24646 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24647 for as_dir in $PATH
24648 do
24649 IFS=$as_save_IFS
24650 test -z "$as_dir" && as_dir=.
24651 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24652 done
24653 IFS=$as_save_IFS
24654
24655 ;;
24656 esac
24657 # We did not find ourselves, most probably we were run as `sh COMMAND'
24658 # in which case we are not to be found in the path.
24659 if test "x$as_myself" = x; then
24660 as_myself=$0
24661 fi
24662 if test ! -f "$as_myself"; then
24663 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24664 { (exit 1); exit 1; }
24665 fi
24666
24667 # Work around bugs in pre-3.0 UWIN ksh.
24668 for as_var in ENV MAIL MAILPATH
24669 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24670 done
24671 PS1='$ '
24672 PS2='> '
24673 PS4='+ '
24674
24675 # NLS nuisances.
24676 for as_var in \
24677 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24678 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24679 LC_TELEPHONE LC_TIME
24680 do
24681 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24682 eval $as_var=C; export $as_var
24683 else
24684 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24685 fi
24686 done
24687
24688 # Required to use basename.
24689 if expr a : '\(a\)' >/dev/null 2>&1 &&
24690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24691 as_expr=expr
24692 else
24693 as_expr=false
24694 fi
24695
24696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24697 as_basename=basename
24698 else
24699 as_basename=false
24700 fi
24701
24702
24703 # Name of the executable.
24704 as_me=`$as_basename -- "$0" ||
24705 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24706 X"$0" : 'X\(//\)$' \| \
24707 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24708 echo X/"$0" |
24709 sed '/^.*\/\([^/][^/]*\)\/*$/{
24710 s//\1/
24711 q
24712 }
24713 /^X\/\(\/\/\)$/{
24714 s//\1/
24715 q
24716 }
24717 /^X\/\(\/\).*/{
24718 s//\1/
24719 q
24720 }
24721 s/.*/./; q'`
24722
24723 # CDPATH.
24724 $as_unset CDPATH
24725
24726
24727
24728 as_lineno_1=$LINENO
24729 as_lineno_2=$LINENO
24730 test "x$as_lineno_1" != "x$as_lineno_2" &&
24731 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24732
24733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24734 # uniformly replaced by the line number. The first 'sed' inserts a
24735 # line-number line after each line using $LINENO; the second 'sed'
24736 # does the real work. The second script uses 'N' to pair each
24737 # line-number line with the line containing $LINENO, and appends
24738 # trailing '-' during substitution so that $LINENO is not a special
24739 # case at line end.
24740 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24741 # scripts with optimization help from Paolo Bonzini. Blame Lee
24742 # E. McMahon (1931-1989) for sed's syntax. :-)
24743 sed -n '
24744 p
24745 /[$]LINENO/=
24746 ' <$as_myself |
24747 sed '
24748 s/[$]LINENO.*/&-/
24749 t lineno
24750 b
24751 :lineno
24752 N
24753 :loop
24754 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24755 t loop
24756 s/-\n.*//
24757 ' >$as_me.lineno &&
24758 chmod +x "$as_me.lineno" ||
24759 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24760 { (exit 1); exit 1; }; }
24761
24762 # Don't try to exec as it changes $[0], causing all sort of problems
24763 # (the dirname of $[0] is not the place where we might find the
24764 # original and so on. Autoconf is especially sensitive to this).
24765 . "./$as_me.lineno"
24766 # Exit status is that of the last command.
24767 exit
24768 }
24769
24770
24771 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24772 as_dirname=dirname
24773 else
24774 as_dirname=false
24775 fi
24776
24777 ECHO_C= ECHO_N= ECHO_T=
24778 case `echo -n x` in
24779 -n*)
24780 case `echo 'x\c'` in
24781 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24782 *) ECHO_C='\c';;
24783 esac;;
24784 *)
24785 ECHO_N='-n';;
24786 esac
24787
24788 if expr a : '\(a\)' >/dev/null 2>&1 &&
24789 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24790 as_expr=expr
24791 else
24792 as_expr=false
24793 fi
24794
24795 rm -f conf$$ conf$$.exe conf$$.file
24796 if test -d conf$$.dir; then
24797 rm -f conf$$.dir/conf$$.file
24798 else
24799 rm -f conf$$.dir
24800 mkdir conf$$.dir
24801 fi
24802 echo >conf$$.file
24803 if ln -s conf$$.file conf$$ 2>/dev/null; then
24804 as_ln_s='ln -s'
24805 # ... but there are two gotchas:
24806 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24807 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24808 # In both cases, we have to default to `cp -p'.
24809 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24810 as_ln_s='cp -p'
24811 elif ln conf$$.file conf$$ 2>/dev/null; then
24812 as_ln_s=ln
24813 else
24814 as_ln_s='cp -p'
24815 fi
24816 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24817 rmdir conf$$.dir 2>/dev/null
24818
24819 if mkdir -p . 2>/dev/null; then
24820 as_mkdir_p=:
24821 else
24822 test -d ./-p && rmdir ./-p
24823 as_mkdir_p=false
24824 fi
24825
24826 if test -x / >/dev/null 2>&1; then
24827 as_test_x='test -x'
24828 else
24829 if ls -dL / >/dev/null 2>&1; then
24830 as_ls_L_option=L
24831 else
24832 as_ls_L_option=
24833 fi
24834 as_test_x='
24835 eval sh -c '\''
24836 if test -d "$1"; then
24837 test -d "$1/.";
24838 else
24839 case $1 in
24840 -*)set "./$1";;
24841 esac;
24842 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24843 ???[sx]*):;;*)false;;esac;fi
24844 '\'' sh
24845 '
24846 fi
24847 as_executable_p=$as_test_x
24848
24849 # Sed expression to map a string onto a valid CPP name.
24850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24851
24852 # Sed expression to map a string onto a valid variable name.
24853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24854
24855
24856 exec 6>&1
24857
24858 # Save the log message, to keep $[0] and so on meaningful, and to
24859 # report actual input values of CONFIG_FILES etc. instead of their
24860 # values after options handling.
24861 ac_log="
24862 This file was extended by emacs $as_me 23.0.91, which was
24863 generated by GNU Autoconf 2.61. Invocation command line was
24864
24865 CONFIG_FILES = $CONFIG_FILES
24866 CONFIG_HEADERS = $CONFIG_HEADERS
24867 CONFIG_LINKS = $CONFIG_LINKS
24868 CONFIG_COMMANDS = $CONFIG_COMMANDS
24869 $ $0 $@
24870
24871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24872 "
24873
24874 _ACEOF
24875
24876 cat >>$CONFIG_STATUS <<_ACEOF
24877 # Files that config.status was made for.
24878 config_files="$ac_config_files"
24879 config_headers="$ac_config_headers"
24880 config_commands="$ac_config_commands"
24881
24882 _ACEOF
24883
24884 cat >>$CONFIG_STATUS <<\_ACEOF
24885 ac_cs_usage="\
24886 \`$as_me' instantiates files from templates according to the
24887 current configuration.
24888
24889 Usage: $0 [OPTIONS] [FILE]...
24890
24891 -h, --help print this help, then exit
24892 -V, --version print version number and configuration settings, then exit
24893 -q, --quiet do not print progress messages
24894 -d, --debug don't remove temporary files
24895 --recheck update $as_me by reconfiguring in the same conditions
24896 --file=FILE[:TEMPLATE]
24897 instantiate the configuration file FILE
24898 --header=FILE[:TEMPLATE]
24899 instantiate the configuration header FILE
24900
24901 Configuration files:
24902 $config_files
24903
24904 Configuration headers:
24905 $config_headers
24906
24907 Configuration commands:
24908 $config_commands
24909
24910 Report bugs to <bug-autoconf@gnu.org>."
24911
24912 _ACEOF
24913 cat >>$CONFIG_STATUS <<_ACEOF
24914 ac_cs_version="\\
24915 emacs config.status 23.0.91
24916 configured by $0, generated by GNU Autoconf 2.61,
24917 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24918
24919 Copyright (C) 2006 Free Software Foundation, Inc.
24920 This config.status script is free software; the Free Software Foundation
24921 gives unlimited permission to copy, distribute and modify it."
24922
24923 ac_pwd='$ac_pwd'
24924 srcdir='$srcdir'
24925 INSTALL='$INSTALL'
24926 _ACEOF
24927
24928 cat >>$CONFIG_STATUS <<\_ACEOF
24929 # If no file are specified by the user, then we need to provide default
24930 # value. By we need to know if files were specified by the user.
24931 ac_need_defaults=:
24932 while test $# != 0
24933 do
24934 case $1 in
24935 --*=*)
24936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24938 ac_shift=:
24939 ;;
24940 *)
24941 ac_option=$1
24942 ac_optarg=$2
24943 ac_shift=shift
24944 ;;
24945 esac
24946
24947 case $ac_option in
24948 # Handling of the options.
24949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24950 ac_cs_recheck=: ;;
24951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24952 echo "$ac_cs_version"; exit ;;
24953 --debug | --debu | --deb | --de | --d | -d )
24954 debug=: ;;
24955 --file | --fil | --fi | --f )
24956 $ac_shift
24957 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24958 ac_need_defaults=false;;
24959 --header | --heade | --head | --hea )
24960 $ac_shift
24961 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24962 ac_need_defaults=false;;
24963 --he | --h)
24964 # Conflict between --help and --header
24965 { echo "$as_me: error: ambiguous option: $1
24966 Try \`$0 --help' for more information." >&2
24967 { (exit 1); exit 1; }; };;
24968 --help | --hel | -h )
24969 echo "$ac_cs_usage"; exit ;;
24970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24972 ac_cs_silent=: ;;
24973
24974 # This is an error.
24975 -*) { echo "$as_me: error: unrecognized option: $1
24976 Try \`$0 --help' for more information." >&2
24977 { (exit 1); exit 1; }; } ;;
24978
24979 *) ac_config_targets="$ac_config_targets $1"
24980 ac_need_defaults=false ;;
24981
24982 esac
24983 shift
24984 done
24985
24986 ac_configure_extra_args=
24987
24988 if $ac_cs_silent; then
24989 exec 6>/dev/null
24990 ac_configure_extra_args="$ac_configure_extra_args --silent"
24991 fi
24992
24993 _ACEOF
24994 cat >>$CONFIG_STATUS <<_ACEOF
24995 if \$ac_cs_recheck; then
24996 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24997 CONFIG_SHELL=$SHELL
24998 export CONFIG_SHELL
24999 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25000 fi
25001
25002 _ACEOF
25003 cat >>$CONFIG_STATUS <<\_ACEOF
25004 exec 5>>config.log
25005 {
25006 echo
25007 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25008 ## Running $as_me. ##
25009 _ASBOX
25010 echo "$ac_log"
25011 } >&5
25012
25013 _ACEOF
25014 cat >>$CONFIG_STATUS <<_ACEOF
25015 #
25016 # INIT-COMMANDS
25017 #
25018 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25019
25020 _ACEOF
25021
25022 cat >>$CONFIG_STATUS <<\_ACEOF
25023
25024 # Handling of arguments.
25025 for ac_config_target in $ac_config_targets
25026 do
25027 case $ac_config_target in
25028 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25030 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25031 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25032 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25033 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25034 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25035 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25036 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25037 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25038 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25039 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25040 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25041
25042 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25043 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25044 { (exit 1); exit 1; }; };;
25045 esac
25046 done
25047
25048
25049 # If the user did not use the arguments to specify the items to instantiate,
25050 # then the envvar interface is used. Set only those that are not.
25051 # We use the long form for the default assignment because of an extremely
25052 # bizarre bug on SunOS 4.1.3.
25053 if $ac_need_defaults; then
25054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25057 fi
25058
25059 # Have a temporary directory for convenience. Make it in the build tree
25060 # simply because there is no reason against having it here, and in addition,
25061 # creating and moving files from /tmp can sometimes cause problems.
25062 # Hook for its removal unless debugging.
25063 # Note that there is a small window in which the directory will not be cleaned:
25064 # after its creation but before its name has been assigned to `$tmp'.
25065 $debug ||
25066 {
25067 tmp=
25068 trap 'exit_status=$?
25069 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25070 ' 0
25071 trap '{ (exit 1); exit 1; }' 1 2 13 15
25072 }
25073 # Create a (secure) tmp directory for tmp files.
25074
25075 {
25076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25077 test -n "$tmp" && test -d "$tmp"
25078 } ||
25079 {
25080 tmp=./conf$$-$RANDOM
25081 (umask 077 && mkdir "$tmp")
25082 } ||
25083 {
25084 echo "$me: cannot create a temporary directory in ." >&2
25085 { (exit 1); exit 1; }
25086 }
25087
25088 #
25089 # Set up the sed scripts for CONFIG_FILES section.
25090 #
25091
25092 # No need to generate the scripts if there are no CONFIG_FILES.
25093 # This happens for instance when ./config.status config.h
25094 if test -n "$CONFIG_FILES"; then
25095
25096 _ACEOF
25097
25098
25099
25100 ac_delim='%!_!# '
25101 for ac_last_try in false false false false false :; do
25102 cat >conf$$subs.sed <<_ACEOF
25103 SHELL!$SHELL$ac_delim
25104 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25105 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25106 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25107 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25108 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25109 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25110 exec_prefix!$exec_prefix$ac_delim
25111 prefix!$prefix$ac_delim
25112 program_transform_name!$program_transform_name$ac_delim
25113 bindir!$bindir$ac_delim
25114 sbindir!$sbindir$ac_delim
25115 libexecdir!$libexecdir$ac_delim
25116 datarootdir!$datarootdir$ac_delim
25117 datadir!$datadir$ac_delim
25118 sysconfdir!$sysconfdir$ac_delim
25119 sharedstatedir!$sharedstatedir$ac_delim
25120 localstatedir!$localstatedir$ac_delim
25121 includedir!$includedir$ac_delim
25122 oldincludedir!$oldincludedir$ac_delim
25123 docdir!$docdir$ac_delim
25124 infodir!$infodir$ac_delim
25125 htmldir!$htmldir$ac_delim
25126 dvidir!$dvidir$ac_delim
25127 pdfdir!$pdfdir$ac_delim
25128 psdir!$psdir$ac_delim
25129 libdir!$libdir$ac_delim
25130 localedir!$localedir$ac_delim
25131 mandir!$mandir$ac_delim
25132 DEFS!$DEFS$ac_delim
25133 ECHO_C!$ECHO_C$ac_delim
25134 ECHO_N!$ECHO_N$ac_delim
25135 ECHO_T!$ECHO_T$ac_delim
25136 LIBS!$LIBS$ac_delim
25137 build_alias!$build_alias$ac_delim
25138 host_alias!$host_alias$ac_delim
25139 target_alias!$target_alias$ac_delim
25140 MAINT!$MAINT$ac_delim
25141 build!$build$ac_delim
25142 build_cpu!$build_cpu$ac_delim
25143 build_vendor!$build_vendor$ac_delim
25144 build_os!$build_os$ac_delim
25145 host!$host$ac_delim
25146 host_cpu!$host_cpu$ac_delim
25147 host_vendor!$host_vendor$ac_delim
25148 host_os!$host_os$ac_delim
25149 CC!$CC$ac_delim
25150 CFLAGS!$CFLAGS$ac_delim
25151 LDFLAGS!$LDFLAGS$ac_delim
25152 CPPFLAGS!$CPPFLAGS$ac_delim
25153 ac_ct_CC!$ac_ct_CC$ac_delim
25154 EXEEXT!$EXEEXT$ac_delim
25155 OBJEXT!$OBJEXT$ac_delim
25156 CPP!$CPP$ac_delim
25157 GREP!$GREP$ac_delim
25158 EGREP!$EGREP$ac_delim
25159 LN_S!$LN_S$ac_delim
25160 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25161 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25162 INSTALL_DATA!$INSTALL_DATA$ac_delim
25163 RANLIB!$RANLIB$ac_delim
25164 INSTALL_INFO!$INSTALL_INFO$ac_delim
25165 GZIP_PROG!$GZIP_PROG$ac_delim
25166 MAKEINFO!$MAKEINFO$ac_delim
25167 LIBSOUND!$LIBSOUND$ac_delim
25168 PKG_CONFIG!$PKG_CONFIG$ac_delim
25169 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25170 ALSA_LIBS!$ALSA_LIBS$ac_delim
25171 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25172 SET_MAKE!$SET_MAKE$ac_delim
25173 XMKMF!$XMKMF$ac_delim
25174 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25175 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25176 RSVG_LIBS!$RSVG_LIBS$ac_delim
25177 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25178 GTK_LIBS!$GTK_LIBS$ac_delim
25179 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25180 DBUS_LIBS!$DBUS_LIBS$ac_delim
25181 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25182 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25183 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25184 XFT_LIBS!$XFT_LIBS$ac_delim
25185 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25186 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25187 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25188 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25189 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25190 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25191 ALLOCA!$ALLOCA$ac_delim
25192 liblockfile!$liblockfile$ac_delim
25193 LIBOBJS!$LIBOBJS$ac_delim
25194 NEED_SETGID!$NEED_SETGID$ac_delim
25195 KMEM_GROUP!$KMEM_GROUP$ac_delim
25196 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25197 GETOPT_H!$GETOPT_H$ac_delim
25198 GETOPTOBJS!$GETOPTOBJS$ac_delim
25199 version!$version$ac_delim
25200 _ACEOF
25201
25202 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25203 break
25204 elif $ac_last_try; then
25205 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25207 { (exit 1); exit 1; }; }
25208 else
25209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25210 fi
25211 done
25212
25213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25214 if test -n "$ac_eof"; then
25215 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25216 ac_eof=`expr $ac_eof + 1`
25217 fi
25218
25219 cat >>$CONFIG_STATUS <<_ACEOF
25220 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25222 _ACEOF
25223 sed '
25224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25225 s/^/s,@/; s/!/@,|#_!!_#|/
25226 :n
25227 t n
25228 s/'"$ac_delim"'$/,g/; t
25229 s/$/\\/; p
25230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25231 ' >>$CONFIG_STATUS <conf$$subs.sed
25232 rm -f conf$$subs.sed
25233 cat >>$CONFIG_STATUS <<_ACEOF
25234 CEOF$ac_eof
25235 _ACEOF
25236
25237
25238 ac_delim='%!_!# '
25239 for ac_last_try in false false false false false :; do
25240 cat >conf$$subs.sed <<_ACEOF
25241 configuration!$configuration$ac_delim
25242 canonical!$canonical$ac_delim
25243 srcdir!$srcdir$ac_delim
25244 lispdir!$lispdir$ac_delim
25245 locallisppath!$locallisppath$ac_delim
25246 lisppath!$lisppath$ac_delim
25247 x_default_search_path!$x_default_search_path$ac_delim
25248 etcdir!$etcdir$ac_delim
25249 archlibdir!$archlibdir$ac_delim
25250 bitmapdir!$bitmapdir$ac_delim
25251 gamedir!$gamedir$ac_delim
25252 gameuser!$gameuser$ac_delim
25253 c_switch_system!$c_switch_system$ac_delim
25254 c_switch_machine!$c_switch_machine$ac_delim
25255 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25256 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25257 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25258 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25259 machfile!$machfile$ac_delim
25260 opsysfile!$opsysfile$ac_delim
25261 ns_appdir!$ns_appdir$ac_delim
25262 ns_appbindir!$ns_appbindir$ac_delim
25263 ns_appresdir!$ns_appresdir$ac_delim
25264 ns_appsrc!$ns_appsrc$ac_delim
25265 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25266 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25267 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25268 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25269 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25270 LTLIBOBJS!$LTLIBOBJS$ac_delim
25271 _ACEOF
25272
25273 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25274 break
25275 elif $ac_last_try; then
25276 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25277 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25278 { (exit 1); exit 1; }; }
25279 else
25280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25281 fi
25282 done
25283
25284 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25285 if test -n "$ac_eof"; then
25286 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25287 ac_eof=`expr $ac_eof + 1`
25288 fi
25289
25290 cat >>$CONFIG_STATUS <<_ACEOF
25291 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25293 _ACEOF
25294 sed '
25295 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25296 s/^/s,@/; s/!/@,|#_!!_#|/
25297 :n
25298 t n
25299 s/'"$ac_delim"'$/,g/; t
25300 s/$/\\/; p
25301 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25302 ' >>$CONFIG_STATUS <conf$$subs.sed
25303 rm -f conf$$subs.sed
25304 cat >>$CONFIG_STATUS <<_ACEOF
25305 :end
25306 s/|#_!!_#|//g
25307 CEOF$ac_eof
25308 _ACEOF
25309
25310
25311 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25312 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25313 # trailing colons and then remove the whole line if VPATH becomes empty
25314 # (actually we leave an empty line to preserve line numbers).
25315 if test "x$srcdir" = x.; then
25316 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25317 s/:*\$(srcdir):*/:/
25318 s/:*\${srcdir}:*/:/
25319 s/:*@srcdir@:*/:/
25320 s/^\([^=]*=[ ]*\):*/\1/
25321 s/:*$//
25322 s/^[^=]*=[ ]*$//
25323 }'
25324 fi
25325
25326 cat >>$CONFIG_STATUS <<\_ACEOF
25327 fi # test -n "$CONFIG_FILES"
25328
25329
25330 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25331 do
25332 case $ac_tag in
25333 :[FHLC]) ac_mode=$ac_tag; continue;;
25334 esac
25335 case $ac_mode$ac_tag in
25336 :[FHL]*:*);;
25337 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25338 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25339 { (exit 1); exit 1; }; };;
25340 :[FH]-) ac_tag=-:-;;
25341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25342 esac
25343 ac_save_IFS=$IFS
25344 IFS=:
25345 set x $ac_tag
25346 IFS=$ac_save_IFS
25347 shift
25348 ac_file=$1
25349 shift
25350
25351 case $ac_mode in
25352 :L) ac_source=$1;;
25353 :[FH])
25354 ac_file_inputs=
25355 for ac_f
25356 do
25357 case $ac_f in
25358 -) ac_f="$tmp/stdin";;
25359 *) # Look for the file first in the build tree, then in the source tree
25360 # (if the path is not absolute). The absolute path cannot be DOS-style,
25361 # because $ac_f cannot contain `:'.
25362 test -f "$ac_f" ||
25363 case $ac_f in
25364 [\\/$]*) false;;
25365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25366 esac ||
25367 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25368 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25369 { (exit 1); exit 1; }; };;
25370 esac
25371 ac_file_inputs="$ac_file_inputs $ac_f"
25372 done
25373
25374 # Let's still pretend it is `configure' which instantiates (i.e., don't
25375 # use $as_me), people would be surprised to read:
25376 # /* config.h. Generated by config.status. */
25377 configure_input="Generated from "`IFS=:
25378 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25379 if test x"$ac_file" != x-; then
25380 configure_input="$ac_file. $configure_input"
25381 { echo "$as_me:$LINENO: creating $ac_file" >&5
25382 echo "$as_me: creating $ac_file" >&6;}
25383 fi
25384
25385 case $ac_tag in
25386 *:-:* | *:-) cat >"$tmp/stdin";;
25387 esac
25388 ;;
25389 esac
25390
25391 ac_dir=`$as_dirname -- "$ac_file" ||
25392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25393 X"$ac_file" : 'X\(//\)[^/]' \| \
25394 X"$ac_file" : 'X\(//\)$' \| \
25395 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25396 echo X"$ac_file" |
25397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25398 s//\1/
25399 q
25400 }
25401 /^X\(\/\/\)[^/].*/{
25402 s//\1/
25403 q
25404 }
25405 /^X\(\/\/\)$/{
25406 s//\1/
25407 q
25408 }
25409 /^X\(\/\).*/{
25410 s//\1/
25411 q
25412 }
25413 s/.*/./; q'`
25414 { as_dir="$ac_dir"
25415 case $as_dir in #(
25416 -*) as_dir=./$as_dir;;
25417 esac
25418 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25419 as_dirs=
25420 while :; do
25421 case $as_dir in #(
25422 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25423 *) as_qdir=$as_dir;;
25424 esac
25425 as_dirs="'$as_qdir' $as_dirs"
25426 as_dir=`$as_dirname -- "$as_dir" ||
25427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25428 X"$as_dir" : 'X\(//\)[^/]' \| \
25429 X"$as_dir" : 'X\(//\)$' \| \
25430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25431 echo X"$as_dir" |
25432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25433 s//\1/
25434 q
25435 }
25436 /^X\(\/\/\)[^/].*/{
25437 s//\1/
25438 q
25439 }
25440 /^X\(\/\/\)$/{
25441 s//\1/
25442 q
25443 }
25444 /^X\(\/\).*/{
25445 s//\1/
25446 q
25447 }
25448 s/.*/./; q'`
25449 test -d "$as_dir" && break
25450 done
25451 test -z "$as_dirs" || eval "mkdir $as_dirs"
25452 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25453 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25454 { (exit 1); exit 1; }; }; }
25455 ac_builddir=.
25456
25457 case "$ac_dir" in
25458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25459 *)
25460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25461 # A ".." for each directory in $ac_dir_suffix.
25462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25463 case $ac_top_builddir_sub in
25464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25466 esac ;;
25467 esac
25468 ac_abs_top_builddir=$ac_pwd
25469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25470 # for backward compatibility:
25471 ac_top_builddir=$ac_top_build_prefix
25472
25473 case $srcdir in
25474 .) # We are building in place.
25475 ac_srcdir=.
25476 ac_top_srcdir=$ac_top_builddir_sub
25477 ac_abs_top_srcdir=$ac_pwd ;;
25478 [\\/]* | ?:[\\/]* ) # Absolute name.
25479 ac_srcdir=$srcdir$ac_dir_suffix;
25480 ac_top_srcdir=$srcdir
25481 ac_abs_top_srcdir=$srcdir ;;
25482 *) # Relative name.
25483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25484 ac_top_srcdir=$ac_top_build_prefix$srcdir
25485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25486 esac
25487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25488
25489
25490 case $ac_mode in
25491 :F)
25492 #
25493 # CONFIG_FILE
25494 #
25495
25496 case $INSTALL in
25497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25498 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25499 esac
25500 _ACEOF
25501
25502 cat >>$CONFIG_STATUS <<\_ACEOF
25503 # If the template does not know about datarootdir, expand it.
25504 # FIXME: This hack should be removed a few years after 2.60.
25505 ac_datarootdir_hack=; ac_datarootdir_seen=
25506
25507 case `sed -n '/datarootdir/ {
25508 p
25509 q
25510 }
25511 /@datadir@/p
25512 /@docdir@/p
25513 /@infodir@/p
25514 /@localedir@/p
25515 /@mandir@/p
25516 ' $ac_file_inputs` in
25517 *datarootdir*) ac_datarootdir_seen=yes;;
25518 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25519 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25520 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25521 _ACEOF
25522 cat >>$CONFIG_STATUS <<_ACEOF
25523 ac_datarootdir_hack='
25524 s&@datadir@&$datadir&g
25525 s&@docdir@&$docdir&g
25526 s&@infodir@&$infodir&g
25527 s&@localedir@&$localedir&g
25528 s&@mandir@&$mandir&g
25529 s&\\\${datarootdir}&$datarootdir&g' ;;
25530 esac
25531 _ACEOF
25532
25533 # Neutralize VPATH when `$srcdir' = `.'.
25534 # Shell code in configure.ac might set extrasub.
25535 # FIXME: do we really want to maintain this feature?
25536 cat >>$CONFIG_STATUS <<_ACEOF
25537 sed "$ac_vpsub
25538 $extrasub
25539 _ACEOF
25540 cat >>$CONFIG_STATUS <<\_ACEOF
25541 :t
25542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25543 s&@configure_input@&$configure_input&;t t
25544 s&@top_builddir@&$ac_top_builddir_sub&;t t
25545 s&@srcdir@&$ac_srcdir&;t t
25546 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25547 s&@top_srcdir@&$ac_top_srcdir&;t t
25548 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25549 s&@builddir@&$ac_builddir&;t t
25550 s&@abs_builddir@&$ac_abs_builddir&;t t
25551 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25552 s&@INSTALL@&$ac_INSTALL&;t t
25553 $ac_datarootdir_hack
25554 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25555
25556 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25557 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25558 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25559 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25560 which seems to be undefined. Please make sure it is defined." >&5
25561 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25562 which seems to be undefined. Please make sure it is defined." >&2;}
25563
25564 rm -f "$tmp/stdin"
25565 case $ac_file in
25566 -) cat "$tmp/out"; rm -f "$tmp/out";;
25567 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25568 esac
25569 ;;
25570 :H)
25571 #
25572 # CONFIG_HEADER
25573 #
25574 _ACEOF
25575
25576 # Transform confdefs.h into a sed script `conftest.defines', that
25577 # substitutes the proper values into config.h.in to produce config.h.
25578 rm -f conftest.defines conftest.tail
25579 # First, append a space to every undef/define line, to ease matching.
25580 echo 's/$/ /' >conftest.defines
25581 # Then, protect against being on the right side of a sed subst, or in
25582 # an unquoted here document, in config.status. If some macros were
25583 # called several times there might be several #defines for the same
25584 # symbol, which is useless. But do not sort them, since the last
25585 # AC_DEFINE must be honored.
25586 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25587 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25588 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25589 # PARAMS is the parameter list in the macro definition--in most cases, it's
25590 # just an empty string.
25591 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25592 ac_dB='\\)[ (].*,\\1define\\2'
25593 ac_dC=' '
25594 ac_dD=' ,'
25595
25596 uniq confdefs.h |
25597 sed -n '
25598 t rset
25599 :rset
25600 s/^[ ]*#[ ]*define[ ][ ]*//
25601 t ok
25602 d
25603 :ok
25604 s/[\\&,]/\\&/g
25605 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25606 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25607 ' >>conftest.defines
25608
25609 # Remove the space that was appended to ease matching.
25610 # Then replace #undef with comments. This is necessary, for
25611 # example, in the case of _POSIX_SOURCE, which is predefined and required
25612 # on some systems where configure will not decide to define it.
25613 # (The regexp can be short, since the line contains either #define or #undef.)
25614 echo 's/ $//
25615 s,^[ #]*u.*,/* & */,' >>conftest.defines
25616
25617 # Break up conftest.defines:
25618 ac_max_sed_lines=50
25619
25620 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25621 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25622 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25623 # et cetera.
25624 ac_in='$ac_file_inputs'
25625 ac_out='"$tmp/out1"'
25626 ac_nxt='"$tmp/out2"'
25627
25628 while :
25629 do
25630 # Write a here document:
25631 cat >>$CONFIG_STATUS <<_ACEOF
25632 # First, check the format of the line:
25633 cat >"\$tmp/defines.sed" <<\\CEOF
25634 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25635 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25636 b
25637 :def
25638 _ACEOF
25639 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25640 echo 'CEOF
25641 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25642 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25643 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25644 grep . conftest.tail >/dev/null || break
25645 rm -f conftest.defines
25646 mv conftest.tail conftest.defines
25647 done
25648 rm -f conftest.defines conftest.tail
25649
25650 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25651 cat >>$CONFIG_STATUS <<\_ACEOF
25652 if test x"$ac_file" != x-; then
25653 echo "/* $configure_input */" >"$tmp/config.h"
25654 cat "$ac_result" >>"$tmp/config.h"
25655 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25656 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25657 echo "$as_me: $ac_file is unchanged" >&6;}
25658 else
25659 rm -f $ac_file
25660 mv "$tmp/config.h" $ac_file
25661 fi
25662 else
25663 echo "/* $configure_input */"
25664 cat "$ac_result"
25665 fi
25666 rm -f "$tmp/out12"
25667 ;;
25668
25669 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25670 echo "$as_me: executing $ac_file commands" >&6;}
25671 ;;
25672 esac
25673
25674
25675 case $ac_file$ac_mode in
25676 "default":C)
25677
25678 ### Make the necessary directories, if they don't exist.
25679 for dir in etc lisp ; do
25680 test -d ${dir} || mkdir ${dir}
25681 done
25682
25683 # Build src/Makefile from ${srcdir}/src/Makefile.c
25684 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25685 # This must be done after src/config.h is built, since we rely on that file.
25686
25687 echo creating src/epaths.h
25688 ${MAKE-make} epaths-force
25689
25690 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25691 # `..' to `. .' unless invoked with -traditional
25692
25693 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25694 CPPFLAGS="$CPPFLAGS -traditional"
25695 fi
25696
25697 echo creating lib-src/Makefile
25698 ( cd lib-src
25699 rm -f junk.c junk1.c junk2.c
25700 sed -e '/start of cpp stuff/q' \
25701 < Makefile.c > junk1.c
25702 sed -e '1,/start of cpp stuff/d'\
25703 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25704 < Makefile.c > junk.c
25705 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25706 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25707 cat junk1.c junk2.c > Makefile.new
25708 rm -f junk.c junk1.c junk2.c
25709 chmod 444 Makefile.new
25710 mv -f Makefile.new Makefile
25711 )
25712
25713 echo creating src/Makefile
25714 ( cd src
25715 rm -f junk.c junk1.c junk2.c
25716 sed -e '/start of cpp stuff/q' \
25717 < Makefile.c > junk1.c
25718 sed -e '1,/start of cpp stuff/d'\
25719 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25720 < Makefile.c > junk.c
25721 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25722 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25723 cat junk1.c junk2.c > Makefile.new
25724 rm -f junk.c junk1.c junk2.c
25725 chmod 444 Makefile.new
25726 mv -f Makefile.new Makefile
25727 )
25728
25729 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25730 echo creating src/.gdbinit
25731 echo source $srcdir/src/.gdbinit > src/.gdbinit
25732 fi
25733
25734 ;;
25735
25736 esac
25737 done # for ac_tag
25738
25739
25740 { (exit 0); exit 0; }
25741 _ACEOF
25742 chmod +x $CONFIG_STATUS
25743 ac_clean_files=$ac_clean_files_save
25744
25745
25746 # configure is writing to config.log, and then calls config.status.
25747 # config.status does its own redirection, appending to config.log.
25748 # Unfortunately, on DOS this fails, as config.log is still kept open
25749 # by configure, so config.status won't be able to write to it; its
25750 # output is simply discarded. So we exec the FD to /dev/null,
25751 # effectively closing config.log, so it can be properly (re)opened and
25752 # appended to by config.status. When coming back to configure, we
25753 # need to make the FD available again.
25754 if test "$no_create" != yes; then
25755 ac_cs_success=:
25756 ac_config_status_args=
25757 test "$silent" = yes &&
25758 ac_config_status_args="$ac_config_status_args --quiet"
25759 exec 5>/dev/null
25760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25761 exec 5>>config.log
25762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25763 # would make configure fail if this is the last instruction.
25764 $ac_cs_success || { (exit 1); exit 1; }
25765 fi
25766
25767