Bug fix for vc-dispatcher split.
[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.60.
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.60'
576 PACKAGE_STRING='emacs 23.0.60'
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 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 XMKMF'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 # Accept the important Cygnus configure options, so we can diagnose typos.
814
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
818
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
823
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
828
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
835
836 --config-cache | -C)
837 cache_file=config.cache ;;
838
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
843
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
850
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
869
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
878
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
887
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
891
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
898
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
903
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
909
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
916
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
921
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
926
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
933
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
938
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
945
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
950
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
954
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
958
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
962
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
971
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
976
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
983
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
990
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1007
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1012
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1017
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1021
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1027
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1038
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1043
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1048
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1055
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1060
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1063
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1066
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1075
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1084
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1088
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1095
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1102
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1106 ;;
1107
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1116
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 ;;
1124
1125 esac
1126 done
1127
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1132 fi
1133
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1139 do
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1164 fi
1165 fi
1166
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170 test "$silent" = yes && exec 6>/dev/null
1171
1172
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\).*/{
1206 s//\1/
1207 q
1208 }
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1213 fi
1214 else
1215 ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1243
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1252
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1257
1258 Defaults for the options are specified in brackets.
1259
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1276
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1281
1282 For better control, use the options below.
1283
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1305
1306 cat <<\_ACEOF
1307
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1312
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1316
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1374 --without-makeinfo don't require makeinfo for building manuals
1375
1376 --with-pkg-config-prog=PATH
1377 Path to pkg-config for finding GTK and librsvg
1378 --with-x use the X Window System
1379
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System
1390
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1393
1394 _ACEOF
1395 ac_status=$?
1396 fi
1397
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" || continue
1402 ac_builddir=.
1403
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *)
1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1419
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1449 fi
1450
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 emacs configure 23.0.60
1455 generated by GNU Autoconf 2.61
1456
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462 exit
1463 fi
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1467
1468 It was created by emacs $as_me 23.0.60, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1470
1471 $ $0 $@
1472
1473 _ACEOF
1474 exec 5>>config.log
1475 {
1476 cat <<_ASUNAME
1477 ## --------- ##
1478 ## Platform. ##
1479 ## --------- ##
1480
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497
1498 _ASUNAME
1499
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1506 done
1507 IFS=$as_save_IFS
1508
1509 } >&5
1510
1511 cat >&5 <<_ACEOF
1512
1513
1514 ## ----------- ##
1515 ## Core tests. ##
1516 ## ----------- ##
1517
1518 _ACEOF
1519
1520
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_configure_args=
1527 ac_configure_args0=
1528 ac_configure_args1=
1529 ac_must_keep_next=false
1530 for ac_pass in 1 2
1531 do
1532 for ac_arg
1533 do
1534 case $ac_arg in
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 continue ;;
1539 *\'*)
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 case $ac_pass in
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 2)
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1548 else
1549 case $ac_arg in
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 esac
1557 ;;
1558 -* ) ac_must_keep_next=true ;;
1559 esac
1560 fi
1561 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 ;;
1563 esac
1564 done
1565 done
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1576 {
1577 echo
1578
1579 cat <<\_ASBOX
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1583 _ASBOX
1584 echo
1585 # The following way of writing the cache mishandles newlines in values,
1586 (
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in #(
1590 *${as_nl}*)
1591 case $ac_var in #(
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 esac
1595 case $ac_var in #(
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1598 esac ;;
1599 esac
1600 done
1601 (set) 2>&1 |
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1604 sed -n \
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 ;; #(
1608 *)
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 ;;
1611 esac |
1612 sort
1613 )
1614 echo
1615
1616 cat <<\_ASBOX
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1620 _ASBOX
1621 echo
1622 for ac_var in $ac_subst_vars
1623 do
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1631
1632 if test -n "$ac_subst_files"; then
1633 cat <<\_ASBOX
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1637 _ASBOX
1638 echo
1639 for ac_var in $ac_subst_files
1640 do
1641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
1646 done | sort
1647 echo
1648 fi
1649
1650 if test -s confdefs.h; then
1651 cat <<\_ASBOX
1652 ## ----------- ##
1653 ## confdefs.h. ##
1654 ## ----------- ##
1655 _ASBOX
1656 echo
1657 cat confdefs.h
1658 echo
1659 fi
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1663 } >&5
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 exit $exit_status
1667 ' 0
1668 for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 done
1671 ac_signal=0
1672
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1675
1676 # Predefined preprocessor variables.
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 _ACEOF
1686
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 _ACEOF
1691
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 _ACEOF
1696
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 _ACEOF
1701
1702
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 else
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1712 fi
1713 shift
1714 for ac_site_file
1715 do
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1720 . "$ac_site_file"
1721 fi
1722 done
1723
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1733 esac
1734 fi
1735 else
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1739 fi
1740
1741 ac_header_list="$ac_header_list sys/time.h"
1742 ac_header_list="$ac_header_list unistd.h"
1743 ac_func_list="$ac_func_list alarm"
1744 # Check that the precious variables saved in the cache have kept the same
1745 # value.
1746 ac_cache_corrupted=false
1747 for ac_var in $ac_precious_vars; do
1748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1749 eval ac_new_set=\$ac_env_${ac_var}_set
1750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1751 eval ac_new_val=\$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1753 set,)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,set)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,);;
1762 *)
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted=:
1771 fi;;
1772 esac
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1775 case $ac_new_val in
1776 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg=$ac_var=$ac_new_val ;;
1778 esac
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 esac
1783 fi
1784 done
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1791 fi
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817 ac_ext=c
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822
1823
1824 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1825
1826
1827
1828 test "$program_prefix" != NONE &&
1829 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1830 # Use a double $ so make ignores it.
1831 test "$program_suffix" != NONE &&
1832 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1833 # Double any \ or $. echo might interpret backslashes.
1834 # By default was `s,x,x', remove it if useless.
1835 cat <<\_ACEOF >conftest.sed
1836 s/[\\$]/&&/g;s/;s,x,x,$//
1837 _ACEOF
1838 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1839 rm -f conftest.sed
1840
1841
1842 lispdir='${datadir}/emacs/${version}/lisp'
1843 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1844 '${datadir}/emacs/site-lisp'
1845 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1846 etcdir='${datadir}/emacs/${version}/etc'
1847 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1848 docdir='${datadir}/emacs/${version}/etc'
1849 gamedir='${localstatedir}/games/emacs'
1850
1851 gameuser=games
1852
1853
1854
1855
1856 # Check whether --with-pop was given.
1857 if test "${with_pop+set}" = set; then
1858 withval=$with_pop;
1859 else
1860 with_pop=yes
1861 fi
1862
1863 if test "$with_pop" = yes; then
1864 cat >>confdefs.h <<\_ACEOF
1865 #define MAIL_USE_POP 1
1866 _ACEOF
1867
1868 fi
1869
1870
1871
1872 # Check whether --with-kerberos was given.
1873 if test "${with_kerberos+set}" = set; then
1874 withval=$with_kerberos;
1875 else
1876 with_kerberos=no
1877 fi
1878
1879 if test "$with_kerberos" = yes; then
1880 cat >>confdefs.h <<\_ACEOF
1881 #define KERBEROS 1
1882 _ACEOF
1883
1884 fi
1885
1886
1887
1888 # Check whether --with-kerberos5 was given.
1889 if test "${with_kerberos5+set}" = set; then
1890 withval=$with_kerberos5;
1891 else
1892 with_kerberos5=no
1893 fi
1894
1895 if test "${with_kerberos5}" = yes; then
1896 if test "${with_kerberos}" != yes; then
1897 with_kerberos=yes
1898 cat >>confdefs.h <<\_ACEOF
1899 #define KERBEROS 1
1900 _ACEOF
1901
1902 fi
1903
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS5 1
1906 _ACEOF
1907
1908 fi
1909
1910
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval=$with_hesiod;
1914 else
1915 with_hesiod=no
1916 fi
1917
1918 if test "$with_hesiod" = yes; then
1919
1920 cat >>confdefs.h <<\_ACEOF
1921 #define HESIOD 1
1922 _ACEOF
1923
1924 fi
1925
1926
1927 # Check whether --with-sound was given.
1928 if test "${with_sound+set}" = set; then
1929 withval=$with_sound;
1930 else
1931 with_sound=yes
1932 fi
1933
1934
1935
1936 # Check whether --with-sync-input was given.
1937 if test "${with_sync_input+set}" = set; then
1938 withval=$with_sync_input;
1939 else
1940 with_sync_input=yes
1941 fi
1942
1943 if test "$with_sync_input" = yes; then
1944
1945 cat >>confdefs.h <<\_ACEOF
1946 #define SYNC_INPUT 1
1947 _ACEOF
1948
1949 fi
1950
1951
1952 # Check whether --with-x-toolkit was given.
1953 if test "${with_x_toolkit+set}" = set; then
1954 withval=$with_x_toolkit; case "${withval}" in
1955 y | ye | yes ) val=gtk ;;
1956 n | no ) val=no ;;
1957 l | lu | luc | luci | lucid ) val=lucid ;;
1958 a | at | ath | athe | athen | athena ) val=athena ;;
1959 m | mo | mot | moti | motif ) val=motif ;;
1960 g | gt | gtk ) val=gtk ;;
1961 * )
1962 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1964 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1965 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1966 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1967 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1968 { (exit 1); exit 1; }; }
1969 ;;
1970 esac
1971 with_x_toolkit=$val
1972
1973 fi
1974
1975
1976
1977 # Check whether --with-xpm was given.
1978 if test "${with_xpm+set}" = set; then
1979 withval=$with_xpm;
1980 else
1981 with_xpm=yes
1982 fi
1983
1984
1985 # Check whether --with-jpeg was given.
1986 if test "${with_jpeg+set}" = set; then
1987 withval=$with_jpeg;
1988 else
1989 with_jpeg=yes
1990 fi
1991
1992
1993 # Check whether --with-tiff was given.
1994 if test "${with_tiff+set}" = set; then
1995 withval=$with_tiff;
1996 else
1997 with_tiff=yes
1998 fi
1999
2000
2001 # Check whether --with-gif was given.
2002 if test "${with_gif+set}" = set; then
2003 withval=$with_gif;
2004 else
2005 with_gif=yes
2006 fi
2007
2008
2009 # Check whether --with-png was given.
2010 if test "${with_png+set}" = set; then
2011 withval=$with_png;
2012 else
2013 with_png=yes
2014 fi
2015
2016
2017 # Check whether --with-rsvg was given.
2018 if test "${with_rsvg+set}" = set; then
2019 withval=$with_rsvg;
2020 else
2021 with_rsvg=yes
2022 fi
2023
2024
2025
2026 # Check whether --with-freetype was given.
2027 if test "${with_freetype+set}" = set; then
2028 withval=$with_freetype;
2029 else
2030 with_freetype=yes
2031 fi
2032
2033
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2036 withval=$with_xft;
2037 else
2038 with_xft=yes
2039 fi
2040
2041
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval=$with_libotf;
2045 else
2046 with_libotf=yes
2047 fi
2048
2049
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval=$with_m17n_flt;
2053 else
2054 with_m17n_flt=yes
2055 fi
2056
2057
2058
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval=$with_toolkit_scroll_bars;
2062 else
2063 with_toolkit_scroll_bars=yes
2064 fi
2065
2066
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval=$with_xaw3d;
2070 else
2071 with_xaw3d=yes
2072 fi
2073
2074
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2077 withval=$with_xim;
2078 else
2079 with_xim=yes
2080 fi
2081
2082
2083 # Check whether --with-carbon was given.
2084 if test "${with_carbon+set}" = set; then
2085 withval=$with_carbon;
2086 else
2087 with_carbon=no
2088 fi
2089
2090
2091
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2094 withval=$with_gpm;
2095 else
2096 with_gpm=yes
2097 fi
2098
2099
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2102 withval=$with_dbus;
2103 else
2104 with_dbus=yes
2105 fi
2106
2107
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2110
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval=$with_makeinfo;
2114 else
2115 with_makeinfo=yes
2116 fi
2117
2118
2119
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2127 fi
2128
2129
2130
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139
2140
2141
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval=$with_pkg_config_prog;
2145 fi
2146
2147 if test "X${with_pkg_config_prog}" != X; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG="${with_pkg_config_prog}"
2150 fi
2151 fi
2152
2153 # Check whether --enable-carbon-app was given.
2154 if test "${enable_carbon_app+set}" = set; then
2155 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2156 fi
2157
2158
2159 ## Enabled by default.
2160 # Check whether --enable-font-backend was given.
2161 if test "${enable_font_backend+set}" = set; then
2162 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2163 else
2164 USE_FONT_BACKEND=yes
2165 fi
2166
2167
2168 # Check whether --enable-asserts was given.
2169 if test "${enable_asserts+set}" = set; then
2170 enableval=$enable_asserts; USE_XASSERTS=$enableval
2171 else
2172 USE_XASSERTS=no
2173 fi
2174
2175
2176 # Check whether --enable-maintainer-mode was given.
2177 if test "${enable_maintainer_mode+set}" = set; then
2178 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2179 else
2180 USE_MAINTAINER_MODE=no
2181 fi
2182
2183 if test $USE_MAINTAINER_MODE = yes; then
2184 MAINT=
2185 else
2186 MAINT=#
2187 fi
2188
2189
2190 # Check whether --enable-locallisppath was given.
2191 if test "${enable_locallisppath+set}" = set; then
2192 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2193 locallisppath=
2194 elif test "${enableval}" != "yes"; then
2195 locallisppath=${enableval}
2196 fi
2197 fi
2198
2199
2200 #### Make srcdir absolute, if it isn't already. It's important to
2201 #### avoid running the path through pwd unnecessarily, since pwd can
2202 #### give you automounter prefixes, which can go away. We do all this
2203 #### so Emacs can find its files when run uninstalled.
2204 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2205 unset CDPATH
2206 case "${srcdir}" in
2207 /* ) ;;
2208 . )
2209 ## We may be able to use the $PWD environment variable to make this
2210 ## absolute. But sometimes PWD is inaccurate.
2211 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2212 ## but that tested only for a well-formed and valid PWD,
2213 ## it did not object when PWD was well-formed and valid but just wrong.
2214 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2215 then
2216 srcdir="$PWD"
2217 else
2218 srcdir="`(cd ${srcdir}; pwd)`"
2219 fi
2220 ;;
2221 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2222 esac
2223
2224 #### Check if the source directory already has a configured system in it.
2225 if test `pwd` != `(cd ${srcdir} && pwd)` \
2226 && test -f "${srcdir}/src/config.h" ; then
2227 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2228 as a build directory right now; it has been configured in its own
2229 right. To configure in another directory as well, you MUST
2230 use GNU make. If you do not have GNU make, then you must
2231 now do \`make distclean' in ${srcdir},
2232 and then run $0 again." >&5
2233 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2234 as a build directory right now; it has been configured in its own
2235 right. To configure in another directory as well, you MUST
2236 use GNU make. If you do not have GNU make, then you must
2237 now do \`make distclean' in ${srcdir},
2238 and then run $0 again." >&2;}
2239 fi
2240
2241 #### Given the configuration name, set machfile and opsysfile to the
2242 #### names of the m/*.h and s/*.h files we should use.
2243
2244 ### Canonicalize the configuration name.
2245
2246 ac_aux_dir=
2247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/install-sh -c"
2251 break
2252 elif test -f "$ac_dir/install.sh"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/install.sh -c"
2255 break
2256 elif test -f "$ac_dir/shtool"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/shtool install -c"
2259 break
2260 fi
2261 done
2262 if test -z "$ac_aux_dir"; then
2263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2266 fi
2267
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2275
2276
2277 # Make sure we can run config.sub.
2278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2281 { (exit 1); exit 1; }; }
2282
2283 { echo "$as_me:$LINENO: checking build system type" >&5
2284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2285 if test "${ac_cv_build+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 ac_build_alias=$build_alias
2289 test "x$ac_build_alias" = x &&
2290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2291 test "x$ac_build_alias" = x &&
2292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2294 { (exit 1); exit 1; }; }
2295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2299
2300 fi
2301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2302 echo "${ECHO_T}$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2304 *-*-*) ;;
2305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2306 echo "$as_me: error: invalid value of canonical build" >&2;}
2307 { (exit 1); exit 1; }; };;
2308 esac
2309 build=$ac_cv_build
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_build
2312 shift
2313 build_cpu=$1
2314 build_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 build_os=$*
2319 IFS=$ac_save_IFS
2320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2321
2322
2323 { echo "$as_me:$LINENO: checking host system type" >&5
2324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2325 if test "${ac_cv_host+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test "x$host_alias" = x; then
2329 ac_cv_host=$ac_cv_build
2330 else
2331 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2334 { (exit 1); exit 1; }; }
2335 fi
2336
2337 fi
2338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2339 echo "${ECHO_T}$ac_cv_host" >&6; }
2340 case $ac_cv_host in
2341 *-*-*) ;;
2342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2343 echo "$as_me: error: invalid value of canonical host" >&2;}
2344 { (exit 1); exit 1; }; };;
2345 esac
2346 host=$ac_cv_host
2347 ac_save_IFS=$IFS; IFS='-'
2348 set x $ac_cv_host
2349 shift
2350 host_cpu=$1
2351 host_vendor=$2
2352 shift; shift
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2355 host_os=$*
2356 IFS=$ac_save_IFS
2357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2358
2359
2360 canonical=$host
2361 configuration=${host_alias-${build_alias-$host}}
2362
2363
2364
2365 ### If you add support for a new configuration, add code to this
2366 ### switch statement to recognize your configuration name and select
2367 ### the appropriate operating system and machine description files.
2368
2369 ### You would hope that you could choose an m/*.h file pretty much
2370 ### based on the machine portion of the configuration name, and an s-
2371 ### file based on the operating system portion. However, it turns out
2372 ### that each m/*.h file is pretty manufacturer-specific - for
2373 ### example hp9000s300.h is a 68000 machine;
2374 ### mips.h, pmax.h are all MIPS
2375 ### machines. So we basically have to have a special case for each
2376 ### configuration name.
2377 ###
2378 ### As far as handling version numbers on operating systems is
2379 ### concerned, make sure things will fail in a fixable way. If
2380 ### /etc/MACHINES doesn't say anything about version numbers, be
2381 ### prepared to handle anything reasonably. If version numbers
2382 ### matter, be sure /etc/MACHINES says something about it.
2383 ###
2384 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2385 ### "System V Release 4"; he writes, "The old convention encouraged
2386 ### confusion between `system' and `release' levels'."
2387
2388 machine='' opsys='' unported=no
2389 case "${canonical}" in
2390
2391 ## FreeBSD ports
2392 *-*-freebsd* )
2393 opsys=freebsd
2394 case "${canonical}" in
2395 alpha*-*-freebsd*) machine=alpha ;;
2396 arm*-*-freebsd*) machine=arm ;;
2397 ia64-*-freebsd*) machine=ia64 ;;
2398 sparc64-*-freebsd*) machine=sparc ;;
2399 powerpc-*-freebsd*) machine=macppc ;;
2400 i[3456]86-*-freebsd*) machine=intel386 ;;
2401 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2402 esac
2403 ;;
2404
2405 ## FreeBSD kernel + glibc based userland
2406 *-*-kfreebsd*gnu* )
2407 opsys=gnu-kfreebsd
2408 case "${canonical}" in
2409 alpha*-*-kfreebsd*) machine=alpha ;;
2410 ia64-*-kfreebsd*) machine=ia64 ;;
2411 sparc64-*-kfreebsd*) machine=sparc ;;
2412 powerpc-*-kfreebsd*) machine=macppc ;;
2413 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2414 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2415 esac
2416 ;;
2417
2418 ## NetBSD ports
2419 *-*-netbsd* )
2420 opsys=netbsd
2421 if test -f /usr/lib/crti.o; then
2422
2423 cat >>confdefs.h <<\_ACEOF
2424 #define HAVE_CRTIN
2425 _ACEOF
2426
2427 fi
2428
2429 case "${canonical}" in
2430 alpha*-*-netbsd*) machine=alpha ;;
2431 i[3456]86-*-netbsd*) machine=intel386 ;;
2432 m68k-*-netbsd*)
2433 # This is somewhat bogus.
2434 machine=hp9000s300 ;;
2435 mips-*-netbsd*) machine=pmax ;;
2436 mipsel-*-netbsd*) machine=pmax ;;
2437 mipseb-*-netbsd*) machine=pmax ;;
2438 powerpc-*-netbsd*) machine=macppc ;;
2439 sparc*-*-netbsd*) machine=sparc ;;
2440 vax-*-netbsd*) machine=vax ;;
2441 arm-*-netbsd*) machine=arm ;;
2442 x86_64-*-netbsd*) machine=amdx86-64 ;;
2443 hppa-*-netbsd*) machine=hp800 ;;
2444 esac
2445 ;;
2446
2447 ## OpenBSD ports
2448 *-*-openbsd* )
2449 opsys=openbsd
2450 case "${canonical}" in
2451 alpha*-*-openbsd*) machine=alpha ;;
2452 arm-*-openbsd*) machine=arm ;;
2453 hppa-*-openbsd*) machine=hp9000s300 ;;
2454 i386-*-openbsd*) machine=intel386 ;;
2455 m68k-*-openbsd*) machine=hp9000s300 ;;
2456 powerpc-*-openbsd*) machine=macppc ;;
2457 sparc*-*-openbsd*) machine=sparc ;;
2458 vax-*-openbsd*) machine=vax ;;
2459 x86_64-*-openbsd*) machine=amdx86-64 ;;
2460 esac
2461 ;;
2462
2463 ## LynxOS ports
2464 *-*-lynxos* )
2465 opsys=lynxos
2466 case "${canonical}" in
2467 i[3456]86-*-lynxos*) machine=intel386 ;;
2468 powerpc-*-lynxos*) machine=powerpc ;;
2469 esac
2470 ;;
2471
2472 ## BSDI ports
2473 *-*-bsdi* )
2474 opsys=bsdi
2475 case "${canonical}" in
2476 i[345]86-*-bsdi*) machine=intel386 ;;
2477 sparc-*-bsdi*) machine=sparc ;;
2478 powerpc-*-bsdi*) machine=macppc ;;
2479 esac
2480 case "${canonical}" in
2481 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2482 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2483 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2484 *-*-bsdi3* ) opsys=bsdos3 ;;
2485 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2486 esac
2487 ;;
2488
2489 alpha*-*-linux-gnu* )
2490 machine=alpha opsys=gnu-linux
2491 ;;
2492
2493 arm*-*-linux-gnu* )
2494 machine=arm opsys=gnu-linux
2495 ;;
2496
2497 ## Apple Darwin / Mac OS X
2498 *-apple-darwin* )
2499 case "${canonical}" in
2500 i[3456]86-* ) machine=intel386 ;;
2501 powerpc-* ) machine=powermac ;;
2502 * ) unported=yes ;;
2503 esac
2504 opsys=darwin
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw/include && test -d /sw/lib; then
2509 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2510 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2512 fi
2513 ;;
2514
2515 ## Cubix QBx/386
2516 i[3456]86-cubix-sysv* )
2517 machine=intel386 opsys=usg5-3
2518 ;;
2519
2520 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2521 machine=pmax opsys=bsd4-2
2522 ;;
2523 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2524 machine=pmax opsys=bsd4-3
2525 ;;
2526 mips-dec-ultrix* )
2527 machine=pmax opsys=ultrix4-3
2528 ;;
2529 ## HP 9000 series 200 or 300
2530 m68*-hp-bsd* )
2531 machine=hp9000s300 opsys=bsd4-3
2532 ;;
2533 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2534 m68*-hp-hpux* )
2535 case "`uname -r`" in
2536 ## Someone's system reports A.B8.05 for this.
2537 ## I wonder what other possibilities there are.
2538 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2539 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2540 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2541 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2542 *) machine=hp9000s300 opsys=hpux ;;
2543 esac
2544 ;;
2545
2546 ## HP 9000 series 700 and 800, running HP/UX
2547 hppa*-hp-hpux7* )
2548 machine=hp800 opsys=hpux
2549 ;;
2550 hppa*-hp-hpux8* )
2551 machine=hp800 opsys=hpux8
2552 ;;
2553 hppa*-hp-hpux9shr* )
2554 machine=hp800 opsys=hpux9shr
2555 ;;
2556 hppa*-hp-hpux9* )
2557 machine=hp800 opsys=hpux9
2558 ;;
2559 hppa*-hp-hpux10.2* )
2560 machine=hp800 opsys=hpux10-20
2561 ;;
2562 hppa*-hp-hpux10* )
2563 machine=hp800 opsys=hpux10
2564 ;;
2565 hppa*-hp-hpux1[1-9]* )
2566 machine=hp800 opsys=hpux11
2567 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2568 ;;
2569
2570 hppa*-*-linux-gnu* )
2571 machine=hp800 opsys=gnu-linux
2572 ;;
2573
2574 ## HP 9000 series 700 and 800, running HP/UX
2575 hppa*-hp-hpux* )
2576 ## Cross-compilation? Nah!
2577 case "`uname -r`" in
2578 ## Someone's system reports A.B8.05 for this.
2579 ## I wonder what other possibilities there are.
2580 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2581 *.08.* ) machine=hp800 opsys=hpux8 ;;
2582 *.09.* ) machine=hp800 opsys=hpux9 ;;
2583 *) machine=hp800 opsys=hpux10 ;;
2584 esac
2585 ;;
2586 hppa*-*-nextstep* )
2587 machine=hp800 opsys=nextstep
2588 ;;
2589
2590 ## IBM machines
2591 i370-ibm-aix*)
2592 machine=ibm370aix opsys=usg5-3
2593 ;;
2594 s390-*-linux-gnu* )
2595 machine=ibms390 opsys=gnu-linux
2596 ;;
2597 s390x-*-linux-gnu* )
2598 machine=ibms390x opsys=gnu-linux
2599 ;;
2600 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2601 machine=ibmrs6000 opsys=aix3-1
2602 ;;
2603 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2604 machine=ibmrs6000 opsys=aix3-2-5
2605 ;;
2606 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2607 machine=ibmrs6000 opsys=aix4-1
2608 ;;
2609 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2610 machine=ibmrs6000 opsys=aix4-2
2611 ;;
2612 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2613 machine=ibmrs6000 opsys=aix4-2
2614 ;;
2615 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2616 machine=ibmrs6000 opsys=aix4-2
2617 ;;
2618 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2619 machine=ibmrs6000 opsys=aix4-2
2620 ;;
2621 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2622 machine=ibmrs6000 opsys=aix4
2623 ;;
2624 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2625 machine=ibmrs6000 opsys=aix4-1
2626 ;;
2627 rs6000-ibm-aix* | powerpc-ibm-aix* )
2628 machine=ibmrs6000 opsys=aix3-2
2629 ;;
2630
2631 ## Prime EXL
2632 i[3456]86-prime-sysv* )
2633 machine=i386 opsys=usg5-3
2634 ;;
2635
2636 ## ncr machine running svr4.3.
2637 i[3456]86-ncr-sysv4.3 )
2638 machine=ncr386 opsys=usg5-4-3
2639 ;;
2640
2641 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2642 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2643 i[3456]86-ncr-sysv* )
2644 machine=ncr386 opsys=usg5-4-2
2645 ;;
2646
2647 ## Macintosh PowerPC
2648 powerpc*-*-linux-gnu* )
2649 machine=macppc opsys=gnu-linux
2650 ;;
2651
2652 ## Workstations sold by MIPS
2653 ## This is not necessarily all workstations using the MIPS processor -
2654 ## Irises are produced by SGI, and DECstations by DEC.
2655
2656 mips-mips-bsd* )
2657 machine=mips opsys=bsd4-3
2658 ;;
2659 mips-mips-* )
2660 machine=mips opsys=usg5-2-2
2661 ;;
2662
2663 ## NeXT
2664 m68*-next-* | m68k-*-nextstep* )
2665 machine=m68k opsys=nextstep
2666 ;;
2667
2668 ## NEC EWS4800
2669 mips-nec-sysv4*)
2670 machine=ews4800 opsys=ux4800
2671 ;;
2672
2673 ## Siemens Nixdorf
2674 mips-siemens-sysv* | mips-sni-sysv*)
2675 machine=mips-siemens opsys=usg5-4
2676 NON_GNU_CC=/usr/ccs/bin/cc
2677 NON_GNU_CPP=/usr/ccs/lib/cpp
2678 ;;
2679
2680 ## Silicon Graphics machines
2681 ## Iris 4D
2682 mips-sgi-irix6.5 )
2683 machine=iris4d opsys=irix6-5
2684 # Without defining _LANGUAGE_C, things get masked out in the headers
2685 # so that, for instance, grepping for `free' in stdlib.h fails and
2686 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2687 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2688 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2689 ;;
2690
2691 ## Suns
2692 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2693 machine=sparc opsys=gnu-linux
2694 ;;
2695
2696 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2697 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2698 | rs6000-*-solaris2*)
2699 case "${canonical}" in
2700 i[3456]86-*-* ) machine=intel386 ;;
2701 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2702 powerpcle* ) machine=powerpcle ;;
2703 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2704 sparc* ) machine=sparc ;;
2705 * ) unported=yes ;;
2706 esac
2707 case "${canonical}" in
2708 *-sunos5.3* | *-solaris2.3* )
2709 opsys=sol2-3
2710 NON_GNU_CPP=/usr/ccs/lib/cpp
2711 ;;
2712 *-sunos5.4* | *-solaris2.4* )
2713 opsys=sol2-4
2714 NON_GNU_CPP=/usr/ccs/lib/cpp
2715 RANLIB="ar -ts"
2716 ;;
2717 *-sunos5.5* | *-solaris2.5* )
2718 opsys=sol2-5
2719 NON_GNU_CPP=/usr/ccs/lib/cpp
2720 RANLIB="ar -ts"
2721 ;;
2722 *-sunos5.6* | *-solaris2.6* )
2723 opsys=sol2-6
2724 NON_GNU_CPP=/usr/ccs/lib/cpp
2725 RANLIB="ar -ts"
2726 ;;
2727 *-sunos5* | *-solaris* )
2728 opsys=sol2-6
2729 emacs_check_sunpro_c=yes
2730 NON_GNU_CPP=/usr/ccs/lib/cpp
2731 ;;
2732 * ) opsys=bsd4-2 ;;
2733 esac
2734 ## Watch out for a compiler that we know will not work.
2735 case "${canonical}" in
2736 *-solaris* | *-sunos5* )
2737 if [ "x$CC" = x/usr/ucb/cc ]; then
2738 ## /usr/ucb/cc doesn't work;
2739 ## we should find some other compiler that does work.
2740 unset CC
2741 fi
2742 ;;
2743 *) ;;
2744 esac
2745 ;;
2746 sparc-*-nextstep* )
2747 machine=sparc opsys=nextstep
2748 ;;
2749
2750 ## Tandem Integrity S2
2751 mips-tandem-sysv* )
2752 machine=tandem-s2 opsys=usg5-3
2753 ;;
2754
2755 ## Vaxen.
2756 vax-dec-* )
2757 machine=vax
2758 case "${canonical}" in
2759 *-bsd4.1* ) opsys=bsd4-1 ;;
2760 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2761 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2762 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2763 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2764 *-vms* ) opsys=vms ;;
2765 * ) unported=yes
2766 esac
2767 ;;
2768
2769 ## IA-64
2770 ia64*-*-linux* )
2771 machine=ia64 opsys=gnu-linux
2772 ;;
2773
2774 ## Intel 386 machines where we don't care about the manufacturer
2775 i[3456]86-*-* )
2776 machine=intel386
2777 case "${canonical}" in
2778 *-cygwin ) opsys=cygwin ;;
2779 *-darwin* ) opsys=darwin
2780 CPP="${CC-cc} -E -no-cpp-precomp"
2781 ;;
2782 *-linux-gnu* ) opsys=gnu-linux ;;
2783 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2784 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2785 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2786 *-386bsd* ) opsys=386bsd ;;
2787 *-nextstep* ) opsys=nextstep ;;
2788 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2789 esac
2790 ;;
2791
2792 ## m68k Linux-based GNU system
2793 m68k-*-linux-gnu* )
2794 machine=m68k opsys=gnu-linux
2795 ;;
2796
2797 ## Mips Linux-based GNU system
2798 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2799 machine=mips opsys=gnu-linux
2800 ;;
2801
2802 ## UXP/DS
2803 sparc-fujitsu-sysv4* )
2804 machine=sparc opsys=uxpds
2805 NON_GNU_CPP=/usr/ccs/lib/cpp
2806 RANLIB="ar -ts"
2807 ;;
2808
2809 ## AMD x86-64 Linux-based GNU system
2810 x86_64-*-linux-gnu* )
2811 machine=amdx86-64 opsys=gnu-linux
2812 ;;
2813
2814 ## Tensilica Xtensa Linux-based GNU system
2815 xtensa*-*-linux-gnu* )
2816 machine=xtensa opsys=gnu-linux
2817 ;;
2818
2819 * )
2820 unported=yes
2821 ;;
2822 esac
2823
2824 ### If the code above didn't choose an operating system, just choose
2825 ### an operating system based on the configuration name. You really
2826 ### only want to use this when you have no idea what the right
2827 ### operating system is; if you know what operating systems a machine
2828 ### runs, it's cleaner to make it explicit in the case statement
2829 ### above.
2830 if test x"${opsys}" = x; then
2831 case "${canonical}" in
2832 *-gnu* ) opsys=gnu ;;
2833 *-bsd4.[01] ) opsys=bsd4-1 ;;
2834 *-bsd4.2 ) opsys=bsd4-2 ;;
2835 *-bsd4.3 ) opsys=bsd4-3 ;;
2836 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2837 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2838 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2839 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2840 *-sysv4.2uw* ) opsys=unixware ;;
2841 *-sysv5uw* ) opsys=unixware ;;
2842 *-sysv5OpenUNIX* ) opsys=unixware ;;
2843 *-sysv4.1* | *-sysvr4.1* )
2844 NON_GNU_CPP=/usr/lib/cpp
2845 opsys=usg5-4 ;;
2846 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2847 if [ x$NON_GNU_CPP = x ]; then
2848 if [ -f /usr/ccs/lib/cpp ]; then
2849 NON_GNU_CPP=/usr/ccs/lib/cpp
2850 else
2851 NON_GNU_CPP=/lib/cpp
2852 fi
2853 fi
2854 opsys=usg5-4-2 ;;
2855 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2856 * )
2857 unported=yes
2858 ;;
2859 esac
2860 fi
2861
2862 ### Tests for sytems that we beleive are obsolete and should be desupported.
2863
2864 case "${machine}" in
2865 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2866 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2867 echo "and it is planned to be desupported in the next version of Emacs"
2868 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2869 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2870 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2871 exit 33
2872 ;;
2873 esac
2874
2875 case "${opsys}" in
2876 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2877 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2878 echo "and it is planned to be desupported in the next version of Emacs"
2879 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2880 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2881 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2882 exit 44
2883 ;;
2884 esac
2885
2886
2887
2888 if test $unported = yes; then
2889 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2890 Check \`etc/MACHINES' for recognized configuration names." >&5
2891 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895
2896 machfile="m/${machine}.h"
2897 opsysfile="s/${opsys}.h"
2898
2899
2900 #### Choose a compiler.
2901 test -n "$CC" && cc_specified=yes
2902
2903 # Save the value of CFLAGS that the user specified.
2904 SPECIFIED_CFLAGS="$CFLAGS"
2905
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 { echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6; }
2943 else
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$ac_cv_prog_CC"; then
2951 ac_ct_CC=$CC
2952 # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc; ac_word=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC="gcc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2983 else
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2986 fi
2987
2988 if test "x$ac_ct_CC" = x; then
2989 CC=""
2990 else
2991 case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&5
2996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001 CC=$ac_ct_CC
3002 fi
3003 else
3004 CC="$ac_cv_prog_CC"
3005 fi
3006
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}cc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3040 else
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3043 fi
3044
3045
3046 fi
3047 fi
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 ac_prog_rejected=no
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected=yes
3069 continue
3070 fi
3071 ac_cv_prog_CC="cc"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy $ac_cv_prog_CC
3082 shift
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3087 shift
3088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 fi
3090 fi
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3097 else
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3100 fi
3101
3102
3103 fi
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in cl.exe
3107 do
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { echo "$as_me:$LINENO: result: $CC" >&5
3138 echo "${ECHO_T}$CC" >&6; }
3139 else
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3142 fi
3143
3144
3145 test -n "$CC" && break
3146 done
3147 fi
3148 if test -z "$CC"; then
3149 ac_ct_CC=$CC
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 echo "${ECHO_T}$ac_ct_CC" >&6; }
3183 else
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3186 fi
3187
3188
3189 test -n "$ac_ct_CC" && break
3190 done
3191
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3206 fi
3207 fi
3208
3209 fi
3210
3211
3212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3217
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO: checking for C compiler version" >&5
3220 ac_compiler=`set X $ac_compile; echo $2`
3221 { (ac_try="$ac_compiler --version >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler --version >&5") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -v >&5"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -v >&5") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 { (ac_try="$ac_compiler -V >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3274 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275 #
3276 # List of possible output files, starting from the most likely.
3277 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3278 # only as a last resort. b.out is created by i960 compilers.
3279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3280 #
3281 # The IRIX 6 linker writes into existing files which may not be
3282 # executable, retaining their permissions. Remove them first so a
3283 # subsequent execution test works.
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3286 do
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290 esac
3291 done
3292 rm -f $ac_rmfiles
3293
3294 if { (ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link_default") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3308 # Autoconf.
3309 for ac_file in $ac_files ''
3310 do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3314 ;;
3315 [ab].out )
3316 # We found the default executable, but exeext='' is most
3317 # certainly right.
3318 break;;
3319 *.* )
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3321 then :; else
3322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 fi
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3328 # actually working.
3329 break;;
3330 * )
3331 break;;
3332 esac
3333 done
3334 test "$ac_cv_exeext" = no && ac_cv_exeext=
3335
3336 else
3337 ac_file=''
3338 fi
3339
3340 { echo "$as_me:$LINENO: result: $ac_file" >&5
3341 echo "${ECHO_T}$ac_file" >&6; }
3342 if test -z "$ac_file"; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C compiler cannot create executables
3349 See \`config.log' for more details." >&2;}
3350 { (exit 77); exit 77; }; }
3351 fi
3352
3353 ac_exeext=$ac_cv_exeext
3354
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3360 # If not cross compiling, check that we can run a simple program.
3361 if test "$cross_compiling" != yes; then
3362 if { ac_try='./$ac_file'
3363 { (case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details." >&5
3380 echo "$as_me: error: cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3384 fi
3385 fi
3386 fi
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3389
3390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3397 echo "${ECHO_T}$cross_compiling" >&6; }
3398
3399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3401 if { (ac_try="$ac_link"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3413 # work properly (i.e., refer to `conftest.exe'), while it won't with
3414 # `rm'.
3415 for ac_file in conftest.exe conftest conftest.*; do
3416 test -f "$ac_file" || continue
3417 case $ac_file in
3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 break;;
3421 * ) break;;
3422 esac
3423 done
3424 else
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3430 fi
3431
3432 rm -f conftest$ac_cv_exeext
3433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3435
3436 rm -f conftest.$ac_ext
3437 EXEEXT=$ac_cv_exeext
3438 ac_exeext=$EXEEXT
3439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3441 if test "${ac_cv_objext+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450
3451 int
3452 main ()
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.o conftest.obj
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3483 See \`config.log' for more details." >&5
3484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details." >&2;}
3486 { (exit 1); exit 1; }; }
3487 fi
3488
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 fi
3491 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3492 echo "${ECHO_T}$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3535 ac_compiler_gnu=yes
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 ac_compiler_gnu=no
3541 fi
3542
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546 fi
3547 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3549 GCC=`test $ac_compiler_gnu = yes && echo yes`
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cc_g=yes
3594 else
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 CFLAGS=""
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 :
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 CFLAGS="-g"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3670 ac_cv_prog_cc_g=yes
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675
3676 fi
3677
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 fi
3683
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 fi
3687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3693 CFLAGS="-g -O2"
3694 else
3695 CFLAGS="-g"
3696 fi
3697 else
3698 if test "$GCC" = yes; then
3699 CFLAGS="-O2"
3700 else
3701 CFLAGS=
3702 fi
3703 fi
3704 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3705 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3725 char **p;
3726 int i;
3727 {
3728 return p[i];
3729 }
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3731 {
3732 char *s;
3733 va_list v;
3734 va_start (v,p);
3735 s = g (p, va_arg (v,int));
3736 va_end (v);
3737 return s;
3738 }
3739
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3751 #define FOO(x) 'x'
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 int argc;
3759 char **argv;
3760 int
3761 main ()
3762 {
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 do
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_c89=$ac_arg
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794
3795 fi
3796
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3802
3803 fi
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3806 x)
3807 { echo "$as_me:$LINENO: result: none needed" >&5
3808 echo "${ECHO_T}none needed" >&6; } ;;
3809 xno)
3810 { echo "$as_me:$LINENO: result: unsupported" >&5
3811 echo "${ECHO_T}unsupported" >&6; } ;;
3812 *)
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3817
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3829 fi
3830
3831 ## If not using gcc, and on Solaris, and no CPP specified, see if
3832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3834 test x"$CPP" = x; then
3835 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3836 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3837
3838 if test "${emacs_cv_sunpro_c+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847
3848 int
3849 main ()
3850 {
3851 #ifndef __SUNPRO_C
3852 fail;
3853 #endif
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext &&
3876 $as_test_x conftest$ac_exeext; then
3877 emacs_cv_sunpro_c=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 emacs_cv_sunpro_c=no
3883 fi
3884
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886 conftest$ac_exeext conftest.$ac_ext
3887 fi
3888
3889 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3890 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3891
3892 if test x"$emacs_cv_sunpro_c" = xyes; then
3893 NON_GNU_CPP="$CC -E -Xs"
3894 fi
3895 fi
3896
3897 #### Some systems specify a CPP to use unless we are using GCC.
3898 #### Now that we know whether we are using GCC, we can decide whether
3899 #### to use that one.
3900 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3901 then
3902 CPP="$NON_GNU_CPP"
3903 fi
3904
3905 #### Some systems specify a CC to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3909 test x$cc_specified != xyes
3910 then
3911 CC="$NON_GNU_CC"
3912 fi
3913
3914 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3915 then
3916 CC="$CC $GCC_TEST_OPTIONS"
3917 fi
3918
3919 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3920 then
3921 CC="$CC $NON_GCC_TEST_OPTIONS"
3922 fi
3923
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _GNU_SOURCE 1
3927 _ACEOF
3928
3929
3930 ac_ext=c
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3936 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3937 # On Suns, sometimes $CPP names a directory.
3938 if test -n "$CPP" && test -d "$CPP"; then
3939 CPP=
3940 fi
3941 if test -z "$CPP"; then
3942 if test "${ac_cv_prog_CPP+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 # Double quotes because CPP needs to be expanded
3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3947 do
3948 ac_preproc_ok=false
3949 for ac_c_preproc_warn_flag in '' yes
3950 do
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #ifdef __STDC__
3964 # include <limits.h>
3965 #else
3966 # include <assert.h>
3967 #endif
3968 Syntax error
3969 _ACEOF
3970 if { (ac_try="$ac_cpp conftest.$ac_ext"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } >/dev/null && {
3983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3985 }; then
3986 :
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 # Broken: fails on valid input.
3992 continue
3993 fi
3994
3995 rm -f conftest.err conftest.$ac_ext
3996
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null && {
4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 }; then
4023 # Broken: success on invalid input.
4024 continue
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033
4034 rm -f conftest.err conftest.$ac_ext
4035
4036 done
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then
4040 break
4041 fi
4042
4043 done
4044 ac_cv_prog_CPP=$CPP
4045
4046 fi
4047 CPP=$ac_cv_prog_CPP
4048 else
4049 ac_cv_prog_CPP=$CPP
4050 fi
4051 { echo "$as_me:$LINENO: result: $CPP" >&5
4052 echo "${ECHO_T}$CPP" >&6; }
4053 ac_preproc_ok=false
4054 for ac_c_preproc_warn_flag in '' yes
4055 do
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error" is here to catch this case.
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #ifdef __STDC__
4069 # include <limits.h>
4070 #else
4071 # include <assert.h>
4072 #endif
4073 Syntax error
4074 _ACEOF
4075 if { (ac_try="$ac_cpp conftest.$ac_ext"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 }; then
4091 :
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 # Broken: fails on valid input.
4097 continue
4098 fi
4099
4100 rm -f conftest.err conftest.$ac_ext
4101
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4111 _ACEOF
4112 if { (ac_try="$ac_cpp conftest.$ac_ext"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4137 fi
4138
4139 rm -f conftest.err conftest.$ac_ext
4140
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 :
4146 else
4147 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4148 See \`config.log' for more details." >&5
4149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log' for more details." >&2;}
4151 { (exit 1); exit 1; }; }
4152 fi
4153
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4162 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4163 if test "${ac_cv_path_GREP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 # Extract the first word of "grep ggrep" to use in msg output
4167 if test -z "$GREP"; then
4168 set dummy grep ggrep; ac_prog_name=$2
4169 if test "${ac_cv_path_GREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in grep ggrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4186 *GNU*)
4187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4188 *)
4189 ac_count=0
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191 while :
4192 do
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 ac_count=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP="$ac_path_GREP"
4203 ac_path_GREP_max=$ac_count
4204 fi
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211
4212 $ac_path_GREP_found && break 3
4213 done
4214 done
4215
4216 done
4217 IFS=$as_save_IFS
4218
4219
4220 fi
4221
4222 GREP="$ac_cv_path_GREP"
4223 if test -z "$GREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4227 fi
4228
4229 else
4230 ac_cv_path_GREP=$GREP
4231 fi
4232
4233
4234 fi
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4237 GREP="$ac_cv_path_GREP"
4238
4239
4240 { echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4246 then ac_cv_path_EGREP="$GREP -E"
4247 else
4248 # Extract the first word of "egrep" to use in msg output
4249 if test -z "$EGREP"; then
4250 set dummy egrep; ac_prog_name=$2
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 ac_path_EGREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in egrep; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4268 *GNU*)
4269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4270 *)
4271 ac_count=0
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4273 while :
4274 do
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 ac_count=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP="$ac_path_EGREP"
4285 ac_path_EGREP_max=$ac_count
4286 fi
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4289 done
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4292
4293
4294 $ac_path_EGREP_found && break 3
4295 done
4296 done
4297
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303
4304 EGREP="$ac_cv_path_EGREP"
4305 if test -z "$EGREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4309 fi
4310
4311 else
4312 ac_cv_path_EGREP=$EGREP
4313 fi
4314
4315
4316 fi
4317 fi
4318 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4319 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4320 EGREP="$ac_cv_path_EGREP"
4321
4322
4323
4324 { echo "$as_me:$LINENO: checking for AIX" >&5
4325 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #ifdef _AIX
4333 yes
4334 #endif
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "yes" >/dev/null 2>&1; then
4339 { echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6; }
4341 cat >>confdefs.h <<\_ACEOF
4342 #define _ALL_SOURCE 1
4343 _ACEOF
4344
4345 else
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4348 fi
4349 rm -f conftest*
4350
4351
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <stdlib.h>
4364 #include <stdarg.h>
4365 #include <string.h>
4366 #include <float.h>
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
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 ac_cv_header_stdc=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_header_stdc=no
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4416 :
4417 else
4418 ac_cv_header_stdc=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4433
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4437 :
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest*
4442
4443 fi
4444
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4448 :
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #include <stdlib.h>
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 #else
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467 #endif
4468
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 int
4471 main ()
4472 {
4473 int i;
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4477 return 2;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 :
4502 else
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 ( exit $ac_status )
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4511 fi
4512
4513
4514 fi
4515 fi
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4519
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4522 _ACEOF
4523
4524 fi
4525
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4538 do
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4552
4553 #include <$ac_header>
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.$ac_objext; then
4572 eval "$as_ac_Header=yes"
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 eval "$as_ac_Header=no"
4578 fi
4579
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 fi
4582 ac_res=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h <<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4589
4590 fi
4591
4592 done
4593
4594
4595 if test "${ac_cv_header_minix_config_h+set}" = set; then
4596 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4597 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 fi
4601 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4602 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4603 else
4604 # Is the header compilable?
4605 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4606 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <minix/config.h>
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (ac_try="$ac_compile"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_header_compiler=yes
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 ac_header_compiler=no
4639 fi
4640
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6; }
4644
4645 # Is the header present?
4646 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4647 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <minix/config.h>
4655 _ACEOF
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev/null && {
4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 }; then
4672 ac_header_preproc=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ac_header_preproc=no
4678 fi
4679
4680 rm -f conftest.err conftest.$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4682 echo "${ECHO_T}$ac_header_preproc" >&6; }
4683
4684 # So? What about this header?
4685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4686 yes:no: )
4687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4691 ac_header_preproc=yes
4692 ;;
4693 no:yes:* )
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4706
4707 ;;
4708 esac
4709 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4711 if test "${ac_cv_header_minix_config_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 ac_cv_header_minix_config_h=$ac_header_preproc
4715 fi
4716 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4717 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4718
4719 fi
4720 if test $ac_cv_header_minix_config_h = yes; then
4721 MINIX=yes
4722 else
4723 MINIX=
4724 fi
4725
4726
4727 if test "$MINIX" = yes; then
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _POSIX_SOURCE 1
4731 _ACEOF
4732
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _POSIX_1_SOURCE 2
4736 _ACEOF
4737
4738
4739 cat >>confdefs.h <<\_ACEOF
4740 #define _MINIX 1
4741 _ACEOF
4742
4743 fi
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4756 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4757 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (ac_try="$ac_compile"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_safe_to_define___extensions__=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_cv_safe_to_define___extensions__=no
4800 fi
4801
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4805 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 cat >>confdefs.h <<\_ACEOF
4808 #define __EXTENSIONS__ 1
4809 _ACEOF
4810
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_PTHREAD_SEMANTICS 1
4813 _ACEOF
4814
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _TANDEM_SOURCE 1
4817 _ACEOF
4818
4819
4820
4821 ### Use -Wno-pointer-sign if the compiler supports it
4822 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4823 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4824 SAVE_CFLAGS="$CFLAGS"
4825 CFLAGS="$CFLAGS -Wno-pointer-sign"
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832
4833 int
4834 main ()
4835 {
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
4858 has_option=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 has_option=no
4864 fi
4865
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4869 fi
4870 { echo "$as_me:$LINENO: result: $has_option" >&5
4871 echo "${ECHO_T}$has_option" >&6; }
4872 CFLAGS="$SAVE_CFLAGS"
4873 unset has_option
4874 unset SAVE_CFLAGS
4875
4876 #### Some other nice autoconf tests.
4877
4878 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4880 LN_S=$as_ln_s
4881 if test "$LN_S" = "ln -s"; then
4882 { echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886 echo "${ECHO_T}no, using $LN_S" >&6; }
4887 fi
4888
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4898 CPP=
4899 fi
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 # Double quotes because CPP needs to be expanded
4905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4906 do
4907 ac_preproc_ok=false
4908 for ac_c_preproc_warn_flag in '' yes
4909 do
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #ifdef __STDC__
4923 # include <limits.h>
4924 #else
4925 # include <assert.h>
4926 #endif
4927 Syntax error
4928 _ACEOF
4929 if { (ac_try="$ac_cpp conftest.$ac_ext"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 }; then
4945 :
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 # Broken: fails on valid input.
4951 continue
4952 fi
4953
4954 rm -f conftest.err conftest.$ac_ext
4955
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev/null && {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 }; then
4982 # Broken: success on invalid input.
4983 continue
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 # Passes both tests.
4989 ac_preproc_ok=:
4990 break
4991 fi
4992
4993 rm -f conftest.err conftest.$ac_ext
4994
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then
4999 break
5000 fi
5001
5002 done
5003 ac_cv_prog_CPP=$CPP
5004
5005 fi
5006 CPP=$ac_cv_prog_CPP
5007 else
5008 ac_cv_prog_CPP=$CPP
5009 fi
5010 { echo "$as_me:$LINENO: result: $CPP" >&5
5011 echo "${ECHO_T}$CPP" >&6; }
5012 ac_preproc_ok=false
5013 for ac_c_preproc_warn_flag in '' yes
5014 do
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032 Syntax error
5033 _ACEOF
5034 if { (ac_try="$ac_cpp conftest.$ac_ext"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null && {
5047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5049 }; then
5050 :
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 # Broken: fails on valid input.
5056 continue
5057 fi
5058
5059 rm -f conftest.err conftest.$ac_ext
5060
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null && {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 }; then
5087 # Broken: success on invalid input.
5088 continue
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 # Passes both tests.
5094 ac_preproc_ok=:
5095 break
5096 fi
5097
5098 rm -f conftest.err conftest.$ac_ext
5099
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then
5104 :
5105 else
5106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5111 fi
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 # Find a good install program. We prefer a C program (faster),
5120 # so one script is as good as another. But avoid the broken or
5121 # incompatible versions:
5122 # SysV /etc/install, /usr/sbin/install
5123 # SunOS /usr/etc/install
5124 # IRIX /sbin/install
5125 # AIX /bin/install
5126 # AmigaOS /C/install, which installs bootblocks on floppy discs
5127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5130 # OS/2's system install, which has a completely different semantic
5131 # ./install, which can be erroneously created by make from ./install.sh.
5132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5134 if test -z "$INSTALL"; then
5135 if test "${ac_cv_path_install+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 # Account for people who put trailing slashes in PATH elements.
5144 case $as_dir/ in
5145 ./ | .// | /cC/* | \
5146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5148 /usr/ucb/* ) ;;
5149 *)
5150 # OSF1 and SCO ODT 3.0 have their own names for install.
5151 # Don't use installbsd from OSF since it installs stuff as root
5152 # by default.
5153 for ac_prog in ginstall scoinst install; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5156 if test $ac_prog = install &&
5157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5158 # AIX install. It has an incompatible calling convention.
5159 :
5160 elif test $ac_prog = install &&
5161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5162 # program-specific install script used by HP pwplus--don't use.
5163 :
5164 else
5165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5166 break 3
5167 fi
5168 fi
5169 done
5170 done
5171 ;;
5172 esac
5173 done
5174 IFS=$as_save_IFS
5175
5176
5177 fi
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL=$ac_cv_path_install
5180 else
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL=$ac_install_sh
5186 fi
5187 fi
5188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5189 echo "${ECHO_T}$INSTALL" >&6; }
5190
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5194
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5196
5197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5198
5199 if test "x$RANLIB" = x; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_RANLIB+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$RANLIB"; then
5209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi
5227 fi
5228 RANLIB=$ac_cv_prog_RANLIB
5229 if test -n "$RANLIB"; then
5230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5231 echo "${ECHO_T}$RANLIB" >&6; }
5232 else
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5235 fi
5236
5237
5238 fi
5239 if test -z "$ac_cv_prog_RANLIB"; then
5240 ac_ct_RANLIB=$RANLIB
5241 # Extract the first word of "ranlib", so it can be a program name with args.
5242 set dummy ranlib; ac_word=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 if test -n "$ac_ct_RANLIB"; then
5249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5250 else
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_prog_ac_ct_RANLIB="ranlib"
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 fi
5267 fi
5268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5269 if test -n "$ac_ct_RANLIB"; then
5270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5272 else
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5275 fi
5276
5277 if test "x$ac_ct_RANLIB" = x; then
5278 RANLIB=":"
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281 yes:)
5282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5283 whose name does not start with the host triplet. If you think this
5284 configuration is useful to you, please write to autoconf@gnu.org." >&5
5285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290 RANLIB=$ac_ct_RANLIB
5291 fi
5292 else
5293 RANLIB="$ac_cv_prog_RANLIB"
5294 fi
5295
5296 fi
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info; ac_word=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 case $INSTALL_INFO in
5305 [\\/]* | ?:[\\/]*)
5306 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5307 ;;
5308 *)
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 ;;
5325 esac
5326 fi
5327 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5328 if test -n "$INSTALL_INFO"; then
5329 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5330 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5331 else
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5334 fi
5335
5336
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 case $INSTALL_INFO in
5345 [\\/]* | ?:[\\/]*)
5346 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5347 ;;
5348 *)
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in /usr/sbin
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364 ;;
5365 esac
5366 fi
5367 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5371 else
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5374 fi
5375
5376
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info; ac_word=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 case $INSTALL_INFO in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5387 ;;
5388 *)
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in /sbin
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5405 ;;
5406 esac
5407 fi
5408 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5409 if test -n "$INSTALL_INFO"; then
5410 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5411 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5412 else
5413 { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5415 fi
5416
5417
5418 # Extract the first word of "gzip", so it can be a program name with args.
5419 set dummy gzip; ac_word=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 case $GZIP_PROG in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5428 ;;
5429 *)
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 ;;
5446 esac
5447 fi
5448 GZIP_PROG=$ac_cv_path_GZIP_PROG
5449 if test -n "$GZIP_PROG"; then
5450 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5451 echo "${ECHO_T}$GZIP_PROG" >&6; }
5452 else
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5455 fi
5456
5457
5458
5459
5460 ## Need makeinfo >= 4.6 (?) to build the manuals.
5461 # Extract the first word of "makeinfo", so it can be a program name with args.
5462 set dummy makeinfo; ac_word=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 case $MAKEINFO in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5471 ;;
5472 *)
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5489 ;;
5490 esac
5491 fi
5492 MAKEINFO=$ac_cv_path_MAKEINFO
5493 if test -n "$MAKEINFO"; then
5494 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5495 echo "${ECHO_T}$MAKEINFO" >&6; }
5496 else
5497 { echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6; }
5499 fi
5500
5501
5502 if test "$MAKEINFO" != "no" && \
5503 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
5504 MAKEINFO=no
5505 fi
5506
5507 if test "$MAKEINFO" = "no" && test "x${with_makeinfo}" != "xno"; then
5508
5509 if test -e $srcdir/info/emacs; then
5510 gotinfo="seems"
5511 else
5512 gotinfo="does NOT seem"
5513 fi
5514
5515 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6.
5516 You will not be able to build the Emacs manuals.
5517 In Emacs releases, they are prebuilt, so this might not be a problem.
5518 Your source tree $gotinfo to have manuals in the \`info' directory.
5519 Either install a suitable version of makeinfo, or re-run configure
5520 with the \`--without-makeinfo' option. " >&5
5521 echo "$as_me: error: You do not seem to have makeinfo >= 4.6.
5522 You will not be able to build the Emacs manuals.
5523 In Emacs releases, they are prebuilt, so this might not be a problem.
5524 Your source tree $gotinfo to have manuals in the \`info' directory.
5525 Either install a suitable version of makeinfo, or re-run configure
5526 with the \`--without-makeinfo' option. " >&2;}
5527 { (exit 1); exit 1; }; }
5528
5529 fi
5530
5531
5532 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5533 then
5534 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5535 fi
5536
5537 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5538 then
5539 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5540 fi
5541
5542
5543 late_LDFLAGS=$LDFLAGS
5544 if test "$GCC" = yes; then
5545 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5546 else
5547 LDFLAGS="$LDFLAGS -znocombreloc"
5548 fi
5549
5550 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5551 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5552 cat >conftest.$ac_ext <<_ACEOF
5553 main(){return 0;}
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (ac_try="$ac_link"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest$ac_exeext &&
5572 $as_test_x conftest$ac_exeext; then
5573 { echo "$as_me:$LINENO: result: yes" >&5
5574 echo "${ECHO_T}yes" >&6; }
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 LDFLAGS=$late_LDFLAGS
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5582 fi
5583
5584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5585 conftest$ac_exeext conftest.$ac_ext
5586
5587 #### Extract some information from the operating system and machine files.
5588
5589 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5590 - which libraries the lib-src programs will want, and
5591 - whether the GNU malloc routines are usable..." >&5
5592 echo "$as_me: checking the machine- and system-dependent files to find out
5593 - which libraries the lib-src programs will want, and
5594 - whether the GNU malloc routines are usable..." >&6;}
5595
5596 ### First figure out CFLAGS (which we use for running the compiler here)
5597 ### and REAL_CFLAGS (which we use for real compilation).
5598 ### The two are the same except on a few systems, where they are made
5599 ### different to work around various lossages. For example,
5600 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5601 ### as implying static linking.
5602
5603 ### If the CFLAGS env var is specified, we use that value
5604 ### instead of the default.
5605
5606 ### It's not important that this name contain the PID; you can't run
5607 ### two configures in the same directory and have anything work
5608 ### anyway.
5609 tempcname="conftest.c"
5610
5611 echo '
5612 #include "'${srcdir}'/src/'${opsysfile}'"
5613 #include "'${srcdir}'/src/'${machfile}'"
5614 #ifndef LIBS_MACHINE
5615 #define LIBS_MACHINE
5616 #endif
5617 #ifndef LIBS_SYSTEM
5618 #define LIBS_SYSTEM
5619 #endif
5620 #ifndef C_SWITCH_SYSTEM
5621 #define C_SWITCH_SYSTEM
5622 #endif
5623 #ifndef C_SWITCH_MACHINE
5624 #define C_SWITCH_MACHINE
5625 #endif
5626 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5627 configure___ c_switch_system=C_SWITCH_SYSTEM
5628 configure___ c_switch_machine=C_SWITCH_MACHINE
5629
5630 #ifndef LIB_X11_LIB
5631 #define LIB_X11_LIB -lX11
5632 #endif
5633
5634 #ifndef LIBX11_SYSTEM
5635 #define LIBX11_SYSTEM
5636 #endif
5637 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5638
5639 #ifdef UNEXEC
5640 configure___ unexec=UNEXEC
5641 #else
5642 configure___ unexec=unexec.o
5643 #endif
5644
5645 #ifdef SYSTEM_MALLOC
5646 configure___ system_malloc=yes
5647 #else
5648 configure___ system_malloc=no
5649 #endif
5650
5651 #ifdef USE_MMAP_FOR_BUFFERS
5652 configure___ use_mmap_for_buffers=yes
5653 #else
5654 configure___ use_mmap_for_buffers=no
5655 #endif
5656
5657 #ifndef C_DEBUG_SWITCH
5658 #define C_DEBUG_SWITCH -g
5659 #endif
5660
5661 #ifndef C_OPTIMIZE_SWITCH
5662 #ifdef __GNUC__
5663 #define C_OPTIMIZE_SWITCH -O2
5664 #else
5665 #define C_OPTIMIZE_SWITCH -O
5666 #endif
5667 #endif
5668
5669 #ifndef C_WARNINGS_SWITCH
5670 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5671 #endif
5672
5673 #ifndef LD_SWITCH_MACHINE
5674 #define LD_SWITCH_MACHINE
5675 #endif
5676
5677 #ifndef LD_SWITCH_SYSTEM
5678 #define LD_SWITCH_SYSTEM
5679 #endif
5680
5681 #ifndef LD_SWITCH_X_SITE_AUX
5682 #define LD_SWITCH_X_SITE_AUX
5683 #endif
5684
5685 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5686 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5687
5688 #ifdef THIS_IS_CONFIGURE
5689
5690 /* Get the CFLAGS for tests in configure. */
5691 #ifdef __GNUC__
5692 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5693 #else
5694 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5695 #endif
5696
5697 #else /* not THIS_IS_CONFIGURE */
5698
5699 /* Get the CFLAGS for real compilation. */
5700 #ifdef __GNUC__
5701 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5702 #else
5703 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5704 #endif
5705
5706 #endif /* not THIS_IS_CONFIGURE */
5707 ' > ${tempcname}
5708
5709 # The value of CPP is a quoted variable reference, so we need to do this
5710 # to get its actual value...
5711 CPP=`eval "echo $CPP"`
5712 eval `${CPP} -Isrc ${tempcname} \
5713 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5714 if test "x$SPECIFIED_CFLAGS" = x; then
5715 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5716 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5717 else
5718 REAL_CFLAGS="$CFLAGS"
5719 fi
5720 rm ${tempcname}
5721
5722 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5723
5724 ### Make sure subsequent tests use flags consistent with the build flags.
5725
5726 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5727 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5728 else
5729 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5730 fi
5731
5732
5733
5734 # Check whether --enable-largefile was given.
5735 if test "${enable_largefile+set}" = set; then
5736 enableval=$enable_largefile;
5737 fi
5738
5739 if test "$enable_largefile" != no; then
5740
5741 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5742 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5743 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 ac_cv_sys_largefile_CC=no
5747 if test "$GCC" != yes; then
5748 ac_save_CC=$CC
5749 while :; do
5750 # IRIX 6.2 and later do not support large files by default,
5751 # so use the C compiler's -n32 option if that helps.
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5766 ? 1 : -1];
5767 int
5768 main ()
5769 {
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 break
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797
5798 fi
5799
5800 rm -f core conftest.err conftest.$ac_objext
5801 CC="$CC -n32"
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_sys_largefile_CC=' -n32'; break
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824
5825 fi
5826
5827 rm -f core conftest.err conftest.$ac_objext
5828 break
5829 done
5830 CC=$ac_save_CC
5831 rm -f conftest.$ac_ext
5832 fi
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5835 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5836 if test "$ac_cv_sys_largefile_CC" != no; then
5837 CC=$CC$ac_cv_sys_largefile_CC
5838 fi
5839
5840 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5841 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5842 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 while :; do
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5860 ? 1 : -1];
5861 int
5862 main ()
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.$ac_objext; then
5886 ac_cv_sys_file_offset_bits=no; break
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891
5892 fi
5893
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #define _FILE_OFFSET_BITS 64
5902 #include <sys/types.h>
5903 /* Check that off_t can represent 2**63 - 1 correctly.
5904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5905 since some C++ compilers masquerading as C compilers
5906 incorrectly reject 9223372036854775807. */
5907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5909 && LARGE_OFF_T % 2147483647 == 1)
5910 ? 1 : -1];
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_sys_file_offset_bits=64; break
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ac_cv_sys_file_offset_bits=unknown
5946 break
5947 done
5948 fi
5949 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5950 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5951 case $ac_cv_sys_file_offset_bits in #(
5952 no | unknown) ;;
5953 *)
5954 cat >>confdefs.h <<_ACEOF
5955 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5956 _ACEOF
5957 ;;
5958 esac
5959 rm -f conftest*
5960 if test $ac_cv_sys_file_offset_bits = unknown; then
5961 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5962 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5963 if test "${ac_cv_sys_large_files+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 while :; do
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 /* Check that off_t can represent 2**63 - 1 correctly.
5975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5976 since some C++ compilers masquerading as C compilers
5977 incorrectly reject 9223372036854775807. */
5978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5980 && LARGE_OFF_T % 2147483647 == 1)
5981 ? 1 : -1];
5982 int
5983 main ()
5984 {
5985
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_objext; then
6007 ac_cv_sys_large_files=no; break
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #define _LARGE_FILES 1
6023 #include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026 since some C++ compilers masquerading as C compilers
6027 incorrectly reject 9223372036854775807. */
6028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030 && LARGE_OFF_T % 2147483647 == 1)
6031 ? 1 : -1];
6032 int
6033 main ()
6034 {
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_sys_large_files=1; break
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062
6063 fi
6064
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_large_files=unknown
6067 break
6068 done
6069 fi
6070 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6071 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6073 no | unknown) ;;
6074 *)
6075 cat >>confdefs.h <<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6077 _ACEOF
6078 ;;
6079 esac
6080 rm -f conftest*
6081 fi
6082 fi
6083
6084
6085
6086 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6087 ### be located in either /usr/lib64 or /usr/lib.
6088 case "${canonical}" in
6089 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6090 if test -d /usr/lib64; then
6091
6092 cat >>confdefs.h <<\_ACEOF
6093 #define HAVE_LIB64_DIR 1
6094 _ACEOF
6095
6096 fi
6097 esac
6098
6099
6100
6101
6102 if test "${with_sound}" != "no"; then
6103 # Sound support for GNU/Linux and the free BSDs.
6104
6105
6106
6107 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6108 do
6109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 fi
6116 ac_res=`eval echo '${'$as_ac_Header'}'`
6117 { echo "$as_me:$LINENO: result: $ac_res" >&5
6118 echo "${ECHO_T}$ac_res" >&6; }
6119 else
6120 # Is the header compilable?
6121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6130 #include <$ac_header>
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6134 case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 ac_header_compiler=yes
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_header_compiler=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6159 echo "${ECHO_T}$ac_header_compiler" >&6; }
6160
6161 # Is the header present?
6162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <$ac_header>
6171 _ACEOF
6172 if { (ac_try="$ac_cpp conftest.$ac_ext"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null && {
6185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 }; then
6188 ac_header_preproc=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ac_header_preproc=no
6194 fi
6195
6196 rm -f conftest.err conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 echo "${ECHO_T}$ac_header_preproc" >&6; }
6199
6200 # So? What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6202 yes:no: )
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6207 ac_header_preproc=yes
6208 ;;
6209 no:yes:* )
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6222
6223 ;;
6224 esac
6225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 eval "$as_ac_Header=\$ac_header_preproc"
6231 fi
6232 ac_res=`eval echo '${'$as_ac_Header'}'`
6233 { echo "$as_me:$LINENO: result: $ac_res" >&5
6234 echo "${ECHO_T}$ac_res" >&6; }
6235
6236 fi
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 _ACEOF
6241
6242 fi
6243
6244 done
6245
6246 # Emulation library used on NetBSD.
6247 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6248 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6249 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lossaudio $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6264 #ifdef __cplusplus
6265 extern "C"
6266 #endif
6267 char _oss_ioctl ();
6268 int
6269 main ()
6270 {
6271 return _oss_ioctl ();
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest$ac_exeext &&
6293 $as_test_x conftest$ac_exeext; then
6294 ac_cv_lib_ossaudio__oss_ioctl=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_cv_lib_ossaudio__oss_ioctl=no
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LIBS=$ac_check_lib_save_LIBS
6305 fi
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6309 LIBSOUND=-lossaudio
6310 else
6311 LIBSOUND=
6312 fi
6313
6314
6315
6316 ALSA_REQUIRED=1.0.0
6317 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6318
6319 succeeded=no
6320
6321 # Extract the first word of "pkg-config", so it can be a program name with args.
6322 set dummy pkg-config; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 case $PKG_CONFIG in
6329 [\\/]* | ?:[\\/]*)
6330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6331 ;;
6332 *)
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6349 ;;
6350 esac
6351 fi
6352 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6353 if test -n "$PKG_CONFIG"; then
6354 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6355 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6356 else
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6359 fi
6360
6361
6362
6363 if test "$PKG_CONFIG" = "no" ; then
6364 HAVE_ALSA=no
6365 else
6366 PKG_CONFIG_MIN_VERSION=0.9.0
6367 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6368 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6369 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6370
6371 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6372 { echo "$as_me:$LINENO: result: yes" >&5
6373 echo "${ECHO_T}yes" >&6; }
6374 succeeded=yes
6375
6376 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6377 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6378 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6379 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6380 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6381
6382 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6383 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6384 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6385 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6386 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6387 else
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6390 ALSA_CFLAGS=""
6391 ALSA_LIBS=""
6392 ## If we have a custom action on failure, don't print errors, but
6393 ## do set a variable so people can do so.
6394 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6395
6396 fi
6397
6398
6399
6400 else
6401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6403 fi
6404 fi
6405
6406 if test $succeeded = yes; then
6407 HAVE_ALSA=yes
6408 else
6409 HAVE_ALSA=no
6410 fi
6411
6412 if test $HAVE_ALSA = yes; then
6413 SAVE_CFLAGS="$CFLAGS"
6414 SAVE_LDFLAGS="$LDFLAGS"
6415 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6416 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <asoundlib.h>
6424 int
6425 main ()
6426 {
6427 snd_lib_error_set_handler (0);
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6434 case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_compile") 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest.$ac_objext; then
6449 emacs_alsa_normal=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 emacs_alsa_normal=no
6455 fi
6456
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test "$emacs_alsa_normal" != yes; then
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h. */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <alsa/asoundlib.h>
6466 int
6467 main ()
6468 {
6469 snd_lib_error_set_handler (0);
6470 ;
6471 return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 emacs_alsa_subdir=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 emacs_alsa_subdir=no
6497 fi
6498
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 if test "$emacs_alsa_subdir" != yes; then
6501 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6502 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6503 { (exit 1); exit 1; }; }
6504 fi
6505 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6506 fi
6507
6508 CFLAGS="$SAVE_CFLAGS"
6509 LDFLAGS="$SAVE_LDFLAGS"
6510 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6511 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6512
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_ALSA 1
6515 _ACEOF
6516
6517 fi
6518
6519 fi
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6547 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6548 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6549 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6550 sys/utsname.h pwd.h
6551 do
6552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 fi
6559 ac_res=`eval echo '${'$as_ac_Header'}'`
6560 { echo "$as_me:$LINENO: result: $ac_res" >&5
6561 echo "${ECHO_T}$ac_res" >&6; }
6562 else
6563 # Is the header compilable?
6564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6573 #include <$ac_header>
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (ac_try="$ac_compile"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 ac_header_compiler=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 ac_header_compiler=no
6598 fi
6599
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6602 echo "${ECHO_T}$ac_header_compiler" >&6; }
6603
6604 # Is the header present?
6605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <$ac_header>
6614 _ACEOF
6615 if { (ac_try="$ac_cpp conftest.$ac_ext"
6616 case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev/null && {
6628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 }; then
6631 ac_header_preproc=yes
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_header_preproc=no
6637 fi
6638
6639 rm -f conftest.err conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6641 echo "${ECHO_T}$ac_header_preproc" >&6; }
6642
6643 # So? What about this header?
6644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6645 yes:no: )
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6650 ac_header_preproc=yes
6651 ;;
6652 no:yes:* )
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6665
6666 ;;
6667 esac
6668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 eval "$as_ac_Header=\$ac_header_preproc"
6674 fi
6675 ac_res=`eval echo '${'$as_ac_Header'}'`
6676 { echo "$as_me:$LINENO: result: $ac_res" >&5
6677 echo "${ECHO_T}$ac_res" >&6; }
6678
6679 fi
6680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6681 cat >>confdefs.h <<_ACEOF
6682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6683 _ACEOF
6684
6685 fi
6686
6687 done
6688
6689
6690 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6691 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/personality.h>
6699 int
6700 main ()
6701 {
6702 personality (PER_LINUX32)
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 emacs_cv_personality_linux32=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 emacs_cv_personality_linux32=no
6730 fi
6731
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6734 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6735
6736 if test $emacs_cv_personality_linux32 = yes; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_PERSONALITY_LINUX32 1
6740 _ACEOF
6741
6742 fi
6743
6744
6745 for ac_header in term.h
6746 do
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <$ac_header>
6760 _ACEOF
6761 if { (ac_try="$ac_cpp conftest.$ac_ext"
6762 case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 }; then
6777 eval "$as_ac_Header=yes"
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 eval "$as_ac_Header=no"
6783 fi
6784
6785 rm -f conftest.err conftest.$ac_ext
6786 fi
6787 ac_res=`eval echo '${'$as_ac_Header'}'`
6788 { echo "$as_me:$LINENO: result: $ac_res" >&5
6789 echo "${ECHO_T}$ac_res" >&6; }
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6793 _ACEOF
6794
6795 fi
6796
6797 done
6798
6799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6801 if test "${ac_cv_header_stdc+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <stdlib.h>
6811 #include <stdarg.h>
6812 #include <string.h>
6813 #include <float.h>
6814
6815 int
6816 main ()
6817 {
6818
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_header_stdc=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_cv_header_stdc=no
6846 fi
6847
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849
6850 if test $ac_cv_header_stdc = yes; then
6851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <string.h>
6859
6860 _ACEOF
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "memchr" >/dev/null 2>&1; then
6863 :
6864 else
6865 ac_cv_header_stdc=no
6866 fi
6867 rm -f conftest*
6868
6869 fi
6870
6871 if test $ac_cv_header_stdc = yes; then
6872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <stdlib.h>
6880
6881 _ACEOF
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 $EGREP "free" >/dev/null 2>&1; then
6884 :
6885 else
6886 ac_cv_header_stdc=no
6887 fi
6888 rm -f conftest*
6889
6890 fi
6891
6892 if test $ac_cv_header_stdc = yes; then
6893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6894 if test "$cross_compiling" = yes; then
6895 :
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <ctype.h>
6904 #include <stdlib.h>
6905 #if ((' ' & 0x0FF) == 0x020)
6906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6908 #else
6909 # define ISLOWER(c) \
6910 (('a' <= (c) && (c) <= 'i') \
6911 || ('j' <= (c) && (c) <= 'r') \
6912 || ('s' <= (c) && (c) <= 'z'))
6913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6914 #endif
6915
6916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6917 int
6918 main ()
6919 {
6920 int i;
6921 for (i = 0; i < 256; i++)
6922 if (XOR (islower (i), ISLOWER (i))
6923 || toupper (i) != TOUPPER (i))
6924 return 2;
6925 return 0;
6926 }
6927 _ACEOF
6928 rm -f conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 :
6949 else
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ( exit $ac_status )
6955 ac_cv_header_stdc=no
6956 fi
6957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6958 fi
6959
6960
6961 fi
6962 fi
6963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6965 if test $ac_cv_header_stdc = yes; then
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define STDC_HEADERS 1
6969 _ACEOF
6970
6971 fi
6972
6973 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6974 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6975 if test "${ac_cv_header_time+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6985 #include <sys/time.h>
6986 #include <time.h>
6987
6988 int
6989 main ()
6990 {
6991 if ((struct tm *) 0)
6992 return 0;
6993 ;
6994 return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
6999 case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002 esac
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_compile") 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && {
7011 test -z "$ac_c_werror_flag" ||
7012 test ! -s conftest.err
7013 } && test -s conftest.$ac_objext; then
7014 ac_cv_header_time=yes
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 ac_cv_header_time=no
7020 fi
7021
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 fi
7024 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7025 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7026 if test $ac_cv_header_time = yes; then
7027
7028 cat >>confdefs.h <<\_ACEOF
7029 #define TIME_WITH_SYS_TIME 1
7030 _ACEOF
7031
7032 fi
7033
7034 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7035 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7036 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7046 int
7047 main ()
7048 {
7049 #ifndef sys_siglist
7050 (void) sys_siglist;
7051 #endif
7052
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_have_decl_sys_siglist=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_have_decl_sys_siglist=no
7080 fi
7081
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7085 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7086 if test $ac_cv_have_decl_sys_siglist = yes; then
7087
7088 cat >>confdefs.h <<_ACEOF
7089 #define HAVE_DECL_SYS_SIGLIST 1
7090 _ACEOF
7091
7092
7093 else
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_DECL_SYS_SIGLIST 0
7096 _ACEOF
7097
7098
7099 fi
7100
7101
7102 if test $ac_cv_have_decl_sys_siglist != yes; then
7103 # For Tru64, at least:
7104 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7105 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7106 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 $ac_includes_default
7116 int
7117 main ()
7118 {
7119 #ifndef __sys_siglist
7120 (void) __sys_siglist;
7121 #endif
7122
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 ac_cv_have_decl___sys_siglist=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 ac_cv_have_decl___sys_siglist=no
7150 fi
7151
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 fi
7154 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7155 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7156 if test $ac_cv_have_decl___sys_siglist = yes; then
7157
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_DECL___SYS_SIGLIST 1
7160 _ACEOF
7161
7162
7163 else
7164 cat >>confdefs.h <<_ACEOF
7165 #define HAVE_DECL___SYS_SIGLIST 0
7166 _ACEOF
7167
7168
7169 fi
7170
7171
7172 if test $ac_cv_have_decl___sys_siglist = yes; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define sys_siglist __sys_siglist
7176 _ACEOF
7177
7178 fi
7179 fi
7180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <sys/types.h>
7192 #include <sys/wait.h>
7193 #ifndef WEXITSTATUS
7194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7195 #endif
7196 #ifndef WIFEXITED
7197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7198 #endif
7199
7200 int
7201 main ()
7202 {
7203 int s;
7204 wait (&s);
7205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 ac_cv_header_sys_wait_h=yes
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 ac_cv_header_sys_wait_h=no
7233 fi
7234
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 fi
7237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7239 if test $ac_cv_header_sys_wait_h = yes; then
7240
7241 cat >>confdefs.h <<\_ACEOF
7242 #define HAVE_SYS_WAIT_H 1
7243 _ACEOF
7244
7245 fi
7246
7247
7248 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7249 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7250 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 #ifdef TIME_WITH_SYS_TIME
7260 #include <sys/time.h>
7261 #include <time.h>
7262 #else
7263 #ifdef HAVE_SYS_TIME_H
7264 #include <sys/time.h>
7265 #else
7266 #include <time.h>
7267 #endif
7268 #endif
7269 #ifdef HAVE_UTIME_H
7270 #include <utime.h>
7271 #endif
7272 int
7273 main ()
7274 {
7275 static struct utimbuf x; x.actime = x.modtime;
7276 ;
7277 return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (ac_try="$ac_compile"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compile") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest.$ac_objext; then
7297 emacs_cv_struct_utimbuf=yes
7298 else
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 emacs_cv_struct_utimbuf=no
7303 fi
7304
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 fi
7307 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7308 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7309 if test $emacs_cv_struct_utimbuf = yes; then
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_STRUCT_UTIMBUF 1
7313 _ACEOF
7314
7315 fi
7316
7317 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7318 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7319 if test "${ac_cv_type_signal+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <sys/types.h>
7329 #include <signal.h>
7330
7331 int
7332 main ()
7333 {
7334 return *(signal (0, 0)) (0) == 1;
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 ac_cv_type_signal=int
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_cv_type_signal=void
7362 fi
7363
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7367 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7368
7369 cat >>confdefs.h <<_ACEOF
7370 #define RETSIGTYPE $ac_cv_type_signal
7371 _ACEOF
7372
7373
7374
7375 { echo "$as_me:$LINENO: checking for speed_t" >&5
7376 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7377 if test "${emacs_cv_speed_t+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <termios.h>
7387 int
7388 main ()
7389 {
7390 speed_t x = 1;
7391 ;
7392 return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 emacs_cv_speed_t=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 emacs_cv_speed_t=no
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7423 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7424 if test $emacs_cv_speed_t = yes; then
7425
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_SPEED_T 1
7428 _ACEOF
7429
7430 fi
7431
7432 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7433 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7434 if test "${emacs_cv_struct_timeval+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #ifdef TIME_WITH_SYS_TIME
7444 #include <sys/time.h>
7445 #include <time.h>
7446 #else
7447 #ifdef HAVE_SYS_TIME_H
7448 #include <sys/time.h>
7449 #else
7450 #include <time.h>
7451 #endif
7452 #endif
7453 int
7454 main ()
7455 {
7456 static struct timeval x; x.tv_sec = x.tv_usec;
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (ac_try="$ac_compile"
7463 case "(($ac_try" in
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7466 esac
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_compile") 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest.$ac_objext; then
7478 emacs_cv_struct_timeval=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 emacs_cv_struct_timeval=no
7484 fi
7485
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7489 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7490 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7491 if test $emacs_cv_struct_timeval = yes; then
7492
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_TIMEVAL 1
7495 _ACEOF
7496
7497 fi
7498
7499 { echo "$as_me:$LINENO: checking for struct exception" >&5
7500 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7501 if test "${emacs_cv_struct_exception+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <math.h>
7511 int
7512 main ()
7513 {
7514 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7521 case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 emacs_cv_struct_exception=yes
7537 else
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 emacs_cv_struct_exception=no
7542 fi
7543
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7547 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7548 HAVE_EXCEPTION=$emacs_cv_struct_exception
7549 if test $emacs_cv_struct_exception != yes; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define NO_MATHERR 1
7553 _ACEOF
7554
7555 fi
7556
7557
7558 for ac_header in sys/socket.h
7559 do
7560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 fi
7567 ac_res=`eval echo '${'$as_ac_Header'}'`
7568 { echo "$as_me:$LINENO: result: $ac_res" >&5
7569 echo "${ECHO_T}$ac_res" >&6; }
7570 else
7571 # Is the header compilable?
7572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 #include <$ac_header>
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_header_compiler=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_header_compiler=no
7606 fi
7607
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7610 echo "${ECHO_T}$ac_header_compiler" >&6; }
7611
7612 # Is the header present?
7613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <$ac_header>
7622 _ACEOF
7623 if { (ac_try="$ac_cpp conftest.$ac_ext"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } >/dev/null && {
7636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 }; then
7639 ac_header_preproc=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_header_preproc=no
7645 fi
7646
7647 rm -f conftest.err conftest.$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7649 echo "${ECHO_T}$ac_header_preproc" >&6; }
7650
7651 # So? What about this header?
7652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7653 yes:no: )
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7658 ac_header_preproc=yes
7659 ;;
7660 no:yes:* )
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7673
7674 ;;
7675 esac
7676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681 eval "$as_ac_Header=\$ac_header_preproc"
7682 fi
7683 ac_res=`eval echo '${'$as_ac_Header'}'`
7684 { echo "$as_me:$LINENO: result: $ac_res" >&5
7685 echo "${ECHO_T}$ac_res" >&6; }
7686
7687 fi
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691 _ACEOF
7692
7693 fi
7694
7695 done
7696
7697
7698 for ac_header in net/if.h
7699 do
7700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #if HAVE_SYS_SOCKET_H
7714 #include <sys/socket.h>
7715 #endif
7716
7717 #include <$ac_header>
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7721 case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 eval "$as_ac_Header=yes"
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 eval "$as_ac_Header=no"
7742 fi
7743
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 ac_res=`eval echo '${'$as_ac_Header'}'`
7747 { echo "$as_me:$LINENO: result: $ac_res" >&5
7748 echo "${ECHO_T}$ac_res" >&6; }
7749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752 _ACEOF
7753
7754 fi
7755
7756 done
7757
7758
7759 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7760 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7761 if test "${ac_cv_struct_tm+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 <sys/types.h>
7771 #include <time.h>
7772
7773 int
7774 main ()
7775 {
7776 struct tm tm;
7777 int *p = &tm.tm_sec;
7778 return !p;
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_struct_tm=time.h
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 ac_cv_struct_tm=sys/time.h
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_struct_tm" >&5
7811 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7812 if test $ac_cv_struct_tm = sys/time.h; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define TM_IN_SYS_TIME 1
7816 _ACEOF
7817
7818 fi
7819
7820 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7821 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7822 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h. */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <$ac_cv_struct_tm>
7833
7834
7835 int
7836 main ()
7837 {
7838 static struct tm ac_aggr;
7839 if (ac_aggr.tm_zone)
7840 return 0;
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_member_struct_tm_tm_zone=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h. */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 #include <$ac_cv_struct_tm>
7875
7876
7877 int
7878 main ()
7879 {
7880 static struct tm ac_aggr;
7881 if (sizeof ac_aggr.tm_zone)
7882 return 0;
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (ac_try="$ac_compile"
7889 case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_compile") 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && {
7901 test -z "$ac_c_werror_flag" ||
7902 test ! -s conftest.err
7903 } && test -s conftest.$ac_objext; then
7904 ac_cv_member_struct_tm_tm_zone=yes
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 ac_cv_member_struct_tm_tm_zone=no
7910 fi
7911
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 fi
7914
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 fi
7917 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7918 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7919 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7920
7921 cat >>confdefs.h <<_ACEOF
7922 #define HAVE_STRUCT_TM_TM_ZONE 1
7923 _ACEOF
7924
7925
7926 fi
7927
7928 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7929
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_TM_ZONE 1
7932 _ACEOF
7933
7934 else
7935 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7936 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7937 if test "${ac_cv_have_decl_tzname+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <time.h>
7947
7948 int
7949 main ()
7950 {
7951 #ifndef tzname
7952 (void) tzname;
7953 #endif
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (ac_try="$ac_compile"
7961 case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_cv_have_decl_tzname=yes
7977 else
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_cv_have_decl_tzname=no
7982 fi
7983
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 fi
7986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7987 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7988 if test $ac_cv_have_decl_tzname = yes; then
7989
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_DECL_TZNAME 1
7992 _ACEOF
7993
7994
7995 else
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_DECL_TZNAME 0
7998 _ACEOF
7999
8000
8001 fi
8002
8003
8004 { echo "$as_me:$LINENO: checking for tzname" >&5
8005 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8006 if test "${ac_cv_var_tzname+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 #include <time.h>
8016 #if !HAVE_DECL_TZNAME
8017 extern char *tzname[];
8018 #endif
8019
8020 int
8021 main ()
8022 {
8023 return tzname[0][0];
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8046 ac_cv_var_tzname=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_var_tzname=no
8052 fi
8053
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055 conftest$ac_exeext conftest.$ac_ext
8056 fi
8057 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8058 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8059 if test $ac_cv_var_tzname = yes; then
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define HAVE_TZNAME 1
8063 _ACEOF
8064
8065 fi
8066 fi
8067
8068 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8069 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8070 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h. */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079 #include <time.h>
8080
8081 int
8082 main ()
8083 {
8084 static struct tm ac_aggr;
8085 if (ac_aggr.tm_gmtoff)
8086 return 0;
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_member_struct_tm_tm_gmtoff=yes
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <time.h>
8120
8121 int
8122 main ()
8123 {
8124 static struct tm ac_aggr;
8125 if (sizeof ac_aggr.tm_gmtoff)
8126 return 0;
8127 ;
8128 return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8148 ac_cv_member_struct_tm_tm_gmtoff=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 ac_cv_member_struct_tm_tm_gmtoff=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 fi
8161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8163 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8164
8165 cat >>confdefs.h <<\_ACEOF
8166 #define HAVE_TM_GMTOFF 1
8167 _ACEOF
8168
8169 fi
8170
8171 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8172 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8173 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8185 #endif
8186 #if HAVE_NET_IF_H
8187 #include <net/if.h>
8188 #endif
8189
8190 int
8191 main ()
8192 {
8193 static struct ifreq ac_aggr;
8194 if (ac_aggr.ifr_flags)
8195 return 0;
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_member_struct_ifreq_ifr_flags=yes
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 #if HAVE_SYS_SOCKET_H
8230 #include <sys/socket.h>
8231 #endif
8232 #if HAVE_NET_IF_H
8233 #include <net/if.h>
8234 #endif
8235
8236 int
8237 main ()
8238 {
8239 static struct ifreq ac_aggr;
8240 if (sizeof ac_aggr.ifr_flags)
8241 return 0;
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.$ac_objext; then
8263 ac_cv_member_struct_ifreq_ifr_flags=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_cv_member_struct_ifreq_ifr_flags=no
8269 fi
8270
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 fi
8273
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8277 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8278 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8282 _ACEOF
8283
8284
8285 fi
8286 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8287 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8288 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 #if HAVE_SYS_SOCKET_H
8299 #include <sys/socket.h>
8300 #endif
8301 #if HAVE_NET_IF_H
8302 #include <net/if.h>
8303 #endif
8304
8305 int
8306 main ()
8307 {
8308 static struct ifreq ac_aggr;
8309 if (ac_aggr.ifr_hwaddr)
8310 return 0;
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 #if HAVE_SYS_SOCKET_H
8345 #include <sys/socket.h>
8346 #endif
8347 #if HAVE_NET_IF_H
8348 #include <net/if.h>
8349 #endif
8350
8351 int
8352 main ()
8353 {
8354 static struct ifreq ac_aggr;
8355 if (sizeof ac_aggr.ifr_hwaddr)
8356 return 0;
8357 ;
8358 return 0;
8359 }
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (ac_try="$ac_compile"
8363 case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_compile") 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest.$ac_objext; then
8378 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8392 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8393 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8394
8395 cat >>confdefs.h <<_ACEOF
8396 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8397 _ACEOF
8398
8399
8400 fi
8401 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8402 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8403 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #if HAVE_SYS_SOCKET_H
8414 #include <sys/socket.h>
8415 #endif
8416 #if HAVE_NET_IF_H
8417 #include <net/if.h>
8418 #endif
8419
8420 int
8421 main ()
8422 {
8423 static struct ifreq ac_aggr;
8424 if (ac_aggr.ifr_netmask)
8425 return 0;
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_cv_member_struct_ifreq_ifr_netmask=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #if HAVE_SYS_SOCKET_H
8460 #include <sys/socket.h>
8461 #endif
8462 #if HAVE_NET_IF_H
8463 #include <net/if.h>
8464 #endif
8465
8466 int
8467 main ()
8468 {
8469 static struct ifreq ac_aggr;
8470 if (sizeof ac_aggr.ifr_netmask)
8471 return 0;
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.$ac_objext; then
8493 ac_cv_member_struct_ifreq_ifr_netmask=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_member_struct_ifreq_ifr_netmask=no
8499 fi
8500
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 fi
8506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8507 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8508 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8512 _ACEOF
8513
8514
8515 fi
8516 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8517 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8518 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #if HAVE_SYS_SOCKET_H
8529 #include <sys/socket.h>
8530 #endif
8531 #if HAVE_NET_IF_H
8532 #include <net/if.h>
8533 #endif
8534
8535 int
8536 main ()
8537 {
8538 static struct ifreq ac_aggr;
8539 if (ac_aggr.ifr_broadaddr)
8540 return 0;
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #if HAVE_SYS_SOCKET_H
8575 #include <sys/socket.h>
8576 #endif
8577 #if HAVE_NET_IF_H
8578 #include <net/if.h>
8579 #endif
8580
8581 int
8582 main ()
8583 {
8584 static struct ifreq ac_aggr;
8585 if (sizeof ac_aggr.ifr_broadaddr)
8586 return 0;
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8609 else
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8622 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8624
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8627 _ACEOF
8628
8629
8630 fi
8631 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8632 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8645 #endif
8646 #if HAVE_NET_IF_H
8647 #include <net/if.h>
8648 #endif
8649
8650 int
8651 main ()
8652 {
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_addr)
8655 return 0;
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_member_struct_ifreq_ifr_addr=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 #if HAVE_SYS_SOCKET_H
8690 #include <sys/socket.h>
8691 #endif
8692 #if HAVE_NET_IF_H
8693 #include <net/if.h>
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 static struct ifreq ac_aggr;
8700 if (sizeof ac_aggr.ifr_addr)
8701 return 0;
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_cv_member_struct_ifreq_ifr_addr=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_cv_member_struct_ifreq_ifr_addr=no
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8737 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8738 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8742 _ACEOF
8743
8744
8745 fi
8746
8747
8748
8749 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8750 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8751 if test "$ac_cv_prog_cc_c89" != no; then
8752 { echo "$as_me:$LINENO: result: yes" >&5
8753 echo "${ECHO_T}yes" >&6; }
8754
8755 cat >>confdefs.h <<\_ACEOF
8756 #define PROTOTYPES 1
8757 _ACEOF
8758
8759
8760 cat >>confdefs.h <<\_ACEOF
8761 #define __PROTOTYPES 1
8762 _ACEOF
8763
8764 else
8765 { echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6; }
8767 fi
8768
8769 { echo "$as_me:$LINENO: checking for working volatile" >&5
8770 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8771 if test "${ac_cv_c_volatile+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780
8781 int
8782 main ()
8783 {
8784
8785 volatile int x;
8786 int * volatile y = (int *) 0;
8787 return !x && !y;
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8794 case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_c_volatile=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_cv_c_volatile=no
8815 fi
8816
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 fi
8819 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8820 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8821 if test $ac_cv_c_volatile = no; then
8822
8823 cat >>confdefs.h <<\_ACEOF
8824 #define volatile
8825 _ACEOF
8826
8827 fi
8828
8829 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8830 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8831 if test "${ac_cv_c_const+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840
8841 int
8842 main ()
8843 {
8844 /* FIXME: Include the comments suggested by Paul. */
8845 #ifndef __cplusplus
8846 /* Ultrix mips cc rejects this. */
8847 typedef int charset[2];
8848 const charset cs;
8849 /* SunOS 4.1.1 cc rejects this. */
8850 char const *const *pcpcc;
8851 char **ppc;
8852 /* NEC SVR4.0.2 mips cc rejects this. */
8853 struct point {int x, y;};
8854 static struct point const zero = {0,0};
8855 /* AIX XL C 1.02.0.0 rejects this.
8856 It does not let you subtract one const X* pointer from another in
8857 an arm of an if-expression whose if-part is not a constant
8858 expression */
8859 const char *g = "string";
8860 pcpcc = &g + (g ? g-g : 0);
8861 /* HPUX 7.0 cc rejects these. */
8862 ++pcpcc;
8863 ppc = (char**) pcpcc;
8864 pcpcc = (char const *const *) ppc;
8865 { /* SCO 3.2v4 cc rejects this. */
8866 char *t;
8867 char const *s = 0 ? (char *) 0 : (char const *) 0;
8868
8869 *t++ = 0;
8870 if (s) return 0;
8871 }
8872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8873 int x[] = {25, 17};
8874 const int *foo = &x[0];
8875 ++foo;
8876 }
8877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8878 typedef const int *iptr;
8879 iptr p = 0;
8880 ++p;
8881 }
8882 { /* AIX XL C 1.02.0.0 rejects this saying
8883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8884 struct s { int j; const int *ap[3]; };
8885 struct s *b; b->j = 5;
8886 }
8887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8888 const int foo = 10;
8889 if (!foo) return 0;
8890 }
8891 return !cs[0] && !zero.x;
8892 #endif
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8900 case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.$ac_objext; then
8915 ac_cv_c_const=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 ac_cv_c_const=no
8921 fi
8922
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8926 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8927 if test $ac_cv_c_const = no; then
8928
8929 cat >>confdefs.h <<\_ACEOF
8930 #define const
8931 _ACEOF
8932
8933 fi
8934
8935 { echo "$as_me:$LINENO: checking for void * support" >&5
8936 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8937 if test "${emacs_cv_void_star+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946
8947 int
8948 main ()
8949 {
8950 void * foo;
8951 ;
8952 return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 emacs_cv_void_star=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 emacs_cv_void_star=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8983 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8984 if test $emacs_cv_void_star = yes; then
8985 cat >>confdefs.h <<\_ACEOF
8986 #define POINTER_TYPE void
8987 _ACEOF
8988
8989 else
8990 cat >>confdefs.h <<\_ACEOF
8991 #define POINTER_TYPE char
8992 _ACEOF
8993
8994 fi
8995
8996
8997
8998
8999
9000 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9002 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9003 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 cat >conftest.make <<\_ACEOF
9007 SHELL = /bin/sh
9008 all:
9009 @echo '@@@%%%=$(MAKE)=@@@%%%'
9010 _ACEOF
9011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9013 *@@@%%%=?*=@@@%%%*)
9014 eval ac_cv_prog_make_${ac_make}_set=yes;;
9015 *)
9016 eval ac_cv_prog_make_${ac_make}_set=no;;
9017 esac
9018 rm -f conftest.make
9019 fi
9020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9021 { echo "$as_me:$LINENO: result: yes" >&5
9022 echo "${ECHO_T}yes" >&6; }
9023 SET_MAKE=
9024 else
9025 { echo "$as_me:$LINENO: result: no" >&5
9026 echo "${ECHO_T}no" >&6; }
9027 SET_MAKE="MAKE=${MAKE-make}"
9028 fi
9029
9030
9031 { echo "$as_me:$LINENO: checking for long file names" >&5
9032 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9033 if test "${ac_cv_sys_long_file_names+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 ac_cv_sys_long_file_names=yes
9037 # Test for long file names in all the places we know might matter:
9038 # . the current directory, where building will happen
9039 # $prefix/lib where we will be installing things
9040 # $exec_prefix/lib likewise
9041 # $TMPDIR if set, where it might want to write temporary files
9042 # /tmp where it might want to write temporary files
9043 # /var/tmp likewise
9044 # /usr/tmp likewise
9045 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9046 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9047 # in the usual case where exec_prefix is '${prefix}'.
9048 case $ac_dir in #(
9049 . | /* | ?:[\\/]*) ;; #(
9050 *) continue;;
9051 esac
9052 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9053 ac_xdir=$ac_dir/cf$$
9054 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9055 ac_tf1=$ac_xdir/conftest9012345
9056 ac_tf2=$ac_xdir/conftest9012346
9057 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9058 ac_cv_sys_long_file_names=no
9059 rm -f -r "$ac_xdir" 2>/dev/null
9060 test $ac_cv_sys_long_file_names = no && break
9061 done
9062 fi
9063 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9064 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9065 if test $ac_cv_sys_long_file_names = yes; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_LONG_FILE_NAMES 1
9069 _ACEOF
9070
9071 fi
9072
9073
9074 #### Choose a window system.
9075
9076 { echo "$as_me:$LINENO: checking for X" >&5
9077 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9078
9079
9080 # Check whether --with-x was given.
9081 if test "${with_x+set}" = set; then
9082 withval=$with_x;
9083 fi
9084
9085 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9086 if test "x$with_x" = xno; then
9087 # The user explicitly disabled X.
9088 have_x=disabled
9089 else
9090 case $x_includes,$x_libraries in #(
9091 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9092 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9093 { (exit 1); exit 1; }; };; #(
9094 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 # One or both of the vars are not set, and there is no cached value.
9098 ac_x_includes=no ac_x_libraries=no
9099 rm -f -r conftest.dir
9100 if mkdir conftest.dir; then
9101 cd conftest.dir
9102 cat >Imakefile <<'_ACEOF'
9103 incroot:
9104 @echo incroot='${INCROOT}'
9105 usrlibdir:
9106 @echo usrlibdir='${USRLIBDIR}'
9107 libdir:
9108 @echo libdir='${LIBDIR}'
9109 _ACEOF
9110 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9112 for ac_var in incroot usrlibdir libdir; do
9113 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9114 done
9115 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9116 for ac_extension in a so sl; do
9117 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9118 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9119 ac_im_usrlibdir=$ac_im_libdir; break
9120 fi
9121 done
9122 # Screen out bogus values from the imake configuration. They are
9123 # bogus both because they are the default anyway, and because
9124 # using them would break gcc on systems where it needs fixed includes.
9125 case $ac_im_incroot in
9126 /usr/include) ac_x_includes= ;;
9127 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9128 esac
9129 case $ac_im_usrlibdir in
9130 /usr/lib | /lib) ;;
9131 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9132 esac
9133 fi
9134 cd ..
9135 rm -f -r conftest.dir
9136 fi
9137
9138 # Standard set of common directories for X headers.
9139 # Check X11 before X11Rn because it is often a symlink to the current release.
9140 ac_x_header_dirs='
9141 /usr/X11/include
9142 /usr/X11R6/include
9143 /usr/X11R5/include
9144 /usr/X11R4/include
9145
9146 /usr/include/X11
9147 /usr/include/X11R6
9148 /usr/include/X11R5
9149 /usr/include/X11R4
9150
9151 /usr/local/X11/include
9152 /usr/local/X11R6/include
9153 /usr/local/X11R5/include
9154 /usr/local/X11R4/include
9155
9156 /usr/local/include/X11
9157 /usr/local/include/X11R6
9158 /usr/local/include/X11R5
9159 /usr/local/include/X11R4
9160
9161 /usr/X386/include
9162 /usr/x386/include
9163 /usr/XFree86/include/X11
9164
9165 /usr/include
9166 /usr/local/include
9167 /usr/unsupported/include
9168 /usr/athena/include
9169 /usr/local/x11r5/include
9170 /usr/lpp/Xamples/include
9171
9172 /usr/openwin/include
9173 /usr/openwin/share/include'
9174
9175 if test "$ac_x_includes" = no; then
9176 # Guess where to find include files, by looking for Xlib.h.
9177 # First, try using that file with no special directory specified.
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h. */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 #include <X11/Xlib.h>
9185 _ACEOF
9186 if { (ac_try="$ac_cpp conftest.$ac_ext"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } >/dev/null && {
9199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 }; then
9202 # We can compile using X headers with no special include directory.
9203 ac_x_includes=
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 for ac_dir in $ac_x_header_dirs; do
9209 if test -r "$ac_dir/X11/Xlib.h"; then
9210 ac_x_includes=$ac_dir
9211 break
9212 fi
9213 done
9214 fi
9215
9216 rm -f conftest.err conftest.$ac_ext
9217 fi # $ac_x_includes = no
9218
9219 if test "$ac_x_libraries" = no; then
9220 # Check for the libraries.
9221 # See if we find them without any special options.
9222 # Don't add to $LIBS permanently.
9223 ac_save_LIBS=$LIBS
9224 LIBS="-lX11 $LIBS"
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h. */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <X11/Xlib.h>
9232 int
9233 main ()
9234 {
9235 XrmInitialize ()
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest$ac_exeext &&
9257 $as_test_x conftest$ac_exeext; then
9258 LIBS=$ac_save_LIBS
9259 # We can link X programs with no special library path.
9260 ac_x_libraries=
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 LIBS=$ac_save_LIBS
9266 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9267 do
9268 # Don't even attempt the hair of trying to link an X program!
9269 for ac_extension in a so sl; do
9270 if test -r "$ac_dir/libX11.$ac_extension"; then
9271 ac_x_libraries=$ac_dir
9272 break 2
9273 fi
9274 done
9275 done
9276 fi
9277
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi # $ac_x_libraries = no
9281
9282 case $ac_x_includes,$ac_x_libraries in #(
9283 no,* | *,no | *\'*)
9284 # Didn't find X, or a directory has "'" in its name.
9285 ac_cv_have_x="have_x=no";; #(
9286 *)
9287 # Record where we found X for the cache.
9288 ac_cv_have_x="have_x=yes\
9289 ac_x_includes='$ac_x_includes'\
9290 ac_x_libraries='$ac_x_libraries'"
9291 esac
9292 fi
9293 ;; #(
9294 *) have_x=yes;;
9295 esac
9296 eval "$ac_cv_have_x"
9297 fi # $with_x != no
9298
9299 if test "$have_x" != yes; then
9300 { echo "$as_me:$LINENO: result: $have_x" >&5
9301 echo "${ECHO_T}$have_x" >&6; }
9302 no_x=yes
9303 else
9304 # If each of the values was on the command line, it overrides each guess.
9305 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9306 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9307 # Update the cache value to reflect the command line values.
9308 ac_cv_have_x="have_x=yes\
9309 ac_x_includes='$x_includes'\
9310 ac_x_libraries='$x_libraries'"
9311 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9312 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9313 fi
9314
9315 if test "$no_x" = yes; then
9316 window_system=none
9317 else
9318 window_system=x11
9319 fi
9320
9321 ## Workaround for bug in autoconf <= 2.62.
9322 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9323 ## No need to do anything special for these standard directories.
9324 ## This is an experiment, take it out if it causes problems.
9325 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9326
9327 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9328
9329 fi
9330
9331 if test "${x_libraries}" != NONE; then
9332 if test -n "${x_libraries}"; then
9333 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9334 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9335 fi
9336 x_default_search_path=""
9337 x_search_path=${x_libraries}
9338 if test -z "${x_search_path}"; then
9339 x_search_path=/usr/lib
9340 fi
9341 for x_library in `echo ${x_search_path}: | \
9342 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9343 x_search_path="\
9344 ${x_library}/X11/%L/%T/%N%C%S:\
9345 ${x_library}/X11/%l/%T/%N%C%S:\
9346 ${x_library}/X11/%T/%N%C%S:\
9347 ${x_library}/X11/%L/%T/%N%S:\
9348 ${x_library}/X11/%l/%T/%N%S:\
9349 ${x_library}/X11/%T/%N%S"
9350 if test x"${x_default_search_path}" = x; then
9351 x_default_search_path=${x_search_path}
9352 else
9353 x_default_search_path="${x_search_path}:${x_default_search_path}"
9354 fi
9355 done
9356 fi
9357 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9358 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9359 fi
9360
9361 if test x"${x_includes}" = x; then
9362 bitmapdir=/usr/include/X11/bitmaps
9363 else
9364 # accumulate include directories that have X11 bitmap subdirectories
9365 bmd_acc="dummyval"
9366 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9367 if test -d "${bmd}/X11/bitmaps"; then
9368 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9369 fi
9370 if test -d "${bmd}/bitmaps"; then
9371 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9372 fi
9373 done
9374 if test ${bmd_acc} != "dummyval"; then
9375 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9376 fi
9377 fi
9378
9379 HAVE_CARBON=no
9380 if test "${with_carbon}" != no; then
9381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9382 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9383 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9384 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 fi
9387 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9388 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9389 else
9390 # Is the header compilable?
9391 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9392 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 #include <Carbon/Carbon.h>
9401 _ACEOF
9402 rm -f conftest.$ac_objext
9403 if { (ac_try="$ac_compile"
9404 case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest.$ac_objext; then
9419 ac_header_compiler=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ac_header_compiler=no
9425 fi
9426
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6; }
9430
9431 # Is the header present?
9432 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9433 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <Carbon/Carbon.h>
9441 _ACEOF
9442 if { (ac_try="$ac_cpp conftest.$ac_ext"
9443 case "(($ac_try" in
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9446 esac
9447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev/null && {
9455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9457 }; then
9458 ac_header_preproc=yes
9459 else
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 ac_header_preproc=no
9464 fi
9465
9466 rm -f conftest.err conftest.$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9468 echo "${ECHO_T}$ac_header_preproc" >&6; }
9469
9470 # So? What about this header?
9471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9472 yes:no: )
9473 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9474 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9476 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9477 ac_header_preproc=yes
9478 ;;
9479 no:yes:* )
9480 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9481 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9483 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9485 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9487 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9489 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9491 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9492
9493 ;;
9494 esac
9495 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9501 fi
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9504
9505 fi
9506 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9507 HAVE_CARBON=yes
9508 fi
9509
9510
9511 fi
9512 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9513 if test "${with_carbon+set}" != set \
9514 && test "${carbon_appdir_x+set}" != set; then
9515 for var in with_x with_x_toolkit with_xim \
9516 with_xpm with_jpeg with_tiff with_gif with_png; do
9517 if eval test \"\${$var+set}\" = set; then
9518 HAVE_CARBON=no
9519 break
9520 fi
9521 done
9522 fi
9523 fi
9524 if test "${HAVE_CARBON}" = yes; then
9525 window_system=mac
9526 fi
9527
9528 case "${window_system}" in
9529 x11 )
9530 HAVE_X_WINDOWS=yes
9531 HAVE_X11=yes
9532 case "${with_x_toolkit}" in
9533 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9534 motif ) USE_X_TOOLKIT=MOTIF ;;
9535 gtk ) with_gtk=yes
9536 USE_X_TOOLKIT=none ;;
9537 no ) USE_X_TOOLKIT=none ;;
9538 * ) USE_X_TOOLKIT=maybe ;;
9539 esac
9540 ;;
9541 mac | none )
9542 HAVE_X_WINDOWS=no
9543 HAVE_X11=no
9544 USE_X_TOOLKIT=none
9545 ;;
9546 esac
9547
9548 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9549 # Extract the first word of "X", so it can be a program name with args.
9550 set dummy X; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556 if test -n "$HAVE_XSERVER"; then
9557 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_HAVE_XSERVER="true"
9567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9569 fi
9570 done
9571 done
9572 IFS=$as_save_IFS
9573
9574 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9575 fi
9576 fi
9577 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9578 if test -n "$HAVE_XSERVER"; then
9579 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9580 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9581 else
9582 { echo "$as_me:$LINENO: result: no" >&5
9583 echo "${ECHO_T}no" >&6; }
9584 fi
9585
9586
9587 if test "$HAVE_XSERVER" = true ||
9588 test -n "$DISPLAY" ||
9589 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9590 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9591 were found. You should install the relevant development files for X
9592 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9593 sure you have development files for image handling, i.e.
9594 tiff, gif, jpeg, png and xpm.
9595 If you are sure you want Emacs compiled without X window support, pass
9596 --without-x
9597 to configure." >&5
9598 echo "$as_me: error: You seem to be running X, but no X development libraries
9599 were found. You should install the relevant development files for X
9600 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9601 sure you have development files for image handling, i.e.
9602 tiff, gif, jpeg, png and xpm.
9603 If you are sure you want Emacs compiled without X window support, pass
9604 --without-x
9605 to configure." >&2;}
9606 { (exit 1); exit 1; }; }
9607 fi
9608 fi
9609
9610 ### If we're using X11, we should use the X menu package.
9611 HAVE_MENUS=no
9612 case ${HAVE_X11} in
9613 yes ) HAVE_MENUS=yes ;;
9614 esac
9615
9616 ### Compute the unexec source name from the object name.
9617 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9618
9619 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9620 # Assume not, until told otherwise.
9621 GNU_MALLOC=yes
9622 doug_lea_malloc=yes
9623 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9624 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define malloc_get_state innocuous_malloc_get_state
9637
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char malloc_get_state (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9642
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9648
9649 #undef malloc_get_state
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char malloc_get_state ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9662 choke me
9663 #endif
9664
9665 int
9666 main ()
9667 {
9668 return malloc_get_state ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_func_malloc_get_state=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_func_malloc_get_state=no
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9703 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9704 if test $ac_cv_func_malloc_get_state = yes; then
9705 :
9706 else
9707 doug_lea_malloc=no
9708 fi
9709
9710 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9711 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define malloc_set_state innocuous_malloc_set_state
9724
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char malloc_set_state (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9729
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9735
9736 #undef malloc_set_state
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char malloc_set_state ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9749 choke me
9750 #endif
9751
9752 int
9753 main ()
9754 {
9755 return malloc_set_state ();
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext &&
9777 $as_test_x conftest$ac_exeext; then
9778 ac_cv_func_malloc_set_state=yes
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_func_malloc_set_state=no
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9790 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9791 if test $ac_cv_func_malloc_set_state = yes; then
9792 :
9793 else
9794 doug_lea_malloc=no
9795 fi
9796
9797 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9798 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9799 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 extern void (* __after_morecore_hook)();
9809 int
9810 main ()
9811 {
9812 __after_morecore_hook = 0
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 emacs_cv_var___after_morecore_hook=yes
9836 else
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840 emacs_cv_var___after_morecore_hook=no
9841 fi
9842
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9847 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9848 if test $emacs_cv_var___after_morecore_hook = no; then
9849 doug_lea_malloc=no
9850 fi
9851 if test "${system_malloc}" = "yes"; then
9852 GNU_MALLOC=no
9853 GNU_MALLOC_reason="
9854 (The GNU allocators don't work with this system configuration.)"
9855 fi
9856 if test "$doug_lea_malloc" = "yes" ; then
9857 if test "$GNU_MALLOC" = yes ; then
9858 GNU_MALLOC_reason="
9859 (Using Doug Lea's new malloc from the GNU C Library.)"
9860 fi
9861
9862 cat >>confdefs.h <<\_ACEOF
9863 #define DOUG_LEA_MALLOC 1
9864 _ACEOF
9865
9866 fi
9867
9868 if test x"${REL_ALLOC}" = x; then
9869 REL_ALLOC=${GNU_MALLOC}
9870 fi
9871
9872
9873
9874
9875 for ac_header in stdlib.h unistd.h
9876 do
9877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 fi
9884 ac_res=`eval echo '${'$as_ac_Header'}'`
9885 { echo "$as_me:$LINENO: result: $ac_res" >&5
9886 echo "${ECHO_T}$ac_res" >&6; }
9887 else
9888 # Is the header compilable?
9889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9898 #include <$ac_header>
9899 _ACEOF
9900 rm -f conftest.$ac_objext
9901 if { (ac_try="$ac_compile"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_header_compiler=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 ac_header_compiler=no
9923 fi
9924
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9927 echo "${ECHO_T}$ac_header_compiler" >&6; }
9928
9929 # Is the header present?
9930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <$ac_header>
9939 _ACEOF
9940 if { (ac_try="$ac_cpp conftest.$ac_ext"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } >/dev/null && {
9953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 }; then
9956 ac_header_preproc=yes
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_header_preproc=no
9962 fi
9963
9964 rm -f conftest.err conftest.$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9966 echo "${ECHO_T}$ac_header_preproc" >&6; }
9967
9968 # So? What about this header?
9969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9970 yes:no: )
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9975 ac_header_preproc=yes
9976 ;;
9977 no:yes:* )
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9990
9991 ;;
9992 esac
9993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 eval "$as_ac_Header=\$ac_header_preproc"
9999 fi
10000 ac_res=`eval echo '${'$as_ac_Header'}'`
10001 { echo "$as_me:$LINENO: result: $ac_res" >&5
10002 echo "${ECHO_T}$ac_res" >&6; }
10003
10004 fi
10005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006 cat >>confdefs.h <<_ACEOF
10007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008 _ACEOF
10009
10010 fi
10011
10012 done
10013
10014
10015 for ac_func in getpagesize
10016 do
10017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10031 #define $ac_func innocuous_$ac_func
10032
10033 /* System header to define __stub macros and hopefully few prototypes,
10034 which can conflict with char $ac_func (); below.
10035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10036 <limits.h> exists even on freestanding compilers. */
10037
10038 #ifdef __STDC__
10039 # include <limits.h>
10040 #else
10041 # include <assert.h>
10042 #endif
10043
10044 #undef $ac_func
10045
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char $ac_func ();
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined __stub_$ac_func || defined __stub___$ac_func
10057 choke me
10058 #endif
10059
10060 int
10061 main ()
10062 {
10063 return $ac_func ();
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest$ac_exeext &&
10085 $as_test_x conftest$ac_exeext; then
10086 eval "$as_ac_var=yes"
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 eval "$as_ac_var=no"
10092 fi
10093
10094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095 conftest$ac_exeext conftest.$ac_ext
10096 fi
10097 ac_res=`eval echo '${'$as_ac_var'}'`
10098 { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10100 if test `eval echo '${'$as_ac_var'}'` = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10103 _ACEOF
10104
10105 fi
10106 done
10107
10108 { echo "$as_me:$LINENO: checking for working mmap" >&5
10109 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10110 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113 if test "$cross_compiling" = yes; then
10114 ac_cv_func_mmap_fixed_mapped=no
10115 else
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 /* malloc might have been renamed as rpl_malloc. */
10124 #undef malloc
10125
10126 /* Thanks to Mike Haertel and Jim Avera for this test.
10127 Here is a matrix of mmap possibilities:
10128 mmap private not fixed
10129 mmap private fixed at somewhere currently unmapped
10130 mmap private fixed at somewhere already mapped
10131 mmap shared not fixed
10132 mmap shared fixed at somewhere currently unmapped
10133 mmap shared fixed at somewhere already mapped
10134 For private mappings, we should verify that changes cannot be read()
10135 back from the file, nor mmap's back from the file at a different
10136 address. (There have been systems where private was not correctly
10137 implemented like the infamous i386 svr4.0, and systems where the
10138 VM page cache was not coherent with the file system buffer cache
10139 like early versions of FreeBSD and possibly contemporary NetBSD.)
10140 For shared mappings, we should conversely verify that changes get
10141 propagated back to all the places they're supposed to be.
10142
10143 Grep wants private fixed already mapped.
10144 The main things grep needs to know about mmap are:
10145 * does it exist and is it safe to write into the mmap'd area
10146 * how to use it (BSD variants) */
10147
10148 #include <fcntl.h>
10149 #include <sys/mman.h>
10150
10151 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10152 char *malloc ();
10153 #endif
10154
10155 /* This mess was copied from the GNU getpagesize.h. */
10156 #ifndef HAVE_GETPAGESIZE
10157 /* Assume that all systems that can run configure have sys/param.h. */
10158 # ifndef HAVE_SYS_PARAM_H
10159 # define HAVE_SYS_PARAM_H 1
10160 # endif
10161
10162 # ifdef _SC_PAGESIZE
10163 # define getpagesize() sysconf(_SC_PAGESIZE)
10164 # else /* no _SC_PAGESIZE */
10165 # ifdef HAVE_SYS_PARAM_H
10166 # include <sys/param.h>
10167 # ifdef EXEC_PAGESIZE
10168 # define getpagesize() EXEC_PAGESIZE
10169 # else /* no EXEC_PAGESIZE */
10170 # ifdef NBPG
10171 # define getpagesize() NBPG * CLSIZE
10172 # ifndef CLSIZE
10173 # define CLSIZE 1
10174 # endif /* no CLSIZE */
10175 # else /* no NBPG */
10176 # ifdef NBPC
10177 # define getpagesize() NBPC
10178 # else /* no NBPC */
10179 # ifdef PAGESIZE
10180 # define getpagesize() PAGESIZE
10181 # endif /* PAGESIZE */
10182 # endif /* no NBPC */
10183 # endif /* no NBPG */
10184 # endif /* no EXEC_PAGESIZE */
10185 # else /* no HAVE_SYS_PARAM_H */
10186 # define getpagesize() 8192 /* punt totally */
10187 # endif /* no HAVE_SYS_PARAM_H */
10188 # endif /* no _SC_PAGESIZE */
10189
10190 #endif /* no HAVE_GETPAGESIZE */
10191
10192 int
10193 main ()
10194 {
10195 char *data, *data2, *data3;
10196 int i, pagesize;
10197 int fd;
10198
10199 pagesize = getpagesize ();
10200
10201 /* First, make a file with some known garbage in it. */
10202 data = (char *) malloc (pagesize);
10203 if (!data)
10204 return 1;
10205 for (i = 0; i < pagesize; ++i)
10206 *(data + i) = rand ();
10207 umask (0);
10208 fd = creat ("conftest.mmap", 0600);
10209 if (fd < 0)
10210 return 1;
10211 if (write (fd, data, pagesize) != pagesize)
10212 return 1;
10213 close (fd);
10214
10215 /* Next, try to mmap the file at a fixed address which already has
10216 something else allocated at it. If we can, also make sure that
10217 we see the same garbage. */
10218 fd = open ("conftest.mmap", O_RDWR);
10219 if (fd < 0)
10220 return 1;
10221 data2 = (char *) malloc (2 * pagesize);
10222 if (!data2)
10223 return 1;
10224 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10225 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10226 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10227 return 1;
10228 for (i = 0; i < pagesize; ++i)
10229 if (*(data + i) != *(data2 + i))
10230 return 1;
10231
10232 /* Finally, make sure that changes to the mapped area do not
10233 percolate back to the file as seen by read(). (This is a bug on
10234 some variants of i386 svr4.0.) */
10235 for (i = 0; i < pagesize; ++i)
10236 *(data2 + i) = *(data2 + i) + 1;
10237 data3 = (char *) malloc (pagesize);
10238 if (!data3)
10239 return 1;
10240 if (read (fd, data3, pagesize) != pagesize)
10241 return 1;
10242 for (i = 0; i < pagesize; ++i)
10243 if (*(data + i) != *(data3 + i))
10244 return 1;
10245 close (fd);
10246 return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest$ac_exeext
10250 if { (ac_try="$ac_link"
10251 case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_link") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func_mmap_fixed_mapped=yes
10270 else
10271 echo "$as_me: program exited with status $ac_status" >&5
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ( exit $ac_status )
10276 ac_cv_func_mmap_fixed_mapped=no
10277 fi
10278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10279 fi
10280
10281
10282 fi
10283 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10284 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10285 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_MMAP 1
10289 _ACEOF
10290
10291 fi
10292 rm -f conftest.mmap
10293
10294 if test $use_mmap_for_buffers = yes; then
10295 REL_ALLOC=no
10296 fi
10297
10298 LIBS="$libsrc_libs $LIBS"
10299
10300
10301 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10302 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ldnet $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char dnet_ntoa ();
10322 int
10323 main ()
10324 {
10325 return dnet_ntoa ();
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 ac_cv_lib_dnet_dnet_ntoa=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 ac_cv_lib_dnet_dnet_ntoa=no
10354 fi
10355
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10359 fi
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10361 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10362 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_LIBDNET 1
10365 _ACEOF
10366
10367 LIBS="-ldnet $LIBS"
10368
10369 fi
10370
10371
10372 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10373 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377 ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-lXbsd $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385
10386
10387 int
10388 main ()
10389 {
10390 return main ();
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10413 ac_cv_lib_Xbsd_main=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_cv_lib_Xbsd_main=no
10419 fi
10420
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10427 if test $ac_cv_lib_Xbsd_main = yes; then
10428 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10429 fi
10430
10431
10432
10433 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10434 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10435 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lpthreads $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h. */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char cma_open ();
10454 int
10455 main ()
10456 {
10457 return cma_open ();
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
10480 ac_cv_lib_pthreads_cma_open=yes
10481 else
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485 ac_cv_lib_pthreads_cma_open=no
10486 fi
10487
10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10489 conftest$ac_exeext conftest.$ac_ext
10490 LIBS=$ac_check_lib_save_LIBS
10491 fi
10492 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10493 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10494 if test $ac_cv_lib_pthreads_cma_open = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_LIBPTHREADS 1
10497 _ACEOF
10498
10499 LIBS="-lpthreads $LIBS"
10500
10501 fi
10502
10503
10504
10505 case ${host_os} in
10506 aix*)
10507 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10508 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10509 if test "${gdb_cv_bigtoc+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512
10513 case $GCC in
10514 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10515 *) gdb_cv_bigtoc=-bbigtoc ;;
10516 esac
10517
10518 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525
10526 int
10527 main ()
10528 {
10529 int i;
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10552 :
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 gdb_cv_bigtoc=
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562
10563 fi
10564 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10565 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10566 ;;
10567 esac
10568
10569 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10570 # used for the tests that follow. We set them back to REAL_CFLAGS and
10571 # REAL_CPPFLAGS later on.
10572
10573 REAL_CPPFLAGS="$CPPFLAGS"
10574
10575 if test "${HAVE_X11}" = "yes"; then
10576 DEFS="$C_SWITCH_X_SITE $DEFS"
10577 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10578 LIBS="$LIBX $LIBS"
10579 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10580 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10581
10582 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10583 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10584 # but it's more convenient here to set LD_RUN_PATH
10585 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10586 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10587 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10588 export LD_RUN_PATH
10589 fi
10590
10591 if test "${opsys}" = "gnu-linux"; then
10592 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10593 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600
10601 int
10602 main ()
10603 {
10604 XOpenDisplay ("foo");
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext &&
10626 $as_test_x conftest$ac_exeext; then
10627 xlinux_first_failure=no
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 xlinux_first_failure=yes
10633 fi
10634
10635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10636 conftest$ac_exeext conftest.$ac_ext
10637 if test "${xlinux_first_failure}" = "yes"; then
10638 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10639 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10640 OLD_CPPFLAGS="$CPPFLAGS"
10641 OLD_LIBS="$LIBS"
10642 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10643 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10644 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10645 LIBS="$LIBS -b i486-linuxaout"
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652
10653 int
10654 main ()
10655 {
10656 XOpenDisplay ("foo");
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (ac_try="$ac_link"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_link") 2>conftest.er1
10669 ac_status=$?
10670 grep -v '^ *+' conftest.er1 >conftest.err
10671 rm -f conftest.er1
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } && {
10675 test -z "$ac_c_werror_flag" ||
10676 test ! -s conftest.err
10677 } && test -s conftest$ac_exeext &&
10678 $as_test_x conftest$ac_exeext; then
10679 xlinux_second_failure=no
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 xlinux_second_failure=yes
10685 fi
10686
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10689 if test "${xlinux_second_failure}" = "yes"; then
10690 # If we get the same failure with -b, there is no use adding -b.
10691 # So take it out. This plays safe.
10692 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10693 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10694 CPPFLAGS="$OLD_CPPFLAGS"
10695 LIBS="$OLD_LIBS"
10696 { echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6; }
10698 else
10699 { echo "$as_me:$LINENO: result: yes" >&5
10700 echo "${ECHO_T}yes" >&6; }
10701 fi
10702 else
10703 { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10705 fi
10706 fi
10707
10708 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10709 # header files included from there.
10710 { echo "$as_me:$LINENO: checking for Xkb" >&5
10711 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <X11/Xlib.h>
10719 #include <X11/XKBlib.h>
10720 int
10721 main ()
10722 {
10723 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 emacs_xkb=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 emacs_xkb=no
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10757 echo "${ECHO_T}$emacs_xkb" >&6; }
10758 if test $emacs_xkb = yes; then
10759
10760 cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_XKBGETKEYBOARD 1
10762 _ACEOF
10763
10764 fi
10765
10766
10767
10768
10769
10770 for ac_func in XrmSetDatabase XScreenResourceString \
10771 XScreenNumberOfScreen XSetWMProtocols
10772 do
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787 #define $ac_func innocuous_$ac_func
10788
10789 /* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char $ac_func (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10793
10794 #ifdef __STDC__
10795 # include <limits.h>
10796 #else
10797 # include <assert.h>
10798 #endif
10799
10800 #undef $ac_func
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char $ac_func ();
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined __stub_$ac_func || defined __stub___$ac_func
10813 choke me
10814 #endif
10815
10816 int
10817 main ()
10818 {
10819 return $ac_func ();
10820 ;
10821 return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 eval "$as_ac_var=yes"
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 eval "$as_ac_var=no"
10848 fi
10849
10850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10852 fi
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10859 _ACEOF
10860
10861 fi
10862 done
10863
10864 fi
10865
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10868 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_6+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10879 int
10880 main ()
10881 {
10882 #if XlibSpecificationRelease < 6
10883 fail;
10884 #endif
10885
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 emacs_cv_x11_version_6=yes
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 emacs_cv_x11_version_6=no
10914 fi
10915
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918 fi
10919
10920 if test $emacs_cv_x11_version_6 = yes; then
10921 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10922 echo "${ECHO_T}6 or newer" >&6; }
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_X11R6 1
10926 _ACEOF
10927
10928 else
10929 { echo "$as_me:$LINENO: result: before 6" >&5
10930 echo "${ECHO_T}before 6" >&6; }
10931 fi
10932 fi
10933
10934
10935 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10936 HAVE_RSVG=no
10937 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10938 if test "${with_rsvg}" != "no"; then
10939 RSVG_REQUIRED=2.0.0
10940 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10941
10942
10943 succeeded=no
10944
10945 # Extract the first word of "pkg-config", so it can be a program name with args.
10946 set dummy pkg-config; ac_word=$2
10947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 case $PKG_CONFIG in
10953 [\\/]* | ?:[\\/]*)
10954 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10955 ;;
10956 *)
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10959 do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968 done
10969 done
10970 IFS=$as_save_IFS
10971
10972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10973 ;;
10974 esac
10975 fi
10976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10977 if test -n "$PKG_CONFIG"; then
10978 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10979 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10980 else
10981 { echo "$as_me:$LINENO: result: no" >&5
10982 echo "${ECHO_T}no" >&6; }
10983 fi
10984
10985
10986
10987 if test "$PKG_CONFIG" = "no" ; then
10988 :
10989 else
10990 PKG_CONFIG_MIN_VERSION=0.9.0
10991 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10992 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10993 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10994
10995 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10996 { echo "$as_me:$LINENO: result: yes" >&5
10997 echo "${ECHO_T}yes" >&6; }
10998 succeeded=yes
10999
11000 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11001 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11002 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11003 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11004 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11005
11006 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11007 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11008 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11009 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11010 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11011 else
11012 { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11014 RSVG_CFLAGS=""
11015 RSVG_LIBS=""
11016 ## If we have a custom action on failure, don't print errors, but
11017 ## do set a variable so people can do so.
11018 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11019
11020 fi
11021
11022
11023
11024 else
11025 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11026 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11027 fi
11028 fi
11029
11030 if test $succeeded = yes; then
11031 :
11032 else
11033 :
11034 fi
11035
11036
11037
11038
11039 if test ".${RSVG_CFLAGS}" != "."; then
11040 HAVE_RSVG=yes
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_RSVG 1
11044 _ACEOF
11045
11046 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11047 LIBS="$RSVG_LIBS $LIBS"
11048 fi
11049 fi
11050 fi
11051
11052
11053 HAVE_GTK=no
11054 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11055 GLIB_REQUIRED=2.6
11056 GTK_REQUIRED=2.6
11057 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11058
11059
11060 succeeded=no
11061
11062 # Extract the first word of "pkg-config", so it can be a program name with args.
11063 set dummy pkg-config; ac_word=$2
11064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11066 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 case $PKG_CONFIG in
11070 [\\/]* | ?:[\\/]*)
11071 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11072 ;;
11073 *)
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11076 do
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11081 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085 done
11086 done
11087 IFS=$as_save_IFS
11088
11089 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11090 ;;
11091 esac
11092 fi
11093 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11094 if test -n "$PKG_CONFIG"; then
11095 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11096 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11097 else
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11100 fi
11101
11102
11103
11104 if test "$PKG_CONFIG" = "no" ; then
11105 pkg_check_gtk=no
11106 else
11107 PKG_CONFIG_MIN_VERSION=0.9.0
11108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11109 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11110 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11111
11112 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11115 succeeded=yes
11116
11117 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11118 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11119 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11120 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11121 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11122
11123 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11124 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11125 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11126 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11127 echo "${ECHO_T}$GTK_LIBS" >&6; }
11128 else
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11131 GTK_CFLAGS=""
11132 GTK_LIBS=""
11133 ## If we have a custom action on failure, don't print errors, but
11134 ## do set a variable so people can do so.
11135 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11136
11137 fi
11138
11139
11140
11141 else
11142 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11143 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11144 fi
11145 fi
11146
11147 if test $succeeded = yes; then
11148 pkg_check_gtk=yes
11149 else
11150 pkg_check_gtk=no
11151 fi
11152
11153 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11154 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11155 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11156 { (exit 1); exit 1; }; }
11157 fi
11158 fi
11159
11160
11161 if test x"$pkg_check_gtk" = xyes; then
11162
11163
11164
11165 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11166 CFLAGS="$CFLAGS $GTK_CFLAGS"
11167 LIBS="$GTK_LIBS $LIBS"
11168 GTK_COMPILES=no
11169
11170 for ac_func in gtk_main
11171 do
11172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11186 #define $ac_func innocuous_$ac_func
11187
11188 /* System header to define __stub macros and hopefully few prototypes,
11189 which can conflict with char $ac_func (); below.
11190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191 <limits.h> exists even on freestanding compilers. */
11192
11193 #ifdef __STDC__
11194 # include <limits.h>
11195 #else
11196 # include <assert.h>
11197 #endif
11198
11199 #undef $ac_func
11200
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 char $ac_func ();
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined __stub_$ac_func || defined __stub___$ac_func
11212 choke me
11213 #endif
11214
11215 int
11216 main ()
11217 {
11218 return $ac_func ();
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 eval "$as_ac_var=yes"
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 eval "$as_ac_var=no"
11247 fi
11248
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11251 fi
11252 ac_res=`eval echo '${'$as_ac_var'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 _ACEOF
11259 GTK_COMPILES=yes
11260 fi
11261 done
11262
11263 if test "${GTK_COMPILES}" != "yes"; then
11264 if test "$USE_X_TOOLKIT" != "maybe"; then
11265 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11266 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11267 { (exit 1); exit 1; }; };
11268 fi
11269 else
11270 HAVE_GTK=yes
11271
11272 cat >>confdefs.h <<\_ACEOF
11273 #define USE_GTK 1
11274 _ACEOF
11275
11276 USE_X_TOOLKIT=none
11277 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11278 :
11279 else
11280 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11281 closing open displays. This is no problem if you just use
11282 one display, but if you use more than one and close one of them
11283 Emacs may crash." >&5
11284 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11285 closing open displays. This is no problem if you just use
11286 one display, but if you use more than one and close one of them
11287 Emacs may crash." >&2;}
11288 sleep 3
11289 fi
11290 fi
11291
11292 fi
11293
11294
11295 if test "${HAVE_GTK}" = "yes"; then
11296
11297 if test "$with_toolkit_scroll_bars" != no; then
11298 with_toolkit_scroll_bars=yes
11299 fi
11300
11301 HAVE_GTK_MULTIDISPLAY=no
11302
11303 for ac_func in gdk_display_open
11304 do
11305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11319 #define $ac_func innocuous_$ac_func
11320
11321 /* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char $ac_func (); below.
11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 <limits.h> exists even on freestanding compilers. */
11325
11326 #ifdef __STDC__
11327 # include <limits.h>
11328 #else
11329 # include <assert.h>
11330 #endif
11331
11332 #undef $ac_func
11333
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 char $ac_func ();
11341 /* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344 #if defined __stub_$ac_func || defined __stub___$ac_func
11345 choke me
11346 #endif
11347
11348 int
11349 main ()
11350 {
11351 return $ac_func ();
11352 ;
11353 return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_link") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest$ac_exeext &&
11373 $as_test_x conftest$ac_exeext; then
11374 eval "$as_ac_var=yes"
11375 else
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 eval "$as_ac_var=no"
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383 conftest$ac_exeext conftest.$ac_ext
11384 fi
11385 ac_res=`eval echo '${'$as_ac_var'}'`
11386 { echo "$as_me:$LINENO: result: $ac_res" >&5
11387 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_var'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391 _ACEOF
11392 HAVE_GTK_MULTIDISPLAY=yes
11393 fi
11394 done
11395
11396 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11397
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_GTK_MULTIDISPLAY 1
11400 _ACEOF
11401
11402 fi
11403
11404 HAVE_GTK_FILE_SELECTION=no
11405
11406 for ac_func in gtk_file_selection_new
11407 do
11408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422 #define $ac_func innocuous_$ac_func
11423
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11428
11429 #ifdef __STDC__
11430 # include <limits.h>
11431 #else
11432 # include <assert.h>
11433 #endif
11434
11435 #undef $ac_func
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char $ac_func ();
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11448 choke me
11449 #endif
11450
11451 int
11452 main ()
11453 {
11454 return $ac_func ();
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (ac_try="$ac_link"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest$ac_exeext &&
11476 $as_test_x conftest$ac_exeext; then
11477 eval "$as_ac_var=yes"
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 eval "$as_ac_var=no"
11483 fi
11484
11485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486 conftest$ac_exeext conftest.$ac_ext
11487 fi
11488 ac_res=`eval echo '${'$as_ac_var'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 if test `eval echo '${'$as_ac_var'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11494 _ACEOF
11495 HAVE_GTK_FILE_SELECTION=yes
11496 fi
11497 done
11498
11499
11500 HAVE_GTK_FILE_CHOOSER=no
11501
11502 for ac_func in gtk_file_chooser_dialog_new
11503 do
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518 #define $ac_func innocuous_$ac_func
11519
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11524
11525 #ifdef __STDC__
11526 # include <limits.h>
11527 #else
11528 # include <assert.h>
11529 #endif
11530
11531 #undef $ac_func
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char $ac_func ();
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined __stub_$ac_func || defined __stub___$ac_func
11544 choke me
11545 #endif
11546
11547 int
11548 main ()
11549 {
11550 return $ac_func ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest$ac_exeext &&
11572 $as_test_x conftest$ac_exeext; then
11573 eval "$as_ac_var=yes"
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 eval "$as_ac_var=no"
11579 fi
11580
11581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11582 conftest$ac_exeext conftest.$ac_ext
11583 fi
11584 ac_res=`eval echo '${'$as_ac_var'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11590 _ACEOF
11591 HAVE_GTK_FILE_CHOOSER=yes
11592 fi
11593 done
11594
11595
11596 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11597 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11598
11599 cat >>confdefs.h <<\_ACEOF
11600 #define HAVE_GTK_FILE_BOTH 1
11601 _ACEOF
11602
11603 fi
11604
11605 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11606 HAVE_GTK_AND_PTHREAD=no
11607
11608 for ac_header in pthread.h
11609 do
11610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 fi
11617 ac_res=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11620 else
11621 # Is the header compilable?
11622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #include <$ac_header>
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (ac_try="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650 ac_header_compiler=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_header_compiler=no
11656 fi
11657
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11660 echo "${ECHO_T}$ac_header_compiler" >&6; }
11661
11662 # Is the header present?
11663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <$ac_header>
11672 _ACEOF
11673 if { (ac_try="$ac_cpp conftest.$ac_ext"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } >/dev/null && {
11686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 }; then
11689 ac_header_preproc=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_header_preproc=no
11695 fi
11696
11697 rm -f conftest.err conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6; }
11700
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 yes:no: )
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc=yes
11709 ;;
11710 no:yes:* )
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11723
11724 ;;
11725 esac
11726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 eval "$as_ac_Header=\$ac_header_preproc"
11732 fi
11733 ac_res=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11736
11737 fi
11738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11741 _ACEOF
11742
11743 fi
11744
11745 done
11746
11747 if test "$ac_cv_header_pthread_h"; then
11748 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11749 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11750 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-lpthread $LIBS"
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char pthread_self ();
11769 int
11770 main ()
11771 {
11772 return pthread_self ();
11773 ;
11774 return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext &&
11794 $as_test_x conftest$ac_exeext; then
11795 ac_cv_lib_pthread_pthread_self=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 ac_cv_lib_pthread_pthread_self=no
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11806 fi
11807 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11808 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11809 if test $ac_cv_lib_pthread_pthread_self = yes; then
11810 HAVE_GTK_AND_PTHREAD=yes
11811 fi
11812
11813 fi
11814 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11815 case "${canonical}" in
11816 *-hpux*) ;;
11817 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11818 esac
11819
11820 cat >>confdefs.h <<\_ACEOF
11821 #define HAVE_GTK_AND_PTHREAD 1
11822 _ACEOF
11823
11824 fi
11825 fi
11826 fi
11827
11828 HAVE_DBUS=no
11829 if test "${with_dbus}" = "yes"; then
11830
11831 succeeded=no
11832
11833 # Extract the first word of "pkg-config", so it can be a program name with args.
11834 set dummy pkg-config; ac_word=$2
11835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11837 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840 case $PKG_CONFIG in
11841 [\\/]* | ?:[\\/]*)
11842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11843 ;;
11844 *)
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856 done
11857 done
11858 IFS=$as_save_IFS
11859
11860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11861 ;;
11862 esac
11863 fi
11864 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11865 if test -n "$PKG_CONFIG"; then
11866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11868 else
11869 { echo "$as_me:$LINENO: result: no" >&5
11870 echo "${ECHO_T}no" >&6; }
11871 fi
11872
11873
11874
11875 if test "$PKG_CONFIG" = "no" ; then
11876 HAVE_DBUS=no
11877 else
11878 PKG_CONFIG_MIN_VERSION=0.9.0
11879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11880 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11881 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11882
11883 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11884 { echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6; }
11886 succeeded=yes
11887
11888 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11889 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11890 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11891 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11892 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11893
11894 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11895 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11896 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11897 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11898 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11899 else
11900 { echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6; }
11902 DBUS_CFLAGS=""
11903 DBUS_LIBS=""
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so.
11906 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11907
11908 fi
11909
11910
11911
11912 else
11913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11915 fi
11916 fi
11917
11918 if test $succeeded = yes; then
11919 HAVE_DBUS=yes
11920 else
11921 HAVE_DBUS=no
11922 fi
11923
11924 if test "$HAVE_DBUS" = yes; then
11925
11926 cat >>confdefs.h <<\_ACEOF
11927 #define HAVE_DBUS 1
11928 _ACEOF
11929
11930 fi
11931 fi
11932
11933 HAVE_XAW3D=no
11934 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11935 if test "$with_xaw3d" != no; then
11936 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11937 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11938 if test "${emacs_cv_xaw3d+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947
11948 #include <X11/Intrinsic.h>
11949 #include <X11/Xaw3d/Simple.h>
11950 int
11951 main ()
11952 {
11953
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest$ac_exeext &&
11975 $as_test_x conftest$ac_exeext; then
11976 emacs_cv_xaw3d=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 emacs_cv_xaw3d=no
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985 conftest$ac_exeext conftest.$ac_ext
11986 fi
11987
11988 else
11989 emacs_cv_xaw3d=no
11990 fi
11991 if test $emacs_cv_xaw3d = yes; then
11992 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11993 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11994 USE_X_TOOLKIT=LUCID
11995 HAVE_XAW3D=yes
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_XAW3D 1
11999 _ACEOF
12000
12001 else
12002 { echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6; }
12004 { echo "$as_me:$LINENO: checking for libXaw" >&5
12005 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12006 if test "${emacs_cv_xaw+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015
12016 #include <X11/Intrinsic.h>
12017 #include <X11/Xaw/Simple.h>
12018 int
12019 main ()
12020 {
12021
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (ac_try="$ac_link"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext &&
12043 $as_test_x conftest$ac_exeext; then
12044 emacs_cv_xaw=yes
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 emacs_cv_xaw=no
12050 fi
12051
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12054 fi
12055
12056 if test $emacs_cv_xaw = yes; then
12057 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12058 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12059 USE_X_TOOLKIT=LUCID
12060 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12061 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12062 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12063 { (exit 1); exit 1; }; }
12064 else
12065 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12066 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12067 USE_X_TOOLKIT=none
12068 fi
12069 fi
12070 fi
12071
12072 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12073
12074 if test "${USE_X_TOOLKIT}" != "none"; then
12075 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12076 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12077 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <X11/Intrinsic.h>
12087 int
12088 main ()
12089 {
12090 #if XtSpecificationRelease < 6
12091 fail;
12092 #endif
12093
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest$ac_exeext &&
12115 $as_test_x conftest$ac_exeext; then
12116 emacs_cv_x11_toolkit_version_6=yes
12117 else
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 emacs_cv_x11_toolkit_version_6=no
12122 fi
12123
12124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12125 conftest$ac_exeext conftest.$ac_ext
12126 fi
12127
12128 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12129 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12130 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12131 echo "${ECHO_T}6 or newer" >&6; }
12132
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_X11XTR6 1
12135 _ACEOF
12136
12137 else
12138 { echo "$as_me:$LINENO: result: before 6" >&5
12139 echo "${ECHO_T}before 6" >&6; }
12140 fi
12141
12142 OLDLIBS="$LIBS"
12143 if test x$HAVE_X11XTR6 = xyes; then
12144 LIBS="-lXt -lSM -lICE $LIBS"
12145 else
12146 LIBS="-lXt $LIBS"
12147 fi
12148
12149 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12150 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lXmu $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char XmuConvertStandardSelection ();
12170 int
12171 main ()
12172 {
12173 return XmuConvertStandardSelection ();
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12209 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12210 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_LIBXMU 1
12213 _ACEOF
12214
12215 LIBS="-lXmu $LIBS"
12216
12217 fi
12218
12219 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12220 fi
12221
12222 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12223 if test "${HAVE_X11}" = "yes"; then
12224 if test "${USE_X_TOOLKIT}" != "none"; then
12225
12226 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12227 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12228 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-lXext $LIBS"
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char XShapeQueryExtension ();
12247 int
12248 main ()
12249 {
12250 return XShapeQueryExtension ();
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_link") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest$ac_exeext &&
12272 $as_test_x conftest$ac_exeext; then
12273 ac_cv_lib_Xext_XShapeQueryExtension=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_cv_lib_Xext_XShapeQueryExtension=no
12279 fi
12280
12281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12286 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12287 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12288 cat >>confdefs.h <<_ACEOF
12289 #define HAVE_LIBXEXT 1
12290 _ACEOF
12291
12292 LIBS="-lXext $LIBS"
12293
12294 fi
12295
12296 fi
12297 fi
12298
12299 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12300 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12301 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12302 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <Xm/Xm.h>
12312 int
12313 main ()
12314 {
12315 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12316 int x = 5;
12317 #else
12318 Motif version prior to 2.1.
12319 #endif
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (ac_try="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 emacs_cv_motif_version_2_1=yes
12342 else
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346 emacs_cv_motif_version_2_1=no
12347 fi
12348
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 fi
12351 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12352 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12353 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12354 if test $emacs_cv_motif_version_2_1 = yes; then
12355 HAVE_LIBXP=no
12356
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_MOTIF_2_1 1
12359 _ACEOF
12360
12361 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12362 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12363 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-lXp $LIBS"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char XpCreateContext ();
12382 int
12383 main ()
12384 {
12385 return XpCreateContext ();
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest$ac_exeext &&
12407 $as_test_x conftest$ac_exeext; then
12408 ac_cv_lib_Xp_XpCreateContext=yes
12409 else
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_cv_lib_Xp_XpCreateContext=no
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12421 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12422 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12423 HAVE_LIBXP=yes
12424 fi
12425
12426 if test ${HAVE_LIBXP} = yes; then
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_LIBXP 1
12430 _ACEOF
12431
12432 fi
12433 else
12434 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12435 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12436 if test "${emacs_cv_lesstif+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 # We put this in CFLAGS temporarily to precede other -I options
12440 # that might be in CFLAGS temporarily.
12441 # We put this in CPPFLAGS where it precedes the other -I options.
12442 OLD_CPPFLAGS=$CPPFLAGS
12443 OLD_CFLAGS=$CFLAGS
12444 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12445 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12453 int
12454 main ()
12455 {
12456 int x = 5;
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12478 emacs_cv_lesstif=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 emacs_cv_lesstif=no
12484 fi
12485
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12489 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12490 if test $emacs_cv_lesstif = yes; then
12491 # Make sure this -I option remains in CPPFLAGS after it is set
12492 # back to REAL_CPPFLAGS.
12493 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12494 # have those other -I options anyway. Ultimately, having this
12495 # directory ultimately in CPPFLAGS will be enough.
12496 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12497 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12498 else
12499 CFLAGS=$OLD_CFLAGS
12500 CPPFLAGS=$OLD_CPPFLAGS
12501 fi
12502 fi
12503 fi
12504
12505
12506
12507 USE_TOOLKIT_SCROLL_BARS=no
12508 if test "${with_toolkit_scroll_bars}" != "no"; then
12509 if test "${USE_X_TOOLKIT}" != "none"; then
12510 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define USE_TOOLKIT_SCROLL_BARS 1
12513 _ACEOF
12514
12515 HAVE_XAW3D=no
12516 USE_TOOLKIT_SCROLL_BARS=yes
12517 elif test "${HAVE_XAW3D}" = "yes"; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define USE_TOOLKIT_SCROLL_BARS 1
12520 _ACEOF
12521
12522 USE_TOOLKIT_SCROLL_BARS=yes
12523 fi
12524 elif test "${HAVE_GTK}" = "yes"; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define USE_TOOLKIT_SCROLL_BARS 1
12527 _ACEOF
12528
12529 USE_TOOLKIT_SCROLL_BARS=yes
12530 elif test "${HAVE_CARBON}" = "yes"; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define USE_TOOLKIT_SCROLL_BARS 1
12533 _ACEOF
12534
12535 USE_TOOLKIT_SCROLL_BARS=yes
12536 fi
12537 fi
12538
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545
12546 #include <X11/Xlib.h>
12547 #include <X11/Xresource.h>
12548 int
12549 main ()
12550 {
12551 XIMProc callback;
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest.$ac_objext; then
12573 HAVE_XIM=yes
12574
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_XIM 1
12577 _ACEOF
12578
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 HAVE_XIM=no
12584 fi
12585
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587
12588
12589 if test "${with_xim}" != "no"; then
12590
12591 cat >>confdefs.h <<\_ACEOF
12592 #define USE_XIM 1
12593 _ACEOF
12594
12595 fi
12596
12597
12598 if test "${HAVE_XIM}" != "no"; then
12599 late_CFLAGS=$CFLAGS
12600 if test "$GCC" = yes; then
12601 CFLAGS="$CFLAGS --pedantic-errors"
12602 fi
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609
12610 #include <X11/Xlib.h>
12611 #include <X11/Xresource.h>
12612 int
12613 main ()
12614 {
12615 Display *display;
12616 XrmDatabase db;
12617 char *res_name;
12618 char *res_class;
12619 XIMProc callback;
12620 XPointer *client_data;
12621 #ifndef __GNUC__
12622 /* If we're not using GCC, it's probably not XFree86, and this is
12623 probably right, but we can't use something like --pedantic-errors. */
12624 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12625 char*, XIMProc, XPointer*);
12626 #endif
12627 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12628 client_data);
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12650 emacs_cv_arg6_star=yes
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659
12660 if test "$emacs_cv_arg6_star" = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12663 _ACEOF
12664
12665 else
12666 cat >>confdefs.h <<\_ACEOF
12667 #define XRegisterIMInstantiateCallback_arg6 XPointer
12668 _ACEOF
12669
12670 fi
12671 CFLAGS=$late_CFLAGS
12672 fi
12673
12674 ### Start of font-backend section.
12675 if test "${HAVE_X11}" != "yes"; then
12676 USE_FONT_BACKEND=no
12677 fi
12678
12679 if test "${USE_FONT_BACKEND}" = "yes"; then
12680
12681 cat >>confdefs.h <<\_ACEOF
12682 #define USE_FONT_BACKEND 1
12683 _ACEOF
12684
12685
12686 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12687 HAVE_XFT=maybe
12688 if test "x${with_freetype}" = "xno"; then
12689 with_xft="no";
12690 fi
12691 if test "x${with_xft}" != "xno"; then
12692
12693
12694 succeeded=no
12695
12696 # Extract the first word of "pkg-config", so it can be a program name with args.
12697 set dummy pkg-config; ac_word=$2
12698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12700 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 case $PKG_CONFIG in
12704 [\\/]* | ?:[\\/]*)
12705 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12706 ;;
12707 *)
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12710 do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12715 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719 done
12720 done
12721 IFS=$as_save_IFS
12722
12723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12724 ;;
12725 esac
12726 fi
12727 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12728 if test -n "$PKG_CONFIG"; then
12729 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12730 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12731 else
12732 { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12734 fi
12735
12736
12737
12738 if test "$PKG_CONFIG" = "no" ; then
12739 HAVE_XFT=no
12740 else
12741 PKG_CONFIG_MIN_VERSION=0.9.0
12742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12743 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12744 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12745
12746 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12747 { echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6; }
12749 succeeded=yes
12750
12751 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12752 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12753 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12754 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12755 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12756
12757 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12758 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12759 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12760 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12761 echo "${ECHO_T}$XFT_LIBS" >&6; }
12762 else
12763 { echo "$as_me:$LINENO: result: no" >&5
12764 echo "${ECHO_T}no" >&6; }
12765 XFT_CFLAGS=""
12766 XFT_LIBS=""
12767 ## If we have a custom action on failure, don't print errors, but
12768 ## do set a variable so people can do so.
12769 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12770
12771 fi
12772
12773
12774
12775 else
12776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12778 fi
12779 fi
12780
12781 if test $succeeded = yes; then
12782 :
12783 else
12784 HAVE_XFT=no
12785 fi
12786
12787 if test "$HAVE_XFT" != no; then
12788 OLD_CPPFLAGS="$CPPFLAGS"
12789 OLD_CFLAGS="$CFLAGS"
12790 OLD_LIBS="$LIBS"
12791 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12792 CFLAGS="$CFLAGS $XFT_CFLAGS"
12793 LIBS="$XFT_LIBS $LIBS"
12794 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12795 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12796 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12797 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 fi
12800 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12801 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12802 else
12803 # Is the header compilable?
12804 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12805 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 #include <X11/Xft/Xft.h>
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (ac_try="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.$ac_objext; then
12832 ac_header_compiler=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837 ac_header_compiler=no
12838 fi
12839
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12842 echo "${ECHO_T}$ac_header_compiler" >&6; }
12843
12844 # Is the header present?
12845 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12846 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 #include <X11/Xft/Xft.h>
12854 _ACEOF
12855 if { (ac_try="$ac_cpp conftest.$ac_ext"
12856 case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } >/dev/null && {
12868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 }; then
12871 ac_header_preproc=yes
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_header_preproc=no
12877 fi
12878
12879 rm -f conftest.err conftest.$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12882
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885 yes:no: )
12886 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc=yes
12891 ;;
12892 no:yes:* )
12893 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12905
12906 ;;
12907 esac
12908 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12909 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12910 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12914 fi
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12917
12918 fi
12919 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12920 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12921 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12922 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-lXft $XFT_LIBS $LIBS"
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char XftFontOpen ();
12941 int
12942 main ()
12943 {
12944 return XftFontOpen ();
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext &&
12966 $as_test_x conftest$ac_exeext; then
12967 ac_cv_lib_Xft_XftFontOpen=yes
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_cv_lib_Xft_XftFontOpen=no
12973 fi
12974
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12980 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12981 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12982 HAVE_XFT=yes
12983 fi
12984
12985 fi
12986
12987
12988
12989 if test "${HAVE_XFT}" = "yes"; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_XFT 1
12993 _ACEOF
12994
12995
12996 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12997 else
12998 CPPFLAGS="$OLD_CPPFLAGS"
12999 CFLAGS="$OLD_CFLAGS"
13000 LIBS="$OLD_LIBS"
13001 fi # "${HAVE_XFT}" = "yes"
13002 fi # "$HAVE_XFT" != no
13003 fi # "x${with_xft}" != "xno"
13004
13005 if test "$HAVE_XFT" != "yes"; then
13006 HAVE_XFT=no
13007 fi
13008
13009
13010 HAVE_FREETYPE=no
13011 ### Use -lfreetype if available, unless `--with-freetype=no'.
13012 if test "${HAVE_XFT}" = "yes"; then
13013 HAVE_FREETYPE=yes
13014 elif test "x${with_freetype}" != "xno"; then
13015
13016
13017 succeeded=no
13018
13019 # Extract the first word of "pkg-config", so it can be a program name with args.
13020 set dummy pkg-config; ac_word=$2
13021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026 case $PKG_CONFIG in
13027 [\\/]* | ?:[\\/]*)
13028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13029 ;;
13030 *)
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13033 do
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042 done
13043 done
13044 IFS=$as_save_IFS
13045
13046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13047 ;;
13048 esac
13049 fi
13050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13051 if test -n "$PKG_CONFIG"; then
13052 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13053 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13054 else
13055 { echo "$as_me:$LINENO: result: no" >&5
13056 echo "${ECHO_T}no" >&6; }
13057 fi
13058
13059
13060
13061 if test "$PKG_CONFIG" = "no" ; then
13062 HAVE_FREETYPE=no
13063 else
13064 PKG_CONFIG_MIN_VERSION=0.9.0
13065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13066 { echo "$as_me:$LINENO: checking for freetype2" >&5
13067 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13068
13069 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13070 { echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6; }
13072 succeeded=yes
13073
13074 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13075 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13076 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13077 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13078 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13079
13080 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13081 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13082 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13083 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13084 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13085 else
13086 { echo "$as_me:$LINENO: result: no" >&5
13087 echo "${ECHO_T}no" >&6; }
13088 FREETYPE_CFLAGS=""
13089 FREETYPE_LIBS=""
13090 ## If we have a custom action on failure, don't print errors, but
13091 ## do set a variable so people can do so.
13092 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13093
13094 fi
13095
13096
13097
13098 else
13099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13101 fi
13102 fi
13103
13104 if test $succeeded = yes; then
13105 HAVE_FREETYPE=yes
13106 else
13107 HAVE_FREETYPE=no
13108 fi
13109
13110 if test "${HAVE_FREETYPE}" = "yes"; then
13111
13112 succeeded=no
13113
13114 # Extract the first word of "pkg-config", so it can be a program name with args.
13115 set dummy pkg-config; ac_word=$2
13116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 case $PKG_CONFIG in
13122 [\\/]* | ?:[\\/]*)
13123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13124 ;;
13125 *)
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13128 do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13142 ;;
13143 esac
13144 fi
13145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13146 if test -n "$PKG_CONFIG"; then
13147 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13149 else
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13152 fi
13153
13154
13155
13156 if test "$PKG_CONFIG" = "no" ; then
13157 HAVE_FC=no
13158 else
13159 PKG_CONFIG_MIN_VERSION=0.9.0
13160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13162 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13163
13164 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13165 { echo "$as_me:$LINENO: result: yes" >&5
13166 echo "${ECHO_T}yes" >&6; }
13167 succeeded=yes
13168
13169 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13170 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13171 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13172 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13173 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13174
13175 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13176 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13177 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13178 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13179 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13180 else
13181 { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13183 FONTCONFIG_CFLAGS=""
13184 FONTCONFIG_LIBS=""
13185 ## If we have a custom action on failure, don't print errors, but
13186 ## do set a variable so people can do so.
13187 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13188
13189 fi
13190
13191
13192
13193 else
13194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13196 fi
13197 fi
13198
13199 if test $succeeded = yes; then
13200 HAVE_FC=yes
13201 else
13202 HAVE_FC=no
13203 fi
13204
13205 if test "${HAVE_FC}" = "no"; then
13206 HAVE_FREETYPE=no
13207 fi
13208 fi
13209 fi
13210
13211 HAVE_LIBOTF=no
13212 if test "${HAVE_FREETYPE}" = "yes"; then
13213
13214 cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_FREETYPE 1
13216 _ACEOF
13217
13218 if test "${with_libotf}" != "no"; then
13219
13220 succeeded=no
13221
13222 # Extract the first word of "pkg-config", so it can be a program name with args.
13223 set dummy pkg-config; ac_word=$2
13224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229 case $PKG_CONFIG in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13232 ;;
13233 *)
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13250 ;;
13251 esac
13252 fi
13253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13256 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13257 else
13258 { echo "$as_me:$LINENO: result: no" >&5
13259 echo "${ECHO_T}no" >&6; }
13260 fi
13261
13262
13263
13264 if test "$PKG_CONFIG" = "no" ; then
13265 HAVE_LIBOTF=no
13266 else
13267 PKG_CONFIG_MIN_VERSION=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { echo "$as_me:$LINENO: checking for libotf" >&5
13270 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13271
13272 if $PKG_CONFIG --exists "libotf" 2>&5; then
13273 { echo "$as_me:$LINENO: result: yes" >&5
13274 echo "${ECHO_T}yes" >&6; }
13275 succeeded=yes
13276
13277 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13278 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13279 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13280 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13281 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13282
13283 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13284 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13285 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13286 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13287 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13288 else
13289 { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13291 LIBOTF_CFLAGS=""
13292 LIBOTF_LIBS=""
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13296
13297 fi
13298
13299
13300
13301 else
13302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13304 fi
13305 fi
13306
13307 if test $succeeded = yes; then
13308 HAVE_LIBOTF=yes
13309 else
13310 HAVE_LIBOTF=no
13311 fi
13312
13313 if test "$HAVE_LIBOTF" = "yes"; then
13314
13315 cat >>confdefs.h <<\_ACEOF
13316 #define HAVE_LIBOTF 1
13317 _ACEOF
13318
13319 fi
13320 fi
13321 fi
13322
13323 HAVE_M17N_FLT=no
13324 if test "${with_m17n_flt}" != "no"; then
13325
13326 succeeded=no
13327
13328 # Extract the first word of "pkg-config", so it can be a program name with args.
13329 set dummy pkg-config; ac_word=$2
13330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 case $PKG_CONFIG in
13336 [\\/]* | ?:[\\/]*)
13337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13338 ;;
13339 *)
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13342 do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13350 fi
13351 done
13352 done
13353 IFS=$as_save_IFS
13354
13355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13356 ;;
13357 esac
13358 fi
13359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13360 if test -n "$PKG_CONFIG"; then
13361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13363 else
13364 { echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6; }
13366 fi
13367
13368
13369
13370 if test "$PKG_CONFIG" = "no" ; then
13371 HAVE_M17N_FLT=no
13372 else
13373 PKG_CONFIG_MIN_VERSION=0.9.0
13374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13375 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13376 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13377
13378 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13381 succeeded=yes
13382
13383 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13384 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13385 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13386 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13387 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13388
13389 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13390 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13391 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13392 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13393 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13394 else
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13397 M17N_FLT_CFLAGS=""
13398 M17N_FLT_LIBS=""
13399 ## If we have a custom action on failure, don't print errors, but
13400 ## do set a variable so people can do so.
13401 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13402
13403 fi
13404
13405
13406
13407 else
13408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13410 fi
13411 fi
13412
13413 if test $succeeded = yes; then
13414 HAVE_M17N_FLT=yes
13415 else
13416 HAVE_M17N_FLT=no
13417 fi
13418
13419 if test "$HAVE_M17N_FLT" = "yes"; then
13420
13421 cat >>confdefs.h <<\_ACEOF
13422 #define HAVE_M17N_FLT 1
13423 _ACEOF
13424
13425 fi
13426 fi
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437 fi # "${USE_FONT_BACKEND}" = "yes"
13438 ### End of font-backend section.
13439
13440 ### Use -lXpm if available, unless `--with-xpm=no'.
13441 HAVE_XPM=no
13442 if test "${HAVE_X11}" = "yes"; then
13443 if test "${with_xpm}" != "no"; then
13444 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13445 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13446 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13447 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 fi
13450 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13451 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13452 else
13453 # Is the header compilable?
13454 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13455 echo $ECHO_N "checking X11/xpm.h usability... $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 $ac_includes_default
13463 #include <X11/xpm.h>
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
13482 ac_header_compiler=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487 ac_header_compiler=no
13488 fi
13489
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13492 echo "${ECHO_T}$ac_header_compiler" >&6; }
13493
13494 # Is the header present?
13495 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13496 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13497 cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h. */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <X11/xpm.h>
13504 _ACEOF
13505 if { (ac_try="$ac_cpp conftest.$ac_ext"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev/null && {
13518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 }; then
13521 ac_header_preproc=yes
13522 else
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ac_header_preproc=no
13527 fi
13528
13529 rm -f conftest.err conftest.$ac_ext
13530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 echo "${ECHO_T}$ac_header_preproc" >&6; }
13532
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13535 yes:no: )
13536 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13537 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13539 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13540 ac_header_preproc=yes
13541 ;;
13542 no:yes:* )
13543 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13544 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13546 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13548 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13550 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13552 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13554 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13555
13556 ;;
13557 esac
13558 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13559 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563 ac_cv_header_X11_xpm_h=$ac_header_preproc
13564 fi
13565 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13566 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13567
13568 fi
13569 if test $ac_cv_header_X11_xpm_h = yes; then
13570 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13571 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lXpm -lX11 $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h. */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char XpmReadFileToPixmap ();
13591 int
13592 main ()
13593 {
13594 return XpmReadFileToPixmap ();
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13623 fi
13624
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LIBS=$ac_check_lib_save_LIBS
13628 fi
13629 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13630 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13631 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13632 HAVE_XPM=yes
13633 fi
13634
13635 fi
13636
13637
13638 if test "${HAVE_XPM}" = "yes"; then
13639 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13640 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include "X11/xpm.h"
13648 #ifndef XpmReturnAllocPixels
13649 no_return_alloc_pixels
13650 #endif
13651
13652 _ACEOF
13653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13654 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13655 HAVE_XPM=no
13656 else
13657 HAVE_XPM=yes
13658 fi
13659 rm -f conftest*
13660
13661
13662 if test "${HAVE_XPM}" = "yes"; then
13663 { echo "$as_me:$LINENO: result: yes" >&5
13664 echo "${ECHO_T}yes" >&6; }
13665 else
13666 { echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6; }
13668 fi
13669 fi
13670 fi
13671
13672 if test "${HAVE_XPM}" = "yes"; then
13673
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_XPM 1
13676 _ACEOF
13677
13678 fi
13679 fi
13680
13681 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13682 HAVE_JPEG=no
13683 if test "${HAVE_X11}" = "yes"; then
13684 if test "${with_jpeg}" != "no"; then
13685 if test "${ac_cv_header_jerror_h+set}" = set; then
13686 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13687 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13688 if test "${ac_cv_header_jerror_h+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 fi
13691 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13692 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13693 else
13694 # Is the header compilable?
13695 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13696 echo $ECHO_N "checking jerror.h usability... $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 $ac_includes_default
13704 #include <jerror.h>
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest.$ac_objext; then
13723 ac_header_compiler=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 ac_header_compiler=no
13729 fi
13730
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13733 echo "${ECHO_T}$ac_header_compiler" >&6; }
13734
13735 # Is the header present?
13736 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13737 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <jerror.h>
13745 _ACEOF
13746 if { (ac_try="$ac_cpp conftest.$ac_ext"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null && {
13759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 }; then
13762 ac_header_preproc=yes
13763 else
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 ac_header_preproc=no
13768 fi
13769
13770 rm -f conftest.err conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13772 echo "${ECHO_T}$ac_header_preproc" >&6; }
13773
13774 # So? What about this header?
13775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13776 yes:no: )
13777 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13778 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13780 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13781 ac_header_preproc=yes
13782 ;;
13783 no:yes:* )
13784 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13785 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13787 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13789 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13791 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13793 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13795 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13796
13797 ;;
13798 esac
13799 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13800 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13801 if test "${ac_cv_header_jerror_h+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 ac_cv_header_jerror_h=$ac_header_preproc
13805 fi
13806 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13807 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13808
13809 fi
13810 if test $ac_cv_header_jerror_h = yes; then
13811 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13812 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13813 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-ljpeg $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h. */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char jpeg_destroy_compress ();
13832 int
13833 main ()
13834 {
13835 return jpeg_destroy_compress ();
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest$ac_exeext &&
13857 $as_test_x conftest$ac_exeext; then
13858 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13859 else
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13864 fi
13865
13866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13869 fi
13870 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13871 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13872 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13873 HAVE_JPEG=yes
13874 fi
13875
13876 fi
13877
13878
13879 fi
13880
13881
13882 if test "${HAVE_JPEG}" = "yes"; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define HAVE_JPEG 1
13885 _ACEOF
13886
13887 cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h. */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 #include <jpeglib.h>
13894 version=JPEG_LIB_VERSION
13895
13896 _ACEOF
13897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_JPEG 1
13901 _ACEOF
13902
13903 else
13904 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13905 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13906 HAVE_JPEG=no
13907 fi
13908 rm -f conftest*
13909
13910 fi
13911 fi
13912
13913 ### Use -lpng if available, unless `--with-png=no'.
13914 HAVE_PNG=no
13915 if test "${HAVE_X11}" = "yes"; then
13916 if test "${with_png}" != "no"; then
13917 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13918 # in /usr/include/libpng.
13919
13920
13921 for ac_header in png.h libpng/png.h
13922 do
13923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 fi
13930 ac_res=`eval echo '${'$as_ac_Header'}'`
13931 { echo "$as_me:$LINENO: result: $ac_res" >&5
13932 echo "${ECHO_T}$ac_res" >&6; }
13933 else
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13936 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
13944 #include <$ac_header>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_header_compiler=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13974
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <$ac_header>
13985 _ACEOF
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 }; then
14002 ac_header_preproc=yes
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_header_preproc=no
14008 fi
14009
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14013
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 yes:no: )
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
14022 ;;
14023 no:yes:* )
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14036
14037 ;;
14038 esac
14039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 eval "$as_ac_Header=\$ac_header_preproc"
14045 fi
14046 ac_res=`eval echo '${'$as_ac_Header'}'`
14047 { echo "$as_me:$LINENO: result: $ac_res" >&5
14048 echo "${ECHO_T}$ac_res" >&6; }
14049
14050 fi
14051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14054 _ACEOF
14055
14056 fi
14057
14058 done
14059
14060 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14061 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14062 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lpng -lz -lm $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char png_get_channels ();
14082 int
14083 main ()
14084 {
14085 return png_get_channels ();
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14108 ac_cv_lib_png_png_get_channels=yes
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ac_cv_lib_png_png_get_channels=no
14114 fi
14115
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14122 if test $ac_cv_lib_png_png_get_channels = yes; then
14123 HAVE_PNG=yes
14124 fi
14125
14126 fi
14127 fi
14128
14129 if test "${HAVE_PNG}" = "yes"; then
14130
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_PNG 1
14133 _ACEOF
14134
14135 fi
14136 fi
14137
14138 ### Use -ltiff if available, unless `--with-tiff=no'.
14139 HAVE_TIFF=no
14140 if test "${HAVE_X11}" = "yes"; then
14141 if test "${with_tiff}" != "no"; then
14142 if test "${ac_cv_header_tiffio_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_tiffio_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 fi
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14150 else
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14153 echo $ECHO_N "checking tiffio.h usability... $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 $ac_includes_default
14161 #include <tiffio.h>
14162 _ACEOF
14163 rm -f conftest.$ac_objext
14164 if { (ac_try="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_header_compiler=no
14186 fi
14187
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14191
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14194 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <tiffio.h>
14202 _ACEOF
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null && {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 }; then
14219 ac_header_preproc=yes
14220 else
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 ac_header_preproc=no
14225 fi
14226
14227 rm -f conftest.err conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14230
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
14234 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14237 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
14239 ;;
14240 no:yes:* )
14241 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14250 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14253
14254 ;;
14255 esac
14256 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14257 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_tiffio_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 ac_cv_header_tiffio_h=$ac_header_preproc
14262 fi
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14265
14266 fi
14267 if test $ac_cv_header_tiffio_h = yes; then
14268 tifflibs="-lz -lm"
14269 # At least one tiff package requires the jpeg library.
14270 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14271 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14272 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14273 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-ltiff $tifflibs $LIBS"
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h. */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 char TIFFGetVersion ();
14292 int
14293 main ()
14294 {
14295 return TIFFGetVersion ();
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (ac_try="$ac_link"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_link") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest$ac_exeext &&
14317 $as_test_x conftest$ac_exeext; then
14318 ac_cv_lib_tiff_TIFFGetVersion=yes
14319 else
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 ac_cv_lib_tiff_TIFFGetVersion=no
14324 fi
14325
14326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14327 conftest$ac_exeext conftest.$ac_ext
14328 LIBS=$ac_check_lib_save_LIBS
14329 fi
14330 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14331 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14332 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14333 HAVE_TIFF=yes
14334 fi
14335
14336 fi
14337
14338
14339 fi
14340
14341 if test "${HAVE_TIFF}" = "yes"; then
14342
14343 cat >>confdefs.h <<\_ACEOF
14344 #define HAVE_TIFF 1
14345 _ACEOF
14346
14347 fi
14348 fi
14349
14350 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14351 HAVE_GIF=no
14352 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14353 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14354 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14355 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14356 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 fi
14359 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14360 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14361 else
14362 # Is the header compilable?
14363 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14364 echo $ECHO_N "checking gif_lib.h usability... $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 $ac_includes_default
14372 #include <gif_lib.h>
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (ac_try="$ac_compile"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_compile") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest.$ac_objext; then
14391 ac_header_compiler=yes
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_header_compiler=no
14397 fi
14398
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14401 echo "${ECHO_T}$ac_header_compiler" >&6; }
14402
14403 # Is the header present?
14404 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14405 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14406 cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h. */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <gif_lib.h>
14413 _ACEOF
14414 if { (ac_try="$ac_cpp conftest.$ac_ext"
14415 case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } >/dev/null && {
14427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14429 }; then
14430 ac_header_preproc=yes
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 ac_header_preproc=no
14436 fi
14437
14438 rm -f conftest.err conftest.$ac_ext
14439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14440 echo "${ECHO_T}$ac_header_preproc" >&6; }
14441
14442 # So? What about this header?
14443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14444 yes:no: )
14445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14446 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14448 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14449 ac_header_preproc=yes
14450 ;;
14451 no:yes:* )
14452 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14453 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14455 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14457 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14459 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14461 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14463 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14464
14465 ;;
14466 esac
14467 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14468 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14469 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 ac_cv_header_gif_lib_h=$ac_header_preproc
14473 fi
14474 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14475 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14476
14477 fi
14478 if test $ac_cv_header_gif_lib_h = yes; then
14479 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14480 # Earlier versions can crash Emacs.
14481 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14482 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14483 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 ac_check_lib_save_LIBS=$LIBS
14487 LIBS="-lgif $LIBS"
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char EGifPutExtensionLast ();
14502 int
14503 main ()
14504 {
14505 return EGifPutExtensionLast ();
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (ac_try="$ac_link"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest$ac_exeext &&
14527 $as_test_x conftest$ac_exeext; then
14528 ac_cv_lib_gif_EGifPutExtensionLast=yes
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_cv_lib_gif_EGifPutExtensionLast=no
14534 fi
14535
14536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14539 fi
14540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14541 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14542 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14543 HAVE_GIF=yes
14544 else
14545 try_libungif=yes
14546 fi
14547
14548 fi
14549
14550
14551
14552 if test "$HAVE_GIF" = yes; then
14553 ac_gif_lib_name="-lgif"
14554 fi
14555
14556 # If gif_lib.h but no libgif, try libungif.
14557 if test x"$try_libungif" = xyes; then
14558 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14559 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14560 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563 ac_check_lib_save_LIBS=$LIBS
14564 LIBS="-lungif $LIBS"
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 char EGifPutExtensionLast ();
14579 int
14580 main ()
14581 {
14582 return EGifPutExtensionLast ();
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest.$ac_objext conftest$ac_exeext
14588 if { (ac_try="$ac_link"
14589 case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14592 esac
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_link") 2>conftest.er1
14595 ac_status=$?
14596 grep -v '^ *+' conftest.er1 >conftest.err
14597 rm -f conftest.er1
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && {
14601 test -z "$ac_c_werror_flag" ||
14602 test ! -s conftest.err
14603 } && test -s conftest$ac_exeext &&
14604 $as_test_x conftest$ac_exeext; then
14605 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14606 else
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 ac_cv_lib_ungif_EGifPutExtensionLast=no
14611 fi
14612
14613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14614 conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14616 fi
14617 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14618 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14619 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14620 HAVE_GIF=yes
14621 fi
14622
14623
14624 if test "$HAVE_GIF" = yes; then
14625
14626 cat >>confdefs.h <<\_ACEOF
14627 #define LIBGIF -lungif
14628 _ACEOF
14629
14630 ac_gif_lib_name="-lungif"
14631 fi
14632 fi
14633
14634 if test "${HAVE_GIF}" = "yes"; then
14635
14636 cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_GIF 1
14638 _ACEOF
14639
14640 fi
14641 fi
14642
14643 if test "${HAVE_X11}" = "yes"; then
14644 MISSING=""
14645 WITH_NO=""
14646 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14647 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14648 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14649 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14650 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14651 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14652 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14653 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14654 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14655 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14656
14657 if test "X${MISSING}" != X; then
14658 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14659 $MISSING
14660 Maybe some development libraries/packages are missing?
14661 If you don't want to link with them give
14662 $WITH_NO
14663 as options to configure" >&5
14664 echo "$as_me: error: The following required libraries were not found:
14665 $MISSING
14666 Maybe some development libraries/packages are missing?
14667 If you don't want to link with them give
14668 $WITH_NO
14669 as options to configure" >&2;}
14670 { (exit 1); exit 1; }; }
14671 fi
14672 fi
14673
14674 ### Use -lgpm if available, unless `--with-gpm=no'.
14675 HAVE_GPM=no
14676 if test "${with_gpm}" != "no"; then
14677 if test "${ac_cv_header_gpm_h+set}" = set; then
14678 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14679 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14680 if test "${ac_cv_header_gpm_h+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 fi
14683 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14684 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14685 else
14686 # Is the header compilable?
14687 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14688 echo $ECHO_N "checking gpm.h usability... $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 $ac_includes_default
14696 #include <gpm.h>
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_header_compiler=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ac_header_compiler=no
14721 fi
14722
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6; }
14726
14727 # Is the header present?
14728 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14729 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <gpm.h>
14737 _ACEOF
14738 if { (ac_try="$ac_cpp conftest.$ac_ext"
14739 case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev/null && {
14751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 }; then
14754 ac_header_preproc=yes
14755 else
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759 ac_header_preproc=no
14760 fi
14761
14762 rm -f conftest.err conftest.$ac_ext
14763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14764 echo "${ECHO_T}$ac_header_preproc" >&6; }
14765
14766 # So? What about this header?
14767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14768 yes:no: )
14769 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14770 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14772 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14773 ac_header_preproc=yes
14774 ;;
14775 no:yes:* )
14776 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14777 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14779 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14781 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14783 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14785 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14787 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14788
14789 ;;
14790 esac
14791 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14792 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_gpm_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796 ac_cv_header_gpm_h=$ac_header_preproc
14797 fi
14798 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14799 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14800
14801 fi
14802 if test $ac_cv_header_gpm_h = yes; then
14803 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14804 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14805 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lgpm $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char Gpm_Open ();
14824 int
14825 main ()
14826 {
14827 return Gpm_Open ();
14828 ;
14829 return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (ac_try="$ac_link"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_link") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest$ac_exeext &&
14849 $as_test_x conftest$ac_exeext; then
14850 ac_cv_lib_gpm_Gpm_Open=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 ac_cv_lib_gpm_Gpm_Open=no
14856 fi
14857
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14861 fi
14862 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14863 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14864 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14865 HAVE_GPM=yes
14866 fi
14867
14868 fi
14869
14870
14871 fi
14872
14873 if test "${HAVE_GPM}" = "yes"; then
14874
14875 cat >>confdefs.h <<\_ACEOF
14876 #define HAVE_GPM 1
14877 _ACEOF
14878
14879 fi
14880
14881 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14882 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14883 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 fi
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14888 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14889 else
14890 # Is the header compilable?
14891 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14892 echo $ECHO_N "checking malloc/malloc.h usability... $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 $ac_includes_default
14900 #include <malloc/malloc.h>
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_compile") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest.$ac_objext; then
14919 ac_header_compiler=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 ac_header_compiler=no
14925 fi
14926
14927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14929 echo "${ECHO_T}$ac_header_compiler" >&6; }
14930
14931 # Is the header present?
14932 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14933 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <malloc/malloc.h>
14941 _ACEOF
14942 if { (ac_try="$ac_cpp conftest.$ac_ext"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } >/dev/null && {
14955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 }; then
14958 ac_header_preproc=yes
14959 else
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963 ac_header_preproc=no
14964 fi
14965
14966 rm -f conftest.err conftest.$ac_ext
14967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968 echo "${ECHO_T}$ac_header_preproc" >&6; }
14969
14970 # So? What about this header?
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14972 yes:no: )
14973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14974 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14976 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14977 ac_header_preproc=yes
14978 ;;
14979 no:yes:* )
14980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14985 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14987 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14991 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14992
14993 ;;
14994 esac
14995 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14996 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14997 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15001 fi
15002 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15003 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15004
15005 fi
15006 if test $ac_cv_header_malloc_malloc_h = yes; then
15007
15008 cat >>confdefs.h <<\_ACEOF
15009 #define HAVE_MALLOC_MALLOC_H 1
15010 _ACEOF
15011
15012 fi
15013
15014
15015
15016 ### Use Mac OS X Carbon API to implement GUI.
15017 if test "${HAVE_CARBON}" = "yes"; then
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_CARBON 1
15021 _ACEOF
15022
15023 ## Specify the install directory
15024 carbon_appdir=
15025 if test "${carbon_appdir_x}" != ""; then
15026 case ${carbon_appdir_x} in
15027 y | ye | yes) carbon_appdir=/Applications ;;
15028 * ) carbon_appdir=${carbon_appdir_x} ;;
15029 esac
15030 fi
15031 # We also have mouse menus.
15032 HAVE_MENUS=yes
15033 fi
15034
15035 ### Use session management (-lSM -lICE) if available
15036 HAVE_X_SM=no
15037 if test "${HAVE_X11}" = "yes"; then
15038 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15039 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15040 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15041 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 fi
15044 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15045 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15046 else
15047 # Is the header compilable?
15048 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15049 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15050 cat >conftest.$ac_ext <<_ACEOF
15051 /* confdefs.h. */
15052 _ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 $ac_includes_default
15057 #include <X11/SM/SMlib.h>
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (ac_try="$ac_compile"
15061 case "(($ac_try" in
15062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15064 esac
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_compile") 2>conftest.er1
15067 ac_status=$?
15068 grep -v '^ *+' conftest.er1 >conftest.err
15069 rm -f conftest.er1
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest.$ac_objext; then
15076 ac_header_compiler=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 ac_header_compiler=no
15082 fi
15083
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15086 echo "${ECHO_T}$ac_header_compiler" >&6; }
15087
15088 # Is the header present?
15089 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15090 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 #include <X11/SM/SMlib.h>
15098 _ACEOF
15099 if { (ac_try="$ac_cpp conftest.$ac_ext"
15100 case "(($ac_try" in
15101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15103 esac
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } >/dev/null && {
15112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 }; then
15115 ac_header_preproc=yes
15116 else
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 ac_header_preproc=no
15121 fi
15122
15123 rm -f conftest.err conftest.$ac_ext
15124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15125 echo "${ECHO_T}$ac_header_preproc" >&6; }
15126
15127 # So? What about this header?
15128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15129 yes:no: )
15130 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15131 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15133 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15134 ac_header_preproc=yes
15135 ;;
15136 no:yes:* )
15137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15138 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15140 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15142 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15144 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15146 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15148 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15149
15150 ;;
15151 esac
15152 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15153 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15154 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15158 fi
15159 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15160 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15161
15162 fi
15163 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15164 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15165 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15166 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169 ac_check_lib_save_LIBS=$LIBS
15170 LIBS="-lSM -lICE $LIBS"
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char SmcOpenConnection ();
15185 int
15186 main ()
15187 {
15188 return SmcOpenConnection ();
15189 ;
15190 return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_link") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest$ac_exeext &&
15210 $as_test_x conftest$ac_exeext; then
15211 ac_cv_lib_SM_SmcOpenConnection=yes
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216 ac_cv_lib_SM_SmcOpenConnection=no
15217 fi
15218
15219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15220 conftest$ac_exeext conftest.$ac_ext
15221 LIBS=$ac_check_lib_save_LIBS
15222 fi
15223 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15224 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15225 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15226 HAVE_X_SM=yes
15227 fi
15228
15229 fi
15230
15231
15232
15233 if test "${HAVE_X_SM}" = "yes"; then
15234
15235 cat >>confdefs.h <<\_ACEOF
15236 #define HAVE_X_SM 1
15237 _ACEOF
15238
15239 case "$LIBS" in
15240 *-lSM*) ;;
15241 *) LIBS="-lSM -lICE $LIBS" ;;
15242 esac
15243 fi
15244 fi
15245
15246 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15247 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15248 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15249 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 #include <netdb.h>
15259 int
15260 main ()
15261 {
15262 return h_errno;
15263 ;
15264 return 0;
15265 }
15266 _ACEOF
15267 rm -f conftest.$ac_objext conftest$ac_exeext
15268 if { (ac_try="$ac_link"
15269 case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_link") 2>conftest.er1
15275 ac_status=$?
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext &&
15284 $as_test_x conftest$ac_exeext; then
15285 emacs_cv_netdb_declares_h_errno=yes
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 emacs_cv_netdb_declares_h_errno=no
15291 fi
15292
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15295 fi
15296 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15297 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15298 if test $emacs_cv_netdb_declares_h_errno = yes; then
15299
15300 cat >>confdefs.h <<\_ACEOF
15301 #define HAVE_H_ERRNO 1
15302 _ACEOF
15303
15304 fi
15305
15306 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15307 # for constant arguments. Useless!
15308 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15309 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15310 if test "${ac_cv_working_alloca_h+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313 cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h. */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 #include <alloca.h>
15320 int
15321 main ()
15322 {
15323 char *p = (char *) alloca (2 * sizeof (int));
15324 if (p) return 0;
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (ac_try="$ac_link"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_link") 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } && {
15343 test -z "$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15345 } && test -s conftest$ac_exeext &&
15346 $as_test_x conftest$ac_exeext; then
15347 ac_cv_working_alloca_h=yes
15348 else
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_cv_working_alloca_h=no
15353 fi
15354
15355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15356 conftest$ac_exeext conftest.$ac_ext
15357 fi
15358 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15359 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15360 if test $ac_cv_working_alloca_h = yes; then
15361
15362 cat >>confdefs.h <<\_ACEOF
15363 #define HAVE_ALLOCA_H 1
15364 _ACEOF
15365
15366 fi
15367
15368 { echo "$as_me:$LINENO: checking for alloca" >&5
15369 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15370 if test "${ac_cv_func_alloca_works+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 #ifdef __GNUC__
15380 # define alloca __builtin_alloca
15381 #else
15382 # ifdef _MSC_VER
15383 # include <malloc.h>
15384 # define alloca _alloca
15385 # else
15386 # ifdef HAVE_ALLOCA_H
15387 # include <alloca.h>
15388 # else
15389 # ifdef _AIX
15390 #pragma alloca
15391 # else
15392 # ifndef alloca /* predefined by HP cc +Olibcalls */
15393 char *alloca ();
15394 # endif
15395 # endif
15396 # endif
15397 # endif
15398 #endif
15399
15400 int
15401 main ()
15402 {
15403 char *p = (char *) alloca (1);
15404 if (p) return 0;
15405 ;
15406 return 0;
15407 }
15408 _ACEOF
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 ac_cv_func_alloca_works=yes
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 ac_cv_func_alloca_works=no
15433 fi
15434
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15437 fi
15438 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15439 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15440
15441 if test $ac_cv_func_alloca_works = yes; then
15442
15443 cat >>confdefs.h <<\_ACEOF
15444 #define HAVE_ALLOCA 1
15445 _ACEOF
15446
15447 else
15448 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15449 # that cause trouble. Some versions do not even contain alloca or
15450 # contain a buggy version. If you still want to use their alloca,
15451 # use ar to extract alloca.o from them instead of compiling alloca.c.
15452
15453 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15454
15455 cat >>confdefs.h <<\_ACEOF
15456 #define C_ALLOCA 1
15457 _ACEOF
15458
15459
15460 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15461 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15462 if test "${ac_cv_os_cray+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h. */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #if defined CRAY && ! defined CRAY2
15472 webecray
15473 #else
15474 wenotbecray
15475 #endif
15476
15477 _ACEOF
15478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15479 $EGREP "webecray" >/dev/null 2>&1; then
15480 ac_cv_os_cray=yes
15481 else
15482 ac_cv_os_cray=no
15483 fi
15484 rm -f conftest*
15485
15486 fi
15487 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15488 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15489 if test $ac_cv_os_cray = yes; then
15490 for ac_func in _getb67 GETB67 getb67; do
15491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15506
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15511
15512 #ifdef __STDC__
15513 # include <limits.h>
15514 #else
15515 # include <assert.h>
15516 #endif
15517
15518 #undef $ac_func
15519
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 char $ac_func ();
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15531 choke me
15532 #endif
15533
15534 int
15535 main ()
15536 {
15537 return $ac_func ();
15538 ;
15539 return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest$ac_exeext &&
15559 $as_test_x conftest$ac_exeext; then
15560 eval "$as_ac_var=yes"
15561 else
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565 eval "$as_ac_var=no"
15566 fi
15567
15568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15569 conftest$ac_exeext conftest.$ac_ext
15570 fi
15571 ac_res=`eval echo '${'$as_ac_var'}'`
15572 { echo "$as_me:$LINENO: result: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15574 if test `eval echo '${'$as_ac_var'}'` = yes; then
15575
15576 cat >>confdefs.h <<_ACEOF
15577 #define CRAY_STACKSEG_END $ac_func
15578 _ACEOF
15579
15580 break
15581 fi
15582
15583 done
15584 fi
15585
15586 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15587 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15588 if test "${ac_cv_c_stack_direction+set}" = set; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591 if test "$cross_compiling" = yes; then
15592 ac_cv_c_stack_direction=0
15593 else
15594 cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h. */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15601 int
15602 find_stack_direction ()
15603 {
15604 static char *addr = 0;
15605 auto char dummy;
15606 if (addr == 0)
15607 {
15608 addr = &dummy;
15609 return find_stack_direction ();
15610 }
15611 else
15612 return (&dummy > addr) ? 1 : -1;
15613 }
15614
15615 int
15616 main ()
15617 {
15618 return find_stack_direction () < 0;
15619 }
15620 _ACEOF
15621 rm -f conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_link") 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_cv_c_stack_direction=1
15642 else
15643 echo "$as_me: program exited with status $ac_status" >&5
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 ( exit $ac_status )
15648 ac_cv_c_stack_direction=-1
15649 fi
15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15651 fi
15652
15653
15654 fi
15655 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15656 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15657
15658 cat >>confdefs.h <<_ACEOF
15659 #define STACK_DIRECTION $ac_cv_c_stack_direction
15660 _ACEOF
15661
15662
15663 fi
15664
15665
15666 if test x"$ac_cv_func_alloca_works" != xyes; then
15667 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15668 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15669 { (exit 1); exit 1; }; }
15670 fi
15671
15672 # fmod, logb, and frexp are found in -lm on most systems.
15673 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15674
15675 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15676 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15677 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 else
15680 ac_check_lib_save_LIBS=$LIBS
15681 LIBS="-lm $LIBS"
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15692 #ifdef __cplusplus
15693 extern "C"
15694 #endif
15695 char sqrt ();
15696 int
15697 main ()
15698 {
15699 return sqrt ();
15700 ;
15701 return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (ac_try="$ac_link"
15706 case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
15712 ac_status=$?
15713 grep -v '^ *+' conftest.er1 >conftest.err
15714 rm -f conftest.er1
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext &&
15721 $as_test_x conftest$ac_exeext; then
15722 ac_cv_lib_m_sqrt=yes
15723 else
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15726
15727 ac_cv_lib_m_sqrt=no
15728 fi
15729
15730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15731 conftest$ac_exeext conftest.$ac_ext
15732 LIBS=$ac_check_lib_save_LIBS
15733 fi
15734 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15735 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15736 if test $ac_cv_lib_m_sqrt = yes; then
15737 cat >>confdefs.h <<_ACEOF
15738 #define HAVE_LIBM 1
15739 _ACEOF
15740
15741 LIBS="-lm $LIBS"
15742
15743 fi
15744
15745
15746 # Check for mail-locking functions in a "mail" library. Probably this should
15747 # have the same check as for liblockfile below.
15748
15749 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15750 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15751 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 ac_check_lib_save_LIBS=$LIBS
15755 LIBS="-lmail $LIBS"
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15766 #ifdef __cplusplus
15767 extern "C"
15768 #endif
15769 char maillock ();
15770 int
15771 main ()
15772 {
15773 return maillock ();
15774 ;
15775 return 0;
15776 }
15777 _ACEOF
15778 rm -f conftest.$ac_objext conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_link") 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } && {
15792 test -z "$ac_c_werror_flag" ||
15793 test ! -s conftest.err
15794 } && test -s conftest$ac_exeext &&
15795 $as_test_x conftest$ac_exeext; then
15796 ac_cv_lib_mail_maillock=yes
15797 else
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801 ac_cv_lib_mail_maillock=no
15802 fi
15803
15804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LIBS=$ac_check_lib_save_LIBS
15807 fi
15808 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15809 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15810 if test $ac_cv_lib_mail_maillock = yes; then
15811 cat >>confdefs.h <<_ACEOF
15812 #define HAVE_LIBMAIL 1
15813 _ACEOF
15814
15815 LIBS="-lmail $LIBS"
15816
15817 fi
15818
15819
15820 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15821 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15822 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825 ac_check_lib_save_LIBS=$LIBS
15826 LIBS="-llockfile $LIBS"
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833
15834 /* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
15837 #ifdef __cplusplus
15838 extern "C"
15839 #endif
15840 char maillock ();
15841 int
15842 main ()
15843 {
15844 return maillock ();
15845 ;
15846 return 0;
15847 }
15848 _ACEOF
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (ac_try="$ac_link"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856 (eval "$ac_link") 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } && {
15863 test -z "$ac_c_werror_flag" ||
15864 test ! -s conftest.err
15865 } && test -s conftest$ac_exeext &&
15866 $as_test_x conftest$ac_exeext; then
15867 ac_cv_lib_lockfile_maillock=yes
15868 else
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ac_cv_lib_lockfile_maillock=no
15873 fi
15874
15875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15876 conftest$ac_exeext conftest.$ac_ext
15877 LIBS=$ac_check_lib_save_LIBS
15878 fi
15879 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15880 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15881 if test $ac_cv_lib_lockfile_maillock = yes; then
15882 cat >>confdefs.h <<_ACEOF
15883 #define HAVE_LIBLOCKFILE 1
15884 _ACEOF
15885
15886 LIBS="-llockfile $LIBS"
15887
15888 fi
15889
15890 # If we have the shared liblockfile, assume we must use it for mail
15891 # locking (e.g. Debian). If we couldn't link against liblockfile
15892 # (no liblockfile.a installed), ensure that we don't need to.
15893 if test "$ac_cv_lib_lockfile_maillock" = no; then
15894 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15895 set dummy liblockfile.so; ac_word=$2
15896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15898 if test "${ac_cv_prog_liblockfile+set}" = set; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901 if test -n "$liblockfile"; then
15902 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15903 else
15904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15905 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15906 for as_dir in $as_dummy
15907 do
15908 IFS=$as_save_IFS
15909 test -z "$as_dir" && as_dir=.
15910 for ac_exec_ext in '' $ac_executable_extensions; do
15911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15912 ac_cv_prog_liblockfile="yes"
15913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15914 break 2
15915 fi
15916 done
15917 done
15918 IFS=$as_save_IFS
15919
15920 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15921 fi
15922 fi
15923 liblockfile=$ac_cv_prog_liblockfile
15924 if test -n "$liblockfile"; then
15925 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15926 echo "${ECHO_T}$liblockfile" >&6; }
15927 else
15928 { echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6; }
15930 fi
15931
15932
15933 if test $ac_cv_prog_liblockfile = yes; then
15934 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15935 This probably means that movemail could lose mail.
15936 There may be a \`development' package to install containing liblockfile." >&5
15937 echo "$as_me: error: Shared liblockfile found but can't link against it.
15938 This probably means that movemail could lose mail.
15939 There may be a \`development' package to install containing liblockfile." >&2;}
15940 { (exit 1); exit 1; }; }
15941 else :
15942 fi
15943 fi
15944
15945 for ac_func in touchlock
15946 do
15947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15961 #define $ac_func innocuous_$ac_func
15962
15963 /* System header to define __stub macros and hopefully few prototypes,
15964 which can conflict with char $ac_func (); below.
15965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15966 <limits.h> exists even on freestanding compilers. */
15967
15968 #ifdef __STDC__
15969 # include <limits.h>
15970 #else
15971 # include <assert.h>
15972 #endif
15973
15974 #undef $ac_func
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977 Use char because int might match the return type of a GCC
15978 builtin and then its argument prototype would still apply. */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char $ac_func ();
15983 /* The GNU C library defines this for functions which it implements
15984 to always fail with ENOSYS. Some functions are actually named
15985 something starting with __ and the normal name is an alias. */
15986 #if defined __stub_$ac_func || defined __stub___$ac_func
15987 choke me
15988 #endif
15989
15990 int
15991 main ()
15992 {
15993 return $ac_func ();
15994 ;
15995 return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16003 esac
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest$ac_exeext &&
16015 $as_test_x conftest$ac_exeext; then
16016 eval "$as_ac_var=yes"
16017 else
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 eval "$as_ac_var=no"
16022 fi
16023
16024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16025 conftest$ac_exeext conftest.$ac_ext
16026 fi
16027 ac_res=`eval echo '${'$as_ac_var'}'`
16028 { echo "$as_me:$LINENO: result: $ac_res" >&5
16029 echo "${ECHO_T}$ac_res" >&6; }
16030 if test `eval echo '${'$as_ac_var'}'` = yes; then
16031 cat >>confdefs.h <<_ACEOF
16032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16033 _ACEOF
16034
16035 fi
16036 done
16037
16038
16039 for ac_header in maillock.h
16040 do
16041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 fi
16048 ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050 echo "${ECHO_T}$ac_res" >&6; }
16051 else
16052 # Is the header compilable?
16053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 $ac_includes_default
16062 #include <$ac_header>
16063 _ACEOF
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } && {
16078 test -z "$ac_c_werror_flag" ||
16079 test ! -s conftest.err
16080 } && test -s conftest.$ac_objext; then
16081 ac_header_compiler=yes
16082 else
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086 ac_header_compiler=no
16087 fi
16088
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16091 echo "${ECHO_T}$ac_header_compiler" >&6; }
16092
16093 # Is the header present?
16094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16096 cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h. */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 #include <$ac_header>
16103 _ACEOF
16104 if { (ac_try="$ac_cpp conftest.$ac_ext"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } >/dev/null && {
16117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 }; then
16120 ac_header_preproc=yes
16121 else
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_header_preproc=no
16126 fi
16127
16128 rm -f conftest.err conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16130 echo "${ECHO_T}$ac_header_preproc" >&6; }
16131
16132 # So? What about this header?
16133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16134 yes:no: )
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16139 ac_header_preproc=yes
16140 ;;
16141 no:yes:* )
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16154
16155 ;;
16156 esac
16157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162 eval "$as_ac_Header=\$ac_header_preproc"
16163 fi
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165 { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167
16168 fi
16169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16170 cat >>confdefs.h <<_ACEOF
16171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16172 _ACEOF
16173
16174 fi
16175
16176 done
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
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247 for ac_func in gethostname getdomainname dup2 \
16248 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16249 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16250 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16251 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16252 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16253 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16254 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16255 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16256 do
16257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263 cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h. */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16271 #define $ac_func innocuous_$ac_func
16272
16273 /* System header to define __stub macros and hopefully few prototypes,
16274 which can conflict with char $ac_func (); below.
16275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16276 <limits.h> exists even on freestanding compilers. */
16277
16278 #ifdef __STDC__
16279 # include <limits.h>
16280 #else
16281 # include <assert.h>
16282 #endif
16283
16284 #undef $ac_func
16285
16286 /* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16289 #ifdef __cplusplus
16290 extern "C"
16291 #endif
16292 char $ac_func ();
16293 /* The GNU C library defines this for functions which it implements
16294 to always fail with ENOSYS. Some functions are actually named
16295 something starting with __ and the normal name is an alias. */
16296 #if defined __stub_$ac_func || defined __stub___$ac_func
16297 choke me
16298 #endif
16299
16300 int
16301 main ()
16302 {
16303 return $ac_func ();
16304 ;
16305 return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_link") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest$ac_exeext &&
16325 $as_test_x conftest$ac_exeext; then
16326 eval "$as_ac_var=yes"
16327 else
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 eval "$as_ac_var=no"
16332 fi
16333
16334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16335 conftest$ac_exeext conftest.$ac_ext
16336 fi
16337 ac_res=`eval echo '${'$as_ac_var'}'`
16338 { echo "$as_me:$LINENO: result: $ac_res" >&5
16339 echo "${ECHO_T}$ac_res" >&6; }
16340 if test `eval echo '${'$as_ac_var'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16343 _ACEOF
16344
16345 fi
16346 done
16347
16348
16349
16350 for ac_header in sys/un.h
16351 do
16352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357 echo $ECHO_N "(cached) $ECHO_C" >&6
16358 fi
16359 ac_res=`eval echo '${'$as_ac_Header'}'`
16360 { echo "$as_me:$LINENO: result: $ac_res" >&5
16361 echo "${ECHO_T}$ac_res" >&6; }
16362 else
16363 # Is the header compilable?
16364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16366 cat >conftest.$ac_ext <<_ACEOF
16367 /* confdefs.h. */
16368 _ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16373 #include <$ac_header>
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ac_header_compiler=no
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 echo "${ECHO_T}$ac_header_compiler" >&6; }
16403
16404 # Is the header present?
16405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <$ac_header>
16414 _ACEOF
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16422 ac_status=$?
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev/null && {
16428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16430 }; then
16431 ac_header_preproc=yes
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 ac_header_preproc=no
16437 fi
16438
16439 rm -f conftest.err conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16442
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445 yes:no: )
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc=yes
16451 ;;
16452 no:yes:* )
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16465
16466 ;;
16467 esac
16468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473 eval "$as_ac_Header=\$ac_header_preproc"
16474 fi
16475 ac_res=`eval echo '${'$as_ac_Header'}'`
16476 { echo "$as_me:$LINENO: result: $ac_res" >&5
16477 echo "${ECHO_T}$ac_res" >&6; }
16478
16479 fi
16480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16483 _ACEOF
16484
16485 fi
16486
16487 done
16488
16489
16490
16491
16492
16493
16494 for ac_header in $ac_header_list
16495 do
16496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 fi
16503 ac_res=`eval echo '${'$as_ac_Header'}'`
16504 { echo "$as_me:$LINENO: result: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16506 else
16507 # Is the header compilable?
16508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h. */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 $ac_includes_default
16517 #include <$ac_header>
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16527 ac_status=$?
16528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } && {
16533 test -z "$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 } && test -s conftest.$ac_objext; then
16536 ac_header_compiler=yes
16537 else
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ac_header_compiler=no
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6; }
16547
16548 # Is the header present?
16549 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h. */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 #include <$ac_header>
16558 _ACEOF
16559 if { (ac_try="$ac_cpp conftest.$ac_ext"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563 esac
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } >/dev/null && {
16572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 }; then
16575 ac_header_preproc=yes
16576 else
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580 ac_header_preproc=no
16581 fi
16582
16583 rm -f conftest.err conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16585 echo "${ECHO_T}$ac_header_preproc" >&6; }
16586
16587 # So? What about this header?
16588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16589 yes:no: )
16590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16594 ac_header_preproc=yes
16595 ;;
16596 no:yes:* )
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16609
16610 ;;
16611 esac
16612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617 eval "$as_ac_Header=\$ac_header_preproc"
16618 fi
16619 ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16622
16623 fi
16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16627 _ACEOF
16628
16629 fi
16630
16631 done
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641 for ac_func in $ac_func_list
16642 do
16643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649 cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h. */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16657 #define $ac_func innocuous_$ac_func
16658
16659 /* System header to define __stub macros and hopefully few prototypes,
16660 which can conflict with char $ac_func (); below.
16661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16662 <limits.h> exists even on freestanding compilers. */
16663
16664 #ifdef __STDC__
16665 # include <limits.h>
16666 #else
16667 # include <assert.h>
16668 #endif
16669
16670 #undef $ac_func
16671
16672 /* Override any GCC internal prototype to avoid an error.
16673 Use char because int might match the return type of a GCC
16674 builtin and then its argument prototype would still apply. */
16675 #ifdef __cplusplus
16676 extern "C"
16677 #endif
16678 char $ac_func ();
16679 /* The GNU C library defines this for functions which it implements
16680 to always fail with ENOSYS. Some functions are actually named
16681 something starting with __ and the normal name is an alias. */
16682 #if defined __stub_$ac_func || defined __stub___$ac_func
16683 choke me
16684 #endif
16685
16686 int
16687 main ()
16688 {
16689 return $ac_func ();
16690 ;
16691 return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && {
16708 test -z "$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16710 } && test -s conftest$ac_exeext &&
16711 $as_test_x conftest$ac_exeext; then
16712 eval "$as_ac_var=yes"
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717 eval "$as_ac_var=no"
16718 fi
16719
16720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16721 conftest$ac_exeext conftest.$ac_ext
16722 fi
16723 ac_res=`eval echo '${'$as_ac_var'}'`
16724 { echo "$as_me:$LINENO: result: $ac_res" >&5
16725 echo "${ECHO_T}$ac_res" >&6; }
16726 if test `eval echo '${'$as_ac_var'}'` = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16729 _ACEOF
16730
16731 fi
16732 done
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750 { echo "$as_me:$LINENO: checking for working mktime" >&5
16751 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16752 if test "${ac_cv_func_working_mktime+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755 if test "$cross_compiling" = yes; then
16756 ac_cv_func_working_mktime=no
16757 else
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 /* Test program from Paul Eggert and Tony Leneis. */
16765 #ifdef TIME_WITH_SYS_TIME
16766 # include <sys/time.h>
16767 # include <time.h>
16768 #else
16769 # ifdef HAVE_SYS_TIME_H
16770 # include <sys/time.h>
16771 # else
16772 # include <time.h>
16773 # endif
16774 #endif
16775
16776 #include <stdlib.h>
16777
16778 #ifdef HAVE_UNISTD_H
16779 # include <unistd.h>
16780 #endif
16781
16782 #ifndef HAVE_ALARM
16783 # define alarm(X) /* empty */
16784 #endif
16785
16786 /* Work around redefinition to rpl_putenv by other config tests. */
16787 #undef putenv
16788
16789 static time_t time_t_max;
16790 static time_t time_t_min;
16791
16792 /* Values we'll use to set the TZ environment variable. */
16793 static char *tz_strings[] = {
16794 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16795 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16796 };
16797 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16798
16799 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16800 Based on a problem report from Andreas Jaeger. */
16801 static int
16802 spring_forward_gap ()
16803 {
16804 /* glibc (up to about 1998-10-07) failed this test. */
16805 struct tm tm;
16806
16807 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16808 instead of "TZ=America/Vancouver" in order to detect the bug even
16809 on systems that don't support the Olson extension, or don't have the
16810 full zoneinfo tables installed. */
16811 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16812
16813 tm.tm_year = 98;
16814 tm.tm_mon = 3;
16815 tm.tm_mday = 5;
16816 tm.tm_hour = 2;
16817 tm.tm_min = 0;
16818 tm.tm_sec = 0;
16819 tm.tm_isdst = -1;
16820 return mktime (&tm) != (time_t) -1;
16821 }
16822
16823 static int
16824 mktime_test1 (now)
16825 time_t now;
16826 {
16827 struct tm *lt;
16828 return ! (lt = localtime (&now)) || mktime (lt) == now;
16829 }
16830
16831 static int
16832 mktime_test (now)
16833 time_t now;
16834 {
16835 return (mktime_test1 (now)
16836 && mktime_test1 ((time_t) (time_t_max - now))
16837 && mktime_test1 ((time_t) (time_t_min + now)));
16838 }
16839
16840 static int
16841 irix_6_4_bug ()
16842 {
16843 /* Based on code from Ariel Faigon. */
16844 struct tm tm;
16845 tm.tm_year = 96;
16846 tm.tm_mon = 3;
16847 tm.tm_mday = 0;
16848 tm.tm_hour = 0;
16849 tm.tm_min = 0;
16850 tm.tm_sec = 0;
16851 tm.tm_isdst = -1;
16852 mktime (&tm);
16853 return tm.tm_mon == 2 && tm.tm_mday == 31;
16854 }
16855
16856 static int
16857 bigtime_test (j)
16858 int j;
16859 {
16860 struct tm tm;
16861 time_t now;
16862 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16863 now = mktime (&tm);
16864 if (now != (time_t) -1)
16865 {
16866 struct tm *lt = localtime (&now);
16867 if (! (lt
16868 && lt->tm_year == tm.tm_year
16869 && lt->tm_mon == tm.tm_mon
16870 && lt->tm_mday == tm.tm_mday
16871 && lt->tm_hour == tm.tm_hour
16872 && lt->tm_min == tm.tm_min
16873 && lt->tm_sec == tm.tm_sec
16874 && lt->tm_yday == tm.tm_yday
16875 && lt->tm_wday == tm.tm_wday
16876 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16877 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16878 return 0;
16879 }
16880 return 1;
16881 }
16882
16883 static int
16884 year_2050_test ()
16885 {
16886 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16887 ignoring leap seconds. */
16888 unsigned long int answer = 2527315200UL;
16889
16890 struct tm tm;
16891 time_t t;
16892 tm.tm_year = 2050 - 1900;
16893 tm.tm_mon = 2 - 1;
16894 tm.tm_mday = 1;
16895 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16896 tm.tm_isdst = -1;
16897
16898 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16899 instead of "TZ=America/Vancouver" in order to detect the bug even
16900 on systems that don't support the Olson extension, or don't have the
16901 full zoneinfo tables installed. */
16902 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16903
16904 t = mktime (&tm);
16905
16906 /* Check that the result is either a failure, or close enough
16907 to the correct answer that we can assume the discrepancy is
16908 due to leap seconds. */
16909 return (t == (time_t) -1
16910 || (0 < t && answer - 120 <= t && t <= answer + 120));
16911 }
16912
16913 int
16914 main ()
16915 {
16916 time_t t, delta;
16917 int i, j;
16918
16919 /* This test makes some buggy mktime implementations loop.
16920 Give up after 60 seconds; a mktime slower than that
16921 isn't worth using anyway. */
16922 alarm (60);
16923
16924 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16925 continue;
16926 time_t_max--;
16927 if ((time_t) -1 < 0)
16928 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16929 continue;
16930 delta = time_t_max / 997; /* a suitable prime number */
16931 for (i = 0; i < N_STRINGS; i++)
16932 {
16933 if (tz_strings[i])
16934 putenv (tz_strings[i]);
16935
16936 for (t = 0; t <= time_t_max - delta; t += delta)
16937 if (! mktime_test (t))
16938 return 1;
16939 if (! (mktime_test ((time_t) 1)
16940 && mktime_test ((time_t) (60 * 60))
16941 && mktime_test ((time_t) (60 * 60 * 24))))
16942 return 1;
16943
16944 for (j = 1; 0 < j; j *= 2)
16945 if (! bigtime_test (j))
16946 return 1;
16947 if (! bigtime_test (j - 1))
16948 return 1;
16949 }
16950 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16951 }
16952 _ACEOF
16953 rm -f conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16958 esac
16959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16964 { (case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_try") 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_cv_func_working_mktime=yes
16974 else
16975 echo "$as_me: program exited with status $ac_status" >&5
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 ( exit $ac_status )
16980 ac_cv_func_working_mktime=no
16981 fi
16982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16983 fi
16984
16985
16986 fi
16987 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16988 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16989 if test $ac_cv_func_working_mktime = no; then
16990 case " $LIBOBJS " in
16991 *" mktime.$ac_objext "* ) ;;
16992 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16993 ;;
16994 esac
16995
16996 fi
16997
16998 if test "$ac_cv_func_working_mktime" = no; then
16999
17000 cat >>confdefs.h <<\_ACEOF
17001 #define BROKEN_MKTIME 1
17002 _ACEOF
17003
17004 fi
17005
17006 ac_have_func=no # yes means we've found a way to get the load average.
17007
17008 # Make sure getloadavg.c is where it belongs, at configure-time.
17009 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17010 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17011 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17012 { (exit 1); exit 1; }; }
17013
17014 ac_save_LIBS=$LIBS
17015
17016 # Check for getloadavg, but be sure not to touch the cache variable.
17017 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17018 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17019 if test "${ac_cv_func_getloadavg+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17030 #define getloadavg innocuous_getloadavg
17031
17032 /* System header to define __stub macros and hopefully few prototypes,
17033 which can conflict with char getloadavg (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
17036
17037 #ifdef __STDC__
17038 # include <limits.h>
17039 #else
17040 # include <assert.h>
17041 #endif
17042
17043 #undef getloadavg
17044
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char getloadavg ();
17052 /* The GNU C library defines this for functions which it implements
17053 to always fail with ENOSYS. Some functions are actually named
17054 something starting with __ and the normal name is an alias. */
17055 #if defined __stub_getloadavg || defined __stub___getloadavg
17056 choke me
17057 #endif
17058
17059 int
17060 main ()
17061 {
17062 return getloadavg ();
17063 ;
17064 return 0;
17065 }
17066 _ACEOF
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (ac_try="$ac_link"
17069 case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_link") 2>conftest.er1
17075 ac_status=$?
17076 grep -v '^ *+' conftest.er1 >conftest.err
17077 rm -f conftest.er1
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } && {
17081 test -z "$ac_c_werror_flag" ||
17082 test ! -s conftest.err
17083 } && test -s conftest$ac_exeext &&
17084 $as_test_x conftest$ac_exeext; then
17085 ac_cv_func_getloadavg=yes
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 ac_cv_func_getloadavg=no
17091 fi
17092
17093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17094 conftest$ac_exeext conftest.$ac_ext
17095 fi
17096 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17097 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17098 if test $ac_cv_func_getloadavg = yes; then
17099 exit 0
17100 else
17101 exit 1
17102 fi
17103 ) && ac_have_func=yes
17104
17105 # On HPUX9, an unprivileged user can get load averages through this function.
17106
17107 for ac_func in pstat_getdynamic
17108 do
17109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115 cat >conftest.$ac_ext <<_ACEOF
17116 /* confdefs.h. */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h. */
17121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17123 #define $ac_func innocuous_$ac_func
17124
17125 /* System header to define __stub macros and hopefully few prototypes,
17126 which can conflict with char $ac_func (); below.
17127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128 <limits.h> exists even on freestanding compilers. */
17129
17130 #ifdef __STDC__
17131 # include <limits.h>
17132 #else
17133 # include <assert.h>
17134 #endif
17135
17136 #undef $ac_func
17137
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 char $ac_func ();
17145 /* The GNU C library defines this for functions which it implements
17146 to always fail with ENOSYS. Some functions are actually named
17147 something starting with __ and the normal name is an alias. */
17148 #if defined __stub_$ac_func || defined __stub___$ac_func
17149 choke me
17150 #endif
17151
17152 int
17153 main ()
17154 {
17155 return $ac_func ();
17156 ;
17157 return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest$ac_exeext
17161 if { (ac_try="$ac_link"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } && {
17174 test -z "$ac_c_werror_flag" ||
17175 test ! -s conftest.err
17176 } && test -s conftest$ac_exeext &&
17177 $as_test_x conftest$ac_exeext; then
17178 eval "$as_ac_var=yes"
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 eval "$as_ac_var=no"
17184 fi
17185
17186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17187 conftest$ac_exeext conftest.$ac_ext
17188 fi
17189 ac_res=`eval echo '${'$as_ac_var'}'`
17190 { echo "$as_me:$LINENO: result: $ac_res" >&5
17191 echo "${ECHO_T}$ac_res" >&6; }
17192 if test `eval echo '${'$as_ac_var'}'` = yes; then
17193 cat >>confdefs.h <<_ACEOF
17194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17195 _ACEOF
17196
17197 fi
17198 done
17199
17200
17201 # Solaris has libkstat which does not require root.
17202
17203 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17204 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208 ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-lkstat $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char kstat_open ();
17224 int
17225 main ()
17226 {
17227 return kstat_open ();
17228 ;
17229 return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17240 ac_status=$?
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest$ac_exeext &&
17249 $as_test_x conftest$ac_exeext; then
17250 ac_cv_lib_kstat_kstat_open=yes
17251 else
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255 ac_cv_lib_kstat_kstat_open=no
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17259 conftest$ac_exeext conftest.$ac_ext
17260 LIBS=$ac_check_lib_save_LIBS
17261 fi
17262 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17263 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17264 if test $ac_cv_lib_kstat_kstat_open = yes; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define HAVE_LIBKSTAT 1
17267 _ACEOF
17268
17269 LIBS="-lkstat $LIBS"
17270
17271 fi
17272
17273 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17274
17275 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17276 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17277 # to get the right answer into the cache.
17278 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17279 if test $ac_have_func = no; then
17280 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17281 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17282 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-lelf $LIBS"
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char elf_begin ();
17301 int
17302 main ()
17303 {
17304 return elf_begin ();
17305 ;
17306 return 0;
17307 }
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_link") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest$ac_exeext &&
17326 $as_test_x conftest$ac_exeext; then
17327 ac_cv_lib_elf_elf_begin=yes
17328 else
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 ac_cv_lib_elf_elf_begin=no
17333 fi
17334
17335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17338 fi
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17340 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17341 if test $ac_cv_lib_elf_elf_begin = yes; then
17342 LIBS="-lelf $LIBS"
17343 fi
17344
17345 fi
17346 if test $ac_have_func = no; then
17347 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17348 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17349 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352 ac_check_lib_save_LIBS=$LIBS
17353 LIBS="-lkvm $LIBS"
17354 cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h. */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360
17361 /* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17364 #ifdef __cplusplus
17365 extern "C"
17366 #endif
17367 char kvm_open ();
17368 int
17369 main ()
17370 {
17371 return kvm_open ();
17372 ;
17373 return 0;
17374 }
17375 _ACEOF
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (ac_try="$ac_link"
17378 case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_link") 2>conftest.er1
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && {
17390 test -z "$ac_c_werror_flag" ||
17391 test ! -s conftest.err
17392 } && test -s conftest$ac_exeext &&
17393 $as_test_x conftest$ac_exeext; then
17394 ac_cv_lib_kvm_kvm_open=yes
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 ac_cv_lib_kvm_kvm_open=no
17400 fi
17401
17402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17403 conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17405 fi
17406 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17407 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17408 if test $ac_cv_lib_kvm_kvm_open = yes; then
17409 LIBS="-lkvm $LIBS"
17410 fi
17411
17412 # Check for the 4.4BSD definition of getloadavg.
17413 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17414 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17415 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418 ac_check_lib_save_LIBS=$LIBS
17419 LIBS="-lutil $LIBS"
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h. */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426
17427 /* Override any GCC internal prototype to avoid an error.
17428 Use char because int might match the return type of a GCC
17429 builtin and then its argument prototype would still apply. */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 char getloadavg ();
17434 int
17435 main ()
17436 {
17437 return getloadavg ();
17438 ;
17439 return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17450 ac_status=$?
17451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest$ac_exeext &&
17459 $as_test_x conftest$ac_exeext; then
17460 ac_cv_lib_util_getloadavg=yes
17461 else
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465 ac_cv_lib_util_getloadavg=no
17466 fi
17467
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469 conftest$ac_exeext conftest.$ac_ext
17470 LIBS=$ac_check_lib_save_LIBS
17471 fi
17472 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17473 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17474 if test $ac_cv_lib_util_getloadavg = yes; then
17475 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17476 fi
17477
17478 fi
17479
17480 if test $ac_have_func = no; then
17481 # There is a commonly available library for RS/6000 AIX.
17482 # Since it is not a standard part of AIX, it might be installed locally.
17483 ac_getloadavg_LIBS=$LIBS
17484 LIBS="-L/usr/local/lib $LIBS"
17485 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17486 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17487 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 ac_check_lib_save_LIBS=$LIBS
17491 LIBS="-lgetloadavg $LIBS"
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498
17499 /* Override any GCC internal prototype to avoid an error.
17500 Use char because int might match the return type of a GCC
17501 builtin and then its argument prototype would still apply. */
17502 #ifdef __cplusplus
17503 extern "C"
17504 #endif
17505 char getloadavg ();
17506 int
17507 main ()
17508 {
17509 return getloadavg ();
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (ac_try="$ac_link"
17516 case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_link") 2>conftest.er1
17522 ac_status=$?
17523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } && {
17528 test -z "$ac_c_werror_flag" ||
17529 test ! -s conftest.err
17530 } && test -s conftest$ac_exeext &&
17531 $as_test_x conftest$ac_exeext; then
17532 ac_cv_lib_getloadavg_getloadavg=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17536
17537 ac_cv_lib_getloadavg_getloadavg=no
17538 fi
17539
17540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17541 conftest$ac_exeext conftest.$ac_ext
17542 LIBS=$ac_check_lib_save_LIBS
17543 fi
17544 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17545 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17546 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17547 LIBS="-lgetloadavg $LIBS"
17548 else
17549 LIBS=$ac_getloadavg_LIBS
17550 fi
17551
17552 fi
17553
17554 # Make sure it is really in the library, if we think we found it,
17555 # otherwise set up the replacement function.
17556
17557 for ac_func in getloadavg
17558 do
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17574
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17579
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17585
17586 #undef $ac_func
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 choke me
17600 #endif
17601
17602 int
17603 main ()
17604 {
17605 return $ac_func ();
17606 ;
17607 return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17618 ac_status=$?
17619 grep -v '^ *+' conftest.er1 >conftest.err
17620 rm -f conftest.er1
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest$ac_exeext &&
17627 $as_test_x conftest$ac_exeext; then
17628 eval "$as_ac_var=yes"
17629 else
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633 eval "$as_ac_var=no"
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17638 fi
17639 ac_res=`eval echo '${'$as_ac_var'}'`
17640 { echo "$as_me:$LINENO: result: $ac_res" >&5
17641 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 _ACEOF
17646
17647 else
17648 case " $LIBOBJS " in
17649 *" getloadavg.$ac_objext "* ) ;;
17650 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17651 ;;
17652 esac
17653
17654
17655 cat >>confdefs.h <<\_ACEOF
17656 #define C_GETLOADAVG 1
17657 _ACEOF
17658
17659 # Figure out what our getloadavg.c needs.
17660 ac_have_func=no
17661 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17662 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17663 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17664 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 fi
17667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17668 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17669 else
17670 # Is the header compilable?
17671 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17672 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 $ac_includes_default
17680 #include <sys/dg_sys_info.h>
17681 _ACEOF
17682 rm -f conftest.$ac_objext
17683 if { (ac_try="$ac_compile"
17684 case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_compile") 2>conftest.er1
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest.$ac_objext; then
17699 ac_header_compiler=yes
17700 else
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704 ac_header_compiler=no
17705 fi
17706
17707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17709 echo "${ECHO_T}$ac_header_compiler" >&6; }
17710
17711 # Is the header present?
17712 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17713 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 #include <sys/dg_sys_info.h>
17721 _ACEOF
17722 if { (ac_try="$ac_cpp conftest.$ac_ext"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17729 ac_status=$?
17730 grep -v '^ *+' conftest.er1 >conftest.err
17731 rm -f conftest.er1
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } >/dev/null && {
17735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17736 test ! -s conftest.err
17737 }; then
17738 ac_header_preproc=yes
17739 else
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17742
17743 ac_header_preproc=no
17744 fi
17745
17746 rm -f conftest.err conftest.$ac_ext
17747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17748 echo "${ECHO_T}$ac_header_preproc" >&6; }
17749
17750 # So? What about this header?
17751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17752 yes:no: )
17753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17754 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17756 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17757 ac_header_preproc=yes
17758 ;;
17759 no:yes:* )
17760 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17761 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17763 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17765 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17767 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17768 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17769 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17770 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17771 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17772
17773 ;;
17774 esac
17775 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17776 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17777 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17781 fi
17782 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17783 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17784
17785 fi
17786 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17787 ac_have_func=yes
17788
17789 cat >>confdefs.h <<\_ACEOF
17790 #define DGUX 1
17791 _ACEOF
17792
17793
17794 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17795 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17796 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799 ac_check_lib_save_LIBS=$LIBS
17800 LIBS="-ldgc $LIBS"
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807
17808 /* Override any GCC internal prototype to avoid an error.
17809 Use char because int might match the return type of a GCC
17810 builtin and then its argument prototype would still apply. */
17811 #ifdef __cplusplus
17812 extern "C"
17813 #endif
17814 char dg_sys_info ();
17815 int
17816 main ()
17817 {
17818 return dg_sys_info ();
17819 ;
17820 return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17831 ac_status=$?
17832 grep -v '^ *+' conftest.er1 >conftest.err
17833 rm -f conftest.er1
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext &&
17840 $as_test_x conftest$ac_exeext; then
17841 ac_cv_lib_dgc_dg_sys_info=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_lib_dgc_dg_sys_info=no
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17852 fi
17853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17854 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17855 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17856 cat >>confdefs.h <<_ACEOF
17857 #define HAVE_LIBDGC 1
17858 _ACEOF
17859
17860 LIBS="-ldgc $LIBS"
17861
17862 fi
17863
17864 fi
17865
17866
17867
17868 if test "${ac_cv_header_locale_h+set}" = set; then
17869 { echo "$as_me:$LINENO: checking for locale.h" >&5
17870 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17871 if test "${ac_cv_header_locale_h+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 fi
17874 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17875 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17876 else
17877 # Is the header compilable?
17878 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17879 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 $ac_includes_default
17887 #include <locale.h>
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896 (eval "$ac_compile") 2>conftest.er1
17897 ac_status=$?
17898 grep -v '^ *+' conftest.er1 >conftest.err
17899 rm -f conftest.er1
17900 cat conftest.err >&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } && {
17903 test -z "$ac_c_werror_flag" ||
17904 test ! -s conftest.err
17905 } && test -s conftest.$ac_objext; then
17906 ac_header_compiler=yes
17907 else
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 ac_header_compiler=no
17912 fi
17913
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17916 echo "${ECHO_T}$ac_header_compiler" >&6; }
17917
17918 # Is the header present?
17919 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17920 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 #include <locale.h>
17928 _ACEOF
17929 if { (ac_try="$ac_cpp conftest.$ac_ext"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } >/dev/null && {
17942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 }; then
17945 ac_header_preproc=yes
17946 else
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17949
17950 ac_header_preproc=no
17951 fi
17952
17953 rm -f conftest.err conftest.$ac_ext
17954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17955 echo "${ECHO_T}$ac_header_preproc" >&6; }
17956
17957 # So? What about this header?
17958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17959 yes:no: )
17960 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17961 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17962 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17963 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17964 ac_header_preproc=yes
17965 ;;
17966 no:yes:* )
17967 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17968 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17970 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17972 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17974 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17975 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17976 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17977 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17978 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17979
17980 ;;
17981 esac
17982 { echo "$as_me:$LINENO: checking for locale.h" >&5
17983 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17984 if test "${ac_cv_header_locale_h+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987 ac_cv_header_locale_h=$ac_header_preproc
17988 fi
17989 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17990 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17991
17992 fi
17993
17994
17995
17996 for ac_func in setlocale
17997 do
17998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18012 #define $ac_func innocuous_$ac_func
18013
18014 /* System header to define __stub macros and hopefully few prototypes,
18015 which can conflict with char $ac_func (); below.
18016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18017 <limits.h> exists even on freestanding compilers. */
18018
18019 #ifdef __STDC__
18020 # include <limits.h>
18021 #else
18022 # include <assert.h>
18023 #endif
18024
18025 #undef $ac_func
18026
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18030 #ifdef __cplusplus
18031 extern "C"
18032 #endif
18033 char $ac_func ();
18034 /* The GNU C library defines this for functions which it implements
18035 to always fail with ENOSYS. Some functions are actually named
18036 something starting with __ and the normal name is an alias. */
18037 #if defined __stub_$ac_func || defined __stub___$ac_func
18038 choke me
18039 #endif
18040
18041 int
18042 main ()
18043 {
18044 return $ac_func ();
18045 ;
18046 return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest$ac_exeext &&
18066 $as_test_x conftest$ac_exeext; then
18067 eval "$as_ac_var=yes"
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 eval "$as_ac_var=no"
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18076 conftest$ac_exeext conftest.$ac_ext
18077 fi
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079 { echo "$as_me:$LINENO: result: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 fi
18087 done
18088
18089
18090 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18091 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18092 # Irix 4.0.5F has the header but not the library.
18093 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18094 ac_have_func=yes
18095
18096 cat >>confdefs.h <<\_ACEOF
18097 #define SVR4 1
18098 _ACEOF
18099
18100 fi
18101
18102 if test $ac_have_func = no; then
18103 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18104 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18105 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18106 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 fi
18109 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18110 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18111 else
18112 # Is the header compilable?
18113 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18114 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 $ac_includes_default
18122 #include <inq_stats/cpustats.h>
18123 _ACEOF
18124 rm -f conftest.$ac_objext
18125 if { (ac_try="$ac_compile"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_compile") 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
18141 ac_header_compiler=yes
18142 else
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 ac_header_compiler=no
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18151 echo "${ECHO_T}$ac_header_compiler" >&6; }
18152
18153 # Is the header present?
18154 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18155 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18156 cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h. */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 #include <inq_stats/cpustats.h>
18163 _ACEOF
18164 if { (ac_try="$ac_cpp conftest.$ac_ext"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 }; then
18180 ac_header_preproc=yes
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 ac_header_preproc=no
18186 fi
18187
18188 rm -f conftest.err conftest.$ac_ext
18189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18190 echo "${ECHO_T}$ac_header_preproc" >&6; }
18191
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18194 yes:no: )
18195 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18196 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18198 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18199 ac_header_preproc=yes
18200 ;;
18201 no:yes:* )
18202 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18203 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18204 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18205 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18207 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18209 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18211 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18213 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18214
18215 ;;
18216 esac
18217 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18218 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18219 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18223 fi
18224 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18225 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18226
18227 fi
18228 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18229 ac_have_func=yes
18230
18231 cat >>confdefs.h <<\_ACEOF
18232 #define UMAX 1
18233 _ACEOF
18234
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define UMAX4_3 1
18238 _ACEOF
18239
18240 fi
18241
18242
18243 fi
18244
18245 if test $ac_have_func = no; then
18246 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18247 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18248 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18249 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 fi
18252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18253 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18254 else
18255 # Is the header compilable?
18256 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18257 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18258 cat >conftest.$ac_ext <<_ACEOF
18259 /* confdefs.h. */
18260 _ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 $ac_includes_default
18265 #include <sys/cpustats.h>
18266 _ACEOF
18267 rm -f conftest.$ac_objext
18268 if { (ac_try="$ac_compile"
18269 case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272 esac
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_compile") 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } && {
18281 test -z "$ac_c_werror_flag" ||
18282 test ! -s conftest.err
18283 } && test -s conftest.$ac_objext; then
18284 ac_header_compiler=yes
18285 else
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ac_header_compiler=no
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18294 echo "${ECHO_T}$ac_header_compiler" >&6; }
18295
18296 # Is the header present?
18297 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18298 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 #include <sys/cpustats.h>
18306 _ACEOF
18307 if { (ac_try="$ac_cpp conftest.$ac_ext"
18308 case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18311 esac
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } >/dev/null && {
18320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18322 }; then
18323 ac_header_preproc=yes
18324 else
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18327
18328 ac_header_preproc=no
18329 fi
18330
18331 rm -f conftest.err conftest.$ac_ext
18332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18333 echo "${ECHO_T}$ac_header_preproc" >&6; }
18334
18335 # So? What about this header?
18336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18337 yes:no: )
18338 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18339 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18341 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18342 ac_header_preproc=yes
18343 ;;
18344 no:yes:* )
18345 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18346 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18347 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18348 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18349 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18350 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18352 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18354 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18356 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18357
18358 ;;
18359 esac
18360 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18361 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18362 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18366 fi
18367 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18368 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18369
18370 fi
18371 if test $ac_cv_header_sys_cpustats_h = yes; then
18372 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18373 #define UMAX 1
18374 _ACEOF
18375
18376 fi
18377
18378
18379 fi
18380
18381 if test $ac_have_func = no; then
18382
18383 for ac_header in mach/mach.h
18384 do
18385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 fi
18392 ac_res=`eval echo '${'$as_ac_Header'}'`
18393 { echo "$as_me:$LINENO: result: $ac_res" >&5
18394 echo "${ECHO_T}$ac_res" >&6; }
18395 else
18396 # Is the header compilable?
18397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 $ac_includes_default
18406 #include <$ac_header>
18407 _ACEOF
18408 rm -f conftest.$ac_objext
18409 if { (ac_try="$ac_compile"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_compile") 2>conftest.er1
18416 ac_status=$?
18417 grep -v '^ *+' conftest.er1 >conftest.err
18418 rm -f conftest.er1
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } && {
18422 test -z "$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 } && test -s conftest.$ac_objext; then
18425 ac_header_compiler=yes
18426 else
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430 ac_header_compiler=no
18431 fi
18432
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18435 echo "${ECHO_T}$ac_header_compiler" >&6; }
18436
18437 # Is the header present?
18438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18440 cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h. */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 #include <$ac_header>
18447 _ACEOF
18448 if { (ac_try="$ac_cpp conftest.$ac_ext"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } >/dev/null && {
18461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 }; then
18464 ac_header_preproc=yes
18465 else
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469 ac_header_preproc=no
18470 fi
18471
18472 rm -f conftest.err conftest.$ac_ext
18473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18474 echo "${ECHO_T}$ac_header_preproc" >&6; }
18475
18476 # So? What about this header?
18477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18478 yes:no: )
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18483 ac_header_preproc=yes
18484 ;;
18485 no:yes:* )
18486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18498
18499 ;;
18500 esac
18501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 eval "$as_ac_Header=\$ac_header_preproc"
18507 fi
18508 ac_res=`eval echo '${'$as_ac_Header'}'`
18509 { echo "$as_me:$LINENO: result: $ac_res" >&5
18510 echo "${ECHO_T}$ac_res" >&6; }
18511
18512 fi
18513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18514 cat >>confdefs.h <<_ACEOF
18515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18516 _ACEOF
18517
18518 fi
18519
18520 done
18521
18522 fi
18523
18524
18525 for ac_header in nlist.h
18526 do
18527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 fi
18534 ac_res=`eval echo '${'$as_ac_Header'}'`
18535 { echo "$as_me:$LINENO: result: $ac_res" >&5
18536 echo "${ECHO_T}$ac_res" >&6; }
18537 else
18538 # Is the header compilable?
18539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18541 cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h. */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18548 #include <$ac_header>
18549 _ACEOF
18550 rm -f conftest.$ac_objext
18551 if { (ac_try="$ac_compile"
18552 case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555 esac
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_compile") 2>conftest.er1
18558 ac_status=$?
18559 grep -v '^ *+' conftest.er1 >conftest.err
18560 rm -f conftest.er1
18561 cat conftest.err >&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); } && {
18564 test -z "$ac_c_werror_flag" ||
18565 test ! -s conftest.err
18566 } && test -s conftest.$ac_objext; then
18567 ac_header_compiler=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_header_compiler=no
18573 fi
18574
18575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18577 echo "${ECHO_T}$ac_header_compiler" >&6; }
18578
18579 # Is the header present?
18580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <$ac_header>
18589 _ACEOF
18590 if { (ac_try="$ac_cpp conftest.$ac_ext"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18597 ac_status=$?
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } >/dev/null && {
18603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18604 test ! -s conftest.err
18605 }; then
18606 ac_header_preproc=yes
18607 else
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 ac_header_preproc=no
18612 fi
18613
18614 rm -f conftest.err conftest.$ac_ext
18615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18616 echo "${ECHO_T}$ac_header_preproc" >&6; }
18617
18618 # So? What about this header?
18619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18620 yes:no: )
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18625 ac_header_preproc=yes
18626 ;;
18627 no:yes:* )
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18640
18641 ;;
18642 esac
18643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 else
18648 eval "$as_ac_Header=\$ac_header_preproc"
18649 fi
18650 ac_res=`eval echo '${'$as_ac_Header'}'`
18651 { echo "$as_me:$LINENO: result: $ac_res" >&5
18652 echo "${ECHO_T}$ac_res" >&6; }
18653
18654 fi
18655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18658 _ACEOF
18659 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18660 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18661 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h. */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 #include <nlist.h>
18671
18672 int
18673 main ()
18674 {
18675 static struct nlist ac_aggr;
18676 if (ac_aggr.n_un.n_name)
18677 return 0;
18678 ;
18679 return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18699 ac_cv_member_struct_nlist_n_un_n_name=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h. */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h. */
18710 #include <nlist.h>
18711
18712 int
18713 main ()
18714 {
18715 static struct nlist ac_aggr;
18716 if (sizeof ac_aggr.n_un.n_name)
18717 return 0;
18718 ;
18719 return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext
18723 if { (ac_try="$ac_compile"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_compile") 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest.$ac_objext; then
18739 ac_cv_member_struct_nlist_n_un_n_name=yes
18740 else
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_cv_member_struct_nlist_n_un_n_name=no
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 fi
18749
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751 fi
18752 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18753 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18754 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18755
18756 cat >>confdefs.h <<_ACEOF
18757 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18758 _ACEOF
18759
18760
18761 cat >>confdefs.h <<\_ACEOF
18762 #define NLIST_NAME_UNION 1
18763 _ACEOF
18764
18765 fi
18766
18767
18768 fi
18769
18770 done
18771
18772 fi
18773 done
18774
18775
18776 # Some definitions of getloadavg require that the program be installed setgid.
18777 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18778 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18779 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782 cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h. */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18789 #ifdef LDAV_PRIVILEGED
18790 Yowza Am I SETGID yet
18791 #endif
18792 _ACEOF
18793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18794 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18795 ac_cv_func_getloadavg_setgid=yes
18796 else
18797 ac_cv_func_getloadavg_setgid=no
18798 fi
18799 rm -f conftest*
18800
18801 fi
18802 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18803 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18804 if test $ac_cv_func_getloadavg_setgid = yes; then
18805 NEED_SETGID=true
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define GETLOADAVG_PRIVILEGED 1
18809 _ACEOF
18810
18811 else
18812 NEED_SETGID=false
18813 fi
18814
18815 if test $ac_cv_func_getloadavg_setgid = yes; then
18816 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18817 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18818 if test "${ac_cv_group_kmem+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18822 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18823 # If we got an error (system does not support symlinks), try without -L.
18824 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18825 ac_cv_group_kmem=`echo $ac_ls_output \
18826 | sed -ne 's/[ ][ ]*/ /g;
18827 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18828 / /s/.* //;p;'`
18829
18830 fi
18831 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18832 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18833 KMEM_GROUP=$ac_cv_group_kmem
18834 fi
18835 if test "x$ac_save_LIBS" = x; then
18836 GETLOADAVG_LIBS=$LIBS
18837 else
18838 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18839 fi
18840 LIBS=$ac_save_LIBS
18841
18842
18843
18844 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18845 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18846 if test "${ac_cv_sys_largefile_source+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849 while :; do
18850 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h. */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18856 #include <stdio.h>
18857 int
18858 main ()
18859 {
18860 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18861 ;
18862 return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } && {
18879 test -z "$ac_c_werror_flag" ||
18880 test ! -s conftest.err
18881 } && test -s conftest$ac_exeext &&
18882 $as_test_x conftest$ac_exeext; then
18883 ac_cv_sys_largefile_source=no; break
18884 else
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18892 conftest$ac_exeext conftest.$ac_ext
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 #define _LARGEFILE_SOURCE 1
18900 #include <stdio.h>
18901 int
18902 main ()
18903 {
18904 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18905 ;
18906 return 0;
18907 }
18908 _ACEOF
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_link") 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest$ac_exeext &&
18926 $as_test_x conftest$ac_exeext; then
18927 ac_cv_sys_largefile_source=1; break
18928 else
18929 echo "$as_me: failed program was:" >&5
18930 sed 's/^/| /' conftest.$ac_ext >&5
18931
18932
18933 fi
18934
18935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18936 conftest$ac_exeext conftest.$ac_ext
18937 ac_cv_sys_largefile_source=unknown
18938 break
18939 done
18940 fi
18941 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18942 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18943 case $ac_cv_sys_largefile_source in #(
18944 no | unknown) ;;
18945 *)
18946 cat >>confdefs.h <<_ACEOF
18947 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18948 _ACEOF
18949 ;;
18950 esac
18951 rm -f conftest*
18952
18953 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18954 # in glibc 2.1.3, but that breaks too many other things.
18955 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18956 if test $ac_cv_sys_largefile_source != unknown; then
18957
18958 cat >>confdefs.h <<\_ACEOF
18959 #define HAVE_FSEEKO 1
18960 _ACEOF
18961
18962 fi
18963
18964
18965 # Configure getopt.
18966 # getopt.m4 serial 10
18967
18968 # The getopt module assume you want GNU getopt, with getopt_long etc,
18969 # rather than vanilla POSIX getopt. This means your your code should
18970 # always include <getopt.h> for the getopt prototypes.
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982 # Prerequisites of lib/getopt*.
18983
18984
18985
18986
18987 GETOPT_H=
18988
18989 for ac_header in getopt.h
18990 do
18991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 fi
18998 ac_res=`eval echo '${'$as_ac_Header'}'`
18999 { echo "$as_me:$LINENO: result: $ac_res" >&5
19000 echo "${ECHO_T}$ac_res" >&6; }
19001 else
19002 # Is the header compilable?
19003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h. */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 $ac_includes_default
19012 #include <$ac_header>
19013 _ACEOF
19014 rm -f conftest.$ac_objext
19015 if { (ac_try="$ac_compile"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_compile") 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest.$ac_objext; then
19031 ac_header_compiler=yes
19032 else
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036 ac_header_compiler=no
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19041 echo "${ECHO_T}$ac_header_compiler" >&6; }
19042
19043 # Is the header present?
19044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19046 cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h. */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 #include <$ac_header>
19053 _ACEOF
19054 if { (ac_try="$ac_cpp conftest.$ac_ext"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } >/dev/null && {
19067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 }; then
19070 ac_header_preproc=yes
19071 else
19072 echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 ac_header_preproc=no
19076 fi
19077
19078 rm -f conftest.err conftest.$ac_ext
19079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19080 echo "${ECHO_T}$ac_header_preproc" >&6; }
19081
19082 # So? What about this header?
19083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19084 yes:no: )
19085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19089 ac_header_preproc=yes
19090 ;;
19091 no:yes:* )
19092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19104
19105 ;;
19106 esac
19107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 eval "$as_ac_Header=\$ac_header_preproc"
19113 fi
19114 ac_res=`eval echo '${'$as_ac_Header'}'`
19115 { echo "$as_me:$LINENO: result: $ac_res" >&5
19116 echo "${ECHO_T}$ac_res" >&6; }
19117
19118 fi
19119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19120 cat >>confdefs.h <<_ACEOF
19121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19122 _ACEOF
19123
19124 else
19125 GETOPT_H=getopt.h
19126 fi
19127
19128 done
19129
19130 if test -z "$GETOPT_H"; then
19131
19132 for ac_func in getopt_long_only
19133 do
19134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140 cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h. */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19148 #define $ac_func innocuous_$ac_func
19149
19150 /* System header to define __stub macros and hopefully few prototypes,
19151 which can conflict with char $ac_func (); below.
19152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19153 <limits.h> exists even on freestanding compilers. */
19154
19155 #ifdef __STDC__
19156 # include <limits.h>
19157 #else
19158 # include <assert.h>
19159 #endif
19160
19161 #undef $ac_func
19162
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 char $ac_func ();
19170 /* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173 #if defined __stub_$ac_func || defined __stub___$ac_func
19174 choke me
19175 #endif
19176
19177 int
19178 main ()
19179 {
19180 return $ac_func ();
19181 ;
19182 return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (ac_try="$ac_link"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest$ac_exeext &&
19202 $as_test_x conftest$ac_exeext; then
19203 eval "$as_ac_var=yes"
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 eval "$as_ac_var=no"
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212 conftest$ac_exeext conftest.$ac_ext
19213 fi
19214 ac_res=`eval echo '${'$as_ac_var'}'`
19215 { echo "$as_me:$LINENO: result: $ac_res" >&5
19216 echo "${ECHO_T}$ac_res" >&6; }
19217 if test `eval echo '${'$as_ac_var'}'` = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19220 _ACEOF
19221
19222 else
19223 GETOPT_H=getopt.h
19224 fi
19225 done
19226
19227 fi
19228
19229 if test -z "$GETOPT_H"; then
19230 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19231 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19232 if test "${ac_cv_have_decl_optreset+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235 cat >conftest.$ac_ext <<_ACEOF
19236 /* confdefs.h. */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h. */
19241 #include <getopt.h>
19242
19243 int
19244 main ()
19245 {
19246 #ifndef optreset
19247 (void) optreset;
19248 #endif
19249
19250 ;
19251 return 0;
19252 }
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_cv_have_decl_optreset=yes
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 ac_cv_have_decl_optreset=no
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 fi
19281 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19282 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19283 if test $ac_cv_have_decl_optreset = yes; then
19284 GETOPT_H=getopt.h
19285 fi
19286
19287 fi
19288
19289 if test -z "$GETOPT_H"; then
19290 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19291 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19292 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 if test "$cross_compiling" = yes; then
19296 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19297 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19298 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301 cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h. */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19307 #include <getopt.h>
19308
19309 int
19310 main ()
19311 {
19312 #ifndef getopt_clip
19313 (void) getopt_clip;
19314 #endif
19315
19316 ;
19317 return 0;
19318 }
19319 _ACEOF
19320 rm -f conftest.$ac_objext
19321 if { (ac_try="$ac_compile"
19322 case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_cv_have_decl_getopt_clip=yes
19338 else
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 ac_cv_have_decl_getopt_clip=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 fi
19347 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19348 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19349 if test $ac_cv_have_decl_getopt_clip = yes; then
19350 gl_cv_func_gnu_getopt=no
19351 else
19352 gl_cv_func_gnu_getopt=yes
19353 fi
19354
19355 else
19356 cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h. */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 #include <getopt.h>
19363 int
19364 main ()
19365 {
19366
19367 char *myargv[3];
19368 myargv[0] = "conftest";
19369 myargv[1] = "-+";
19370 myargv[2] = 0;
19371 return getopt (2, myargv, "+a") != '?';
19372
19373 ;
19374 return 0;
19375 }
19376 _ACEOF
19377 rm -f conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 gl_cv_func_gnu_getopt=yes
19398 else
19399 echo "$as_me: program exited with status $ac_status" >&5
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 ( exit $ac_status )
19404 gl_cv_func_gnu_getopt=no
19405 fi
19406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19407 fi
19408
19409
19410 fi
19411 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19412 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19413 if test "$gl_cv_func_gnu_getopt" = "no"; then
19414 GETOPT_H=getopt.h
19415 fi
19416 fi
19417
19418
19419
19420 if test -n "$GETOPT_H"; then
19421
19422
19423 GETOPT_H=getopt.h
19424
19425 cat >>confdefs.h <<\_ACEOF
19426 #define __GETOPT_PREFIX rpl_
19427 _ACEOF
19428
19429
19430
19431 :
19432 GETOPTOBJS='getopt.o getopt1.o'
19433
19434 fi
19435
19436
19437
19438
19439 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19440 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19441 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444 # Use it with a single arg.
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 $ac_includes_default
19452 int
19453 main ()
19454 {
19455 getpgrp (0);
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_compile") 2>conftest.er1
19468 ac_status=$?
19469 grep -v '^ *+' conftest.er1 >conftest.err
19470 rm -f conftest.er1
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } && {
19474 test -z "$ac_c_werror_flag" ||
19475 test ! -s conftest.err
19476 } && test -s conftest.$ac_objext; then
19477 ac_cv_func_getpgrp_void=no
19478 else
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 ac_cv_func_getpgrp_void=yes
19483 fi
19484
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486
19487 fi
19488 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19489 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19490 if test $ac_cv_func_getpgrp_void = yes; then
19491
19492 cat >>confdefs.h <<\_ACEOF
19493 #define GETPGRP_VOID 1
19494 _ACEOF
19495
19496 fi
19497
19498
19499
19500 for ac_func in strftime
19501 do
19502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19516 #define $ac_func innocuous_$ac_func
19517
19518 /* System header to define __stub macros and hopefully few prototypes,
19519 which can conflict with char $ac_func (); below.
19520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521 <limits.h> exists even on freestanding compilers. */
19522
19523 #ifdef __STDC__
19524 # include <limits.h>
19525 #else
19526 # include <assert.h>
19527 #endif
19528
19529 #undef $ac_func
19530
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 char $ac_func ();
19538 /* The GNU C library defines this for functions which it implements
19539 to always fail with ENOSYS. Some functions are actually named
19540 something starting with __ and the normal name is an alias. */
19541 #if defined __stub_$ac_func || defined __stub___$ac_func
19542 choke me
19543 #endif
19544
19545 int
19546 main ()
19547 {
19548 return $ac_func ();
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 eval "$as_ac_var=yes"
19572 else
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 eval "$as_ac_var=no"
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19581 fi
19582 ac_res=`eval echo '${'$as_ac_var'}'`
19583 { echo "$as_me:$LINENO: result: $ac_res" >&5
19584 echo "${ECHO_T}$ac_res" >&6; }
19585 if test `eval echo '${'$as_ac_var'}'` = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19588 _ACEOF
19589
19590 else
19591 # strftime is in -lintl on SCO UNIX.
19592 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19593 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19594 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 ac_check_lib_save_LIBS=$LIBS
19598 LIBS="-lintl $LIBS"
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char strftime ();
19613 int
19614 main ()
19615 {
19616 return strftime ();
19617 ;
19618 return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19626 esac
19627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>conftest.er1
19629 ac_status=$?
19630 grep -v '^ *+' conftest.er1 >conftest.err
19631 rm -f conftest.er1
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest$ac_exeext &&
19638 $as_test_x conftest$ac_exeext; then
19639 ac_cv_lib_intl_strftime=yes
19640 else
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 ac_cv_lib_intl_strftime=no
19645 fi
19646
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19650 fi
19651 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19652 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19653 if test $ac_cv_lib_intl_strftime = yes; then
19654 cat >>confdefs.h <<\_ACEOF
19655 #define HAVE_STRFTIME 1
19656 _ACEOF
19657
19658 LIBS="-lintl $LIBS"
19659 fi
19660
19661 fi
19662 done
19663
19664
19665 # UNIX98 PTYs.
19666
19667 for ac_func in grantpt
19668 do
19669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675 cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h. */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19683 #define $ac_func innocuous_$ac_func
19684
19685 /* System header to define __stub macros and hopefully few prototypes,
19686 which can conflict with char $ac_func (); below.
19687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19688 <limits.h> exists even on freestanding compilers. */
19689
19690 #ifdef __STDC__
19691 # include <limits.h>
19692 #else
19693 # include <assert.h>
19694 #endif
19695
19696 #undef $ac_func
19697
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19701 #ifdef __cplusplus
19702 extern "C"
19703 #endif
19704 char $ac_func ();
19705 /* The GNU C library defines this for functions which it implements
19706 to always fail with ENOSYS. Some functions are actually named
19707 something starting with __ and the normal name is an alias. */
19708 #if defined __stub_$ac_func || defined __stub___$ac_func
19709 choke me
19710 #endif
19711
19712 int
19713 main ()
19714 {
19715 return $ac_func ();
19716 ;
19717 return 0;
19718 }
19719 _ACEOF
19720 rm -f conftest.$ac_objext conftest$ac_exeext
19721 if { (ac_try="$ac_link"
19722 case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_link") 2>conftest.er1
19728 ac_status=$?
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } && {
19734 test -z "$ac_c_werror_flag" ||
19735 test ! -s conftest.err
19736 } && test -s conftest$ac_exeext &&
19737 $as_test_x conftest$ac_exeext; then
19738 eval "$as_ac_var=yes"
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 eval "$as_ac_var=no"
19744 fi
19745
19746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19747 conftest$ac_exeext conftest.$ac_ext
19748 fi
19749 ac_res=`eval echo '${'$as_ac_var'}'`
19750 { echo "$as_me:$LINENO: result: $ac_res" >&5
19751 echo "${ECHO_T}$ac_res" >&6; }
19752 if test `eval echo '${'$as_ac_var'}'` = yes; then
19753 cat >>confdefs.h <<_ACEOF
19754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19755 _ACEOF
19756
19757 fi
19758 done
19759
19760
19761 # PTY-related GNU extensions.
19762
19763 for ac_func in getpt
19764 do
19765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h. */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19779 #define $ac_func innocuous_$ac_func
19780
19781 /* System header to define __stub macros and hopefully few prototypes,
19782 which can conflict with char $ac_func (); below.
19783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784 <limits.h> exists even on freestanding compilers. */
19785
19786 #ifdef __STDC__
19787 # include <limits.h>
19788 #else
19789 # include <assert.h>
19790 #endif
19791
19792 #undef $ac_func
19793
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19797 #ifdef __cplusplus
19798 extern "C"
19799 #endif
19800 char $ac_func ();
19801 /* The GNU C library defines this for functions which it implements
19802 to always fail with ENOSYS. Some functions are actually named
19803 something starting with __ and the normal name is an alias. */
19804 #if defined __stub_$ac_func || defined __stub___$ac_func
19805 choke me
19806 #endif
19807
19808 int
19809 main ()
19810 {
19811 return $ac_func ();
19812 ;
19813 return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 eval "$as_ac_var=yes"
19835 else
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19838
19839 eval "$as_ac_var=no"
19840 fi
19841
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19844 fi
19845 ac_res=`eval echo '${'$as_ac_var'}'`
19846 { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19851 _ACEOF
19852
19853 fi
19854 done
19855
19856
19857 # Check this now, so that we will NOT find the above functions in ncurses.
19858 # That is because we have not set up to link ncurses in lib-src.
19859 # It's better to believe a function is not available
19860 # than to expect to find it in ncurses.
19861
19862 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19863 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19864 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867 ac_check_lib_save_LIBS=$LIBS
19868 LIBS="-lncurses $LIBS"
19869 cat >conftest.$ac_ext <<_ACEOF
19870 /* confdefs.h. */
19871 _ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19879 #ifdef __cplusplus
19880 extern "C"
19881 #endif
19882 char tparm ();
19883 int
19884 main ()
19885 {
19886 return tparm ();
19887 ;
19888 return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext conftest$ac_exeext
19892 if { (ac_try="$ac_link"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_link") 2>conftest.er1
19899 ac_status=$?
19900 grep -v '^ *+' conftest.er1 >conftest.err
19901 rm -f conftest.er1
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_c_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest$ac_exeext &&
19908 $as_test_x conftest$ac_exeext; then
19909 ac_cv_lib_ncurses_tparm=yes
19910 else
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_cv_lib_ncurses_tparm=no
19915 fi
19916
19917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19918 conftest$ac_exeext conftest.$ac_ext
19919 LIBS=$ac_check_lib_save_LIBS
19920 fi
19921 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19922 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19923 if test $ac_cv_lib_ncurses_tparm = yes; then
19924 cat >>confdefs.h <<_ACEOF
19925 #define HAVE_LIBNCURSES 1
19926 _ACEOF
19927
19928 LIBS="-lncurses $LIBS"
19929
19930 fi
19931
19932
19933 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19934
19935 resolv=no
19936 cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h. */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 #include <netinet/in.h>
19943 #include <arpa/nameser.h>
19944 #include <resolv.h>
19945 int
19946 main ()
19947 {
19948 return res_init();
19949 ;
19950 return 0;
19951 }
19952 _ACEOF
19953 rm -f conftest.$ac_objext conftest$ac_exeext
19954 if { (ac_try="$ac_link"
19955 case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_link") 2>conftest.er1
19961 ac_status=$?
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } && {
19967 test -z "$ac_c_werror_flag" ||
19968 test ! -s conftest.err
19969 } && test -s conftest$ac_exeext &&
19970 $as_test_x conftest$ac_exeext; then
19971 have_res_init=yes
19972 else
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976 have_res_init=no
19977 fi
19978
19979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19980 conftest$ac_exeext conftest.$ac_ext
19981 if test "$have_res_init" = no; then
19982 OLIBS="$LIBS"
19983 LIBS="$LIBS -lresolv"
19984 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19985 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <netinet/in.h>
19993 #include <arpa/nameser.h>
19994 #include <resolv.h>
19995 int
19996 main ()
19997 {
19998 return res_init();
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_link") 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } && {
20017 test -z "$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20019 } && test -s conftest$ac_exeext &&
20020 $as_test_x conftest$ac_exeext; then
20021 have_res_init=yes
20022 else
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 have_res_init=no
20027 fi
20028
20029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20030 conftest$ac_exeext conftest.$ac_ext
20031 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20032 echo "${ECHO_T}$have_res_init" >&6; }
20033 if test "$have_res_init" = yes ; then
20034 resolv=yes
20035 fi
20036 LIBS="$OLIBS"
20037 fi
20038
20039 if test "$have_res_init" = yes; then
20040
20041 cat >>confdefs.h <<\_ACEOF
20042 #define HAVE_RES_INIT 1
20043 _ACEOF
20044
20045 fi
20046
20047 # Do we need the Hesiod library to provide the support routines?
20048 if test "$with_hesiod" = yes ; then
20049 # Don't set $LIBS here -- see comments above.
20050 { echo "$as_me:$LINENO: checking for res_send" >&5
20051 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20052 if test "${ac_cv_func_res_send+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20063 #define res_send innocuous_res_send
20064
20065 /* System header to define __stub macros and hopefully few prototypes,
20066 which can conflict with char res_send (); below.
20067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20068 <limits.h> exists even on freestanding compilers. */
20069
20070 #ifdef __STDC__
20071 # include <limits.h>
20072 #else
20073 # include <assert.h>
20074 #endif
20075
20076 #undef res_send
20077
20078 /* Override any GCC internal prototype to avoid an error.
20079 Use char because int might match the return type of a GCC
20080 builtin and then its argument prototype would still apply. */
20081 #ifdef __cplusplus
20082 extern "C"
20083 #endif
20084 char res_send ();
20085 /* The GNU C library defines this for functions which it implements
20086 to always fail with ENOSYS. Some functions are actually named
20087 something starting with __ and the normal name is an alias. */
20088 #if defined __stub_res_send || defined __stub___res_send
20089 choke me
20090 #endif
20091
20092 int
20093 main ()
20094 {
20095 return res_send ();
20096 ;
20097 return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext conftest$ac_exeext
20101 if { (ac_try="$ac_link"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_link") 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } && {
20114 test -z "$ac_c_werror_flag" ||
20115 test ! -s conftest.err
20116 } && test -s conftest$ac_exeext &&
20117 $as_test_x conftest$ac_exeext; then
20118 ac_cv_func_res_send=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ac_cv_func_res_send=no
20124 fi
20125
20126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20127 conftest$ac_exeext conftest.$ac_ext
20128 fi
20129 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20130 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20131 if test $ac_cv_func_res_send = yes; then
20132 :
20133 else
20134 { echo "$as_me:$LINENO: checking for __res_send" >&5
20135 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20136 if test "${ac_cv_func___res_send+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h. */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20147 #define __res_send innocuous___res_send
20148
20149 /* System header to define __stub macros and hopefully few prototypes,
20150 which can conflict with char __res_send (); below.
20151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20152 <limits.h> exists even on freestanding compilers. */
20153
20154 #ifdef __STDC__
20155 # include <limits.h>
20156 #else
20157 # include <assert.h>
20158 #endif
20159
20160 #undef __res_send
20161
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char __res_send ();
20169 /* The GNU C library defines this for functions which it implements
20170 to always fail with ENOSYS. Some functions are actually named
20171 something starting with __ and the normal name is an alias. */
20172 #if defined __stub___res_send || defined __stub_____res_send
20173 choke me
20174 #endif
20175
20176 int
20177 main ()
20178 {
20179 return __res_send ();
20180 ;
20181 return 0;
20182 }
20183 _ACEOF
20184 rm -f conftest.$ac_objext conftest$ac_exeext
20185 if { (ac_try="$ac_link"
20186 case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189 esac
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest$ac_exeext &&
20201 $as_test_x conftest$ac_exeext; then
20202 ac_cv_func___res_send=yes
20203 else
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 ac_cv_func___res_send=no
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20214 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20215 if test $ac_cv_func___res_send = yes; then
20216 :
20217 else
20218 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20219 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20220 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223 ac_check_lib_save_LIBS=$LIBS
20224 LIBS="-lresolv $LIBS"
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20235 #ifdef __cplusplus
20236 extern "C"
20237 #endif
20238 char res_send ();
20239 int
20240 main ()
20241 {
20242 return res_send ();
20243 ;
20244 return 0;
20245 }
20246 _ACEOF
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20252 esac
20253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>conftest.er1
20255 ac_status=$?
20256 grep -v '^ *+' conftest.er1 >conftest.err
20257 rm -f conftest.er1
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest$ac_exeext &&
20264 $as_test_x conftest$ac_exeext; then
20265 ac_cv_lib_resolv_res_send=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 ac_cv_lib_resolv_res_send=no
20271 fi
20272
20273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20274 conftest$ac_exeext conftest.$ac_ext
20275 LIBS=$ac_check_lib_save_LIBS
20276 fi
20277 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20278 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20279 if test $ac_cv_lib_resolv_res_send = yes; then
20280 resolv=yes
20281 else
20282 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20283 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20284 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20285 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287 ac_check_lib_save_LIBS=$LIBS
20288 LIBS="-lresolv $LIBS"
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h. */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295
20296 /* Override any GCC internal prototype to avoid an error.
20297 Use char because int might match the return type of a GCC
20298 builtin and then its argument prototype would still apply. */
20299 #ifdef __cplusplus
20300 extern "C"
20301 #endif
20302 char __res_send ();
20303 int
20304 main ()
20305 {
20306 return __res_send ();
20307 ;
20308 return 0;
20309 }
20310 _ACEOF
20311 rm -f conftest.$ac_objext conftest$ac_exeext
20312 if { (ac_try="$ac_link"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_link") 2>conftest.er1
20319 ac_status=$?
20320 grep -v '^ *+' conftest.er1 >conftest.err
20321 rm -f conftest.er1
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } && {
20325 test -z "$ac_c_werror_flag" ||
20326 test ! -s conftest.err
20327 } && test -s conftest$ac_exeext &&
20328 $as_test_x conftest$ac_exeext; then
20329 ac_cv_lib_resolv___res_send=yes
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ac_cv_lib_resolv___res_send=no
20335 fi
20336
20337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20340 fi
20341 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20342 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20343 if test $ac_cv_lib_resolv___res_send = yes; then
20344 resolv=yes
20345 fi
20346
20347 fi
20348
20349 fi
20350
20351 fi
20352
20353 if test "$resolv" = yes ; then
20354 RESOLVLIB=-lresolv
20355 else
20356 RESOLVLIB=
20357 fi
20358 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20359 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20360 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20371 #define hes_getmailhost innocuous_hes_getmailhost
20372
20373 /* System header to define __stub macros and hopefully few prototypes,
20374 which can conflict with char hes_getmailhost (); below.
20375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20376 <limits.h> exists even on freestanding compilers. */
20377
20378 #ifdef __STDC__
20379 # include <limits.h>
20380 #else
20381 # include <assert.h>
20382 #endif
20383
20384 #undef hes_getmailhost
20385
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char hes_getmailhost ();
20393 /* The GNU C library defines this for functions which it implements
20394 to always fail with ENOSYS. Some functions are actually named
20395 something starting with __ and the normal name is an alias. */
20396 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20397 choke me
20398 #endif
20399
20400 int
20401 main ()
20402 {
20403 return hes_getmailhost ();
20404 ;
20405 return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest$ac_exeext &&
20425 $as_test_x conftest$ac_exeext; then
20426 ac_cv_func_hes_getmailhost=yes
20427 else
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431 ac_cv_func_hes_getmailhost=no
20432 fi
20433
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20436 fi
20437 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20438 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20439 if test $ac_cv_func_hes_getmailhost = yes; then
20440 :
20441 else
20442 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20443 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20444 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 ac_check_lib_save_LIBS=$LIBS
20448 LIBS="-lhesiod $RESOLVLIB $LIBS"
20449 cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h. */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20459 #ifdef __cplusplus
20460 extern "C"
20461 #endif
20462 char hes_getmailhost ();
20463 int
20464 main ()
20465 {
20466 return hes_getmailhost ();
20467 ;
20468 return 0;
20469 }
20470 _ACEOF
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_link") 2>conftest.er1
20479 ac_status=$?
20480 grep -v '^ *+' conftest.er1 >conftest.err
20481 rm -f conftest.er1
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest$ac_exeext &&
20488 $as_test_x conftest$ac_exeext; then
20489 ac_cv_lib_hesiod_hes_getmailhost=yes
20490 else
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_cv_lib_hesiod_hes_getmailhost=no
20495 fi
20496
20497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20498 conftest$ac_exeext conftest.$ac_ext
20499 LIBS=$ac_check_lib_save_LIBS
20500 fi
20501 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20502 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20503 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20504
20505 cat >>confdefs.h <<\_ACEOF
20506 #define HAVE_LIBHESIOD 1
20507 _ACEOF
20508
20509 else
20510 :
20511 fi
20512
20513 fi
20514
20515 fi
20516
20517 # Do we need libresolv (due to res_init or Hesiod)?
20518 if test "$resolv" = yes ; then
20519
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_LIBRESOLV 1
20522 _ACEOF
20523
20524 fi
20525
20526 # These tell us which Kerberos-related libraries to use.
20527 if test "${with_kerberos+set}" = set; then
20528
20529 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20530 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20531 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 else
20534 ac_check_lib_save_LIBS=$LIBS
20535 LIBS="-lcom_err $LIBS"
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20546 #ifdef __cplusplus
20547 extern "C"
20548 #endif
20549 char com_err ();
20550 int
20551 main ()
20552 {
20553 return com_err ();
20554 ;
20555 return 0;
20556 }
20557 _ACEOF
20558 rm -f conftest.$ac_objext conftest$ac_exeext
20559 if { (ac_try="$ac_link"
20560 case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_link") 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest$ac_exeext &&
20575 $as_test_x conftest$ac_exeext; then
20576 ac_cv_lib_com_err_com_err=yes
20577 else
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581 ac_cv_lib_com_err_com_err=no
20582 fi
20583
20584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20585 conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20587 fi
20588 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20589 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20590 if test $ac_cv_lib_com_err_com_err = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_LIBCOM_ERR 1
20593 _ACEOF
20594
20595 LIBS="-lcom_err $LIBS"
20596
20597 fi
20598
20599
20600 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20601 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20602 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605 ac_check_lib_save_LIBS=$LIBS
20606 LIBS="-lk5crypto $LIBS"
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h. */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 char mit_des_cbc_encrypt ();
20621 int
20622 main ()
20623 {
20624 return mit_des_cbc_encrypt ();
20625 ;
20626 return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_link") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest$ac_exeext &&
20646 $as_test_x conftest$ac_exeext; then
20647 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20648 else
20649 echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20651
20652 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20653 fi
20654
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20657 LIBS=$ac_check_lib_save_LIBS
20658 fi
20659 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20660 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20661 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_LIBK5CRYPTO 1
20664 _ACEOF
20665
20666 LIBS="-lk5crypto $LIBS"
20667
20668 fi
20669
20670
20671 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20672 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20673 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-lcrypto $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688 #ifdef __cplusplus
20689 extern "C"
20690 #endif
20691 char mit_des_cbc_encrypt ();
20692 int
20693 main ()
20694 {
20695 return mit_des_cbc_encrypt ();
20696 ;
20697 return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_link") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest$ac_exeext &&
20717 $as_test_x conftest$ac_exeext; then
20718 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20729 fi
20730 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20731 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20732 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_LIBCRYPTO 1
20735 _ACEOF
20736
20737 LIBS="-lcrypto $LIBS"
20738
20739 fi
20740
20741
20742 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20743 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20744 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747 ac_check_lib_save_LIBS=$LIBS
20748 LIBS="-lkrb5 $LIBS"
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755
20756 /* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20759 #ifdef __cplusplus
20760 extern "C"
20761 #endif
20762 char krb5_init_context ();
20763 int
20764 main ()
20765 {
20766 return krb5_init_context ();
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_link") 2>conftest.er1
20779 ac_status=$?
20780 grep -v '^ *+' conftest.er1 >conftest.err
20781 rm -f conftest.er1
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest$ac_exeext &&
20788 $as_test_x conftest$ac_exeext; then
20789 ac_cv_lib_krb5_krb5_init_context=yes
20790 else
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794 ac_cv_lib_krb5_krb5_init_context=no
20795 fi
20796
20797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20798 conftest$ac_exeext conftest.$ac_ext
20799 LIBS=$ac_check_lib_save_LIBS
20800 fi
20801 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20802 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20803 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define HAVE_LIBKRB5 1
20806 _ACEOF
20807
20808 LIBS="-lkrb5 $LIBS"
20809
20810 fi
20811
20812 if test "${with_kerberos5+set}" != set; then
20813
20814 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20815 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-ldes425 $LIBS"
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 char des_cbc_encrypt ();
20835 int
20836 main ()
20837 {
20838 return des_cbc_encrypt ();
20839 ;
20840 return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
20861 ac_cv_lib_des425_des_cbc_encrypt=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 ac_cv_lib_des425_des_cbc_encrypt=no
20867 fi
20868
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20872 fi
20873 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20874 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20875 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20876 cat >>confdefs.h <<_ACEOF
20877 #define HAVE_LIBDES425 1
20878 _ACEOF
20879
20880 LIBS="-ldes425 $LIBS"
20881
20882 else
20883
20884 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20885 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20886 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 else
20889 ac_check_lib_save_LIBS=$LIBS
20890 LIBS="-ldes $LIBS"
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h. */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897
20898 /* Override any GCC internal prototype to avoid an error.
20899 Use char because int might match the return type of a GCC
20900 builtin and then its argument prototype would still apply. */
20901 #ifdef __cplusplus
20902 extern "C"
20903 #endif
20904 char des_cbc_encrypt ();
20905 int
20906 main ()
20907 {
20908 return des_cbc_encrypt ();
20909 ;
20910 return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext conftest$ac_exeext
20914 if { (ac_try="$ac_link"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918 esac
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_link") 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } && {
20927 test -z "$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 } && test -s conftest$ac_exeext &&
20930 $as_test_x conftest$ac_exeext; then
20931 ac_cv_lib_des_des_cbc_encrypt=yes
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_cv_lib_des_des_cbc_encrypt=no
20937 fi
20938
20939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20940 conftest$ac_exeext conftest.$ac_ext
20941 LIBS=$ac_check_lib_save_LIBS
20942 fi
20943 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20944 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20945 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20946 cat >>confdefs.h <<_ACEOF
20947 #define HAVE_LIBDES 1
20948 _ACEOF
20949
20950 LIBS="-ldes $LIBS"
20951
20952 fi
20953
20954 fi
20955
20956
20957 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20958 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20959 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962 ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-lkrb4 $LIBS"
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970
20971 /* Override any GCC internal prototype to avoid an error.
20972 Use char because int might match the return type of a GCC
20973 builtin and then its argument prototype would still apply. */
20974 #ifdef __cplusplus
20975 extern "C"
20976 #endif
20977 char krb_get_cred ();
20978 int
20979 main ()
20980 {
20981 return krb_get_cred ();
20982 ;
20983 return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest$ac_exeext &&
21003 $as_test_x conftest$ac_exeext; then
21004 ac_cv_lib_krb4_krb_get_cred=yes
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21008
21009 ac_cv_lib_krb4_krb_get_cred=no
21010 fi
21011
21012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013 conftest$ac_exeext conftest.$ac_ext
21014 LIBS=$ac_check_lib_save_LIBS
21015 fi
21016 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21017 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21018 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21019 cat >>confdefs.h <<_ACEOF
21020 #define HAVE_LIBKRB4 1
21021 _ACEOF
21022
21023 LIBS="-lkrb4 $LIBS"
21024
21025 else
21026
21027 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21028 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21029 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 else
21032 ac_check_lib_save_LIBS=$LIBS
21033 LIBS="-lkrb $LIBS"
21034 cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h. */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040
21041 /* Override any GCC internal prototype to avoid an error.
21042 Use char because int might match the return type of a GCC
21043 builtin and then its argument prototype would still apply. */
21044 #ifdef __cplusplus
21045 extern "C"
21046 #endif
21047 char krb_get_cred ();
21048 int
21049 main ()
21050 {
21051 return krb_get_cred ();
21052 ;
21053 return 0;
21054 }
21055 _ACEOF
21056 rm -f conftest.$ac_objext conftest$ac_exeext
21057 if { (ac_try="$ac_link"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_link") 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest$ac_exeext &&
21073 $as_test_x conftest$ac_exeext; then
21074 ac_cv_lib_krb_krb_get_cred=yes
21075 else
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 ac_cv_lib_krb_krb_get_cred=no
21080 fi
21081
21082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21083 conftest$ac_exeext conftest.$ac_ext
21084 LIBS=$ac_check_lib_save_LIBS
21085 fi
21086 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21087 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21088 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define HAVE_LIBKRB 1
21091 _ACEOF
21092
21093 LIBS="-lkrb $LIBS"
21094
21095 fi
21096
21097 fi
21098
21099 fi
21100
21101 if test "${with_kerberos5+set}" = set; then
21102
21103 for ac_header in krb5.h
21104 do
21105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 fi
21112 ac_res=`eval echo '${'$as_ac_Header'}'`
21113 { echo "$as_me:$LINENO: result: $ac_res" >&5
21114 echo "${ECHO_T}$ac_res" >&6; }
21115 else
21116 # Is the header compilable?
21117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21119 cat >conftest.$ac_ext <<_ACEOF
21120 /* confdefs.h. */
21121 _ACEOF
21122 cat confdefs.h >>conftest.$ac_ext
21123 cat >>conftest.$ac_ext <<_ACEOF
21124 /* end confdefs.h. */
21125 $ac_includes_default
21126 #include <$ac_header>
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_compile") 2>conftest.er1
21136 ac_status=$?
21137 grep -v '^ *+' conftest.er1 >conftest.err
21138 rm -f conftest.er1
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } && {
21142 test -z "$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 } && test -s conftest.$ac_objext; then
21145 ac_header_compiler=yes
21146 else
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 ac_header_compiler=no
21151 fi
21152
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21155 echo "${ECHO_T}$ac_header_compiler" >&6; }
21156
21157 # Is the header present?
21158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <$ac_header>
21167 _ACEOF
21168 if { (ac_try="$ac_cpp conftest.$ac_ext"
21169 case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21175 ac_status=$?
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } >/dev/null && {
21181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21183 }; then
21184 ac_header_preproc=yes
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 ac_header_preproc=no
21190 fi
21191
21192 rm -f conftest.err conftest.$ac_ext
21193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21194 echo "${ECHO_T}$ac_header_preproc" >&6; }
21195
21196 # So? What about this header?
21197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21198 yes:no: )
21199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21203 ac_header_preproc=yes
21204 ;;
21205 no:yes:* )
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21218
21219 ;;
21220 esac
21221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 else
21226 eval "$as_ac_Header=\$ac_header_preproc"
21227 fi
21228 ac_res=`eval echo '${'$as_ac_Header'}'`
21229 { echo "$as_me:$LINENO: result: $ac_res" >&5
21230 echo "${ECHO_T}$ac_res" >&6; }
21231
21232 fi
21233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21236 _ACEOF
21237
21238 fi
21239
21240 done
21241
21242 else
21243
21244 for ac_header in des.h
21245 do
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 fi
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 else
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21268 _ACEOF
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21287 else
21288 echo "$as_me: failed program was:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21290
21291 ac_header_compiler=no
21292 fi
21293
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21297
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21308 _ACEOF
21309 if { (ac_try="$ac_cpp conftest.$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 }; then
21325 ac_header_preproc=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_header_preproc=no
21331 fi
21332
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21336
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21339 yes:no: )
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21344 ac_header_preproc=yes
21345 ;;
21346 no:yes:* )
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21359
21360 ;;
21361 esac
21362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367 eval "$as_ac_Header=\$ac_header_preproc"
21368 fi
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21372
21373 fi
21374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21377 _ACEOF
21378
21379 else
21380
21381 for ac_header in kerberosIV/des.h
21382 do
21383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 fi
21390 ac_res=`eval echo '${'$as_ac_Header'}'`
21391 { echo "$as_me:$LINENO: result: $ac_res" >&5
21392 echo "${ECHO_T}$ac_res" >&6; }
21393 else
21394 # Is the header compilable?
21395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21404 #include <$ac_header>
21405 _ACEOF
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest.$ac_objext; then
21423 ac_header_compiler=yes
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 ac_header_compiler=no
21429 fi
21430
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21433 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434
21435 # Is the header present?
21436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <$ac_header>
21445 _ACEOF
21446 if { (ac_try="$ac_cpp conftest.$ac_ext"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev/null && {
21459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 }; then
21462 ac_header_preproc=yes
21463 else
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ac_header_preproc=no
21468 fi
21469
21470 rm -f conftest.err conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21472 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473
21474 # So? What about this header?
21475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21476 yes:no: )
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21481 ac_header_preproc=yes
21482 ;;
21483 no:yes:* )
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21496
21497 ;;
21498 esac
21499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 else
21504 eval "$as_ac_Header=\$ac_header_preproc"
21505 fi
21506 ac_res=`eval echo '${'$as_ac_Header'}'`
21507 { echo "$as_me:$LINENO: result: $ac_res" >&5
21508 echo "${ECHO_T}$ac_res" >&6; }
21509
21510 fi
21511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21512 cat >>confdefs.h <<_ACEOF
21513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21514 _ACEOF
21515
21516 else
21517
21518 for ac_header in kerberos/des.h
21519 do
21520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 fi
21527 ac_res=`eval echo '${'$as_ac_Header'}'`
21528 { echo "$as_me:$LINENO: result: $ac_res" >&5
21529 echo "${ECHO_T}$ac_res" >&6; }
21530 else
21531 # Is the header compilable?
21532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21534 cat >conftest.$ac_ext <<_ACEOF
21535 /* confdefs.h. */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 $ac_includes_default
21541 #include <$ac_header>
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_header_compiler=yes
21561 else
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_header_compiler=no
21566 fi
21567
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21570 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571
21572 # Is the header present?
21573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h. */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 #include <$ac_header>
21582 _ACEOF
21583 if { (ac_try="$ac_cpp conftest.$ac_ext"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } >/dev/null && {
21596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21598 }; then
21599 ac_header_preproc=yes
21600 else
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21603
21604 ac_header_preproc=no
21605 fi
21606
21607 rm -f conftest.err conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21609 echo "${ECHO_T}$ac_header_preproc" >&6; }
21610
21611 # So? What about this header?
21612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21613 yes:no: )
21614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21618 ac_header_preproc=yes
21619 ;;
21620 no:yes:* )
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21633
21634 ;;
21635 esac
21636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 else
21641 eval "$as_ac_Header=\$ac_header_preproc"
21642 fi
21643 ac_res=`eval echo '${'$as_ac_Header'}'`
21644 { echo "$as_me:$LINENO: result: $ac_res" >&5
21645 echo "${ECHO_T}$ac_res" >&6; }
21646
21647 fi
21648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21651 _ACEOF
21652
21653 fi
21654
21655 done
21656
21657 fi
21658
21659 done
21660
21661 fi
21662
21663 done
21664
21665
21666 for ac_header in krb.h
21667 do
21668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 fi
21675 ac_res=`eval echo '${'$as_ac_Header'}'`
21676 { echo "$as_me:$LINENO: result: $ac_res" >&5
21677 echo "${ECHO_T}$ac_res" >&6; }
21678 else
21679 # Is the header compilable?
21680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21682 cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h. */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21689 #include <$ac_header>
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_compile") 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && {
21705 test -z "$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 } && test -s conftest.$ac_objext; then
21708 ac_header_compiler=yes
21709 else
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_header_compiler=no
21714 fi
21715
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21718 echo "${ECHO_T}$ac_header_compiler" >&6; }
21719
21720 # Is the header present?
21721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 #include <$ac_header>
21730 _ACEOF
21731 if { (ac_try="$ac_cpp conftest.$ac_ext"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735 esac
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21738 ac_status=$?
21739 grep -v '^ *+' conftest.er1 >conftest.err
21740 rm -f conftest.er1
21741 cat conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); } >/dev/null && {
21744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21745 test ! -s conftest.err
21746 }; then
21747 ac_header_preproc=yes
21748 else
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21751
21752 ac_header_preproc=no
21753 fi
21754
21755 rm -f conftest.err conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21757 echo "${ECHO_T}$ac_header_preproc" >&6; }
21758
21759 # So? What about this header?
21760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21761 yes:no: )
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21766 ac_header_preproc=yes
21767 ;;
21768 no:yes:* )
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21781
21782 ;;
21783 esac
21784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 eval "$as_ac_Header=\$ac_header_preproc"
21790 fi
21791 ac_res=`eval echo '${'$as_ac_Header'}'`
21792 { echo "$as_me:$LINENO: result: $ac_res" >&5
21793 echo "${ECHO_T}$ac_res" >&6; }
21794
21795 fi
21796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21797 cat >>confdefs.h <<_ACEOF
21798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21799 _ACEOF
21800
21801 else
21802
21803 for ac_header in kerberosIV/krb.h
21804 do
21805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 fi
21812 ac_res=`eval echo '${'$as_ac_Header'}'`
21813 { echo "$as_me:$LINENO: result: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21815 else
21816 # Is the header compilable?
21817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21819 cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h. */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21826 #include <$ac_header>
21827 _ACEOF
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
21845 ac_header_compiler=yes
21846 else
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ac_header_compiler=no
21851 fi
21852
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21855 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856
21857 # Is the header present?
21858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <$ac_header>
21867 _ACEOF
21868 if { (ac_try="$ac_cpp conftest.$ac_ext"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } >/dev/null && {
21881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 }; then
21884 ac_header_preproc=yes
21885 else
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ac_header_preproc=no
21890 fi
21891
21892 rm -f conftest.err conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895
21896 # So? What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 yes:no: )
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21903 ac_header_preproc=yes
21904 ;;
21905 no:yes:* )
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21918
21919 ;;
21920 esac
21921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926 eval "$as_ac_Header=\$ac_header_preproc"
21927 fi
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21931
21932 fi
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21936 _ACEOF
21937
21938 else
21939
21940 for ac_header in kerberos/krb.h
21941 do
21942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 fi
21949 ac_res=`eval echo '${'$as_ac_Header'}'`
21950 { echo "$as_me:$LINENO: result: $ac_res" >&5
21951 echo "${ECHO_T}$ac_res" >&6; }
21952 else
21953 # Is the header compilable?
21954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21956 cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h. */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21963 #include <$ac_header>
21964 _ACEOF
21965 rm -f conftest.$ac_objext
21966 if { (ac_try="$ac_compile"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_compile") 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest.$ac_objext; then
21982 ac_header_compiler=yes
21983 else
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21986
21987 ac_header_compiler=no
21988 fi
21989
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21992 echo "${ECHO_T}$ac_header_compiler" >&6; }
21993
21994 # Is the header present?
21995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h. */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <$ac_header>
22004 _ACEOF
22005 if { (ac_try="$ac_cpp conftest.$ac_ext"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } >/dev/null && {
22018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 }; then
22021 ac_header_preproc=yes
22022 else
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026 ac_header_preproc=no
22027 fi
22028
22029 rm -f conftest.err conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22031 echo "${ECHO_T}$ac_header_preproc" >&6; }
22032
22033 # So? What about this header?
22034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22035 yes:no: )
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22040 ac_header_preproc=yes
22041 ;;
22042 no:yes:* )
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22055
22056 ;;
22057 esac
22058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063 eval "$as_ac_Header=\$ac_header_preproc"
22064 fi
22065 ac_res=`eval echo '${'$as_ac_Header'}'`
22066 { echo "$as_me:$LINENO: result: $ac_res" >&5
22067 echo "${ECHO_T}$ac_res" >&6; }
22068
22069 fi
22070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22071 cat >>confdefs.h <<_ACEOF
22072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22073 _ACEOF
22074
22075 fi
22076
22077 done
22078
22079 fi
22080
22081 done
22082
22083 fi
22084
22085 done
22086
22087 fi
22088
22089 for ac_header in com_err.h
22090 do
22091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 fi
22098 ac_res=`eval echo '${'$as_ac_Header'}'`
22099 { echo "$as_me:$LINENO: result: $ac_res" >&5
22100 echo "${ECHO_T}$ac_res" >&6; }
22101 else
22102 # Is the header compilable?
22103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22105 cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h. */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22111 $ac_includes_default
22112 #include <$ac_header>
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_compile") 2>conftest.er1
22122 ac_status=$?
22123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } && {
22128 test -z "$ac_c_werror_flag" ||
22129 test ! -s conftest.err
22130 } && test -s conftest.$ac_objext; then
22131 ac_header_compiler=yes
22132 else
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136 ac_header_compiler=no
22137 fi
22138
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22141 echo "${ECHO_T}$ac_header_compiler" >&6; }
22142
22143 # Is the header present?
22144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <$ac_header>
22153 _ACEOF
22154 if { (ac_try="$ac_cpp conftest.$ac_ext"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } >/dev/null && {
22167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 }; then
22170 ac_header_preproc=yes
22171 else
22172 echo "$as_me: failed program was:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22174
22175 ac_header_preproc=no
22176 fi
22177
22178 rm -f conftest.err conftest.$ac_ext
22179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22180 echo "${ECHO_T}$ac_header_preproc" >&6; }
22181
22182 # So? What about this header?
22183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22184 yes:no: )
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22189 ac_header_preproc=yes
22190 ;;
22191 no:yes:* )
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22204
22205 ;;
22206 esac
22207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22210 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212 eval "$as_ac_Header=\$ac_header_preproc"
22213 fi
22214 ac_res=`eval echo '${'$as_ac_Header'}'`
22215 { echo "$as_me:$LINENO: result: $ac_res" >&5
22216 echo "${ECHO_T}$ac_res" >&6; }
22217
22218 fi
22219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22222 _ACEOF
22223
22224 fi
22225
22226 done
22227
22228 fi
22229
22230 # Solaris requires -lintl if you want strerror (which calls dgettext)
22231 # to return localized messages.
22232
22233 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22234 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22235 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238 ac_check_lib_save_LIBS=$LIBS
22239 LIBS="-lintl $LIBS"
22240 cat >conftest.$ac_ext <<_ACEOF
22241 /* confdefs.h. */
22242 _ACEOF
22243 cat confdefs.h >>conftest.$ac_ext
22244 cat >>conftest.$ac_ext <<_ACEOF
22245 /* end confdefs.h. */
22246
22247 /* Override any GCC internal prototype to avoid an error.
22248 Use char because int might match the return type of a GCC
22249 builtin and then its argument prototype would still apply. */
22250 #ifdef __cplusplus
22251 extern "C"
22252 #endif
22253 char dgettext ();
22254 int
22255 main ()
22256 {
22257 return dgettext ();
22258 ;
22259 return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (ac_try="$ac_link"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_link") 2>conftest.er1
22270 ac_status=$?
22271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest$ac_exeext &&
22279 $as_test_x conftest$ac_exeext; then
22280 ac_cv_lib_intl_dgettext=yes
22281 else
22282 echo "$as_me: failed program was:" >&5
22283 sed 's/^/| /' conftest.$ac_ext >&5
22284
22285 ac_cv_lib_intl_dgettext=no
22286 fi
22287
22288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22289 conftest$ac_exeext conftest.$ac_ext
22290 LIBS=$ac_check_lib_save_LIBS
22291 fi
22292 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22293 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22294 if test $ac_cv_lib_intl_dgettext = yes; then
22295 cat >>confdefs.h <<_ACEOF
22296 #define HAVE_LIBINTL 1
22297 _ACEOF
22298
22299 LIBS="-lintl $LIBS"
22300
22301 fi
22302
22303
22304 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22305 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22306 if test "${emacs_cv_localtime_cache+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309 if test x$ac_cv_func_tzset = xyes; then
22310 if test "$cross_compiling" = yes; then
22311 # If we have tzset, assume the worst when cross-compiling.
22312 emacs_cv_localtime_cache=yes
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 #include <time.h>
22321 extern char **environ;
22322 unset_TZ ()
22323 {
22324 char **from, **to;
22325 for (to = from = environ; (*to = *from); from++)
22326 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22327 to++;
22328 }
22329 char TZ_GMT0[] = "TZ=GMT0";
22330 char TZ_PST8[] = "TZ=PST8";
22331 main()
22332 {
22333 time_t now = time ((time_t *) 0);
22334 int hour_GMT0, hour_unset;
22335 if (putenv (TZ_GMT0) != 0)
22336 exit (1);
22337 hour_GMT0 = localtime (&now)->tm_hour;
22338 unset_TZ ();
22339 hour_unset = localtime (&now)->tm_hour;
22340 if (putenv (TZ_PST8) != 0)
22341 exit (1);
22342 if (localtime (&now)->tm_hour == hour_GMT0)
22343 exit (1);
22344 unset_TZ ();
22345 if (localtime (&now)->tm_hour != hour_unset)
22346 exit (1);
22347 exit (0);
22348 }
22349 _ACEOF
22350 rm -f conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22361 { (case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_try") 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 emacs_cv_localtime_cache=no
22371 else
22372 echo "$as_me: program exited with status $ac_status" >&5
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376 ( exit $ac_status )
22377 emacs_cv_localtime_cache=yes
22378 fi
22379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22380 fi
22381
22382
22383 else
22384 # If we lack tzset, report that localtime does not cache TZ,
22385 # since we can't invalidate the cache if we don't have tzset.
22386 emacs_cv_localtime_cache=no
22387 fi
22388 fi
22389 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22390 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22391 if test $emacs_cv_localtime_cache = yes; then
22392
22393 cat >>confdefs.h <<\_ACEOF
22394 #define LOCALTIME_CACHE 1
22395 _ACEOF
22396
22397 fi
22398
22399 if test "x$HAVE_TIMEVAL" = xyes; then
22400
22401 for ac_func in gettimeofday
22402 do
22403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h. */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22417 #define $ac_func innocuous_$ac_func
22418
22419 /* System header to define __stub macros and hopefully few prototypes,
22420 which can conflict with char $ac_func (); below.
22421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22422 <limits.h> exists even on freestanding compilers. */
22423
22424 #ifdef __STDC__
22425 # include <limits.h>
22426 #else
22427 # include <assert.h>
22428 #endif
22429
22430 #undef $ac_func
22431
22432 /* Override any GCC internal prototype to avoid an error.
22433 Use char because int might match the return type of a GCC
22434 builtin and then its argument prototype would still apply. */
22435 #ifdef __cplusplus
22436 extern "C"
22437 #endif
22438 char $ac_func ();
22439 /* The GNU C library defines this for functions which it implements
22440 to always fail with ENOSYS. Some functions are actually named
22441 something starting with __ and the normal name is an alias. */
22442 #if defined __stub_$ac_func || defined __stub___$ac_func
22443 choke me
22444 #endif
22445
22446 int
22447 main ()
22448 {
22449 return $ac_func ();
22450 ;
22451 return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext conftest$ac_exeext
22455 if { (ac_try="$ac_link"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_link") 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest$ac_exeext &&
22471 $as_test_x conftest$ac_exeext; then
22472 eval "$as_ac_var=yes"
22473 else
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477 eval "$as_ac_var=no"
22478 fi
22479
22480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22481 conftest$ac_exeext conftest.$ac_ext
22482 fi
22483 ac_res=`eval echo '${'$as_ac_var'}'`
22484 { echo "$as_me:$LINENO: result: $ac_res" >&5
22485 echo "${ECHO_T}$ac_res" >&6; }
22486 if test `eval echo '${'$as_ac_var'}'` = yes; then
22487 cat >>confdefs.h <<_ACEOF
22488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22489 _ACEOF
22490
22491 fi
22492 done
22493
22494 if test $ac_cv_func_gettimeofday = yes; then
22495 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22496 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22497 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
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
22507 #ifdef TIME_WITH_SYS_TIME
22508 #include <sys/time.h>
22509 #include <time.h>
22510 #else
22511 #ifdef HAVE_SYS_TIME_H
22512 #include <sys/time.h>
22513 #else
22514 #include <time.h>
22515 #endif
22516 #endif
22517 int
22518 main ()
22519 {
22520 struct timeval time;
22521 gettimeofday (&time, 0);
22522 ;
22523 return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533 (eval "$ac_compile") 2>conftest.er1
22534 ac_status=$?
22535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } && {
22540 test -z "$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22542 } && test -s conftest.$ac_objext; then
22543 emacs_cv_gettimeofday_two_arguments=yes
22544 else
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 emacs_cv_gettimeofday_two_arguments=no
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 fi
22553 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22554 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22555 if test $emacs_cv_gettimeofday_two_arguments = no; then
22556
22557 cat >>confdefs.h <<\_ACEOF
22558 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22559 _ACEOF
22560
22561 fi
22562 fi
22563 fi
22564
22565 ok_so_far=yes
22566 { echo "$as_me:$LINENO: checking for socket" >&5
22567 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22568 if test "${ac_cv_func_socket+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571 cat >conftest.$ac_ext <<_ACEOF
22572 /* confdefs.h. */
22573 _ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22579 #define socket innocuous_socket
22580
22581 /* System header to define __stub macros and hopefully few prototypes,
22582 which can conflict with char socket (); below.
22583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22584 <limits.h> exists even on freestanding compilers. */
22585
22586 #ifdef __STDC__
22587 # include <limits.h>
22588 #else
22589 # include <assert.h>
22590 #endif
22591
22592 #undef socket
22593
22594 /* Override any GCC internal prototype to avoid an error.
22595 Use char because int might match the return type of a GCC
22596 builtin and then its argument prototype would still apply. */
22597 #ifdef __cplusplus
22598 extern "C"
22599 #endif
22600 char socket ();
22601 /* The GNU C library defines this for functions which it implements
22602 to always fail with ENOSYS. Some functions are actually named
22603 something starting with __ and the normal name is an alias. */
22604 #if defined __stub_socket || defined __stub___socket
22605 choke me
22606 #endif
22607
22608 int
22609 main ()
22610 {
22611 return socket ();
22612 ;
22613 return 0;
22614 }
22615 _ACEOF
22616 rm -f conftest.$ac_objext conftest$ac_exeext
22617 if { (ac_try="$ac_link"
22618 case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_link") 2>conftest.er1
22624 ac_status=$?
22625 grep -v '^ *+' conftest.er1 >conftest.err
22626 rm -f conftest.er1
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } && {
22630 test -z "$ac_c_werror_flag" ||
22631 test ! -s conftest.err
22632 } && test -s conftest$ac_exeext &&
22633 $as_test_x conftest$ac_exeext; then
22634 ac_cv_func_socket=yes
22635 else
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639 ac_cv_func_socket=no
22640 fi
22641
22642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22643 conftest$ac_exeext conftest.$ac_ext
22644 fi
22645 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22646 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22647 if test $ac_cv_func_socket = yes; then
22648 :
22649 else
22650 ok_so_far=no
22651 fi
22652
22653 if test $ok_so_far = yes; then
22654 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22655 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22656 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22657 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22659 fi
22660 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22661 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22662 else
22663 # Is the header compilable?
22664 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22665 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 $ac_includes_default
22673 #include <netinet/in.h>
22674 _ACEOF
22675 rm -f conftest.$ac_objext
22676 if { (ac_try="$ac_compile"
22677 case "(($ac_try" in
22678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679 *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682 (eval "$ac_compile") 2>conftest.er1
22683 ac_status=$?
22684 grep -v '^ *+' conftest.er1 >conftest.err
22685 rm -f conftest.er1
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } && {
22689 test -z "$ac_c_werror_flag" ||
22690 test ! -s conftest.err
22691 } && test -s conftest.$ac_objext; then
22692 ac_header_compiler=yes
22693 else
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22696
22697 ac_header_compiler=no
22698 fi
22699
22700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22702 echo "${ECHO_T}$ac_header_compiler" >&6; }
22703
22704 # Is the header present?
22705 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22706 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 #include <netinet/in.h>
22714 _ACEOF
22715 if { (ac_try="$ac_cpp conftest.$ac_ext"
22716 case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } >/dev/null && {
22728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22729 test ! -s conftest.err
22730 }; then
22731 ac_header_preproc=yes
22732 else
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736 ac_header_preproc=no
22737 fi
22738
22739 rm -f conftest.err conftest.$ac_ext
22740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22741 echo "${ECHO_T}$ac_header_preproc" >&6; }
22742
22743 # So? What about this header?
22744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22745 yes:no: )
22746 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22747 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22748 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22749 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22750 ac_header_preproc=yes
22751 ;;
22752 no:yes:* )
22753 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22754 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22755 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22756 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22757 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22758 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22759 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22760 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22761 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22762 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22763 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22764 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22765
22766 ;;
22767 esac
22768 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22769 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22770 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773 ac_cv_header_netinet_in_h=$ac_header_preproc
22774 fi
22775 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22776 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22777
22778 fi
22779 if test $ac_cv_header_netinet_in_h = yes; then
22780 :
22781 else
22782 ok_so_far=no
22783 fi
22784
22785
22786 fi
22787 if test $ok_so_far = yes; then
22788 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22789 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22790 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22791 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 fi
22794 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22795 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22796 else
22797 # Is the header compilable?
22798 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22799 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22800 cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h. */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 $ac_includes_default
22807 #include <arpa/inet.h>
22808 _ACEOF
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_compile") 2>conftest.er1
22817 ac_status=$?
22818 grep -v '^ *+' conftest.er1 >conftest.err
22819 rm -f conftest.er1
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && {
22823 test -z "$ac_c_werror_flag" ||
22824 test ! -s conftest.err
22825 } && test -s conftest.$ac_objext; then
22826 ac_header_compiler=yes
22827 else
22828 echo "$as_me: failed program was:" >&5
22829 sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_header_compiler=no
22832 fi
22833
22834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22836 echo "${ECHO_T}$ac_header_compiler" >&6; }
22837
22838 # Is the header present?
22839 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22840 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22841 cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h. */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 #include <arpa/inet.h>
22848 _ACEOF
22849 if { (ac_try="$ac_cpp conftest.$ac_ext"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22856 ac_status=$?
22857 grep -v '^ *+' conftest.er1 >conftest.err
22858 rm -f conftest.er1
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } >/dev/null && {
22862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 }; then
22865 ac_header_preproc=yes
22866 else
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22869
22870 ac_header_preproc=no
22871 fi
22872
22873 rm -f conftest.err conftest.$ac_ext
22874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22875 echo "${ECHO_T}$ac_header_preproc" >&6; }
22876
22877 # So? What about this header?
22878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22879 yes:no: )
22880 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22881 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22883 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22884 ac_header_preproc=yes
22885 ;;
22886 no:yes:* )
22887 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22888 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22889 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22890 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22891 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22892 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22894 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22896 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22898 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22899
22900 ;;
22901 esac
22902 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22903 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22904 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
22906 else
22907 ac_cv_header_arpa_inet_h=$ac_header_preproc
22908 fi
22909 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22910 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22911
22912 fi
22913 if test $ac_cv_header_arpa_inet_h = yes; then
22914 :
22915 else
22916 ok_so_far=no
22917 fi
22918
22919
22920 fi
22921 if test $ok_so_far = yes; then
22922
22923 cat >>confdefs.h <<\_ACEOF
22924 #define HAVE_INET_SOCKETS 1
22925 _ACEOF
22926
22927 fi
22928
22929
22930 for ac_header in sys/ioctl.h
22931 do
22932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 fi
22939 ac_res=`eval echo '${'$as_ac_Header'}'`
22940 { echo "$as_me:$LINENO: result: $ac_res" >&5
22941 echo "${ECHO_T}$ac_res" >&6; }
22942 else
22943 # Is the header compilable?
22944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22946 cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h. */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 $ac_includes_default
22953 #include <$ac_header>
22954 _ACEOF
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_compile") 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } && {
22969 test -z "$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 } && test -s conftest.$ac_objext; then
22972 ac_header_compiler=yes
22973 else
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 ac_header_compiler=no
22978 fi
22979
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22982 echo "${ECHO_T}$ac_header_compiler" >&6; }
22983
22984 # Is the header present?
22985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22987 cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h. */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h. */
22993 #include <$ac_header>
22994 _ACEOF
22995 if { (ac_try="$ac_cpp conftest.$ac_ext"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } >/dev/null && {
23008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 }; then
23011 ac_header_preproc=yes
23012 else
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 ac_header_preproc=no
23017 fi
23018
23019 rm -f conftest.err conftest.$ac_ext
23020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23021 echo "${ECHO_T}$ac_header_preproc" >&6; }
23022
23023 # So? What about this header?
23024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23025 yes:no: )
23026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23030 ac_header_preproc=yes
23031 ;;
23032 no:yes:* )
23033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23045
23046 ;;
23047 esac
23048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053 eval "$as_ac_Header=\$ac_header_preproc"
23054 fi
23055 ac_res=`eval echo '${'$as_ac_Header'}'`
23056 { echo "$as_me:$LINENO: result: $ac_res" >&5
23057 echo "${ECHO_T}$ac_res" >&6; }
23058
23059 fi
23060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23063 _ACEOF
23064
23065 fi
23066
23067 done
23068
23069
23070 if test -f /usr/lpp/X11/bin/smt.exp; then
23071
23072 cat >>confdefs.h <<\_ACEOF
23073 #define HAVE_AIX_SMT_EXP 1
23074 _ACEOF
23075
23076 fi
23077
23078 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23079 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23080 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23081 { echo "$as_me:$LINENO: result: yes" >&5
23082 echo "${ECHO_T}yes" >&6; }
23083
23084 cat >>confdefs.h <<\_ACEOF
23085 #define HAVE_DEV_PTMX 1
23086 _ACEOF
23087
23088 else
23089 { echo "$as_me:$LINENO: result: no" >&5
23090 echo "${ECHO_T}no" >&6; }
23091 fi
23092
23093 { echo "$as_me:$LINENO: checking for pid_t" >&5
23094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23095 if test "${ac_cv_type_pid_t+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 else
23098 cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h. */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23105 typedef pid_t ac__type_new_;
23106 int
23107 main ()
23108 {
23109 if ((ac__type_new_ *) 0)
23110 return 0;
23111 if (sizeof (ac__type_new_))
23112 return 0;
23113 ;
23114 return 0;
23115 }
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_compile") 2>conftest.er1
23125 ac_status=$?
23126 grep -v '^ *+' conftest.er1 >conftest.err
23127 rm -f conftest.er1
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest.$ac_objext; then
23134 ac_cv_type_pid_t=yes
23135 else
23136 echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139 ac_cv_type_pid_t=no
23140 fi
23141
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 fi
23144 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23145 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23146 if test $ac_cv_type_pid_t = yes; then
23147 :
23148 else
23149
23150 cat >>confdefs.h <<_ACEOF
23151 #define pid_t int
23152 _ACEOF
23153
23154 fi
23155
23156
23157 for ac_header in vfork.h
23158 do
23159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23165 fi
23166 ac_res=`eval echo '${'$as_ac_Header'}'`
23167 { echo "$as_me:$LINENO: result: $ac_res" >&5
23168 echo "${ECHO_T}$ac_res" >&6; }
23169 else
23170 # Is the header compilable?
23171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23172 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
23180 #include <$ac_header>
23181 _ACEOF
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23190 ac_status=$?
23191 grep -v '^ *+' conftest.er1 >conftest.err
23192 rm -f conftest.er1
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23199 ac_header_compiler=yes
23200 else
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_header_compiler=no
23205 fi
23206
23207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23209 echo "${ECHO_T}$ac_header_compiler" >&6; }
23210
23211 # Is the header present?
23212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23214 cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h. */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 #include <$ac_header>
23221 _ACEOF
23222 if { (ac_try="$ac_cpp conftest.$ac_ext"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } >/dev/null && {
23235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23237 }; then
23238 ac_header_preproc=yes
23239 else
23240 echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23242
23243 ac_header_preproc=no
23244 fi
23245
23246 rm -f conftest.err conftest.$ac_ext
23247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23248 echo "${ECHO_T}$ac_header_preproc" >&6; }
23249
23250 # So? What about this header?
23251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23252 yes:no: )
23253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23257 ac_header_preproc=yes
23258 ;;
23259 no:yes:* )
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23272
23273 ;;
23274 esac
23275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23278 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280 eval "$as_ac_Header=\$ac_header_preproc"
23281 fi
23282 ac_res=`eval echo '${'$as_ac_Header'}'`
23283 { echo "$as_me:$LINENO: result: $ac_res" >&5
23284 echo "${ECHO_T}$ac_res" >&6; }
23285
23286 fi
23287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23288 cat >>confdefs.h <<_ACEOF
23289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23290 _ACEOF
23291
23292 fi
23293
23294 done
23295
23296
23297
23298 for ac_func in fork vfork
23299 do
23300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 else
23306 cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h. */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23314 #define $ac_func innocuous_$ac_func
23315
23316 /* System header to define __stub macros and hopefully few prototypes,
23317 which can conflict with char $ac_func (); below.
23318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23319 <limits.h> exists even on freestanding compilers. */
23320
23321 #ifdef __STDC__
23322 # include <limits.h>
23323 #else
23324 # include <assert.h>
23325 #endif
23326
23327 #undef $ac_func
23328
23329 /* Override any GCC internal prototype to avoid an error.
23330 Use char because int might match the return type of a GCC
23331 builtin and then its argument prototype would still apply. */
23332 #ifdef __cplusplus
23333 extern "C"
23334 #endif
23335 char $ac_func ();
23336 /* The GNU C library defines this for functions which it implements
23337 to always fail with ENOSYS. Some functions are actually named
23338 something starting with __ and the normal name is an alias. */
23339 #if defined __stub_$ac_func || defined __stub___$ac_func
23340 choke me
23341 #endif
23342
23343 int
23344 main ()
23345 {
23346 return $ac_func ();
23347 ;
23348 return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (ac_try="$ac_link"
23353 case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358 (eval "$ac_link") 2>conftest.er1
23359 ac_status=$?
23360 grep -v '^ *+' conftest.er1 >conftest.err
23361 rm -f conftest.er1
23362 cat conftest.err >&5
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); } && {
23365 test -z "$ac_c_werror_flag" ||
23366 test ! -s conftest.err
23367 } && test -s conftest$ac_exeext &&
23368 $as_test_x conftest$ac_exeext; then
23369 eval "$as_ac_var=yes"
23370 else
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 eval "$as_ac_var=no"
23375 fi
23376
23377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23378 conftest$ac_exeext conftest.$ac_ext
23379 fi
23380 ac_res=`eval echo '${'$as_ac_var'}'`
23381 { echo "$as_me:$LINENO: result: $ac_res" >&5
23382 echo "${ECHO_T}$ac_res" >&6; }
23383 if test `eval echo '${'$as_ac_var'}'` = yes; then
23384 cat >>confdefs.h <<_ACEOF
23385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23386 _ACEOF
23387
23388 fi
23389 done
23390
23391 if test "x$ac_cv_func_fork" = xyes; then
23392 { echo "$as_me:$LINENO: checking for working fork" >&5
23393 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23394 if test "${ac_cv_func_fork_works+set}" = set; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397 if test "$cross_compiling" = yes; then
23398 ac_cv_func_fork_works=cross
23399 else
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 $ac_includes_default
23407 int
23408 main ()
23409 {
23410
23411 /* By Ruediger Kuhlmann. */
23412 return fork () < 0;
23413
23414 ;
23415 return 0;
23416 }
23417 _ACEOF
23418 rm -f conftest$ac_exeext
23419 if { (ac_try="$ac_link"
23420 case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23423 esac
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425 (eval "$ac_link") 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23429 { (case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23432 esac
23433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_try") 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; }; then
23438 ac_cv_func_fork_works=yes
23439 else
23440 echo "$as_me: program exited with status $ac_status" >&5
23441 echo "$as_me: failed program was:" >&5
23442 sed 's/^/| /' conftest.$ac_ext >&5
23443
23444 ( exit $ac_status )
23445 ac_cv_func_fork_works=no
23446 fi
23447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23448 fi
23449
23450
23451 fi
23452 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23453 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23454
23455 else
23456 ac_cv_func_fork_works=$ac_cv_func_fork
23457 fi
23458 if test "x$ac_cv_func_fork_works" = xcross; then
23459 case $host in
23460 *-*-amigaos* | *-*-msdosdjgpp*)
23461 # Override, as these systems have only a dummy fork() stub
23462 ac_cv_func_fork_works=no
23463 ;;
23464 *)
23465 ac_cv_func_fork_works=yes
23466 ;;
23467 esac
23468 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23469 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23470 fi
23471 ac_cv_func_vfork_works=$ac_cv_func_vfork
23472 if test "x$ac_cv_func_vfork" = xyes; then
23473 { echo "$as_me:$LINENO: checking for working vfork" >&5
23474 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23475 if test "${ac_cv_func_vfork_works+set}" = set; then
23476 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 else
23478 if test "$cross_compiling" = yes; then
23479 ac_cv_func_vfork_works=cross
23480 else
23481 cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h. */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23487 /* Thanks to Paul Eggert for this test. */
23488 $ac_includes_default
23489 #include <sys/wait.h>
23490 #ifdef HAVE_VFORK_H
23491 # include <vfork.h>
23492 #endif
23493 /* On some sparc systems, changes by the child to local and incoming
23494 argument registers are propagated back to the parent. The compiler
23495 is told about this with #include <vfork.h>, but some compilers
23496 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23497 static variable whose address is put into a register that is
23498 clobbered by the vfork. */
23499 static void
23500 #ifdef __cplusplus
23501 sparc_address_test (int arg)
23502 # else
23503 sparc_address_test (arg) int arg;
23504 #endif
23505 {
23506 static pid_t child;
23507 if (!child) {
23508 child = vfork ();
23509 if (child < 0) {
23510 perror ("vfork");
23511 _exit(2);
23512 }
23513 if (!child) {
23514 arg = getpid();
23515 write(-1, "", 0);
23516 _exit (arg);
23517 }
23518 }
23519 }
23520
23521 int
23522 main ()
23523 {
23524 pid_t parent = getpid ();
23525 pid_t child;
23526
23527 sparc_address_test (0);
23528
23529 child = vfork ();
23530
23531 if (child == 0) {
23532 /* Here is another test for sparc vfork register problems. This
23533 test uses lots of local variables, at least as many local
23534 variables as main has allocated so far including compiler
23535 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23536 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23537 reuse the register of parent for one of the local variables,
23538 since it will think that parent can't possibly be used any more
23539 in this routine. Assigning to the local variable will thus
23540 munge parent in the parent process. */
23541 pid_t
23542 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23543 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23544 /* Convince the compiler that p..p7 are live; otherwise, it might
23545 use the same hardware register for all 8 local variables. */
23546 if (p != p1 || p != p2 || p != p3 || p != p4
23547 || p != p5 || p != p6 || p != p7)
23548 _exit(1);
23549
23550 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23551 from child file descriptors. If the child closes a descriptor
23552 before it execs or exits, this munges the parent's descriptor
23553 as well. Test for this by closing stdout in the child. */
23554 _exit(close(fileno(stdout)) != 0);
23555 } else {
23556 int status;
23557 struct stat st;
23558
23559 while (wait(&status) != child)
23560 ;
23561 return (
23562 /* Was there some problem with vforking? */
23563 child < 0
23564
23565 /* Did the child fail? (This shouldn't happen.) */
23566 || status
23567
23568 /* Did the vfork/compiler bug occur? */
23569 || parent != getpid()
23570
23571 /* Did the file descriptor bug occur? */
23572 || fstat(fileno(stdout), &st) != 0
23573 );
23574 }
23575 }
23576 _ACEOF
23577 rm -f conftest$ac_exeext
23578 if { (ac_try="$ac_link"
23579 case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23582 esac
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_link") 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23588 { (case "(($ac_try" in
23589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590 *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593 (eval "$ac_try") 2>&5
23594 ac_status=$?
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); }; }; then
23597 ac_cv_func_vfork_works=yes
23598 else
23599 echo "$as_me: program exited with status $ac_status" >&5
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23602
23603 ( exit $ac_status )
23604 ac_cv_func_vfork_works=no
23605 fi
23606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23607 fi
23608
23609
23610 fi
23611 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23612 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23613
23614 fi;
23615 if test "x$ac_cv_func_fork_works" = xcross; then
23616 ac_cv_func_vfork_works=$ac_cv_func_vfork
23617 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23618 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23619 fi
23620
23621 if test "x$ac_cv_func_vfork_works" = xyes; then
23622
23623 cat >>confdefs.h <<\_ACEOF
23624 #define HAVE_WORKING_VFORK 1
23625 _ACEOF
23626
23627 else
23628
23629 cat >>confdefs.h <<\_ACEOF
23630 #define vfork fork
23631 _ACEOF
23632
23633 fi
23634 if test "x$ac_cv_func_fork_works" = xyes; then
23635
23636 cat >>confdefs.h <<\_ACEOF
23637 #define HAVE_WORKING_FORK 1
23638 _ACEOF
23639
23640 fi
23641
23642
23643 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23644 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23645 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 else
23648 cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h. */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 #include <langinfo.h>
23655 int
23656 main ()
23657 {
23658 char* cs = nl_langinfo(CODESET);
23659 ;
23660 return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (ac_try="$ac_link"
23665 case "(($ac_try" in
23666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667 *) ac_try_echo=$ac_try;;
23668 esac
23669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23670 (eval "$ac_link") 2>conftest.er1
23671 ac_status=$?
23672 grep -v '^ *+' conftest.er1 >conftest.err
23673 rm -f conftest.er1
23674 cat conftest.err >&5
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); } && {
23677 test -z "$ac_c_werror_flag" ||
23678 test ! -s conftest.err
23679 } && test -s conftest$ac_exeext &&
23680 $as_test_x conftest$ac_exeext; then
23681 emacs_cv_langinfo_codeset=yes
23682 else
23683 echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686 emacs_cv_langinfo_codeset=no
23687 fi
23688
23689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23690 conftest$ac_exeext conftest.$ac_ext
23691
23692 fi
23693 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23694 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23695 if test $emacs_cv_langinfo_codeset = yes; then
23696
23697 cat >>confdefs.h <<\_ACEOF
23698 #define HAVE_LANGINFO_CODESET 1
23699 _ACEOF
23700
23701 fi
23702
23703 { echo "$as_me:$LINENO: checking for size_t" >&5
23704 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23705 if test "${ac_cv_type_size_t+set}" = set; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708 cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h. */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23715 typedef size_t ac__type_new_;
23716 int
23717 main ()
23718 {
23719 if ((ac__type_new_ *) 0)
23720 return 0;
23721 if (sizeof (ac__type_new_))
23722 return 0;
23723 ;
23724 return 0;
23725 }
23726 _ACEOF
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23732 esac
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_compile") 2>conftest.er1
23735 ac_status=$?
23736 grep -v '^ *+' conftest.er1 >conftest.err
23737 rm -f conftest.er1
23738 cat conftest.err >&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); } && {
23741 test -z "$ac_c_werror_flag" ||
23742 test ! -s conftest.err
23743 } && test -s conftest.$ac_objext; then
23744 ac_cv_type_size_t=yes
23745 else
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749 ac_cv_type_size_t=no
23750 fi
23751
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 fi
23754 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23755 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23756 if test $ac_cv_type_size_t = yes; then
23757
23758 cat >>confdefs.h <<_ACEOF
23759 #define HAVE_SIZE_T 1
23760 _ACEOF
23761
23762
23763 fi
23764
23765
23766 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23767 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23768 if test "${ac_cv_type_mbstate_t+set}" = set; then
23769 echo $ECHO_N "(cached) $ECHO_C" >&6
23770 else
23771 cat >conftest.$ac_ext <<_ACEOF
23772 /* confdefs.h. */
23773 _ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h. */
23777 $ac_includes_default
23778 # include <wchar.h>
23779 int
23780 main ()
23781 {
23782 mbstate_t x; return sizeof x;
23783 ;
23784 return 0;
23785 }
23786 _ACEOF
23787 rm -f conftest.$ac_objext
23788 if { (ac_try="$ac_compile"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23792 esac
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_compile") 2>conftest.er1
23795 ac_status=$?
23796 grep -v '^ *+' conftest.er1 >conftest.err
23797 rm -f conftest.er1
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } && {
23801 test -z "$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23803 } && test -s conftest.$ac_objext; then
23804 ac_cv_type_mbstate_t=yes
23805 else
23806 echo "$as_me: failed program was:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23808
23809 ac_cv_type_mbstate_t=no
23810 fi
23811
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813 fi
23814 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23815 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23816 if test $ac_cv_type_mbstate_t = yes; then
23817
23818 cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_MBSTATE_T 1
23820 _ACEOF
23821
23822 else
23823
23824 cat >>confdefs.h <<\_ACEOF
23825 #define mbstate_t int
23826 _ACEOF
23827
23828 fi
23829
23830 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23831 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23832 if test "${emacs_cv_c_restrict+set}" = set; then
23833 echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835 cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h. */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h. */
23841 void fred (int *restrict x);
23842 int
23843 main ()
23844 {
23845
23846 ;
23847 return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23855 esac
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_compile") 2>conftest.er1
23858 ac_status=$?
23859 grep -v '^ *+' conftest.er1 >conftest.err
23860 rm -f conftest.er1
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } && {
23864 test -z "$ac_c_werror_flag" ||
23865 test ! -s conftest.err
23866 } && test -s conftest.$ac_objext; then
23867 emacs_cv_c_restrict=yes
23868 else
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23871
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 void fred (int *__restrict x);
23879 int
23880 main ()
23881 {
23882
23883 ;
23884 return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23895 ac_status=$?
23896 grep -v '^ *+' conftest.er1 >conftest.err
23897 rm -f conftest.er1
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 emacs_cv_c_restrict=__restrict
23905 else
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23908
23909 emacs_cv_c_restrict=no
23910 fi
23911
23912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23913 fi
23914
23915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23916 fi
23917 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23918 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23919 case "$emacs_cv_c_restrict" in
23920 yes) emacs_restrict=restrict;;
23921 no) emacs_restrict="";;
23922 *) emacs_restrict="$emacs_cv_c_restrict";;
23923 esac
23924 if test "$emacs_restrict" != __restrict; then
23925
23926 cat >>confdefs.h <<_ACEOF
23927 #define __restrict $emacs_restrict
23928 _ACEOF
23929
23930 fi
23931
23932 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23933 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23934 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23935 echo $ECHO_N "(cached) $ECHO_C" >&6
23936 else
23937 cat >conftest.$ac_ext <<_ACEOF
23938 /* confdefs.h. */
23939 _ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943 void fred (int x[__restrict]);
23944 int
23945 main ()
23946 {
23947
23948 ;
23949 return 0;
23950 }
23951 _ACEOF
23952 rm -f conftest.$ac_objext
23953 if { (ac_try="$ac_compile"
23954 case "(($ac_try" in
23955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956 *) ac_try_echo=$ac_try;;
23957 esac
23958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959 (eval "$ac_compile") 2>conftest.er1
23960 ac_status=$?
23961 grep -v '^ *+' conftest.er1 >conftest.err
23962 rm -f conftest.er1
23963 cat conftest.err >&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } && {
23966 test -z "$ac_c_werror_flag" ||
23967 test ! -s conftest.err
23968 } && test -s conftest.$ac_objext; then
23969 emacs_cv_c_restrict_arr=yes
23970 else
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23973
23974 emacs_cv_c_restrict_arr=no
23975 fi
23976
23977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23978 fi
23979 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23980 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23981 if test "$emacs_cv_c_restrict_arr" = yes; then
23982
23983 cat >>confdefs.h <<\_ACEOF
23984 #define __restrict_arr __restrict
23985 _ACEOF
23986
23987 fi
23988
23989
23990
23991 # Set up the CFLAGS for real compilation, so we can substitute it.
23992 CFLAGS="$REAL_CFLAGS"
23993 CPPFLAGS="$REAL_CPPFLAGS"
23994
23995 #### Find out which version of Emacs this is.
23996 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23997 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23998 if test x"${version}" = x; then
23999 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24000 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24001 { (exit 1); exit 1; }; }
24002 fi
24003
24004 ### Specify what sort of things we'll be editing into Makefile and config.h.
24005 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041 cat >>confdefs.h <<_ACEOF
24042 #define EMACS_CONFIGURATION "${canonical}"
24043 _ACEOF
24044
24045
24046 cat >>confdefs.h <<_ACEOF
24047 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24048 _ACEOF
24049
24050
24051 cat >>confdefs.h <<_ACEOF
24052 #define config_machfile "${machfile}"
24053 _ACEOF
24054
24055
24056 cat >>confdefs.h <<_ACEOF
24057 #define config_opsysfile "${opsysfile}"
24058 _ACEOF
24059
24060
24061 cat >>confdefs.h <<_ACEOF
24062 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24063 _ACEOF
24064
24065
24066 cat >>confdefs.h <<_ACEOF
24067 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24068 _ACEOF
24069
24070
24071 cat >>confdefs.h <<_ACEOF
24072 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24073 _ACEOF
24074
24075
24076 cat >>confdefs.h <<_ACEOF
24077 #define UNEXEC_SRC ${UNEXEC_SRC}
24078 _ACEOF
24079
24080
24081 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24082
24083 cat >>confdefs.h <<\_ACEOF
24084 #define HAVE_X_WINDOWS 1
24085 _ACEOF
24086
24087 fi
24088 if test "${USE_X_TOOLKIT}" != "none" ; then
24089
24090 cat >>confdefs.h <<\_ACEOF
24091 #define USE_X_TOOLKIT 1
24092 _ACEOF
24093
24094 if test "${USE_X_TOOLKIT}" == "LUCID"; then
24095
24096 cat >>confdefs.h <<\_ACEOF
24097 #define USE_LUCID 1
24098 _ACEOF
24099
24100 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
24101
24102 cat >>confdefs.h <<\_ACEOF
24103 #define USE_MOTIF 1
24104 _ACEOF
24105
24106 fi
24107 fi
24108 if test "${HAVE_X11}" = "yes" ; then
24109
24110 cat >>confdefs.h <<\_ACEOF
24111 #define HAVE_X11 1
24112 _ACEOF
24113
24114 fi
24115 if test "${HAVE_MENUS}" = "yes" ; then
24116
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE_MENUS 1
24119 _ACEOF
24120
24121 fi
24122 if test "${GNU_MALLOC}" = "yes" ; then
24123
24124 cat >>confdefs.h <<\_ACEOF
24125 #define GNU_MALLOC 1
24126 _ACEOF
24127
24128 fi
24129 if test "${REL_ALLOC}" = "yes" ; then
24130
24131 cat >>confdefs.h <<\_ACEOF
24132 #define REL_ALLOC 1
24133 _ACEOF
24134
24135 fi
24136
24137
24138
24139
24140
24141
24142 #### Report on what we decided to do.
24143 #### Report GTK as a toolkit, even if it doesn't use Xt.
24144 #### It makes printing result more understandable as using GTK sets
24145 #### toolkit_scroll_bars to yes by default.
24146 if test "${HAVE_GTK}" = "yes"; then
24147 USE_X_TOOLKIT=GTK
24148 fi
24149
24150 echo "
24151 Configured for \`${canonical}'.
24152
24153 Where should the build process find the source code? ${srcdir}
24154 What operating system and machine description files should Emacs use?
24155 \`${opsysfile}' and \`${machfile}'
24156 What compiler should emacs be built with? ${CC} ${CFLAGS}
24157 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24158 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24159 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24160 What window system should Emacs use? ${window_system}
24161 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24162
24163 if test -n "${x_includes}"; then
24164 echo " Where do we find X Windows header files? ${x_includes}"
24165 else
24166 echo " Where do we find X Windows header files? Standard dirs"
24167 fi
24168 if test -n "${x_libraries}"; then
24169 echo " Where do we find X Windows libraries? ${x_libraries}"
24170 else
24171 echo " Where do we find X Windows libraries? Standard dirs"
24172 fi
24173
24174 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24175 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24176 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24177 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24178 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24179 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24180 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24181 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24182 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24183 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
24184
24185 if test "${USE_FONT_BACKEND}" = "yes"; then
24186 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24187 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24188 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24189 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24190 fi
24191 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24192 echo
24193
24194 if test $USE_XASSERTS = yes; then
24195 echo " Compiling with asserts turned on."
24196 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24197 fi
24198
24199 echo
24200
24201 if test "$USE_X_TOOLKIT" = GTK; then
24202 case "$canonical" in
24203 *cygwin*)
24204 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24205 will probably get a crash on startup. If this happens, please use another
24206 toolkit for Emacs. See etc/PROBLEMS for more information."
24207 ;;
24208 esac
24209 fi
24210
24211
24212 if test "$HAVE_CARBON" = "yes"; then
24213 echo
24214 echo "Warning: The Mac Carbon port is currently unsupported and has
24215 known problems. It is not recommended for use by non-developers.
24216 Read the emacs-devel archives for more information."
24217 echo
24218 fi
24219
24220 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24221 echo "D-Bus integration has been tested for GNU/Linux only."
24222 echo
24223 fi
24224
24225
24226 # Remove any trailing slashes in these variables.
24227 test "${prefix}" != NONE &&
24228 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24229 test "${exec_prefix}" != NONE &&
24230 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24231
24232 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24233 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24234 ## from Makefile.c can correctly provide the arg `-traditional' to the
24235 ## C preprocessor.
24236
24237 cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h. */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h. */
24243 yes..yes
24244 _ACEOF
24245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24246 $EGREP "yes..yes" >/dev/null 2>&1; then
24247 CPP_NEED_TRADITIONAL=no
24248 else
24249 CPP_NEED_TRADITIONAL=yes
24250 fi
24251 rm -f conftest*
24252
24253
24254 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"
24255
24256 ac_config_commands="$ac_config_commands default"
24257
24258 cat >confcache <<\_ACEOF
24259 # This file is a shell script that caches the results of configure
24260 # tests run on this system so they can be shared between configure
24261 # scripts and configure runs, see configure's option --config-cache.
24262 # It is not useful on other systems. If it contains results you don't
24263 # want to keep, you may remove or edit it.
24264 #
24265 # config.status only pays attention to the cache file if you give it
24266 # the --recheck option to rerun configure.
24267 #
24268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24270 # following values.
24271
24272 _ACEOF
24273
24274 # The following way of writing the cache mishandles newlines in values,
24275 # but we know of no workaround that is simple, portable, and efficient.
24276 # So, we kill variables containing newlines.
24277 # Ultrix sh set writes to stderr and can't be redirected directly,
24278 # and sets the high bit in the cache file unless we assign to the vars.
24279 (
24280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24281 eval ac_val=\$$ac_var
24282 case $ac_val in #(
24283 *${as_nl}*)
24284 case $ac_var in #(
24285 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24286 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24287 esac
24288 case $ac_var in #(
24289 _ | IFS | as_nl) ;; #(
24290 *) $as_unset $ac_var ;;
24291 esac ;;
24292 esac
24293 done
24294
24295 (set) 2>&1 |
24296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24297 *${as_nl}ac_space=\ *)
24298 # `set' does not quote correctly, so add quotes (double-quote
24299 # substitution turns \\\\ into \\, and sed turns \\ into \).
24300 sed -n \
24301 "s/'/'\\\\''/g;
24302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24303 ;; #(
24304 *)
24305 # `set' quotes correctly as required by POSIX, so do not add quotes.
24306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24307 ;;
24308 esac |
24309 sort
24310 ) |
24311 sed '
24312 /^ac_cv_env_/b end
24313 t clear
24314 :clear
24315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24316 t end
24317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24318 :end' >>confcache
24319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24320 if test -w "$cache_file"; then
24321 test "x$cache_file" != "x/dev/null" &&
24322 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24323 echo "$as_me: updating cache $cache_file" >&6;}
24324 cat confcache >$cache_file
24325 else
24326 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24327 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24328 fi
24329 fi
24330 rm -f confcache
24331
24332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24333 # Let make expand exec_prefix.
24334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24335
24336 DEFS=-DHAVE_CONFIG_H
24337
24338 ac_libobjs=
24339 ac_ltlibobjs=
24340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24341 # 1. Remove the extension, and $U if already installed.
24342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24343 ac_i=`echo "$ac_i" | sed "$ac_script"`
24344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24345 # will be set to the directory where LIBOBJS objects are built.
24346 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24347 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24348 done
24349 LIBOBJS=$ac_libobjs
24350
24351 LTLIBOBJS=$ac_ltlibobjs
24352
24353
24354
24355 : ${CONFIG_STATUS=./config.status}
24356 ac_clean_files_save=$ac_clean_files
24357 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24358 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24359 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24360 cat >$CONFIG_STATUS <<_ACEOF
24361 #! $SHELL
24362 # Generated by $as_me.
24363 # Run this file to recreate the current configuration.
24364 # Compiler output produced by configure, useful for debugging
24365 # configure, is in config.log if it exists.
24366
24367 debug=false
24368 ac_cs_recheck=false
24369 ac_cs_silent=false
24370 SHELL=\${CONFIG_SHELL-$SHELL}
24371 _ACEOF
24372
24373 cat >>$CONFIG_STATUS <<\_ACEOF
24374 ## --------------------- ##
24375 ## M4sh Initialization. ##
24376 ## --------------------- ##
24377
24378 # Be more Bourne compatible
24379 DUALCASE=1; export DUALCASE # for MKS sh
24380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24381 emulate sh
24382 NULLCMD=:
24383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24384 # is contrary to our usage. Disable this feature.
24385 alias -g '${1+"$@"}'='"$@"'
24386 setopt NO_GLOB_SUBST
24387 else
24388 case `(set -o) 2>/dev/null` in
24389 *posix*) set -o posix ;;
24390 esac
24391
24392 fi
24393
24394
24395
24396
24397 # PATH needs CR
24398 # Avoid depending upon Character Ranges.
24399 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24400 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24401 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24402 as_cr_digits='0123456789'
24403 as_cr_alnum=$as_cr_Letters$as_cr_digits
24404
24405 # The user is always right.
24406 if test "${PATH_SEPARATOR+set}" != set; then
24407 echo "#! /bin/sh" >conf$$.sh
24408 echo "exit 0" >>conf$$.sh
24409 chmod +x conf$$.sh
24410 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24411 PATH_SEPARATOR=';'
24412 else
24413 PATH_SEPARATOR=:
24414 fi
24415 rm -f conf$$.sh
24416 fi
24417
24418 # Support unset when possible.
24419 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24420 as_unset=unset
24421 else
24422 as_unset=false
24423 fi
24424
24425
24426 # IFS
24427 # We need space, tab and new line, in precisely that order. Quoting is
24428 # there to prevent editors from complaining about space-tab.
24429 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24430 # splitting by setting IFS to empty value.)
24431 as_nl='
24432 '
24433 IFS=" "" $as_nl"
24434
24435 # Find who we are. Look in the path if we contain no directory separator.
24436 case $0 in
24437 *[\\/]* ) as_myself=$0 ;;
24438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24439 for as_dir in $PATH
24440 do
24441 IFS=$as_save_IFS
24442 test -z "$as_dir" && as_dir=.
24443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24444 done
24445 IFS=$as_save_IFS
24446
24447 ;;
24448 esac
24449 # We did not find ourselves, most probably we were run as `sh COMMAND'
24450 # in which case we are not to be found in the path.
24451 if test "x$as_myself" = x; then
24452 as_myself=$0
24453 fi
24454 if test ! -f "$as_myself"; then
24455 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24456 { (exit 1); exit 1; }
24457 fi
24458
24459 # Work around bugs in pre-3.0 UWIN ksh.
24460 for as_var in ENV MAIL MAILPATH
24461 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24462 done
24463 PS1='$ '
24464 PS2='> '
24465 PS4='+ '
24466
24467 # NLS nuisances.
24468 for as_var in \
24469 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24470 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24471 LC_TELEPHONE LC_TIME
24472 do
24473 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24474 eval $as_var=C; export $as_var
24475 else
24476 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24477 fi
24478 done
24479
24480 # Required to use basename.
24481 if expr a : '\(a\)' >/dev/null 2>&1 &&
24482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24483 as_expr=expr
24484 else
24485 as_expr=false
24486 fi
24487
24488 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24489 as_basename=basename
24490 else
24491 as_basename=false
24492 fi
24493
24494
24495 # Name of the executable.
24496 as_me=`$as_basename -- "$0" ||
24497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24498 X"$0" : 'X\(//\)$' \| \
24499 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24500 echo X/"$0" |
24501 sed '/^.*\/\([^/][^/]*\)\/*$/{
24502 s//\1/
24503 q
24504 }
24505 /^X\/\(\/\/\)$/{
24506 s//\1/
24507 q
24508 }
24509 /^X\/\(\/\).*/{
24510 s//\1/
24511 q
24512 }
24513 s/.*/./; q'`
24514
24515 # CDPATH.
24516 $as_unset CDPATH
24517
24518
24519
24520 as_lineno_1=$LINENO
24521 as_lineno_2=$LINENO
24522 test "x$as_lineno_1" != "x$as_lineno_2" &&
24523 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24524
24525 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24526 # uniformly replaced by the line number. The first 'sed' inserts a
24527 # line-number line after each line using $LINENO; the second 'sed'
24528 # does the real work. The second script uses 'N' to pair each
24529 # line-number line with the line containing $LINENO, and appends
24530 # trailing '-' during substitution so that $LINENO is not a special
24531 # case at line end.
24532 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24533 # scripts with optimization help from Paolo Bonzini. Blame Lee
24534 # E. McMahon (1931-1989) for sed's syntax. :-)
24535 sed -n '
24536 p
24537 /[$]LINENO/=
24538 ' <$as_myself |
24539 sed '
24540 s/[$]LINENO.*/&-/
24541 t lineno
24542 b
24543 :lineno
24544 N
24545 :loop
24546 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24547 t loop
24548 s/-\n.*//
24549 ' >$as_me.lineno &&
24550 chmod +x "$as_me.lineno" ||
24551 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24552 { (exit 1); exit 1; }; }
24553
24554 # Don't try to exec as it changes $[0], causing all sort of problems
24555 # (the dirname of $[0] is not the place where we might find the
24556 # original and so on. Autoconf is especially sensitive to this).
24557 . "./$as_me.lineno"
24558 # Exit status is that of the last command.
24559 exit
24560 }
24561
24562
24563 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24564 as_dirname=dirname
24565 else
24566 as_dirname=false
24567 fi
24568
24569 ECHO_C= ECHO_N= ECHO_T=
24570 case `echo -n x` in
24571 -n*)
24572 case `echo 'x\c'` in
24573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24574 *) ECHO_C='\c';;
24575 esac;;
24576 *)
24577 ECHO_N='-n';;
24578 esac
24579
24580 if expr a : '\(a\)' >/dev/null 2>&1 &&
24581 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24582 as_expr=expr
24583 else
24584 as_expr=false
24585 fi
24586
24587 rm -f conf$$ conf$$.exe conf$$.file
24588 if test -d conf$$.dir; then
24589 rm -f conf$$.dir/conf$$.file
24590 else
24591 rm -f conf$$.dir
24592 mkdir conf$$.dir
24593 fi
24594 echo >conf$$.file
24595 if ln -s conf$$.file conf$$ 2>/dev/null; then
24596 as_ln_s='ln -s'
24597 # ... but there are two gotchas:
24598 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24599 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24600 # In both cases, we have to default to `cp -p'.
24601 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24602 as_ln_s='cp -p'
24603 elif ln conf$$.file conf$$ 2>/dev/null; then
24604 as_ln_s=ln
24605 else
24606 as_ln_s='cp -p'
24607 fi
24608 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24609 rmdir conf$$.dir 2>/dev/null
24610
24611 if mkdir -p . 2>/dev/null; then
24612 as_mkdir_p=:
24613 else
24614 test -d ./-p && rmdir ./-p
24615 as_mkdir_p=false
24616 fi
24617
24618 if test -x / >/dev/null 2>&1; then
24619 as_test_x='test -x'
24620 else
24621 if ls -dL / >/dev/null 2>&1; then
24622 as_ls_L_option=L
24623 else
24624 as_ls_L_option=
24625 fi
24626 as_test_x='
24627 eval sh -c '\''
24628 if test -d "$1"; then
24629 test -d "$1/.";
24630 else
24631 case $1 in
24632 -*)set "./$1";;
24633 esac;
24634 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24635 ???[sx]*):;;*)false;;esac;fi
24636 '\'' sh
24637 '
24638 fi
24639 as_executable_p=$as_test_x
24640
24641 # Sed expression to map a string onto a valid CPP name.
24642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24643
24644 # Sed expression to map a string onto a valid variable name.
24645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24646
24647
24648 exec 6>&1
24649
24650 # Save the log message, to keep $[0] and so on meaningful, and to
24651 # report actual input values of CONFIG_FILES etc. instead of their
24652 # values after options handling.
24653 ac_log="
24654 This file was extended by emacs $as_me 23.0.60, which was
24655 generated by GNU Autoconf 2.61. Invocation command line was
24656
24657 CONFIG_FILES = $CONFIG_FILES
24658 CONFIG_HEADERS = $CONFIG_HEADERS
24659 CONFIG_LINKS = $CONFIG_LINKS
24660 CONFIG_COMMANDS = $CONFIG_COMMANDS
24661 $ $0 $@
24662
24663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24664 "
24665
24666 _ACEOF
24667
24668 cat >>$CONFIG_STATUS <<_ACEOF
24669 # Files that config.status was made for.
24670 config_files="$ac_config_files"
24671 config_headers="$ac_config_headers"
24672 config_commands="$ac_config_commands"
24673
24674 _ACEOF
24675
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677 ac_cs_usage="\
24678 \`$as_me' instantiates files from templates according to the
24679 current configuration.
24680
24681 Usage: $0 [OPTIONS] [FILE]...
24682
24683 -h, --help print this help, then exit
24684 -V, --version print version number and configuration settings, then exit
24685 -q, --quiet do not print progress messages
24686 -d, --debug don't remove temporary files
24687 --recheck update $as_me by reconfiguring in the same conditions
24688 --file=FILE[:TEMPLATE]
24689 instantiate the configuration file FILE
24690 --header=FILE[:TEMPLATE]
24691 instantiate the configuration header FILE
24692
24693 Configuration files:
24694 $config_files
24695
24696 Configuration headers:
24697 $config_headers
24698
24699 Configuration commands:
24700 $config_commands
24701
24702 Report bugs to <bug-autoconf@gnu.org>."
24703
24704 _ACEOF
24705 cat >>$CONFIG_STATUS <<_ACEOF
24706 ac_cs_version="\\
24707 emacs config.status 23.0.60
24708 configured by $0, generated by GNU Autoconf 2.61,
24709 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24710
24711 Copyright (C) 2006 Free Software Foundation, Inc.
24712 This config.status script is free software; the Free Software Foundation
24713 gives unlimited permission to copy, distribute and modify it."
24714
24715 ac_pwd='$ac_pwd'
24716 srcdir='$srcdir'
24717 INSTALL='$INSTALL'
24718 _ACEOF
24719
24720 cat >>$CONFIG_STATUS <<\_ACEOF
24721 # If no file are specified by the user, then we need to provide default
24722 # value. By we need to know if files were specified by the user.
24723 ac_need_defaults=:
24724 while test $# != 0
24725 do
24726 case $1 in
24727 --*=*)
24728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24730 ac_shift=:
24731 ;;
24732 *)
24733 ac_option=$1
24734 ac_optarg=$2
24735 ac_shift=shift
24736 ;;
24737 esac
24738
24739 case $ac_option in
24740 # Handling of the options.
24741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24742 ac_cs_recheck=: ;;
24743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24744 echo "$ac_cs_version"; exit ;;
24745 --debug | --debu | --deb | --de | --d | -d )
24746 debug=: ;;
24747 --file | --fil | --fi | --f )
24748 $ac_shift
24749 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24750 ac_need_defaults=false;;
24751 --header | --heade | --head | --hea )
24752 $ac_shift
24753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24754 ac_need_defaults=false;;
24755 --he | --h)
24756 # Conflict between --help and --header
24757 { echo "$as_me: error: ambiguous option: $1
24758 Try \`$0 --help' for more information." >&2
24759 { (exit 1); exit 1; }; };;
24760 --help | --hel | -h )
24761 echo "$ac_cs_usage"; exit ;;
24762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24764 ac_cs_silent=: ;;
24765
24766 # This is an error.
24767 -*) { echo "$as_me: error: unrecognized option: $1
24768 Try \`$0 --help' for more information." >&2
24769 { (exit 1); exit 1; }; } ;;
24770
24771 *) ac_config_targets="$ac_config_targets $1"
24772 ac_need_defaults=false ;;
24773
24774 esac
24775 shift
24776 done
24777
24778 ac_configure_extra_args=
24779
24780 if $ac_cs_silent; then
24781 exec 6>/dev/null
24782 ac_configure_extra_args="$ac_configure_extra_args --silent"
24783 fi
24784
24785 _ACEOF
24786 cat >>$CONFIG_STATUS <<_ACEOF
24787 if \$ac_cs_recheck; then
24788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24789 CONFIG_SHELL=$SHELL
24790 export CONFIG_SHELL
24791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24792 fi
24793
24794 _ACEOF
24795 cat >>$CONFIG_STATUS <<\_ACEOF
24796 exec 5>>config.log
24797 {
24798 echo
24799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24800 ## Running $as_me. ##
24801 _ASBOX
24802 echo "$ac_log"
24803 } >&5
24804
24805 _ACEOF
24806 cat >>$CONFIG_STATUS <<_ACEOF
24807 #
24808 # INIT-COMMANDS
24809 #
24810 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24811
24812 _ACEOF
24813
24814 cat >>$CONFIG_STATUS <<\_ACEOF
24815
24816 # Handling of arguments.
24817 for ac_config_target in $ac_config_targets
24818 do
24819 case $ac_config_target in
24820 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24821 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24822 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24823 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24824 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24825 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24826 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24827 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24828 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24829 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24830 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24831 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24832 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24833
24834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24835 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24836 { (exit 1); exit 1; }; };;
24837 esac
24838 done
24839
24840
24841 # If the user did not use the arguments to specify the items to instantiate,
24842 # then the envvar interface is used. Set only those that are not.
24843 # We use the long form for the default assignment because of an extremely
24844 # bizarre bug on SunOS 4.1.3.
24845 if $ac_need_defaults; then
24846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24849 fi
24850
24851 # Have a temporary directory for convenience. Make it in the build tree
24852 # simply because there is no reason against having it here, and in addition,
24853 # creating and moving files from /tmp can sometimes cause problems.
24854 # Hook for its removal unless debugging.
24855 # Note that there is a small window in which the directory will not be cleaned:
24856 # after its creation but before its name has been assigned to `$tmp'.
24857 $debug ||
24858 {
24859 tmp=
24860 trap 'exit_status=$?
24861 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24862 ' 0
24863 trap '{ (exit 1); exit 1; }' 1 2 13 15
24864 }
24865 # Create a (secure) tmp directory for tmp files.
24866
24867 {
24868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24869 test -n "$tmp" && test -d "$tmp"
24870 } ||
24871 {
24872 tmp=./conf$$-$RANDOM
24873 (umask 077 && mkdir "$tmp")
24874 } ||
24875 {
24876 echo "$me: cannot create a temporary directory in ." >&2
24877 { (exit 1); exit 1; }
24878 }
24879
24880 #
24881 # Set up the sed scripts for CONFIG_FILES section.
24882 #
24883
24884 # No need to generate the scripts if there are no CONFIG_FILES.
24885 # This happens for instance when ./config.status config.h
24886 if test -n "$CONFIG_FILES"; then
24887
24888 _ACEOF
24889
24890
24891
24892 ac_delim='%!_!# '
24893 for ac_last_try in false false false false false :; do
24894 cat >conf$$subs.sed <<_ACEOF
24895 SHELL!$SHELL$ac_delim
24896 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24897 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24898 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24899 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24900 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24901 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24902 exec_prefix!$exec_prefix$ac_delim
24903 prefix!$prefix$ac_delim
24904 program_transform_name!$program_transform_name$ac_delim
24905 bindir!$bindir$ac_delim
24906 sbindir!$sbindir$ac_delim
24907 libexecdir!$libexecdir$ac_delim
24908 datarootdir!$datarootdir$ac_delim
24909 datadir!$datadir$ac_delim
24910 sysconfdir!$sysconfdir$ac_delim
24911 sharedstatedir!$sharedstatedir$ac_delim
24912 localstatedir!$localstatedir$ac_delim
24913 includedir!$includedir$ac_delim
24914 oldincludedir!$oldincludedir$ac_delim
24915 docdir!$docdir$ac_delim
24916 infodir!$infodir$ac_delim
24917 htmldir!$htmldir$ac_delim
24918 dvidir!$dvidir$ac_delim
24919 pdfdir!$pdfdir$ac_delim
24920 psdir!$psdir$ac_delim
24921 libdir!$libdir$ac_delim
24922 localedir!$localedir$ac_delim
24923 mandir!$mandir$ac_delim
24924 DEFS!$DEFS$ac_delim
24925 ECHO_C!$ECHO_C$ac_delim
24926 ECHO_N!$ECHO_N$ac_delim
24927 ECHO_T!$ECHO_T$ac_delim
24928 LIBS!$LIBS$ac_delim
24929 build_alias!$build_alias$ac_delim
24930 host_alias!$host_alias$ac_delim
24931 target_alias!$target_alias$ac_delim
24932 MAINT!$MAINT$ac_delim
24933 build!$build$ac_delim
24934 build_cpu!$build_cpu$ac_delim
24935 build_vendor!$build_vendor$ac_delim
24936 build_os!$build_os$ac_delim
24937 host!$host$ac_delim
24938 host_cpu!$host_cpu$ac_delim
24939 host_vendor!$host_vendor$ac_delim
24940 host_os!$host_os$ac_delim
24941 CC!$CC$ac_delim
24942 CFLAGS!$CFLAGS$ac_delim
24943 LDFLAGS!$LDFLAGS$ac_delim
24944 CPPFLAGS!$CPPFLAGS$ac_delim
24945 ac_ct_CC!$ac_ct_CC$ac_delim
24946 EXEEXT!$EXEEXT$ac_delim
24947 OBJEXT!$OBJEXT$ac_delim
24948 CPP!$CPP$ac_delim
24949 GREP!$GREP$ac_delim
24950 EGREP!$EGREP$ac_delim
24951 LN_S!$LN_S$ac_delim
24952 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24953 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24954 INSTALL_DATA!$INSTALL_DATA$ac_delim
24955 RANLIB!$RANLIB$ac_delim
24956 INSTALL_INFO!$INSTALL_INFO$ac_delim
24957 GZIP_PROG!$GZIP_PROG$ac_delim
24958 MAKEINFO!$MAKEINFO$ac_delim
24959 LIBSOUND!$LIBSOUND$ac_delim
24960 PKG_CONFIG!$PKG_CONFIG$ac_delim
24961 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24962 ALSA_LIBS!$ALSA_LIBS$ac_delim
24963 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24964 SET_MAKE!$SET_MAKE$ac_delim
24965 XMKMF!$XMKMF$ac_delim
24966 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24967 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24968 RSVG_LIBS!$RSVG_LIBS$ac_delim
24969 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24970 GTK_LIBS!$GTK_LIBS$ac_delim
24971 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24972 DBUS_LIBS!$DBUS_LIBS$ac_delim
24973 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24974 XFT_LIBS!$XFT_LIBS$ac_delim
24975 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24976 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24977 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24978 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24979 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24980 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24981 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24982 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24983 ALLOCA!$ALLOCA$ac_delim
24984 liblockfile!$liblockfile$ac_delim
24985 LIBOBJS!$LIBOBJS$ac_delim
24986 NEED_SETGID!$NEED_SETGID$ac_delim
24987 KMEM_GROUP!$KMEM_GROUP$ac_delim
24988 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24989 GETOPT_H!$GETOPT_H$ac_delim
24990 GETOPTOBJS!$GETOPTOBJS$ac_delim
24991 version!$version$ac_delim
24992 _ACEOF
24993
24994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24995 break
24996 elif $ac_last_try; then
24997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24999 { (exit 1); exit 1; }; }
25000 else
25001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25002 fi
25003 done
25004
25005 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25006 if test -n "$ac_eof"; then
25007 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25008 ac_eof=`expr $ac_eof + 1`
25009 fi
25010
25011 cat >>$CONFIG_STATUS <<_ACEOF
25012 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25014 _ACEOF
25015 sed '
25016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25017 s/^/s,@/; s/!/@,|#_!!_#|/
25018 :n
25019 t n
25020 s/'"$ac_delim"'$/,g/; t
25021 s/$/\\/; p
25022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25023 ' >>$CONFIG_STATUS <conf$$subs.sed
25024 rm -f conf$$subs.sed
25025 cat >>$CONFIG_STATUS <<_ACEOF
25026 CEOF$ac_eof
25027 _ACEOF
25028
25029
25030 ac_delim='%!_!# '
25031 for ac_last_try in false false false false false :; do
25032 cat >conf$$subs.sed <<_ACEOF
25033 configuration!$configuration$ac_delim
25034 canonical!$canonical$ac_delim
25035 srcdir!$srcdir$ac_delim
25036 lispdir!$lispdir$ac_delim
25037 locallisppath!$locallisppath$ac_delim
25038 lisppath!$lisppath$ac_delim
25039 x_default_search_path!$x_default_search_path$ac_delim
25040 etcdir!$etcdir$ac_delim
25041 archlibdir!$archlibdir$ac_delim
25042 bitmapdir!$bitmapdir$ac_delim
25043 gamedir!$gamedir$ac_delim
25044 gameuser!$gameuser$ac_delim
25045 c_switch_system!$c_switch_system$ac_delim
25046 c_switch_machine!$c_switch_machine$ac_delim
25047 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25048 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25049 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25050 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25051 machfile!$machfile$ac_delim
25052 opsysfile!$opsysfile$ac_delim
25053 carbon_appdir!$carbon_appdir$ac_delim
25054 LTLIBOBJS!$LTLIBOBJS$ac_delim
25055 _ACEOF
25056
25057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25058 break
25059 elif $ac_last_try; then
25060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25062 { (exit 1); exit 1; }; }
25063 else
25064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25065 fi
25066 done
25067
25068 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25069 if test -n "$ac_eof"; then
25070 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25071 ac_eof=`expr $ac_eof + 1`
25072 fi
25073
25074 cat >>$CONFIG_STATUS <<_ACEOF
25075 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25077 _ACEOF
25078 sed '
25079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25080 s/^/s,@/; s/!/@,|#_!!_#|/
25081 :n
25082 t n
25083 s/'"$ac_delim"'$/,g/; t
25084 s/$/\\/; p
25085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25086 ' >>$CONFIG_STATUS <conf$$subs.sed
25087 rm -f conf$$subs.sed
25088 cat >>$CONFIG_STATUS <<_ACEOF
25089 :end
25090 s/|#_!!_#|//g
25091 CEOF$ac_eof
25092 _ACEOF
25093
25094
25095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25097 # trailing colons and then remove the whole line if VPATH becomes empty
25098 # (actually we leave an empty line to preserve line numbers).
25099 if test "x$srcdir" = x.; then
25100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25101 s/:*\$(srcdir):*/:/
25102 s/:*\${srcdir}:*/:/
25103 s/:*@srcdir@:*/:/
25104 s/^\([^=]*=[ ]*\):*/\1/
25105 s/:*$//
25106 s/^[^=]*=[ ]*$//
25107 }'
25108 fi
25109
25110 cat >>$CONFIG_STATUS <<\_ACEOF
25111 fi # test -n "$CONFIG_FILES"
25112
25113
25114 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25115 do
25116 case $ac_tag in
25117 :[FHLC]) ac_mode=$ac_tag; continue;;
25118 esac
25119 case $ac_mode$ac_tag in
25120 :[FHL]*:*);;
25121 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25122 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25123 { (exit 1); exit 1; }; };;
25124 :[FH]-) ac_tag=-:-;;
25125 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25126 esac
25127 ac_save_IFS=$IFS
25128 IFS=:
25129 set x $ac_tag
25130 IFS=$ac_save_IFS
25131 shift
25132 ac_file=$1
25133 shift
25134
25135 case $ac_mode in
25136 :L) ac_source=$1;;
25137 :[FH])
25138 ac_file_inputs=
25139 for ac_f
25140 do
25141 case $ac_f in
25142 -) ac_f="$tmp/stdin";;
25143 *) # Look for the file first in the build tree, then in the source tree
25144 # (if the path is not absolute). The absolute path cannot be DOS-style,
25145 # because $ac_f cannot contain `:'.
25146 test -f "$ac_f" ||
25147 case $ac_f in
25148 [\\/$]*) false;;
25149 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25150 esac ||
25151 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25152 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25153 { (exit 1); exit 1; }; };;
25154 esac
25155 ac_file_inputs="$ac_file_inputs $ac_f"
25156 done
25157
25158 # Let's still pretend it is `configure' which instantiates (i.e., don't
25159 # use $as_me), people would be surprised to read:
25160 # /* config.h. Generated by config.status. */
25161 configure_input="Generated from "`IFS=:
25162 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25163 if test x"$ac_file" != x-; then
25164 configure_input="$ac_file. $configure_input"
25165 { echo "$as_me:$LINENO: creating $ac_file" >&5
25166 echo "$as_me: creating $ac_file" >&6;}
25167 fi
25168
25169 case $ac_tag in
25170 *:-:* | *:-) cat >"$tmp/stdin";;
25171 esac
25172 ;;
25173 esac
25174
25175 ac_dir=`$as_dirname -- "$ac_file" ||
25176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25177 X"$ac_file" : 'X\(//\)[^/]' \| \
25178 X"$ac_file" : 'X\(//\)$' \| \
25179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25180 echo X"$ac_file" |
25181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25182 s//\1/
25183 q
25184 }
25185 /^X\(\/\/\)[^/].*/{
25186 s//\1/
25187 q
25188 }
25189 /^X\(\/\/\)$/{
25190 s//\1/
25191 q
25192 }
25193 /^X\(\/\).*/{
25194 s//\1/
25195 q
25196 }
25197 s/.*/./; q'`
25198 { as_dir="$ac_dir"
25199 case $as_dir in #(
25200 -*) as_dir=./$as_dir;;
25201 esac
25202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25203 as_dirs=
25204 while :; do
25205 case $as_dir in #(
25206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25207 *) as_qdir=$as_dir;;
25208 esac
25209 as_dirs="'$as_qdir' $as_dirs"
25210 as_dir=`$as_dirname -- "$as_dir" ||
25211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25212 X"$as_dir" : 'X\(//\)[^/]' \| \
25213 X"$as_dir" : 'X\(//\)$' \| \
25214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25215 echo X"$as_dir" |
25216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25217 s//\1/
25218 q
25219 }
25220 /^X\(\/\/\)[^/].*/{
25221 s//\1/
25222 q
25223 }
25224 /^X\(\/\/\)$/{
25225 s//\1/
25226 q
25227 }
25228 /^X\(\/\).*/{
25229 s//\1/
25230 q
25231 }
25232 s/.*/./; q'`
25233 test -d "$as_dir" && break
25234 done
25235 test -z "$as_dirs" || eval "mkdir $as_dirs"
25236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25237 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25238 { (exit 1); exit 1; }; }; }
25239 ac_builddir=.
25240
25241 case "$ac_dir" in
25242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25243 *)
25244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25245 # A ".." for each directory in $ac_dir_suffix.
25246 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25247 case $ac_top_builddir_sub in
25248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25250 esac ;;
25251 esac
25252 ac_abs_top_builddir=$ac_pwd
25253 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25254 # for backward compatibility:
25255 ac_top_builddir=$ac_top_build_prefix
25256
25257 case $srcdir in
25258 .) # We are building in place.
25259 ac_srcdir=.
25260 ac_top_srcdir=$ac_top_builddir_sub
25261 ac_abs_top_srcdir=$ac_pwd ;;
25262 [\\/]* | ?:[\\/]* ) # Absolute name.
25263 ac_srcdir=$srcdir$ac_dir_suffix;
25264 ac_top_srcdir=$srcdir
25265 ac_abs_top_srcdir=$srcdir ;;
25266 *) # Relative name.
25267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25268 ac_top_srcdir=$ac_top_build_prefix$srcdir
25269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25270 esac
25271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25272
25273
25274 case $ac_mode in
25275 :F)
25276 #
25277 # CONFIG_FILE
25278 #
25279
25280 case $INSTALL in
25281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25282 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25283 esac
25284 _ACEOF
25285
25286 cat >>$CONFIG_STATUS <<\_ACEOF
25287 # If the template does not know about datarootdir, expand it.
25288 # FIXME: This hack should be removed a few years after 2.60.
25289 ac_datarootdir_hack=; ac_datarootdir_seen=
25290
25291 case `sed -n '/datarootdir/ {
25292 p
25293 q
25294 }
25295 /@datadir@/p
25296 /@docdir@/p
25297 /@infodir@/p
25298 /@localedir@/p
25299 /@mandir@/p
25300 ' $ac_file_inputs` in
25301 *datarootdir*) ac_datarootdir_seen=yes;;
25302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25303 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25304 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25305 _ACEOF
25306 cat >>$CONFIG_STATUS <<_ACEOF
25307 ac_datarootdir_hack='
25308 s&@datadir@&$datadir&g
25309 s&@docdir@&$docdir&g
25310 s&@infodir@&$infodir&g
25311 s&@localedir@&$localedir&g
25312 s&@mandir@&$mandir&g
25313 s&\\\${datarootdir}&$datarootdir&g' ;;
25314 esac
25315 _ACEOF
25316
25317 # Neutralize VPATH when `$srcdir' = `.'.
25318 # Shell code in configure.ac might set extrasub.
25319 # FIXME: do we really want to maintain this feature?
25320 cat >>$CONFIG_STATUS <<_ACEOF
25321 sed "$ac_vpsub
25322 $extrasub
25323 _ACEOF
25324 cat >>$CONFIG_STATUS <<\_ACEOF
25325 :t
25326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25327 s&@configure_input@&$configure_input&;t t
25328 s&@top_builddir@&$ac_top_builddir_sub&;t t
25329 s&@srcdir@&$ac_srcdir&;t t
25330 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25331 s&@top_srcdir@&$ac_top_srcdir&;t t
25332 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25333 s&@builddir@&$ac_builddir&;t t
25334 s&@abs_builddir@&$ac_abs_builddir&;t t
25335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25336 s&@INSTALL@&$ac_INSTALL&;t t
25337 $ac_datarootdir_hack
25338 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25339
25340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25343 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25344 which seems to be undefined. Please make sure it is defined." >&5
25345 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25346 which seems to be undefined. Please make sure it is defined." >&2;}
25347
25348 rm -f "$tmp/stdin"
25349 case $ac_file in
25350 -) cat "$tmp/out"; rm -f "$tmp/out";;
25351 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25352 esac
25353 ;;
25354 :H)
25355 #
25356 # CONFIG_HEADER
25357 #
25358 _ACEOF
25359
25360 # Transform confdefs.h into a sed script `conftest.defines', that
25361 # substitutes the proper values into config.h.in to produce config.h.
25362 rm -f conftest.defines conftest.tail
25363 # First, append a space to every undef/define line, to ease matching.
25364 echo 's/$/ /' >conftest.defines
25365 # Then, protect against being on the right side of a sed subst, or in
25366 # an unquoted here document, in config.status. If some macros were
25367 # called several times there might be several #defines for the same
25368 # symbol, which is useless. But do not sort them, since the last
25369 # AC_DEFINE must be honored.
25370 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25371 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25372 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25373 # PARAMS is the parameter list in the macro definition--in most cases, it's
25374 # just an empty string.
25375 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25376 ac_dB='\\)[ (].*,\\1define\\2'
25377 ac_dC=' '
25378 ac_dD=' ,'
25379
25380 uniq confdefs.h |
25381 sed -n '
25382 t rset
25383 :rset
25384 s/^[ ]*#[ ]*define[ ][ ]*//
25385 t ok
25386 d
25387 :ok
25388 s/[\\&,]/\\&/g
25389 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25390 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25391 ' >>conftest.defines
25392
25393 # Remove the space that was appended to ease matching.
25394 # Then replace #undef with comments. This is necessary, for
25395 # example, in the case of _POSIX_SOURCE, which is predefined and required
25396 # on some systems where configure will not decide to define it.
25397 # (The regexp can be short, since the line contains either #define or #undef.)
25398 echo 's/ $//
25399 s,^[ #]*u.*,/* & */,' >>conftest.defines
25400
25401 # Break up conftest.defines:
25402 ac_max_sed_lines=50
25403
25404 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25405 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25406 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25407 # et cetera.
25408 ac_in='$ac_file_inputs'
25409 ac_out='"$tmp/out1"'
25410 ac_nxt='"$tmp/out2"'
25411
25412 while :
25413 do
25414 # Write a here document:
25415 cat >>$CONFIG_STATUS <<_ACEOF
25416 # First, check the format of the line:
25417 cat >"\$tmp/defines.sed" <<\\CEOF
25418 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25419 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25420 b
25421 :def
25422 _ACEOF
25423 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25424 echo 'CEOF
25425 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25426 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25427 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25428 grep . conftest.tail >/dev/null || break
25429 rm -f conftest.defines
25430 mv conftest.tail conftest.defines
25431 done
25432 rm -f conftest.defines conftest.tail
25433
25434 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25435 cat >>$CONFIG_STATUS <<\_ACEOF
25436 if test x"$ac_file" != x-; then
25437 echo "/* $configure_input */" >"$tmp/config.h"
25438 cat "$ac_result" >>"$tmp/config.h"
25439 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25440 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25441 echo "$as_me: $ac_file is unchanged" >&6;}
25442 else
25443 rm -f $ac_file
25444 mv "$tmp/config.h" $ac_file
25445 fi
25446 else
25447 echo "/* $configure_input */"
25448 cat "$ac_result"
25449 fi
25450 rm -f "$tmp/out12"
25451 ;;
25452
25453 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25454 echo "$as_me: executing $ac_file commands" >&6;}
25455 ;;
25456 esac
25457
25458
25459 case $ac_file$ac_mode in
25460 "default":C)
25461
25462 ### Make the necessary directories, if they don't exist.
25463 for dir in etc lisp ; do
25464 test -d ${dir} || mkdir ${dir}
25465 done
25466
25467 # Build src/Makefile from ${srcdir}/src/Makefile.c
25468 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25469 # This must be done after src/config.h is built, since we rely on that file.
25470
25471 # Now get this: Some word that is part of the ${srcdir} directory name
25472 # or the ${configuration} value might, just might, happen to be an
25473 # identifier like `sun4' or `i386' or something, and be predefined by
25474 # the C preprocessor to some helpful value like 1, or maybe the empty
25475 # string. Needless to say consequent macro substitutions are less
25476 # than conducive to the makefile finding the correct directory.
25477 undefs="`echo $top_srcdir $configuration $canonical |
25478 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25479 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25480 `"
25481
25482 echo creating src/epaths.h
25483 ${MAKE-make} epaths-force
25484
25485 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25486 # `..' to `. .' unless invoked with -traditional
25487
25488 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25489 CPPFLAGS="$CPPFLAGS -traditional"
25490 fi
25491
25492 echo creating lib-src/Makefile
25493 ( cd lib-src
25494 rm -f junk.c junk1.c junk2.c
25495 sed -e '/start of cpp stuff/q' \
25496 < Makefile.c > junk1.c
25497 sed -e '1,/start of cpp stuff/d'\
25498 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25499 < Makefile.c > junk.c
25500 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25501 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25502 cat junk1.c junk2.c > Makefile.new
25503 rm -f junk.c junk1.c junk2.c
25504 chmod 444 Makefile.new
25505 mv -f Makefile.new Makefile
25506 )
25507
25508 echo creating src/Makefile
25509 ( cd src
25510 rm -f junk.c junk1.c junk2.c
25511 sed -e '/start of cpp stuff/q' \
25512 < Makefile.c > junk1.c
25513 sed -e '1,/start of cpp stuff/d'\
25514 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25515 < Makefile.c > junk.c
25516 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25517 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25518 cat junk1.c junk2.c > Makefile.new
25519 rm -f junk.c junk1.c junk2.c
25520 chmod 444 Makefile.new
25521 mv -f Makefile.new Makefile
25522 )
25523
25524 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25525 echo creating src/.gdbinit
25526 echo source $srcdir/src/.gdbinit > src/.gdbinit
25527 fi
25528
25529 # This is how we know whether to re-run configure in certain cases.
25530 touch src/config.stamp
25531
25532 ;;
25533
25534 esac
25535 done # for ac_tag
25536
25537
25538 { (exit 0); exit 0; }
25539 _ACEOF
25540 chmod +x $CONFIG_STATUS
25541 ac_clean_files=$ac_clean_files_save
25542
25543
25544 # configure is writing to config.log, and then calls config.status.
25545 # config.status does its own redirection, appending to config.log.
25546 # Unfortunately, on DOS this fails, as config.log is still kept open
25547 # by configure, so config.status won't be able to write to it; its
25548 # output is simply discarded. So we exec the FD to /dev/null,
25549 # effectively closing config.log, so it can be properly (re)opened and
25550 # appended to by config.status. When coming back to configure, we
25551 # need to make the FD available again.
25552 if test "$no_create" != yes; then
25553 ac_cs_success=:
25554 ac_config_status_args=
25555 test "$silent" = yes &&
25556 ac_config_status_args="$ac_config_status_args --quiet"
25557 exec 5>/dev/null
25558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25559 exec 5>>config.log
25560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25561 # would make configure fail if this is the last instruction.
25562 $ac_cs_success || { (exit 1); exit 1; }
25563 fi
25564
25565