configure.in: If admin/unidata/UnicodeData.txt is present, copy
[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.50.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 XMKMF'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 # Accept the important Cygnus configure options, so we can diagnose typos.
814
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
818
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
823
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
828
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
835
836 --config-cache | -C)
837 cache_file=config.cache ;;
838
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
843
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
850
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
869
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
878
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
887
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
891
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
898
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
903
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
909
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
916
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
921
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
926
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
933
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
938
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
945
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
950
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
954
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
958
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
962
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
971
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
976
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
983
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
990
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1007
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1012
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1017
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1021
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1027
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1038
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1043
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1048
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1055
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1060
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1063
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1066
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1075
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1084
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1088
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1095
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1102
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1106 ;;
1107
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1116
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 ;;
1124
1125 esac
1126 done
1127
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1132 fi
1133
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1139 do
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1164 fi
1165 fi
1166
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170 test "$silent" = yes && exec 6>/dev/null
1171
1172
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\).*/{
1206 s//\1/
1207 q
1208 }
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1213 fi
1214 else
1215 ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1243
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1252
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1257
1258 Defaults for the options are specified in brackets.
1259
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1276
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1281
1282 For better control, use the options below.
1283
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1305
1306 cat <<\_ACEOF
1307
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1312
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1316
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-gcc don't use GCC to compile Emacs even if GCC is found
1349 --without-pop don't support POP mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version 5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server host
1353 --without-sound don't compile with sound support
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 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1372 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1373 console
1374 --with-dbus compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1378
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1389
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1392
1393 _ACEOF
1394 ac_status=$?
1395 fi
1396
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.50
1454 generated by GNU Autoconf 2.61
1455
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1462 fi
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1466
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1469
1470 $ $0 $@
1471
1472 _ACEOF
1473 exec 5>>config.log
1474 {
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1479
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496
1497 _ASUNAME
1498
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1501 do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1507
1508 } >&5
1509
1510 cat >&5 <<_ACEOF
1511
1512
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1516
1517 _ACEOF
1518
1519
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1530 do
1531 for ac_arg
1532 do
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 2)
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1556 ;;
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1559 fi
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 ;;
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1575 {
1576 echo
1577
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1585 (
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1607 *)
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ;;
1610 esac |
1611 sort
1612 )
1613 echo
1614
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1622 do
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1630
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1639 do
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1647 fi
1648
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1658 fi
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1666 ' 0
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1671
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1674
1675 # Predefined preprocessor variables.
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1690
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1695
1696
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1700
1701
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1711 fi
1712 shift
1713 for ac_site_file
1714 do
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1720 fi
1721 done
1722
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1733 fi
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1738 fi
1739
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1761 *)
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1782 fi
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1790 fi
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821
1822
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1824
1825
1826
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1839
1840
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1849
1850 gameuser=games
1851
1852
1853
1854
1855 # Check whether --with-gcc was given.
1856 if test "${with_gcc+set}" = set; then
1857 withval=$with_gcc;
1858 fi
1859
1860
1861
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1864 withval=$with_pop;
1865 else
1866 with_pop=yes
1867 fi
1868
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1872 _ACEOF
1873
1874 fi
1875
1876
1877
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1881 else
1882 with_kerberos=no
1883 fi
1884
1885 if test "$with_kerberos" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1887 #define KERBEROS 1
1888 _ACEOF
1889
1890 fi
1891
1892
1893
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1897 else
1898 with_kerberos5=no
1899 fi
1900
1901 if test "${with_kerberos5}" = yes; then
1902 if test "${with_kerberos}" != yes; then
1903 with_kerberos=yes
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS 1
1906 _ACEOF
1907
1908 fi
1909
1910 cat >>confdefs.h <<\_ACEOF
1911 #define KERBEROS5 1
1912 _ACEOF
1913
1914 fi
1915
1916
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1920 else
1921 with_hesiod=no
1922 fi
1923
1924 if test "$with_hesiod" = yes; then
1925
1926 cat >>confdefs.h <<\_ACEOF
1927 #define HESIOD 1
1928 _ACEOF
1929
1930 fi
1931
1932
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1936 else
1937 with_sound=yes
1938 fi
1939
1940
1941
1942 # Check whether --with-x-toolkit was given.
1943 if test "${with_x_toolkit+set}" = set; then
1944 withval=$with_x_toolkit; case "${withval}" in
1945 y | ye | yes ) val=gtk ;;
1946 n | no ) val=no ;;
1947 l | lu | luc | luci | lucid ) val=lucid ;;
1948 a | at | ath | athe | athen | athena ) val=athena ;;
1949 m | mo | mot | moti | motif ) val=motif ;;
1950 g | gt | gtk ) val=gtk ;;
1951 * )
1952 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1953 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1954 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1955 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1956 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1957 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1958 { (exit 1); exit 1; }; }
1959 ;;
1960 esac
1961 with_x_toolkit=$val
1962
1963 fi
1964
1965
1966
1967 # Check whether --with-xpm was given.
1968 if test "${with_xpm+set}" = set; then
1969 withval=$with_xpm;
1970 else
1971 with_xpm=yes
1972 fi
1973
1974
1975 # Check whether --with-jpeg was given.
1976 if test "${with_jpeg+set}" = set; then
1977 withval=$with_jpeg;
1978 else
1979 with_jpeg=yes
1980 fi
1981
1982
1983 # Check whether --with-tiff was given.
1984 if test "${with_tiff+set}" = set; then
1985 withval=$with_tiff;
1986 else
1987 with_tiff=yes
1988 fi
1989
1990
1991 # Check whether --with-gif was given.
1992 if test "${with_gif+set}" = set; then
1993 withval=$with_gif;
1994 else
1995 with_gif=yes
1996 fi
1997
1998
1999 # Check whether --with-png was given.
2000 if test "${with_png+set}" = set; then
2001 withval=$with_png;
2002 else
2003 with_png=yes
2004 fi
2005
2006
2007 # Check whether --with-rsvg was given.
2008 if test "${with_rsvg+set}" = set; then
2009 withval=$with_rsvg;
2010 else
2011 with_rsvg=yes
2012 fi
2013
2014
2015
2016 # Check whether --with-freetype was given.
2017 if test "${with_freetype+set}" = set; then
2018 withval=$with_freetype;
2019 else
2020 with_freetype=yes
2021 fi
2022
2023
2024 # Check whether --with-xft was given.
2025 if test "${with_xft+set}" = set; then
2026 withval=$with_xft;
2027 else
2028 with_xft=yes
2029 fi
2030
2031
2032 # Check whether --with-libotf was given.
2033 if test "${with_libotf+set}" = set; then
2034 withval=$with_libotf;
2035 else
2036 with_libotf=yes
2037 fi
2038
2039
2040 # Check whether --with-m17n-flt was given.
2041 if test "${with_m17n_flt+set}" = set; then
2042 withval=$with_m17n_flt;
2043 else
2044 with_m17n_flt=yes
2045 fi
2046
2047
2048
2049 # Check whether --with-gtk was given.
2050 if test "${with_gtk+set}" = set; then
2051 withval=$with_gtk;
2052 else
2053 with_gtk=no
2054 fi
2055
2056
2057 # Check whether --with-toolkit-scroll-bars was given.
2058 if test "${with_toolkit_scroll_bars+set}" = set; then
2059 withval=$with_toolkit_scroll_bars;
2060 else
2061 with_toolkit_scroll_bars=yes
2062 fi
2063
2064
2065 # Check whether --with-xaw3d was given.
2066 if test "${with_xaw3d+set}" = set; then
2067 withval=$with_xaw3d;
2068 else
2069 with_xaw3d=yes
2070 fi
2071
2072
2073 # Check whether --with-xim was given.
2074 if test "${with_xim+set}" = set; then
2075 withval=$with_xim;
2076 else
2077 with_xim=yes
2078 fi
2079
2080
2081 # Check whether --with-carbon was given.
2082 if test "${with_carbon+set}" = set; then
2083 withval=$with_carbon;
2084 else
2085 with_carbon=no
2086 fi
2087
2088
2089
2090 # Check whether --with-gpm was given.
2091 if test "${with_gpm+set}" = set; then
2092 withval=$with_gpm;
2093 else
2094 with_gpm=yes
2095 fi
2096
2097
2098 # Check whether --with-dbus was given.
2099 if test "${with_dbus+set}" = set; then
2100 withval=$with_dbus;
2101 else
2102 with_dbus=no
2103 fi
2104
2105
2106
2107 # Check whether --with-pkg-config-prog was given.
2108 if test "${with_pkg_config_prog+set}" = set; then
2109 withval=$with_pkg_config_prog;
2110 fi
2111
2112 if test "X${with_pkg_config_prog}" != X; then
2113 if test "${with_pkg_config_prog}" != yes; then
2114 PKG_CONFIG="${with_pkg_config_prog}"
2115 fi
2116 fi
2117
2118 # Check whether --enable-carbon-app was given.
2119 if test "${enable_carbon_app+set}" = set; then
2120 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2121 fi
2122
2123
2124 # Check whether --enable-font-backend was given.
2125 if test "${enable_font_backend+set}" = set; then
2126 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2127 else
2128 USE_FONT_BACKEND=no
2129 fi
2130
2131
2132 # Check whether --enable-asserts was given.
2133 if test "${enable_asserts+set}" = set; then
2134 enableval=$enable_asserts; USE_XASSERTS=$enableval
2135 else
2136 USE_XASSERTS=no
2137 fi
2138
2139
2140 # Check whether --enable-maintainer-mode was given.
2141 if test "${enable_maintainer_mode+set}" = set; then
2142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2143 else
2144 USE_MAINTAINER_MODE=no
2145 fi
2146
2147 if test $USE_MAINTAINER_MODE = yes; then
2148 MAINT=
2149 else
2150 MAINT=#
2151 fi
2152
2153
2154 # Check whether --enable-locallisppath was given.
2155 if test "${enable_locallisppath+set}" = set; then
2156 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2157 locallisppath=
2158 elif test "${enableval}" != "yes"; then
2159 locallisppath=${enableval}
2160 fi
2161 fi
2162
2163
2164 #### Make srcdir absolute, if it isn't already. It's important to
2165 #### avoid running the path through pwd unnecessarily, since pwd can
2166 #### give you automounter prefixes, which can go away. We do all this
2167 #### so Emacs can find its files when run uninstalled.
2168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2169 unset CDPATH
2170 case "${srcdir}" in
2171 /* ) ;;
2172 . )
2173 ## We may be able to use the $PWD environment variable to make this
2174 ## absolute. But sometimes PWD is inaccurate.
2175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2176 ## but that tested only for a well-formed and valid PWD,
2177 ## it did not object when PWD was well-formed and valid but just wrong.
2178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2179 then
2180 srcdir="$PWD"
2181 else
2182 srcdir="`(cd ${srcdir}; pwd)`"
2183 fi
2184 ;;
2185 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2186 esac
2187
2188 #### Check if the source directory already has a configured system in it.
2189 if test `pwd` != `(cd ${srcdir} && pwd)` \
2190 && test -f "${srcdir}/src/config.h" ; then
2191 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2192 as a build directory right now; it has been configured in its own
2193 right. To configure in another directory as well, you MUST
2194 use GNU make. If you do not have GNU make, then you must
2195 now do \`make distclean' in ${srcdir},
2196 and then run $0 again." >&5
2197 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&2;}
2203 fi
2204
2205 #### Given the configuration name, set machfile and opsysfile to the
2206 #### names of the m/*.h and s/*.h files we should use.
2207
2208 ### Canonicalize the configuration name.
2209
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/install-sh -c"
2215 break
2216 elif test -f "$ac_dir/install.sh"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/install.sh -c"
2219 break
2220 elif test -f "$ac_dir/shtool"; then
2221 ac_aux_dir=$ac_dir
2222 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 break
2224 fi
2225 done
2226 if test -z "$ac_aux_dir"; then
2227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2229 { (exit 1); exit 1; }; }
2230 fi
2231
2232 # These three variables are undocumented and unsupported,
2233 # and are intended to be withdrawn in a future Autoconf release.
2234 # They can cause serious problems if a builder's source tree is in a directory
2235 # whose full name contains unusual characters.
2236 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2237 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2238 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2239
2240
2241 # Make sure we can run config.sub.
2242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2245 { (exit 1); exit 1; }; }
2246
2247 { echo "$as_me:$LINENO: checking build system type" >&5
2248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2249 if test "${ac_cv_build+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 ac_build_alias=$build_alias
2253 test "x$ac_build_alias" = x &&
2254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x &&
2256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258 { (exit 1); exit 1; }; }
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2263
2264 fi
2265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266 echo "${ECHO_T}$ac_cv_build" >&6; }
2267 case $ac_cv_build in
2268 *-*-*) ;;
2269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2270 echo "$as_me: error: invalid value of canonical build" >&2;}
2271 { (exit 1); exit 1; }; };;
2272 esac
2273 build=$ac_cv_build
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_build
2276 shift
2277 build_cpu=$1
2278 build_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 build_os=$*
2283 IFS=$ac_save_IFS
2284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2285
2286
2287 { echo "$as_me:$LINENO: checking host system type" >&5
2288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_host+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test "x$host_alias" = x; then
2293 ac_cv_host=$ac_cv_build
2294 else
2295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2300
2301 fi
2302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6; }
2304 case $ac_cv_host in
2305 *-*-*) ;;
2306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2307 echo "$as_me: error: invalid value of canonical host" >&2;}
2308 { (exit 1); exit 1; }; };;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 canonical=$host
2325 configuration=${host_alias-${build_alias-$host}}
2326
2327
2328
2329 ### If you add support for a new configuration, add code to this
2330 ### switch statement to recognize your configuration name and select
2331 ### the appropriate operating system and machine description files.
2332
2333 ### You would hope that you could choose an m/*.h file pretty much
2334 ### based on the machine portion of the configuration name, and an s-
2335 ### file based on the operating system portion. However, it turns out
2336 ### that each m/*.h file is pretty manufacturer-specific - for
2337 ### example hp9000s300.h is a 68000 machine;
2338 ### mips.h, pmax.h are all MIPS
2339 ### machines. So we basically have to have a special case for each
2340 ### configuration name.
2341 ###
2342 ### As far as handling version numbers on operating systems is
2343 ### concerned, make sure things will fail in a fixable way. If
2344 ### /etc/MACHINES doesn't say anything about version numbers, be
2345 ### prepared to handle anything reasonably. If version numbers
2346 ### matter, be sure /etc/MACHINES says something about it.
2347 ###
2348 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2349 ### "System V Release 4"; he writes, "The old convention encouraged
2350 ### confusion between `system' and `release' levels'."
2351
2352 machine='' opsys='' unported=no
2353 case "${canonical}" in
2354
2355 ## FreeBSD ports
2356 *-*-freebsd* )
2357 opsys=freebsd
2358 case "${canonical}" in
2359 alpha*-*-freebsd*) machine=alpha ;;
2360 ia64-*-freebsd*) machine=ia64 ;;
2361 sparc64-*-freebsd*) machine=sparc ;;
2362 powerpc-*-freebsd*) machine=macppc ;;
2363 i[3456]86-*-freebsd*) machine=intel386 ;;
2364 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2365 esac
2366 ;;
2367
2368 ## FreeBSD kernel + glibc based userland
2369 *-*-kfreebsd*gnu* )
2370 opsys=gnu-kfreebsd
2371 case "${canonical}" in
2372 alpha*-*-kfreebsd*) machine=alpha ;;
2373 ia64-*-kfreebsd*) machine=ia64 ;;
2374 sparc64-*-kfreebsd*) machine=sparc ;;
2375 powerpc-*-kfreebsd*) machine=macppc ;;
2376 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2377 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2378 esac
2379 ;;
2380
2381 ## NetBSD ports
2382 *-*-netbsd* )
2383 opsys=netbsd
2384 if test -f /usr/lib/crti.o; then
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define HAVE_CRTIN
2388 _ACEOF
2389
2390 fi
2391
2392 case "${canonical}" in
2393 alpha*-*-netbsd*) machine=alpha ;;
2394 i[3456]86-*-netbsd*) machine=intel386 ;;
2395 m68k-*-netbsd*)
2396 # This is somewhat bogus.
2397 machine=hp9000s300 ;;
2398 mips-*-netbsd*) machine=pmax ;;
2399 mipsel-*-netbsd*) machine=pmax ;;
2400 mipseb-*-netbsd*) machine=pmax ;;
2401 powerpc-*-netbsd*) machine=macppc ;;
2402 sparc*-*-netbsd*) machine=sparc ;;
2403 vax-*-netbsd*) machine=vax ;;
2404 arm-*-netbsd*) machine=arm ;;
2405 x86_64-*-netbsd*) machine=amdx86-64 ;;
2406 hppa-*-netbsd*) machine=hp800 ;;
2407 esac
2408 ;;
2409
2410 ## OpenBSD ports
2411 *-*-openbsd* )
2412 opsys=openbsd
2413 case "${canonical}" in
2414 alpha*-*-openbsd*) machine=alpha ;;
2415 arm-*-openbsd*) machine=arm ;;
2416 hppa-*-openbsd*) machine=hp9000s300 ;;
2417 i386-*-openbsd*) machine=intel386 ;;
2418 m68k-*-openbsd*) machine=hp9000s300 ;;
2419 mips64-*-openbsd*) machine=mips64 ;;
2420 powerpc-*-openbsd*) machine=macppc ;;
2421 sparc*-*-openbsd*) machine=sparc ;;
2422 vax-*-openbsd*) machine=vax ;;
2423 x86_64-*-openbsd*) machine=amdx86-64 ;;
2424 esac
2425 ;;
2426
2427 ## LynxOS ports
2428 *-*-lynxos* )
2429 opsys=lynxos
2430 case "${canonical}" in
2431 i[3456]86-*-lynxos*) machine=intel386 ;;
2432 powerpc-*-lynxos*) machine=powerpc ;;
2433 esac
2434 ;;
2435
2436 ## BSDI ports
2437 *-*-bsdi* )
2438 opsys=bsdi
2439 case "${canonical}" in
2440 i[345]86-*-bsdi*) machine=intel386 ;;
2441 sparc-*-bsdi*) machine=sparc ;;
2442 powerpc-*-bsdi*) machine=macppc ;;
2443 esac
2444 case "${canonical}" in
2445 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2446 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2447 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2448 *-*-bsdi3* ) opsys=bsdos3 ;;
2449 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2450 esac
2451 ;;
2452
2453 ## Alpha (DEC) machines.
2454 alpha*-dec-osf* )
2455 machine=alpha opsys=osf1
2456 # This is needed to find X11R6.1 libraries for certain tests.
2457 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2458 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2459 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2460 # due to non-traditional preprocessing with the current compiler
2461 # defaults. OSF 4 can also have that compiler version, and there
2462 # seems always to have been a usable /usr/bin/cpp.
2463 NON_GNU_CPP=/usr/bin/cpp
2464 case "${canonical}" in
2465 alpha*-dec-osf[5-9]*)
2466 opsys=osf5-0 ;;
2467 esac
2468 ;;
2469
2470 alpha*-*-linux-gnu* )
2471 machine=alpha opsys=gnu-linux
2472 ;;
2473
2474 arm*-*-linux-gnu* )
2475 machine=arm opsys=gnu-linux
2476 ;;
2477
2478 ## Apple Darwin / Mac OS X
2479 *-apple-darwin* )
2480 case "${canonical}" in
2481 i[3456]86-* ) machine=intel386 ;;
2482 powerpc-* ) machine=powermac ;;
2483 * ) unported=yes ;;
2484 esac
2485 opsys=darwin
2486 # Define CPP as follows to make autoconf work correctly.
2487 CPP="${CC-cc} -E -no-cpp-precomp"
2488 # Use fink packages if available.
2489 if test -d /sw/include && test -d /sw/lib; then
2490 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2491 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2492 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2493 fi
2494 ;;
2495
2496 ## Compaq Nonstop
2497 mips-compaq-nonstopux* )
2498 machine=nonstopux opsys=nonstopux
2499 ;;
2500
2501 ## Cubix QBx/386
2502 i[3456]86-cubix-sysv* )
2503 machine=intel386 opsys=usg5-3
2504 ;;
2505
2506 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2507 machine=pmax opsys=bsd4-2
2508 ;;
2509 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2510 machine=pmax opsys=bsd4-3
2511 ;;
2512 mips-dec-ultrix* )
2513 machine=pmax opsys=ultrix4-3
2514 ;;
2515 mips-dec-osf* )
2516 machine=pmax opsys=osf1
2517 ;;
2518 mips-dec-mach_bsd4.3* )
2519 machine=pmax opsys=mach-bsd4-3
2520 ;;
2521
2522 ## HP 9000 series 200 or 300
2523 m68*-hp-bsd* )
2524 machine=hp9000s300 opsys=bsd4-3
2525 ;;
2526 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2527 m68*-hp-hpux* )
2528 case "`uname -r`" in
2529 ## Someone's system reports A.B8.05 for this.
2530 ## I wonder what other possibilities there are.
2531 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2532 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2533 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2534 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2535 *) machine=hp9000s300 opsys=hpux ;;
2536 esac
2537 ;;
2538
2539 ## HP 9000 series 700 and 800, running HP/UX
2540 hppa*-hp-hpux7* )
2541 machine=hp800 opsys=hpux
2542 ;;
2543 hppa*-hp-hpux8* )
2544 machine=hp800 opsys=hpux8
2545 ;;
2546 hppa*-hp-hpux9shr* )
2547 machine=hp800 opsys=hpux9shr
2548 ;;
2549 hppa*-hp-hpux9* )
2550 machine=hp800 opsys=hpux9
2551 ;;
2552 hppa*-hp-hpux10.2* )
2553 machine=hp800 opsys=hpux10-20
2554 ;;
2555 hppa*-hp-hpux10* )
2556 machine=hp800 opsys=hpux10
2557 ;;
2558 hppa*-hp-hpux1[1-9]* )
2559 machine=hp800 opsys=hpux11
2560 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2561 ;;
2562
2563 hppa*-*-linux-gnu* )
2564 machine=hp800 opsys=gnu-linux
2565 ;;
2566
2567 ## HP 9000 series 700 and 800, running HP/UX
2568 hppa*-hp-hpux* )
2569 ## Cross-compilation? Nah!
2570 case "`uname -r`" in
2571 ## Someone's system reports A.B8.05 for this.
2572 ## I wonder what other possibilities there are.
2573 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2574 *.08.* ) machine=hp800 opsys=hpux8 ;;
2575 *.09.* ) machine=hp800 opsys=hpux9 ;;
2576 *) machine=hp800 opsys=hpux10 ;;
2577 esac
2578 ;;
2579 hppa*-*-nextstep* )
2580 machine=hp800 opsys=nextstep
2581 ;;
2582
2583 ## IBM machines
2584 i370-ibm-aix*)
2585 machine=ibm370aix opsys=usg5-3
2586 ;;
2587 s390-*-linux-gnu* )
2588 machine=ibms390 opsys=gnu-linux
2589 ;;
2590 s390x-*-linux-gnu* )
2591 machine=ibms390x opsys=gnu-linux
2592 ;;
2593 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2594 machine=ibmrs6000 opsys=aix3-1
2595 ;;
2596 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2597 machine=ibmrs6000 opsys=aix3-2-5
2598 ;;
2599 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2600 machine=ibmrs6000 opsys=aix4-1
2601 ;;
2602 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2603 machine=ibmrs6000 opsys=aix4-2
2604 ;;
2605 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2606 machine=ibmrs6000 opsys=aix4-2
2607 ;;
2608 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2609 machine=ibmrs6000 opsys=aix4-2
2610 ;;
2611 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2612 machine=ibmrs6000 opsys=aix4
2613 ;;
2614 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2615 machine=ibmrs6000 opsys=aix4-1
2616 ;;
2617 rs6000-ibm-aix* | powerpc-ibm-aix* )
2618 machine=ibmrs6000 opsys=aix3-2
2619 ;;
2620
2621 ## Prime EXL
2622 i[3456]86-prime-sysv* )
2623 machine=i386 opsys=usg5-3
2624 ;;
2625
2626 ## ncr machine running svr4.3.
2627 i[3456]86-ncr-sysv4.3 )
2628 machine=ncr386 opsys=usg5-4-3
2629 ;;
2630
2631 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2632 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2633 i[3456]86-ncr-sysv* )
2634 machine=ncr386 opsys=usg5-4-2
2635 ;;
2636
2637 ## Macintosh PowerPC
2638 powerpc*-*-linux-gnu* )
2639 machine=macppc opsys=gnu-linux
2640 ;;
2641
2642 ## Workstations sold by MIPS
2643 ## This is not necessarily all workstations using the MIPS processor -
2644 ## Irises are produced by SGI, and DECstations by DEC.
2645
2646 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2647 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2648 ## it gives for choosing between the alternatives seems to be "Use
2649 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2650 ## the BSD world." I'll assume that these are instructions for
2651 ## handling two odd situations, and that every other situation
2652 ## should use mips.h and usg5-2-2, they being listed first.
2653 mips-mips-usg* )
2654 machine=mips4
2655 ## Fall through to the general code at the bottom to decide on the OS.
2656 ;;
2657 mips-mips-riscos4* )
2658 machine=mips4 opsys=bsd4-3
2659 NON_GNU_CC="cc -systype bsd43"
2660 NON_GNU_CPP="cc -systype bsd43 -E"
2661 ;;
2662 mips-mips-riscos5* )
2663 machine=mips4 opsys=riscos5
2664 NON_GNU_CC="cc -systype bsd43"
2665 NON_GNU_CPP="cc -systype bsd43 -E"
2666 ;;
2667 mips-mips-bsd* )
2668 machine=mips opsys=bsd4-3
2669 ;;
2670 mips-mips-* )
2671 machine=mips opsys=usg5-2-2
2672 ;;
2673
2674 ## NeXT
2675 m68*-next-* | m68k-*-nextstep* )
2676 machine=m68k opsys=nextstep
2677 ;;
2678
2679 ## NEC EWS4800
2680 mips-nec-sysv4*)
2681 machine=ews4800 opsys=ux4800
2682 ;;
2683
2684 ## Siemens Nixdorf
2685 mips-siemens-sysv* | mips-sni-sysv*)
2686 machine=mips-siemens opsys=usg5-4
2687 NON_GNU_CC=/usr/ccs/bin/cc
2688 NON_GNU_CPP=/usr/ccs/lib/cpp
2689 ;;
2690
2691 ## Silicon Graphics machines
2692 ## Iris 4D
2693 mips-sgi-irix6.5 )
2694 machine=iris4d opsys=irix6-5
2695 # Without defining _LANGUAGE_C, things get masked out in the headers
2696 # so that, for instance, grepping for `free' in stdlib.h fails and
2697 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2698 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2699 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2700 ;;
2701 mips-sgi-irix6* )
2702 machine=iris4d opsys=irix6-0
2703 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2704 # but presumably it does no harm.
2705 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2706 # -32 probably isn't necessary in later v.6s -- anyone know which?
2707 NON_GCC_TEST_OPTIONS=-32
2708 ;;
2709 mips-sgi-irix5.[01]* )
2710 machine=iris4d opsys=irix5-0
2711 ;;
2712 mips-sgi-irix5* | mips-sgi-irix* )
2713 machine=iris4d opsys=irix5-2
2714 ;;
2715
2716 ## Suns
2717 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2718 machine=sparc opsys=gnu-linux
2719 ;;
2720
2721 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2722 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2723 | rs6000-*-solaris2*)
2724 case "${canonical}" in
2725 i[3456]86-*-* ) machine=intel386 ;;
2726 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2727 powerpcle* ) machine=powerpcle ;;
2728 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2729 sparc* ) machine=sparc ;;
2730 * ) unported=yes ;;
2731 esac
2732 case "${canonical}" in
2733 *-sunos5.3* | *-solaris2.3* )
2734 opsys=sol2-3
2735 NON_GNU_CPP=/usr/ccs/lib/cpp
2736 ;;
2737 *-sunos5.4* | *-solaris2.4* )
2738 opsys=sol2-4
2739 NON_GNU_CPP=/usr/ccs/lib/cpp
2740 RANLIB="ar -ts"
2741 ;;
2742 *-sunos5.5* | *-solaris2.5* )
2743 opsys=sol2-5
2744 NON_GNU_CPP=/usr/ccs/lib/cpp
2745 RANLIB="ar -ts"
2746 ;;
2747 *-sunos5.6* | *-solaris2.6* )
2748 opsys=sol2-6
2749 NON_GNU_CPP=/usr/ccs/lib/cpp
2750 RANLIB="ar -ts"
2751 ;;
2752 *-sunos5* | *-solaris* )
2753 opsys=sol2-6
2754 emacs_check_sunpro_c=yes
2755 NON_GNU_CPP=/usr/ccs/lib/cpp
2756 ;;
2757 * ) opsys=bsd4-2 ;;
2758 esac
2759 ## Watch out for a compiler that we know will not work.
2760 case "${canonical}" in
2761 *-solaris* | *-sunos5* )
2762 if [ "x$CC" = x/usr/ucb/cc ]; then
2763 ## /usr/ucb/cc doesn't work;
2764 ## we should find some other compiler that does work.
2765 unset CC
2766 fi
2767 ;;
2768 *) ;;
2769 esac
2770 ;;
2771 sparc-*-nextstep* )
2772 machine=sparc opsys=nextstep
2773 ;;
2774
2775 ## Tandem Integrity S2
2776 mips-tandem-sysv* )
2777 machine=tandem-s2 opsys=usg5-3
2778 ;;
2779
2780 ## Vaxen.
2781 vax-dec-* )
2782 machine=vax
2783 case "${canonical}" in
2784 *-bsd4.1* ) opsys=bsd4-1 ;;
2785 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2786 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2787 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2788 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2789 *-vms* ) opsys=vms ;;
2790 * ) unported=yes
2791 esac
2792 ;;
2793
2794 ## IA-64
2795 ia64*-*-linux* )
2796 machine=ia64 opsys=gnu-linux
2797 ;;
2798
2799 ## Intel 386 machines where we don't care about the manufacturer
2800 i[3456]86-*-* )
2801 machine=intel386
2802 case "${canonical}" in
2803 *-cygwin ) opsys=cygwin ;;
2804 *-darwin* ) opsys=darwin
2805 CPP="${CC-cc} -E -no-cpp-precomp"
2806 ;;
2807 *-xenix* ) opsys=xenix ;;
2808 *-linux-gnu* ) opsys=gnu-linux ;;
2809 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2810 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2811 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2812 *-386bsd* ) opsys=386bsd ;;
2813 *-nextstep* ) opsys=nextstep ;;
2814 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2815 esac
2816 ;;
2817
2818 ## m68k Linux-based GNU system
2819 m68k-*-linux-gnu* )
2820 machine=m68k opsys=gnu-linux
2821 ;;
2822
2823 ## Mips Linux-based GNU system
2824 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2825 machine=mips opsys=gnu-linux
2826 ;;
2827
2828 ## UXP/DS
2829 sparc-fujitsu-sysv4* )
2830 machine=sparc opsys=uxpds
2831 NON_GNU_CPP=/usr/ccs/lib/cpp
2832 RANLIB="ar -ts"
2833 ;;
2834
2835 ## AMD x86-64 Linux-based GNU system
2836 x86_64-*-linux-gnu* )
2837 machine=amdx86-64 opsys=gnu-linux
2838 ;;
2839
2840 ## Tensilica Xtensa Linux-based GNU system
2841 xtensa*-*-linux-gnu* )
2842 machine=xtensa opsys=gnu-linux
2843 ;;
2844
2845 * )
2846 unported=yes
2847 ;;
2848 esac
2849
2850 ### If the code above didn't choose an operating system, just choose
2851 ### an operating system based on the configuration name. You really
2852 ### only want to use this when you have no idea what the right
2853 ### operating system is; if you know what operating systems a machine
2854 ### runs, it's cleaner to make it explicit in the case statement
2855 ### above.
2856 if test x"${opsys}" = x; then
2857 case "${canonical}" in
2858 *-gnu* ) opsys=gnu ;;
2859 *-bsd4.[01] ) opsys=bsd4-1 ;;
2860 *-bsd4.2 ) opsys=bsd4-2 ;;
2861 *-bsd4.3 ) opsys=bsd4-3 ;;
2862 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2863 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2864 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2865 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2866 *-sysv4.2uw* ) opsys=unixware ;;
2867 *-sysv5uw* ) opsys=unixware ;;
2868 *-sysv5OpenUNIX* ) opsys=unixware ;;
2869 *-sysv4.1* | *-sysvr4.1* )
2870 NON_GNU_CPP=/usr/lib/cpp
2871 opsys=usg5-4 ;;
2872 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2873 if [ x$NON_GNU_CPP = x ]; then
2874 if [ -f /usr/ccs/lib/cpp ]; then
2875 NON_GNU_CPP=/usr/ccs/lib/cpp
2876 else
2877 NON_GNU_CPP=/lib/cpp
2878 fi
2879 fi
2880 opsys=usg5-4-2 ;;
2881 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2882 * )
2883 unported=yes
2884 ;;
2885 esac
2886 fi
2887
2888
2889
2890 if test $unported = yes; then
2891 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&5
2893 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2894 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898 machfile="m/${machine}.h"
2899 opsysfile="s/${opsys}.h"
2900
2901
2902 #### Choose a compiler.
2903 test -n "$CC" && cc_specified=yes
2904
2905 # Save the value of CFLAGS that the user specified.
2906 SPECIFIED_CFLAGS="$CFLAGS"
2907
2908 case ${with_gcc} in
2909 "yes" ) CC="gcc" GCC=yes ;;
2910 "no" ) : ${CC=cc} ;;
2911 * )
2912 esac
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956 fi
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2993 fi
2994
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3009 fi
3010 else
3011 CC="$ac_cv_prog_CC"
3012 fi
3013
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="${ac_tool_prefix}cc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { echo "$as_me:$LINENO: result: $CC" >&5
3046 echo "${ECHO_T}$CC" >&6; }
3047 else
3048 { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3050 fi
3051
3052
3053 fi
3054 fi
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3076 continue
3077 fi
3078 ac_cv_prog_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy $ac_cv_prog_CC
3089 shift
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3094 shift
3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096 fi
3097 fi
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { echo "$as_me:$LINENO: result: $CC" >&5
3103 echo "${ECHO_T}$CC" >&6; }
3104 else
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3107 fi
3108
3109
3110 fi
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog in cl.exe
3114 do
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { echo "$as_me:$LINENO: result: $CC" >&5
3145 echo "${ECHO_T}$CC" >&6; }
3146 else
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3149 fi
3150
3151
3152 test -n "$CC" && break
3153 done
3154 fi
3155 if test -z "$CC"; then
3156 ac_ct_CC=$CC
3157 for ac_prog in cl.exe
3158 do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_ac_ct_CC="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189 echo "${ECHO_T}$ac_ct_CC" >&6; }
3190 else
3191 { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3193 fi
3194
3195
3196 test -n "$ac_ct_CC" && break
3197 done
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3205 whose name does not start with the host triplet. If you think this
3206 configuration is useful to you, please write to autoconf@gnu.org." >&5
3207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3224
3225 # Provide some information about the compiler.
3226 echo "$as_me:$LINENO: checking for C compiler version" >&5
3227 ac_compiler=`set X $ac_compile; echo $2`
3228 { (ac_try="$ac_compiler --version >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compiler --version >&5") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (ac_try="$ac_compiler -v >&5"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler -v >&5") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248 { (ac_try="$ac_compiler -V >&5"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler -V >&5") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 ac_clean_files_save=$ac_clean_files
3275 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3276 # Try to create an executable without -o first, disregard a.out.
3277 # It will help us diagnose broken compilers, and finding out an intuition
3278 # of exeext.
3279 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3280 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3281 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282 #
3283 # List of possible output files, starting from the most likely.
3284 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3285 # only as a last resort. b.out is created by i960 compilers.
3286 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3287 #
3288 # The IRIX 6 linker writes into existing files which may not be
3289 # executable, retaining their permissions. Remove them first so a
3290 # subsequent execution test works.
3291 ac_rmfiles=
3292 for ac_file in $ac_files
3293 do
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297 esac
3298 done
3299 rm -f $ac_rmfiles
3300
3301 if { (ac_try="$ac_link_default"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3317 do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 fi
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3337 * )
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343 else
3344 ac_file=''
3345 fi
3346
3347 { echo "$as_me:$LINENO: result: $ac_file" >&5
3348 echo "${ECHO_T}$ac_file" >&6; }
3349 if test -z "$ac_file"; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3354 See \`config.log' for more details." >&5
3355 echo "$as_me: error: C compiler cannot create executables
3356 See \`config.log' for more details." >&2;}
3357 { (exit 77); exit 77; }; }
3358 fi
3359
3360 ac_exeext=$ac_cv_exeext
3361
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3365 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3366 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3367 # If not cross compiling, check that we can run a simple program.
3368 if test "$cross_compiling" != yes; then
3369 if { ac_try='./$ac_file'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details." >&5
3387 echo "$as_me: error: cannot run C compiled programs.
3388 If you meant to cross compile, use \`--host'.
3389 See \`config.log' for more details." >&2;}
3390 { (exit 1); exit 1; }; }
3391 fi
3392 fi
3393 fi
3394 { echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6; }
3396
3397 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3398 ac_clean_files=$ac_clean_files_save
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3402 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3403 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3404 echo "${ECHO_T}$cross_compiling" >&6; }
3405
3406 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3407 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3408 if { (ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 # `rm'.
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 break;;
3428 * ) break;;
3429 esac
3430 done
3431 else
3432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3437 fi
3438
3439 rm -f conftest$ac_cv_exeext
3440 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3441 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3442
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3446 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3448 if test "${ac_cv_objext+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.o conftest.obj
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; then
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482 break;;
3483 esac
3484 done
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3494 fi
3495
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 fi
3498 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3499 echo "${ECHO_T}$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3503 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513
3514 int
3515 main ()
3516 {
3517 #ifndef __GNUC__
3518 choke me
3519 #endif
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3542 ac_compiler_gnu=yes
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 ac_compiler_gnu=no
3548 fi
3549
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3552
3553 fi
3554 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3555 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3556 GCC=`test $ac_compiler_gnu = yes && echo yes`
3557 ac_test_CFLAGS=${CFLAGS+set}
3558 ac_save_CFLAGS=$CFLAGS
3559 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3560 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_g+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3566 ac_cv_prog_cc_g=no
3567 CFLAGS="-g"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 ac_cv_prog_cc_g=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 CFLAGS=""
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3638 :
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3644 CFLAGS="-g"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3677 ac_cv_prog_cc_g=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
3683 fi
3684
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 fi
3690
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3696 if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698 elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3700 CFLAGS="-g -O2"
3701 else
3702 CFLAGS="-g"
3703 fi
3704 else
3705 if test "$GCC" = yes; then
3706 CFLAGS="-O2"
3707 else
3708 CFLAGS=
3709 fi
3710 fi
3711 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3712 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_cc_c89+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 ac_cv_prog_cc_c89=no
3717 ac_save_CC=$CC
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <stdarg.h>
3725 #include <stdio.h>
3726 #include <sys/types.h>
3727 #include <sys/stat.h>
3728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3729 struct buf { int x; };
3730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731 static char *e (p, i)
3732 char **p;
3733 int i;
3734 {
3735 return p[i];
3736 }
3737 static char *f (char * (*g) (char **, int), char **p, ...)
3738 {
3739 char *s;
3740 va_list v;
3741 va_start (v,p);
3742 s = g (p, va_arg (v,int));
3743 va_end (v);
3744 return s;
3745 }
3746
3747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3748 function prototypes and stuff, but not '\xHH' hex character constants.
3749 These don't provoke an error unfortunately, instead are silently treated
3750 as 'x'. The following induces an error, until -std is added to get
3751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3752 array size at least. It's necessary to write '\x00'==0 to get something
3753 that's true only with -std. */
3754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3755
3756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3757 inside strings and character constants. */
3758 #define FOO(x) 'x'
3759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3760
3761 int test (int i, double x);
3762 struct s1 {int (*f) (int a);};
3763 struct s2 {int (*f) (double a);};
3764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3765 int argc;
3766 char **argv;
3767 int
3768 main ()
3769 {
3770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3777 do
3778 CC="$ac_save_CC $ac_arg"
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_prog_cc_c89=$ac_arg
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801
3802 fi
3803
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3809
3810 fi
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3813 x)
3814 { echo "$as_me:$LINENO: result: none needed" >&5
3815 echo "${ECHO_T}none needed" >&6; } ;;
3816 xno)
3817 { echo "$as_me:$LINENO: result: unsupported" >&5
3818 echo "${ECHO_T}unsupported" >&6; } ;;
3819 *)
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3822 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3824
3825
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832
3833 # On Suns, sometimes $CPP names a directory.
3834 if test -n "$CPP" && test -d "$CPP"; then
3835 CPP=
3836 fi
3837
3838 ## If not using gcc, and on Solaris, and no CPP specified, see if
3839 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3840 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3841 test x"$CPP" = x; then
3842 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3843 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3844
3845 if test "${emacs_cv_sunpro_c+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858 #ifndef __SUNPRO_C
3859 fail;
3860 #endif
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest$ac_exeext &&
3883 $as_test_x conftest$ac_exeext; then
3884 emacs_cv_sunpro_c=yes
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889 emacs_cv_sunpro_c=no
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3893 conftest$ac_exeext conftest.$ac_ext
3894 fi
3895
3896 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3897 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3898
3899 if test x"$emacs_cv_sunpro_c" = xyes; then
3900 NON_GNU_CPP="$CC -E -Xs"
3901 fi
3902 fi
3903
3904 #### Some systems specify a CPP to use unless we are using GCC.
3905 #### Now that we know whether we are using GCC, we can decide whether
3906 #### to use that one.
3907 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3908 then
3909 CPP="$NON_GNU_CPP"
3910 fi
3911
3912 #### Some systems specify a CC to use unless we are using GCC.
3913 #### Now that we know whether we are using GCC, we can decide whether
3914 #### to use that one.
3915 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3916 test x$cc_specified != xyes
3917 then
3918 CC="$NON_GNU_CC"
3919 fi
3920
3921 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3922 then
3923 CC="$CC $GCC_TEST_OPTIONS"
3924 fi
3925
3926 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3927 then
3928 CC="$CC $NON_GCC_TEST_OPTIONS"
3929 fi
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3938 # On Suns, sometimes $CPP names a directory.
3939 if test -n "$CPP" && test -d "$CPP"; then
3940 CPP=
3941 fi
3942 if test -z "$CPP"; then
3943 if test "${ac_cv_prog_CPP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 # Double quotes because CPP needs to be expanded
3947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3948 do
3949 ac_preproc_ok=false
3950 for ac_c_preproc_warn_flag in '' yes
3951 do
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error" is here to catch this case.
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #ifdef __STDC__
3965 # include <limits.h>
3966 #else
3967 # include <assert.h>
3968 #endif
3969 Syntax error
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
3987 :
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 # Broken: fails on valid input.
3993 continue
3994 fi
3995
3996 rm -f conftest.err conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } >/dev/null && {
4021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 }; then
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 # Passes both tests.
4031 ac_preproc_ok=:
4032 break
4033 fi
4034
4035 rm -f conftest.err conftest.$ac_ext
4036
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4041 break
4042 fi
4043
4044 done
4045 ac_cv_prog_CPP=$CPP
4046
4047 fi
4048 CPP=$ac_cv_prog_CPP
4049 else
4050 ac_cv_prog_CPP=$CPP
4051 fi
4052 { echo "$as_me:$LINENO: result: $CPP" >&5
4053 echo "${ECHO_T}$CPP" >&6; }
4054 ac_preproc_ok=false
4055 for ac_c_preproc_warn_flag in '' yes
4056 do
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #ifdef __STDC__
4070 # include <limits.h>
4071 #else
4072 # include <assert.h>
4073 #endif
4074 Syntax error
4075 _ACEOF
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 }; then
4092 :
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 # Broken: fails on valid input.
4098 continue
4099 fi
4100
4101 rm -f conftest.err conftest.$ac_ext
4102
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4112 _ACEOF
4113 if { (ac_try="$ac_cpp conftest.$ac_ext"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null && {
4126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4128 }; then
4129 # Broken: success on invalid input.
4130 continue
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4138 fi
4139
4140 rm -f conftest.err conftest.$ac_ext
4141
4142 done
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.$ac_ext
4145 if $ac_preproc_ok; then
4146 :
4147 else
4148 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4149 See \`config.log' for more details." >&5
4150 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4151 See \`config.log' for more details." >&2;}
4152 { (exit 1); exit 1; }; }
4153 fi
4154
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161
4162 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4163 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_GREP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 # Extract the first word of "grep ggrep" to use in msg output
4168 if test -z "$GREP"; then
4169 set dummy grep ggrep; ac_prog_name=$2
4170 if test "${ac_cv_path_GREP+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in grep ggrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189 *)
4190 ac_count=0
4191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 ac_count=`expr $ac_count + 1`
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP="$ac_path_GREP"
4204 ac_path_GREP_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4211
4212
4213 $ac_path_GREP_found && break 3
4214 done
4215 done
4216
4217 done
4218 IFS=$as_save_IFS
4219
4220
4221 fi
4222
4223 GREP="$ac_cv_path_GREP"
4224 if test -z "$GREP"; then
4225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4226 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4227 { (exit 1); exit 1; }; }
4228 fi
4229
4230 else
4231 ac_cv_path_GREP=$GREP
4232 fi
4233
4234
4235 fi
4236 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4237 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4238 GREP="$ac_cv_path_GREP"
4239
4240
4241 { echo "$as_me:$LINENO: checking for egrep" >&5
4242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4243 if test "${ac_cv_path_EGREP+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247 then ac_cv_path_EGREP="$GREP -E"
4248 else
4249 # Extract the first word of "egrep" to use in msg output
4250 if test -z "$EGREP"; then
4251 set dummy egrep; ac_prog_name=$2
4252 if test "${ac_cv_path_EGREP+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 ac_path_EGREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in egrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4265 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4266 # Check for GNU ac_path_EGREP and select it if it is found.
4267 # Check for GNU $ac_path_EGREP
4268 case `"$ac_path_EGREP" --version 2>&1` in
4269 *GNU*)
4270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4271 *)
4272 ac_count=0
4273 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4274 while :
4275 do
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 echo 'EGREP' >> "conftest.nl"
4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 ac_count=`expr $ac_count + 1`
4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_EGREP="$ac_path_EGREP"
4286 ac_path_EGREP_max=$ac_count
4287 fi
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4290 done
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 esac
4293
4294
4295 $ac_path_EGREP_found && break 3
4296 done
4297 done
4298
4299 done
4300 IFS=$as_save_IFS
4301
4302
4303 fi
4304
4305 EGREP="$ac_cv_path_EGREP"
4306 if test -z "$EGREP"; then
4307 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4308 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4309 { (exit 1); exit 1; }; }
4310 fi
4311
4312 else
4313 ac_cv_path_EGREP=$EGREP
4314 fi
4315
4316
4317 fi
4318 fi
4319 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4320 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4321 EGREP="$ac_cv_path_EGREP"
4322
4323
4324
4325 { echo "$as_me:$LINENO: checking for AIX" >&5
4326 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #ifdef _AIX
4334 yes
4335 #endif
4336
4337 _ACEOF
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "yes" >/dev/null 2>&1; then
4340 { echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6; }
4342 cat >>confdefs.h <<\_ACEOF
4343 #define _ALL_SOURCE 1
4344 _ACEOF
4345
4346 else
4347 { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4349 fi
4350 rm -f conftest*
4351
4352
4353
4354 cat >>confdefs.h <<\_ACEOF
4355 #define _GNU_SOURCE 1
4356 _ACEOF
4357
4358
4359
4360 ### Use -Wno-pointer-sign if the compiler supports it
4361 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4362 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4363 SAVE_CFLAGS="$CFLAGS"
4364 CFLAGS="$CFLAGS -Wno-pointer-sign"
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371
4372 int
4373 main ()
4374 {
4375
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 has_option=yes
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 has_option=no
4403 fi
4404
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 if test $has_option = yes; then
4407 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4408 fi
4409 { echo "$as_me:$LINENO: result: $has_option" >&5
4410 echo "${ECHO_T}$has_option" >&6; }
4411 CFLAGS="$SAVE_CFLAGS"
4412 unset has_option
4413 unset SAVE_CFLAGS
4414
4415 #### Some other nice autoconf tests.
4416
4417 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4418 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4419 LN_S=$as_ln_s
4420 if test "$LN_S" = "ln -s"; then
4421 { echo "$as_me:$LINENO: result: yes" >&5
4422 echo "${ECHO_T}yes" >&6; }
4423 else
4424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4425 echo "${ECHO_T}no, using $LN_S" >&6; }
4426 fi
4427
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4435 # On Suns, sometimes $CPP names a directory.
4436 if test -n "$CPP" && test -d "$CPP"; then
4437 CPP=
4438 fi
4439 if test -z "$CPP"; then
4440 if test "${ac_cv_prog_CPP+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 # Double quotes because CPP needs to be expanded
4444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4445 do
4446 ac_preproc_ok=false
4447 for ac_c_preproc_warn_flag in '' yes
4448 do
4449 # Use a header file that comes with gcc, so configuring glibc
4450 # with a fresh cross-compiler works.
4451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 # <limits.h> exists even on freestanding compilers.
4453 # On the NeXT, cc -E runs the code through the compiler's parser,
4454 # not just through cpp. "Syntax error" is here to catch this case.
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #ifdef __STDC__
4462 # include <limits.h>
4463 #else
4464 # include <assert.h>
4465 #endif
4466 Syntax error
4467 _ACEOF
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 }; then
4484 :
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 # Broken: fails on valid input.
4490 continue
4491 fi
4492
4493 rm -f conftest.err conftest.$ac_ext
4494
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 }; then
4521 # Broken: success on invalid input.
4522 continue
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 # Passes both tests.
4528 ac_preproc_ok=:
4529 break
4530 fi
4531
4532 rm -f conftest.err conftest.$ac_ext
4533
4534 done
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then
4538 break
4539 fi
4540
4541 done
4542 ac_cv_prog_CPP=$CPP
4543
4544 fi
4545 CPP=$ac_cv_prog_CPP
4546 else
4547 ac_cv_prog_CPP=$CPP
4548 fi
4549 { echo "$as_me:$LINENO: result: $CPP" >&5
4550 echo "${ECHO_T}$CPP" >&6; }
4551 ac_preproc_ok=false
4552 for ac_c_preproc_warn_flag in '' yes
4553 do
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4571 Syntax error
4572 _ACEOF
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 }; then
4589 :
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 # Broken: fails on valid input.
4595 continue
4596 fi
4597
4598 rm -f conftest.err conftest.$ac_ext
4599
4600 # OK, works on sane cases. Now check whether nonexistent headers
4601 # can be detected and how.
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 #include <ac_nonexistent.h>
4609 _ACEOF
4610 if { (ac_try="$ac_cpp conftest.$ac_ext"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev/null && {
4623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 }; then
4626 # Broken: success on invalid input.
4627 continue
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4635 fi
4636
4637 rm -f conftest.err conftest.$ac_ext
4638
4639 done
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then
4643 :
4644 else
4645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }
4650 fi
4651
4652 ac_ext=c
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657
4658 # Find a good install program. We prefer a C program (faster),
4659 # so one script is as good as another. But avoid the broken or
4660 # incompatible versions:
4661 # SysV /etc/install, /usr/sbin/install
4662 # SunOS /usr/etc/install
4663 # IRIX /sbin/install
4664 # AIX /bin/install
4665 # AmigaOS /C/install, which installs bootblocks on floppy discs
4666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4669 # OS/2's system install, which has a completely different semantic
4670 # ./install, which can be erroneously created by make from ./install.sh.
4671 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4673 if test -z "$INSTALL"; then
4674 if test "${ac_cv_path_install+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 # Account for people who put trailing slashes in PATH elements.
4683 case $as_dir/ in
4684 ./ | .// | /cC/* | \
4685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4686 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4687 /usr/ucb/* ) ;;
4688 *)
4689 # OSF1 and SCO ODT 3.0 have their own names for install.
4690 # Don't use installbsd from OSF since it installs stuff as root
4691 # by default.
4692 for ac_prog in ginstall scoinst install; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4695 if test $ac_prog = install &&
4696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4697 # AIX install. It has an incompatible calling convention.
4698 :
4699 elif test $ac_prog = install &&
4700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4701 # program-specific install script used by HP pwplus--don't use.
4702 :
4703 else
4704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4705 break 3
4706 fi
4707 fi
4708 done
4709 done
4710 ;;
4711 esac
4712 done
4713 IFS=$as_save_IFS
4714
4715
4716 fi
4717 if test "${ac_cv_path_install+set}" = set; then
4718 INSTALL=$ac_cv_path_install
4719 else
4720 # As a last resort, use the slow shell script. Don't cache a
4721 # value for INSTALL within a source directory, because that will
4722 # break other packages using the cache if that directory is
4723 # removed, or if the value is a relative name.
4724 INSTALL=$ac_install_sh
4725 fi
4726 fi
4727 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4728 echo "${ECHO_T}$INSTALL" >&6; }
4729
4730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4731 # It thinks the first close brace ends the variable substitution.
4732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4733
4734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4735
4736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4737
4738 if test "x$RANLIB" = x; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 RANLIB=$ac_cv_prog_RANLIB
4768 if test -n "$RANLIB"; then
4769 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4770 echo "${ECHO_T}$RANLIB" >&6; }
4771 else
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4774 fi
4775
4776
4777 fi
4778 if test -z "$ac_cv_prog_RANLIB"; then
4779 ac_ct_RANLIB=$RANLIB
4780 # Extract the first word of "ranlib", so it can be a program name with args.
4781 set dummy ranlib; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 if test -n "$ac_ct_RANLIB"; then
4788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_RANLIB="ranlib"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4808 if test -n "$ac_ct_RANLIB"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4810 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816 if test "x$ac_ct_RANLIB" = x; then
4817 RANLIB=":"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4822 whose name does not start with the host triplet. If you think this
4823 configuration is useful to you, please write to autoconf@gnu.org." >&5
4824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4825 whose name does not start with the host triplet. If you think this
4826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 RANLIB=$ac_ct_RANLIB
4830 fi
4831 else
4832 RANLIB="$ac_cv_prog_RANLIB"
4833 fi
4834
4835 fi
4836 # Extract the first word of "install-info", so it can be a program name with args.
4837 set dummy install-info; ac_word=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 case $INSTALL_INFO in
4844 [\\/]* | ?:[\\/]*)
4845 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4846 ;;
4847 *)
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 ;;
4864 esac
4865 fi
4866 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4867 if test -n "$INSTALL_INFO"; then
4868 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4869 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4870 else
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4873 fi
4874
4875
4876 # Extract the first word of "install-info", so it can be a program name with args.
4877 set dummy install-info; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 case $INSTALL_INFO in
4884 [\\/]* | ?:[\\/]*)
4885 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4886 ;;
4887 *)
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in /usr/sbin
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 ;;
4904 esac
4905 fi
4906 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4907 if test -n "$INSTALL_INFO"; then
4908 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4909 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4910 else
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4913 fi
4914
4915
4916 # Extract the first word of "install-info", so it can be a program name with args.
4917 set dummy install-info; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 case $INSTALL_INFO in
4924 [\\/]* | ?:[\\/]*)
4925 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4926 ;;
4927 *)
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in /sbin
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4944 ;;
4945 esac
4946 fi
4947 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4948 if test -n "$INSTALL_INFO"; then
4949 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4950 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4951 else
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4954 fi
4955
4956
4957 # Extract the first word of "gzip", so it can be a program name with args.
4958 set dummy gzip; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 case $GZIP_PROG in
4965 [\\/]* | ?:[\\/]*)
4966 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4967 ;;
4968 *)
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980 done
4981 done
4982 IFS=$as_save_IFS
4983
4984 ;;
4985 esac
4986 fi
4987 GZIP_PROG=$ac_cv_path_GZIP_PROG
4988 if test -n "$GZIP_PROG"; then
4989 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4990 echo "${ECHO_T}$GZIP_PROG" >&6; }
4991 else
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4994 fi
4995
4996
4997
4998
4999 ## Need makeinfo >= 4.6 (?) to build the manuals.
5000 # Extract the first word of "makeinfo", so it can be a program name with args.
5001 set dummy makeinfo; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 case $MAKEINFO in
5008 [\\/]* | ?:[\\/]*)
5009 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5010 ;;
5011 *)
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5028 ;;
5029 esac
5030 fi
5031 MAKEINFO=$ac_cv_path_MAKEINFO
5032 if test -n "$MAKEINFO"; then
5033 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5034 echo "${ECHO_T}$MAKEINFO" >&6; }
5035 else
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5038 fi
5039
5040
5041 if test "$MAKEINFO" != "no" && \
5042 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
5043 MAKEINFO=no
5044 fi
5045
5046 if test "$MAKEINFO" = "no"; then
5047 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5048 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5049 { (exit 1); exit 1; }; }
5050 fi
5051
5052
5053
5054 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5055 then
5056 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5057 fi
5058
5059 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5060 then
5061 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5062 fi
5063
5064
5065 late_LDFLAGS=$LDFLAGS
5066 if test "$GCC" = yes; then
5067 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5068 else
5069 LDFLAGS="$LDFLAGS -znocombreloc"
5070 fi
5071
5072 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5073 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5074 cat >conftest.$ac_ext <<_ACEOF
5075 main(){return 0;}
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5095 { echo "$as_me:$LINENO: result: yes" >&5
5096 echo "${ECHO_T}yes" >&6; }
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 LDFLAGS=$late_LDFLAGS
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5104 fi
5105
5106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5107 conftest$ac_exeext conftest.$ac_ext
5108
5109 #### Extract some information from the operating system and machine files.
5110
5111 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5112 - which libraries the lib-src programs will want, and
5113 - whether the GNU malloc routines are usable..." >&5
5114 echo "$as_me: checking the machine- and system-dependent files to find out
5115 - which libraries the lib-src programs will want, and
5116 - whether the GNU malloc routines are usable..." >&6;}
5117
5118 ### First figure out CFLAGS (which we use for running the compiler here)
5119 ### and REAL_CFLAGS (which we use for real compilation).
5120 ### The two are the same except on a few systems, where they are made
5121 ### different to work around various lossages. For example,
5122 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5123 ### as implying static linking.
5124
5125 ### If the CFLAGS env var is specified, we use that value
5126 ### instead of the default.
5127
5128 ### It's not important that this name contain the PID; you can't run
5129 ### two configures in the same directory and have anything work
5130 ### anyway.
5131 tempcname="conftest.c"
5132
5133 echo '
5134 #include "'${srcdir}'/src/'${opsysfile}'"
5135 #include "'${srcdir}'/src/'${machfile}'"
5136 #ifndef LIBS_MACHINE
5137 #define LIBS_MACHINE
5138 #endif
5139 #ifndef LIBS_SYSTEM
5140 #define LIBS_SYSTEM
5141 #endif
5142 #ifndef C_SWITCH_SYSTEM
5143 #define C_SWITCH_SYSTEM
5144 #endif
5145 #ifndef C_SWITCH_MACHINE
5146 #define C_SWITCH_MACHINE
5147 #endif
5148 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5149 configure___ c_switch_system=C_SWITCH_SYSTEM
5150 configure___ c_switch_machine=C_SWITCH_MACHINE
5151
5152 #ifndef LIB_X11_LIB
5153 #define LIB_X11_LIB -lX11
5154 #endif
5155
5156 #ifndef LIBX11_MACHINE
5157 #define LIBX11_MACHINE
5158 #endif
5159
5160 #ifndef LIBX11_SYSTEM
5161 #define LIBX11_SYSTEM
5162 #endif
5163 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5164
5165 #ifdef UNEXEC
5166 configure___ unexec=UNEXEC
5167 #else
5168 configure___ unexec=unexec.o
5169 #endif
5170
5171 #ifdef SYSTEM_MALLOC
5172 configure___ system_malloc=yes
5173 #else
5174 configure___ system_malloc=no
5175 #endif
5176
5177 #ifdef USE_MMAP_FOR_BUFFERS
5178 configure___ use_mmap_for_buffers=yes
5179 #else
5180 configure___ use_mmap_for_buffers=no
5181 #endif
5182
5183 #ifndef C_DEBUG_SWITCH
5184 #define C_DEBUG_SWITCH -g
5185 #endif
5186
5187 #ifndef C_OPTIMIZE_SWITCH
5188 #ifdef __GNUC__
5189 #define C_OPTIMIZE_SWITCH -O2
5190 #else
5191 #define C_OPTIMIZE_SWITCH -O
5192 #endif
5193 #endif
5194
5195 #ifndef C_WARNINGS_SWITCH
5196 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5197 #endif
5198
5199 #ifndef LD_SWITCH_MACHINE
5200 #define LD_SWITCH_MACHINE
5201 #endif
5202
5203 #ifndef LD_SWITCH_SYSTEM
5204 #define LD_SWITCH_SYSTEM
5205 #endif
5206
5207 #ifndef LD_SWITCH_X_SITE_AUX
5208 #define LD_SWITCH_X_SITE_AUX
5209 #endif
5210
5211 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5212 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5213
5214 #ifdef THIS_IS_CONFIGURE
5215
5216 /* Get the CFLAGS for tests in configure. */
5217 #ifdef __GNUC__
5218 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5219 #else
5220 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5221 #endif
5222
5223 #else /* not THIS_IS_CONFIGURE */
5224
5225 /* Get the CFLAGS for real compilation. */
5226 #ifdef __GNUC__
5227 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5228 #else
5229 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5230 #endif
5231
5232 #endif /* not THIS_IS_CONFIGURE */
5233 ' > ${tempcname}
5234
5235 # The value of CPP is a quoted variable reference, so we need to do this
5236 # to get its actual value...
5237 CPP=`eval "echo $CPP"`
5238 eval `${CPP} -Isrc ${tempcname} \
5239 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5240 if test "x$SPECIFIED_CFLAGS" = x; then
5241 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5243 else
5244 REAL_CFLAGS="$CFLAGS"
5245 fi
5246 rm ${tempcname}
5247
5248 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5249
5250 ### Make sure subsequent tests use flags consistent with the build flags.
5251
5252 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5253 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5254 else
5255 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5256 fi
5257
5258
5259
5260 # Check whether --enable-largefile was given.
5261 if test "${enable_largefile+set}" = set; then
5262 enableval=$enable_largefile;
5263 fi
5264
5265 if test "$enable_largefile" != no; then
5266
5267 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5268 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5269 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 ac_cv_sys_largefile_CC=no
5273 if test "$GCC" != yes; then
5274 ac_save_CC=$CC
5275 while :; do
5276 # IRIX 6.2 and later do not support large files by default,
5277 # so use the C compiler's -n32 option if that helps.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <sys/types.h>
5285 /* Check that off_t can represent 2**63 - 1 correctly.
5286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5287 since some C++ compilers masquerading as C compilers
5288 incorrectly reject 9223372036854775807. */
5289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5291 && LARGE_OFF_T % 2147483647 == 1)
5292 ? 1 : -1];
5293 int
5294 main ()
5295 {
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (ac_try="$ac_compile"
5303 case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compile") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && {
5315 test -z "$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5317 } && test -s conftest.$ac_objext; then
5318 break
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323
5324 fi
5325
5326 rm -f core conftest.err conftest.$ac_objext
5327 CC="$CC -n32"
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 ac_cv_sys_largefile_CC=' -n32'; break
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350
5351 fi
5352
5353 rm -f core conftest.err conftest.$ac_objext
5354 break
5355 done
5356 CC=$ac_save_CC
5357 rm -f conftest.$ac_ext
5358 fi
5359 fi
5360 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5361 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5362 if test "$ac_cv_sys_largefile_CC" != no; then
5363 CC=$CC$ac_cv_sys_largefile_CC
5364 fi
5365
5366 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5367 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 while :; do
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 /* Check that off_t can represent 2**63 - 1 correctly.
5380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381 since some C++ compilers masquerading as C compilers
5382 incorrectly reject 9223372036854775807. */
5383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385 && LARGE_OFF_T % 2147483647 == 1)
5386 ? 1 : -1];
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_cv_sys_file_offset_bits=no; break
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417
5418 fi
5419
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #define _FILE_OFFSET_BITS 64
5428 #include <sys/types.h>
5429 /* Check that off_t can represent 2**63 - 1 correctly.
5430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431 since some C++ compilers masquerading as C compilers
5432 incorrectly reject 9223372036854775807. */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435 && LARGE_OFF_T % 2147483647 == 1)
5436 ? 1 : -1];
5437 int
5438 main ()
5439 {
5440
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_sys_file_offset_bits=64; break
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_sys_file_offset_bits=unknown
5472 break
5473 done
5474 fi
5475 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5476 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5477 case $ac_cv_sys_file_offset_bits in #(
5478 no | unknown) ;;
5479 *)
5480 cat >>confdefs.h <<_ACEOF
5481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5482 _ACEOF
5483 ;;
5484 esac
5485 rm -f conftest*
5486 if test $ac_cv_sys_file_offset_bits = unknown; then
5487 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5488 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5489 if test "${ac_cv_sys_large_files+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 while :; do
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5507 ? 1 : -1];
5508 int
5509 main ()
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521 esac
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_c_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
5533 ac_cv_sys_large_files=no; break
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538
5539 fi
5540
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #define _LARGE_FILES 1
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_sys_large_files=1; break
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588
5589 fi
5590
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_sys_large_files=unknown
5593 break
5594 done
5595 fi
5596 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5597 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5598 case $ac_cv_sys_large_files in #(
5599 no | unknown) ;;
5600 *)
5601 cat >>confdefs.h <<_ACEOF
5602 #define _LARGE_FILES $ac_cv_sys_large_files
5603 _ACEOF
5604 ;;
5605 esac
5606 rm -f conftest*
5607 fi
5608 fi
5609
5610
5611
5612 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5613 ### be located in either /usr/lib64 or /usr/lib.
5614 case "${canonical}" in
5615 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5616 if test -d /usr/lib64; then
5617
5618 cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_LIB64_DIR 1
5620 _ACEOF
5621
5622 fi
5623 esac
5624
5625
5626
5627
5628 if test "${with_sound}" != "no"; then
5629 # Sound support for GNU/Linux and the free BSDs.
5630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5632 if test "${ac_cv_header_stdc+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <stdlib.h>
5642 #include <stdarg.h>
5643 #include <string.h>
5644 #include <float.h>
5645
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_header_stdc=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_header_stdc=no
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680
5681 if test $ac_cv_header_stdc = yes; then
5682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <string.h>
5690
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 $EGREP "memchr" >/dev/null 2>&1; then
5694 :
5695 else
5696 ac_cv_header_stdc=no
5697 fi
5698 rm -f conftest*
5699
5700 fi
5701
5702 if test $ac_cv_header_stdc = yes; then
5703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <stdlib.h>
5711
5712 _ACEOF
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "free" >/dev/null 2>&1; then
5715 :
5716 else
5717 ac_cv_header_stdc=no
5718 fi
5719 rm -f conftest*
5720
5721 fi
5722
5723 if test $ac_cv_header_stdc = yes; then
5724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5725 if test "$cross_compiling" = yes; then
5726 :
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <ctype.h>
5735 #include <stdlib.h>
5736 #if ((' ' & 0x0FF) == 0x020)
5737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5739 #else
5740 # define ISLOWER(c) \
5741 (('a' <= (c) && (c) <= 'i') \
5742 || ('j' <= (c) && (c) <= 'r') \
5743 || ('s' <= (c) && (c) <= 'z'))
5744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5745 #endif
5746
5747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5748 int
5749 main ()
5750 {
5751 int i;
5752 for (i = 0; i < 256; i++)
5753 if (XOR (islower (i), ISLOWER (i))
5754 || toupper (i) != TOUPPER (i))
5755 return 2;
5756 return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest$ac_exeext
5760 if { (ac_try="$ac_link"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_link") 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 :
5780 else
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 ( exit $ac_status )
5786 ac_cv_header_stdc=no
5787 fi
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5789 fi
5790
5791
5792 fi
5793 fi
5794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5796 if test $ac_cv_header_stdc = yes; then
5797
5798 cat >>confdefs.h <<\_ACEOF
5799 #define STDC_HEADERS 1
5800 _ACEOF
5801
5802 fi
5803
5804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5815 inttypes.h stdint.h unistd.h
5816 do
5817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5830
5831 #include <$ac_header>
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 eval "$as_ac_Header=yes"
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 eval "$as_ac_Header=no"
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 ac_res=`eval echo '${'$as_ac_Header'}'`
5861 { echo "$as_me:$LINENO: result: $ac_res" >&5
5862 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5866 _ACEOF
5867
5868 fi
5869
5870 done
5871
5872
5873
5874
5875
5876 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5877 do
5878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 fi
5885 ac_res=`eval echo '${'$as_ac_Header'}'`
5886 { echo "$as_me:$LINENO: result: $ac_res" >&5
5887 echo "${ECHO_T}$ac_res" >&6; }
5888 else
5889 # Is the header compilable?
5890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <$ac_header>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_header_compiler=yes
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_header_compiler=no
5924 fi
5925
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5928 echo "${ECHO_T}$ac_header_compiler" >&6; }
5929
5930 # Is the header present?
5931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <$ac_header>
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 }; then
5957 ac_header_preproc=yes
5958 else
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 ac_header_preproc=no
5963 fi
5964
5965 rm -f conftest.err conftest.$ac_ext
5966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967 echo "${ECHO_T}$ac_header_preproc" >&6; }
5968
5969 # So? What about this header?
5970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971 yes:no: )
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5976 ac_header_preproc=yes
5977 ;;
5978 no:yes:* )
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5991
5992 ;;
5993 esac
5994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 eval "$as_ac_Header=\$ac_header_preproc"
6000 fi
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6004
6005 fi
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6010
6011 fi
6012
6013 done
6014
6015 # Emulation library used on NetBSD.
6016 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6017 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6018 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 ac_check_lib_save_LIBS=$LIBS
6022 LIBS="-lossaudio $LIBS"
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 char _oss_ioctl ();
6037 int
6038 main ()
6039 {
6040 return _oss_ioctl ();
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (ac_try="$ac_link"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_link") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest$ac_exeext &&
6062 $as_test_x conftest$ac_exeext; then
6063 ac_cv_lib_ossaudio__oss_ioctl=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 ac_cv_lib_ossaudio__oss_ioctl=no
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072 conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6074 fi
6075 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6076 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6077 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6078 LIBSOUND=-lossaudio
6079 else
6080 LIBSOUND=
6081 fi
6082
6083
6084
6085 ALSA_REQUIRED=1.0.0
6086 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6087
6088 succeeded=no
6089
6090 # Extract the first word of "pkg-config", so it can be a program name with args.
6091 set dummy pkg-config; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 case $PKG_CONFIG in
6098 [\\/]* | ?:[\\/]*)
6099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6100 ;;
6101 *)
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6118 ;;
6119 esac
6120 fi
6121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6122 if test -n "$PKG_CONFIG"; then
6123 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6124 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6125 else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131
6132 if test "$PKG_CONFIG" = "no" ; then
6133 HAVE_ALSA=no
6134 else
6135 PKG_CONFIG_MIN_VERSION=0.9.0
6136 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6137 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6138 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6139
6140 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6141 { echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6; }
6143 succeeded=yes
6144
6145 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6146 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6147 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6148 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6149 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6150
6151 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6152 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6153 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6154 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6155 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6156 else
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6159 ALSA_CFLAGS=""
6160 ALSA_LIBS=""
6161 ## If we have a custom action on failure, don't print errors, but
6162 ## do set a variable so people can do so.
6163 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6164
6165 fi
6166
6167
6168
6169 else
6170 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6171 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6172 fi
6173 fi
6174
6175 if test $succeeded = yes; then
6176 HAVE_ALSA=yes
6177 else
6178 HAVE_ALSA=no
6179 fi
6180
6181 if test $HAVE_ALSA = yes; then
6182 SAVE_CFLAGS="$CFLAGS"
6183 SAVE_LDFLAGS="$LDFLAGS"
6184 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6185 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <asoundlib.h>
6193 int
6194 main ()
6195 {
6196 snd_lib_error_set_handler (0);
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 emacs_alsa_normal=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 emacs_alsa_normal=no
6224 fi
6225
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 if test "$emacs_alsa_normal" != yes; then
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <alsa/asoundlib.h>
6235 int
6236 main ()
6237 {
6238 snd_lib_error_set_handler (0);
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
6260 emacs_alsa_subdir=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 emacs_alsa_subdir=no
6266 fi
6267
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 if test "$emacs_alsa_subdir" != yes; then
6270 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6271 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6272 { (exit 1); exit 1; }; }
6273 fi
6274 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6275 fi
6276
6277 CFLAGS="$SAVE_CFLAGS"
6278 LDFLAGS="$SAVE_LDFLAGS"
6279 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6280 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6281
6282 cat >>confdefs.h <<\_ACEOF
6283 #define HAVE_ALSA 1
6284 _ACEOF
6285
6286 fi
6287
6288 fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6316 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6317 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6318 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6319 sys/utsname.h pwd.h
6320 do
6321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 fi
6328 ac_res=`eval echo '${'$as_ac_Header'}'`
6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
6330 echo "${ECHO_T}$ac_res" >&6; }
6331 else
6332 # Is the header compilable?
6333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 #include <$ac_header>
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (ac_try="$ac_compile"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 ac_header_compiler=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ac_header_compiler=no
6367 fi
6368
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6371 echo "${ECHO_T}$ac_header_compiler" >&6; }
6372
6373 # Is the header present?
6374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <$ac_header>
6383 _ACEOF
6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null && {
6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 }; then
6400 ac_header_preproc=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_header_preproc=no
6406 fi
6407
6408 rm -f conftest.err conftest.$ac_ext
6409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 echo "${ECHO_T}$ac_header_preproc" >&6; }
6411
6412 # So? What about this header?
6413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6414 yes:no: )
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6419 ac_header_preproc=yes
6420 ;;
6421 no:yes:* )
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6434
6435 ;;
6436 esac
6437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 eval "$as_ac_Header=\$ac_header_preproc"
6443 fi
6444 ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446 echo "${ECHO_T}$ac_res" >&6; }
6447
6448 fi
6449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450 cat >>confdefs.h <<_ACEOF
6451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 _ACEOF
6453
6454 fi
6455
6456 done
6457
6458
6459 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6460 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/personality.h>
6468 int
6469 main ()
6470 {
6471 personality (PER_LINUX32)
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_cv_personality_linux32=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 emacs_cv_personality_linux32=no
6499 fi
6500
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6503 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6504
6505 if test $emacs_cv_personality_linux32 = yes; then
6506
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_PERSONALITY_LINUX32 1
6509 _ACEOF
6510
6511 fi
6512
6513
6514 for ac_header in term.h
6515 do
6516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <$ac_header>
6529 _ACEOF
6530 if { (ac_try="$ac_cpp conftest.$ac_ext"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev/null && {
6543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 }; then
6546 eval "$as_ac_Header=yes"
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 eval "$as_ac_Header=no"
6552 fi
6553
6554 rm -f conftest.err conftest.$ac_ext
6555 fi
6556 ac_res=`eval echo '${'$as_ac_Header'}'`
6557 { echo "$as_me:$LINENO: result: $ac_res" >&5
6558 echo "${ECHO_T}$ac_res" >&6; }
6559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6560 cat >>confdefs.h <<_ACEOF
6561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 _ACEOF
6563
6564 fi
6565
6566 done
6567
6568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570 if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <stdlib.h>
6580 #include <stdarg.h>
6581 #include <string.h>
6582 #include <float.h>
6583
6584 int
6585 main ()
6586 {
6587
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_header_stdc=no
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619 if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <string.h>
6628
6629 _ACEOF
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6632 :
6633 else
6634 ac_cv_header_stdc=no
6635 fi
6636 rm -f conftest*
6637
6638 fi
6639
6640 if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 #include <stdlib.h>
6649
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6653 :
6654 else
6655 ac_cv_header_stdc=no
6656 fi
6657 rm -f conftest*
6658
6659 fi
6660
6661 if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6664 :
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <ctype.h>
6673 #include <stdlib.h>
6674 #if ((' ' & 0x0FF) == 0x020)
6675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6677 #else
6678 # define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6683 #endif
6684
6685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6686 int
6687 main ()
6688 {
6689 int i;
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6693 return 2;
6694 return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711 esac
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 :
6718 else
6719 echo "$as_me: program exited with status $ac_status" >&5
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 ( exit $ac_status )
6724 ac_cv_header_stdc=no
6725 fi
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727 fi
6728
6729
6730 fi
6731 fi
6732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734 if test $ac_cv_header_stdc = yes; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define STDC_HEADERS 1
6738 _ACEOF
6739
6740 fi
6741
6742 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6743 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6744 if test "${ac_cv_header_time+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <sys/time.h>
6755 #include <time.h>
6756
6757 int
6758 main ()
6759 {
6760 if ((struct tm *) 0)
6761 return 0;
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.$ac_objext; then
6783 ac_cv_header_time=yes
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 ac_cv_header_time=no
6789 fi
6790
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 fi
6793 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6794 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6795 if test $ac_cv_header_time = yes; then
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 #define TIME_WITH_SYS_TIME 1
6799 _ACEOF
6800
6801 fi
6802
6803 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6804 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 $ac_includes_default
6815 int
6816 main ()
6817 {
6818 #ifndef sys_siglist
6819 (void) sys_siglist;
6820 #endif
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (ac_try="$ac_compile"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_have_decl_sys_siglist=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 ac_cv_have_decl_sys_siglist=no
6849 fi
6850
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 fi
6853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6854 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6855 if test $ac_cv_have_decl_sys_siglist = yes; then
6856
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_DECL_SYS_SIGLIST 1
6859 _ACEOF
6860
6861
6862 else
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DECL_SYS_SIGLIST 0
6865 _ACEOF
6866
6867
6868 fi
6869
6870
6871 if test $ac_cv_have_decl_sys_siglist != yes; then
6872 # For Tru64, at least:
6873 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6874 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6875 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 int
6886 main ()
6887 {
6888 #ifndef __sys_siglist
6889 (void) __sys_siglist;
6890 #endif
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 ac_cv_have_decl___sys_siglist=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_cv_have_decl___sys_siglist=no
6919 fi
6920
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 fi
6923 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6924 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6925 if test $ac_cv_have_decl___sys_siglist = yes; then
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_DECL___SYS_SIGLIST 1
6929 _ACEOF
6930
6931
6932 else
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_DECL___SYS_SIGLIST 0
6935 _ACEOF
6936
6937
6938 fi
6939
6940
6941 if test $ac_cv_have_decl___sys_siglist = yes; then
6942
6943 cat >>confdefs.h <<\_ACEOF
6944 #define sys_siglist __sys_siglist
6945 _ACEOF
6946
6947 fi
6948 fi
6949 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <sys/types.h>
6961 #include <sys/wait.h>
6962 #ifndef WEXITSTATUS
6963 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6964 #endif
6965 #ifndef WIFEXITED
6966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6967 #endif
6968
6969 int
6970 main ()
6971 {
6972 int s;
6973 wait (&s);
6974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_sys_wait_h=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_cv_header_sys_wait_h=no
7002 fi
7003
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7007 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7008 if test $ac_cv_header_sys_wait_h = yes; then
7009
7010 cat >>confdefs.h <<\_ACEOF
7011 #define HAVE_SYS_WAIT_H 1
7012 _ACEOF
7013
7014 fi
7015
7016
7017 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7018 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7019 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #ifdef TIME_WITH_SYS_TIME
7029 #include <sys/time.h>
7030 #include <time.h>
7031 #else
7032 #ifdef HAVE_SYS_TIME_H
7033 #include <sys/time.h>
7034 #else
7035 #include <time.h>
7036 #endif
7037 #endif
7038 #ifdef HAVE_UTIME_H
7039 #include <utime.h>
7040 #endif
7041 int
7042 main ()
7043 {
7044 static struct utimbuf x; x.actime = x.modtime;
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 emacs_cv_struct_utimbuf=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 emacs_cv_struct_utimbuf=no
7072 fi
7073
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7077 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7078 if test $emacs_cv_struct_utimbuf = yes; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_STRUCT_UTIMBUF 1
7082 _ACEOF
7083
7084 fi
7085
7086 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7087 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7088 if test "${ac_cv_type_signal+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 #include <signal.h>
7099
7100 int
7101 main ()
7102 {
7103 return *(signal (0, 0)) (0) == 1;
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_type_signal=int
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_type_signal=void
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7136 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define RETSIGTYPE $ac_cv_type_signal
7140 _ACEOF
7141
7142
7143
7144 { echo "$as_me:$LINENO: checking for speed_t" >&5
7145 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7146 if test "${emacs_cv_speed_t+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <termios.h>
7156 int
7157 main ()
7158 {
7159 speed_t x = 1;
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 emacs_cv_speed_t=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 emacs_cv_speed_t=no
7187 fi
7188
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7192 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7193 if test $emacs_cv_speed_t = yes; then
7194
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_SPEED_T 1
7197 _ACEOF
7198
7199 fi
7200
7201 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7202 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7203 if test "${emacs_cv_struct_timeval+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #ifdef TIME_WITH_SYS_TIME
7213 #include <sys/time.h>
7214 #include <time.h>
7215 #else
7216 #ifdef HAVE_SYS_TIME_H
7217 #include <sys/time.h>
7218 #else
7219 #include <time.h>
7220 #endif
7221 #endif
7222 int
7223 main ()
7224 {
7225 static struct timeval x; x.tv_sec = x.tv_usec;
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7232 case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235 esac
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 emacs_cv_struct_timeval=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 emacs_cv_struct_timeval=no
7253 fi
7254
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 fi
7257 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7258 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7259 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7260 if test $emacs_cv_struct_timeval = yes; then
7261
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_TIMEVAL 1
7264 _ACEOF
7265
7266 fi
7267
7268 { echo "$as_me:$LINENO: checking for struct exception" >&5
7269 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7270 if test "${emacs_cv_struct_exception+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 #include <math.h>
7280 int
7281 main ()
7282 {
7283 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 emacs_cv_struct_exception=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 emacs_cv_struct_exception=no
7311 fi
7312
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7316 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7317 HAVE_EXCEPTION=$emacs_cv_struct_exception
7318 if test $emacs_cv_struct_exception != yes; then
7319
7320 cat >>confdefs.h <<\_ACEOF
7321 #define NO_MATHERR 1
7322 _ACEOF
7323
7324 fi
7325
7326
7327 for ac_header in sys/socket.h
7328 do
7329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 fi
7336 ac_res=`eval echo '${'$as_ac_Header'}'`
7337 { echo "$as_me:$LINENO: result: $ac_res" >&5
7338 echo "${ECHO_T}$ac_res" >&6; }
7339 else
7340 # Is the header compilable?
7341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7350 #include <$ac_header>
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_header_compiler=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_header_compiler=no
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6; }
7380
7381 # Is the header present?
7382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <$ac_header>
7391 _ACEOF
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } >/dev/null && {
7405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 }; then
7408 ac_header_preproc=yes
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413 ac_header_preproc=no
7414 fi
7415
7416 rm -f conftest.err conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7418 echo "${ECHO_T}$ac_header_preproc" >&6; }
7419
7420 # So? What about this header?
7421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7422 yes:no: )
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7427 ac_header_preproc=yes
7428 ;;
7429 no:yes:* )
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7442
7443 ;;
7444 esac
7445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 eval "$as_ac_Header=\$ac_header_preproc"
7451 fi
7452 ac_res=`eval echo '${'$as_ac_Header'}'`
7453 { echo "$as_me:$LINENO: result: $ac_res" >&5
7454 echo "${ECHO_T}$ac_res" >&6; }
7455
7456 fi
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 _ACEOF
7461
7462 fi
7463
7464 done
7465
7466
7467 for ac_header in net/if.h
7468 do
7469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 $ac_includes_default
7482 #if HAVE_SYS_SOCKET_H
7483 #include <sys/socket.h>
7484 #endif
7485
7486 #include <$ac_header>
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 eval "$as_ac_Header=yes"
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 eval "$as_ac_Header=no"
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 fi
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7530 if test "${ac_cv_struct_tm+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <sys/types.h>
7540 #include <time.h>
7541
7542 int
7543 main ()
7544 {
7545 struct tm tm;
7546 int *p = &tm.tm_sec;
7547 return !p;
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_struct_tm=time.h
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 ac_cv_struct_tm=sys/time.h
7575 fi
7576
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7580 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7581 if test $ac_cv_struct_tm = sys/time.h; then
7582
7583 cat >>confdefs.h <<\_ACEOF
7584 #define TM_IN_SYS_TIME 1
7585 _ACEOF
7586
7587 fi
7588
7589 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7590 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7591 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <sys/types.h>
7601 #include <$ac_cv_struct_tm>
7602
7603
7604 int
7605 main ()
7606 {
7607 static struct tm ac_aggr;
7608 if (ac_aggr.tm_zone)
7609 return 0;
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
7631 ac_cv_member_struct_tm_tm_zone=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <$ac_cv_struct_tm>
7644
7645
7646 int
7647 main ()
7648 {
7649 static struct tm ac_aggr;
7650 if (sizeof ac_aggr.tm_zone)
7651 return 0;
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_cv_member_struct_tm_tm_zone=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_cv_member_struct_tm_tm_zone=no
7679 fi
7680
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7687 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7688 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_STRUCT_TM_TM_ZONE 1
7692 _ACEOF
7693
7694
7695 fi
7696
7697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_TM_ZONE 1
7701 _ACEOF
7702
7703 else
7704 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7705 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7706 if test "${ac_cv_have_decl_tzname+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <time.h>
7716
7717 int
7718 main ()
7719 {
7720 #ifndef tzname
7721 (void) tzname;
7722 #endif
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_cv_have_decl_tzname=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750 ac_cv_have_decl_tzname=no
7751 fi
7752
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7756 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7757 if test $ac_cv_have_decl_tzname = yes; then
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_TZNAME 1
7761 _ACEOF
7762
7763
7764 else
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DECL_TZNAME 0
7767 _ACEOF
7768
7769
7770 fi
7771
7772
7773 { echo "$as_me:$LINENO: checking for tzname" >&5
7774 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7775 if test "${ac_cv_var_tzname+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <time.h>
7785 #if !HAVE_DECL_TZNAME
7786 extern char *tzname[];
7787 #endif
7788
7789 int
7790 main ()
7791 {
7792 return tzname[0][0];
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (ac_try="$ac_link"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_link") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest$ac_exeext &&
7814 $as_test_x conftest$ac_exeext; then
7815 ac_cv_var_tzname=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_cv_var_tzname=no
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824 conftest$ac_exeext conftest.$ac_ext
7825 fi
7826 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7827 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7828 if test $ac_cv_var_tzname = yes; then
7829
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_TZNAME 1
7832 _ACEOF
7833
7834 fi
7835 fi
7836
7837 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7838 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7839 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 #include <time.h>
7849
7850 int
7851 main ()
7852 {
7853 static struct tm ac_aggr;
7854 if (ac_aggr.tm_gmtoff)
7855 return 0;
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <time.h>
7889
7890 int
7891 main ()
7892 {
7893 static struct tm ac_aggr;
7894 if (sizeof ac_aggr.tm_gmtoff)
7895 return 0;
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.$ac_objext; then
7917 ac_cv_member_struct_tm_tm_gmtoff=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ac_cv_member_struct_tm_tm_gmtoff=no
7923 fi
7924
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 fi
7930 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7933
7934 cat >>confdefs.h <<\_ACEOF
7935 #define HAVE_TM_GMTOFF 1
7936 _ACEOF
7937
7938 fi
7939
7940 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 $ac_includes_default
7952 #if HAVE_SYS_SOCKET_H
7953 #include <sys/socket.h>
7954 #endif
7955 #if HAVE_NET_IF_H
7956 #include <net/if.h>
7957 #endif
7958
7959 int
7960 main ()
7961 {
7962 static struct ifreq ac_aggr;
7963 if (ac_aggr.ifr_flags)
7964 return 0;
7965 ;
7966 return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_member_struct_ifreq_ifr_flags=yes
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 #if HAVE_SYS_SOCKET_H
7999 #include <sys/socket.h>
8000 #endif
8001 #if HAVE_NET_IF_H
8002 #include <net/if.h>
8003 #endif
8004
8005 int
8006 main ()
8007 {
8008 static struct ifreq ac_aggr;
8009 if (sizeof ac_aggr.ifr_flags)
8010 return 0;
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_cv_member_struct_ifreq_ifr_flags=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_member_struct_ifreq_ifr_flags=no
8038 fi
8039
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8046 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8047 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8048
8049 cat >>confdefs.h <<_ACEOF
8050 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8051 _ACEOF
8052
8053
8054 fi
8055 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8056 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8057 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8067 #if HAVE_SYS_SOCKET_H
8068 #include <sys/socket.h>
8069 #endif
8070 #if HAVE_NET_IF_H
8071 #include <net/if.h>
8072 #endif
8073
8074 int
8075 main ()
8076 {
8077 static struct ifreq ac_aggr;
8078 if (ac_aggr.ifr_hwaddr)
8079 return 0;
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #if HAVE_SYS_SOCKET_H
8114 #include <sys/socket.h>
8115 #endif
8116 #if HAVE_NET_IF_H
8117 #include <net/if.h>
8118 #endif
8119
8120 int
8121 main ()
8122 {
8123 static struct ifreq ac_aggr;
8124 if (sizeof ac_aggr.ifr_hwaddr)
8125 return 0;
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8147 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8161 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8162 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8163
8164 cat >>confdefs.h <<_ACEOF
8165 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8166 _ACEOF
8167
8168
8169 fi
8170 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8171 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8172 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 #if HAVE_SYS_SOCKET_H
8183 #include <sys/socket.h>
8184 #endif
8185 #if HAVE_NET_IF_H
8186 #include <net/if.h>
8187 #endif
8188
8189 int
8190 main ()
8191 {
8192 static struct ifreq ac_aggr;
8193 if (ac_aggr.ifr_netmask)
8194 return 0;
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8201 case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && {
8213 test -z "$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 } && test -s conftest.$ac_objext; then
8216 ac_cv_member_struct_ifreq_ifr_netmask=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 #if HAVE_SYS_SOCKET_H
8229 #include <sys/socket.h>
8230 #endif
8231 #if HAVE_NET_IF_H
8232 #include <net/if.h>
8233 #endif
8234
8235 int
8236 main ()
8237 {
8238 static struct ifreq ac_aggr;
8239 if (sizeof ac_aggr.ifr_netmask)
8240 return 0;
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_cv_member_struct_ifreq_ifr_netmask=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_cv_member_struct_ifreq_ifr_netmask=no
8268 fi
8269
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8276 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8277 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8281 _ACEOF
8282
8283
8284 fi
8285 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8286 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8287 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8297 #if HAVE_SYS_SOCKET_H
8298 #include <sys/socket.h>
8299 #endif
8300 #if HAVE_NET_IF_H
8301 #include <net/if.h>
8302 #endif
8303
8304 int
8305 main ()
8306 {
8307 static struct ifreq ac_aggr;
8308 if (ac_aggr.ifr_broadaddr)
8309 return 0;
8310 ;
8311 return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8331 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 $ac_includes_default
8343 #if HAVE_SYS_SOCKET_H
8344 #include <sys/socket.h>
8345 #endif
8346 #if HAVE_NET_IF_H
8347 #include <net/if.h>
8348 #endif
8349
8350 int
8351 main ()
8352 {
8353 static struct ifreq ac_aggr;
8354 if (sizeof ac_aggr.ifr_broadaddr)
8355 return 0;
8356 ;
8357 return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8391 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8392 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8393
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8396 _ACEOF
8397
8398
8399 fi
8400 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8401 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8402 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #if HAVE_SYS_SOCKET_H
8413 #include <sys/socket.h>
8414 #endif
8415 #if HAVE_NET_IF_H
8416 #include <net/if.h>
8417 #endif
8418
8419 int
8420 main ()
8421 {
8422 static struct ifreq ac_aggr;
8423 if (ac_aggr.ifr_addr)
8424 return 0;
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 ac_cv_member_struct_ifreq_ifr_addr=yes
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 #if HAVE_SYS_SOCKET_H
8459 #include <sys/socket.h>
8460 #endif
8461 #if HAVE_NET_IF_H
8462 #include <net/if.h>
8463 #endif
8464
8465 int
8466 main ()
8467 {
8468 static struct ifreq ac_aggr;
8469 if (sizeof ac_aggr.ifr_addr)
8470 return 0;
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8477 case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_addr=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_cv_member_struct_ifreq_ifr_addr=no
8498 fi
8499
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8506 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8507 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8508
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8511 _ACEOF
8512
8513
8514 fi
8515
8516
8517
8518 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8519 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8520 if test "$ac_cv_prog_cc_c89" != no; then
8521 { echo "$as_me:$LINENO: result: yes" >&5
8522 echo "${ECHO_T}yes" >&6; }
8523
8524 cat >>confdefs.h <<\_ACEOF
8525 #define PROTOTYPES 1
8526 _ACEOF
8527
8528
8529 cat >>confdefs.h <<\_ACEOF
8530 #define __PROTOTYPES 1
8531 _ACEOF
8532
8533 else
8534 { echo "$as_me:$LINENO: result: no" >&5
8535 echo "${ECHO_T}no" >&6; }
8536 fi
8537
8538 { echo "$as_me:$LINENO: checking for working volatile" >&5
8539 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8540 if test "${ac_cv_c_volatile+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8549
8550 int
8551 main ()
8552 {
8553
8554 volatile int x;
8555 int * volatile y = (int *) 0;
8556 return !x && !y;
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_c_volatile=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_c_volatile=no
8584 fi
8585
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 fi
8588 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8589 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8590 if test $ac_cv_c_volatile = no; then
8591
8592 cat >>confdefs.h <<\_ACEOF
8593 #define volatile
8594 _ACEOF
8595
8596 fi
8597
8598 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8599 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8600 if test "${ac_cv_c_const+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609
8610 int
8611 main ()
8612 {
8613 /* FIXME: Include the comments suggested by Paul. */
8614 #ifndef __cplusplus
8615 /* Ultrix mips cc rejects this. */
8616 typedef int charset[2];
8617 const charset cs;
8618 /* SunOS 4.1.1 cc rejects this. */
8619 char const *const *pcpcc;
8620 char **ppc;
8621 /* NEC SVR4.0.2 mips cc rejects this. */
8622 struct point {int x, y;};
8623 static struct point const zero = {0,0};
8624 /* AIX XL C 1.02.0.0 rejects this.
8625 It does not let you subtract one const X* pointer from another in
8626 an arm of an if-expression whose if-part is not a constant
8627 expression */
8628 const char *g = "string";
8629 pcpcc = &g + (g ? g-g : 0);
8630 /* HPUX 7.0 cc rejects these. */
8631 ++pcpcc;
8632 ppc = (char**) pcpcc;
8633 pcpcc = (char const *const *) ppc;
8634 { /* SCO 3.2v4 cc rejects this. */
8635 char *t;
8636 char const *s = 0 ? (char *) 0 : (char const *) 0;
8637
8638 *t++ = 0;
8639 if (s) return 0;
8640 }
8641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8642 int x[] = {25, 17};
8643 const int *foo = &x[0];
8644 ++foo;
8645 }
8646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8647 typedef const int *iptr;
8648 iptr p = 0;
8649 ++p;
8650 }
8651 { /* AIX XL C 1.02.0.0 rejects this saying
8652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8653 struct s { int j; const int *ap[3]; };
8654 struct s *b; b->j = 5;
8655 }
8656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8657 const int foo = 10;
8658 if (!foo) return 0;
8659 }
8660 return !cs[0] && !zero.x;
8661 #endif
8662
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_cv_c_const=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 ac_cv_c_const=no
8690 fi
8691
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 fi
8694 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8695 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8696 if test $ac_cv_c_const = no; then
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define const
8700 _ACEOF
8701
8702 fi
8703
8704 { echo "$as_me:$LINENO: checking for void * support" >&5
8705 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8706 if test "${emacs_cv_void_star+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715
8716 int
8717 main ()
8718 {
8719 void * foo;
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 emacs_cv_void_star=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 emacs_cv_void_star=no
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8752 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8753 if test $emacs_cv_void_star = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define POINTER_TYPE void
8756 _ACEOF
8757
8758 else
8759 cat >>confdefs.h <<\_ACEOF
8760 #define POINTER_TYPE char
8761 _ACEOF
8762
8763 fi
8764
8765
8766
8767
8768
8769 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8771 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 cat >conftest.make <<\_ACEOF
8776 SHELL = /bin/sh
8777 all:
8778 @echo '@@@%%%=$(MAKE)=@@@%%%'
8779 _ACEOF
8780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8782 *@@@%%%=?*=@@@%%%*)
8783 eval ac_cv_prog_make_${ac_make}_set=yes;;
8784 *)
8785 eval ac_cv_prog_make_${ac_make}_set=no;;
8786 esac
8787 rm -f conftest.make
8788 fi
8789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8790 { echo "$as_me:$LINENO: result: yes" >&5
8791 echo "${ECHO_T}yes" >&6; }
8792 SET_MAKE=
8793 else
8794 { echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6; }
8796 SET_MAKE="MAKE=${MAKE-make}"
8797 fi
8798
8799
8800 { echo "$as_me:$LINENO: checking for long file names" >&5
8801 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8802 if test "${ac_cv_sys_long_file_names+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 ac_cv_sys_long_file_names=yes
8806 # Test for long file names in all the places we know might matter:
8807 # . the current directory, where building will happen
8808 # $prefix/lib where we will be installing things
8809 # $exec_prefix/lib likewise
8810 # $TMPDIR if set, where it might want to write temporary files
8811 # /tmp where it might want to write temporary files
8812 # /var/tmp likewise
8813 # /usr/tmp likewise
8814 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8815 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8816 # in the usual case where exec_prefix is '${prefix}'.
8817 case $ac_dir in #(
8818 . | /* | ?:[\\/]*) ;; #(
8819 *) continue;;
8820 esac
8821 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8822 ac_xdir=$ac_dir/cf$$
8823 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8824 ac_tf1=$ac_xdir/conftest9012345
8825 ac_tf2=$ac_xdir/conftest9012346
8826 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8827 ac_cv_sys_long_file_names=no
8828 rm -f -r "$ac_xdir" 2>/dev/null
8829 test $ac_cv_sys_long_file_names = no && break
8830 done
8831 fi
8832 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8833 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8834 if test $ac_cv_sys_long_file_names = yes; then
8835
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_LONG_FILE_NAMES 1
8838 _ACEOF
8839
8840 fi
8841
8842
8843 #### Choose a window system.
8844
8845 { echo "$as_me:$LINENO: checking for X" >&5
8846 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8847
8848
8849 # Check whether --with-x was given.
8850 if test "${with_x+set}" = set; then
8851 withval=$with_x;
8852 fi
8853
8854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8855 if test "x$with_x" = xno; then
8856 # The user explicitly disabled X.
8857 have_x=disabled
8858 else
8859 case $x_includes,$x_libraries in #(
8860 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8861 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8862 { (exit 1); exit 1; }; };; #(
8863 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 # One or both of the vars are not set, and there is no cached value.
8867 ac_x_includes=no ac_x_libraries=no
8868 rm -f -r conftest.dir
8869 if mkdir conftest.dir; then
8870 cd conftest.dir
8871 cat >Imakefile <<'_ACEOF'
8872 incroot:
8873 @echo incroot='${INCROOT}'
8874 usrlibdir:
8875 @echo usrlibdir='${USRLIBDIR}'
8876 libdir:
8877 @echo libdir='${LIBDIR}'
8878 _ACEOF
8879 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8881 for ac_var in incroot usrlibdir libdir; do
8882 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8883 done
8884 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8885 for ac_extension in a so sl; do
8886 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8887 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8888 ac_im_usrlibdir=$ac_im_libdir; break
8889 fi
8890 done
8891 # Screen out bogus values from the imake configuration. They are
8892 # bogus both because they are the default anyway, and because
8893 # using them would break gcc on systems where it needs fixed includes.
8894 case $ac_im_incroot in
8895 /usr/include) ac_x_includes= ;;
8896 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8897 esac
8898 case $ac_im_usrlibdir in
8899 /usr/lib | /lib) ;;
8900 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8901 esac
8902 fi
8903 cd ..
8904 rm -f -r conftest.dir
8905 fi
8906
8907 # Standard set of common directories for X headers.
8908 # Check X11 before X11Rn because it is often a symlink to the current release.
8909 ac_x_header_dirs='
8910 /usr/X11/include
8911 /usr/X11R6/include
8912 /usr/X11R5/include
8913 /usr/X11R4/include
8914
8915 /usr/include/X11
8916 /usr/include/X11R6
8917 /usr/include/X11R5
8918 /usr/include/X11R4
8919
8920 /usr/local/X11/include
8921 /usr/local/X11R6/include
8922 /usr/local/X11R5/include
8923 /usr/local/X11R4/include
8924
8925 /usr/local/include/X11
8926 /usr/local/include/X11R6
8927 /usr/local/include/X11R5
8928 /usr/local/include/X11R4
8929
8930 /usr/X386/include
8931 /usr/x386/include
8932 /usr/XFree86/include/X11
8933
8934 /usr/include
8935 /usr/local/include
8936 /usr/unsupported/include
8937 /usr/athena/include
8938 /usr/local/x11r5/include
8939 /usr/lpp/Xamples/include
8940
8941 /usr/openwin/include
8942 /usr/openwin/share/include'
8943
8944 if test "$ac_x_includes" = no; then
8945 # Guess where to find include files, by looking for Xlib.h.
8946 # First, try using that file with no special directory specified.
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 #include <X11/Xlib.h>
8954 _ACEOF
8955 if { (ac_try="$ac_cpp conftest.$ac_ext"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null && {
8968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 }; then
8971 # We can compile using X headers with no special include directory.
8972 ac_x_includes=
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 for ac_dir in $ac_x_header_dirs; do
8978 if test -r "$ac_dir/X11/Xlib.h"; then
8979 ac_x_includes=$ac_dir
8980 break
8981 fi
8982 done
8983 fi
8984
8985 rm -f conftest.err conftest.$ac_ext
8986 fi # $ac_x_includes = no
8987
8988 if test "$ac_x_libraries" = no; then
8989 # Check for the libraries.
8990 # See if we find them without any special options.
8991 # Don't add to $LIBS permanently.
8992 ac_save_LIBS=$LIBS
8993 LIBS="-lX11 $LIBS"
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #include <X11/Xlib.h>
9001 int
9002 main ()
9003 {
9004 XrmInitialize ()
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9011 case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_link") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext &&
9026 $as_test_x conftest$ac_exeext; then
9027 LIBS=$ac_save_LIBS
9028 # We can link X programs with no special library path.
9029 ac_x_libraries=
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 LIBS=$ac_save_LIBS
9035 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9036 do
9037 # Don't even attempt the hair of trying to link an X program!
9038 for ac_extension in a so sl; do
9039 if test -r "$ac_dir/libX11.$ac_extension"; then
9040 ac_x_libraries=$ac_dir
9041 break 2
9042 fi
9043 done
9044 done
9045 fi
9046
9047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi # $ac_x_libraries = no
9050
9051 case $ac_x_includes,$ac_x_libraries in #(
9052 no,* | *,no | *\'*)
9053 # Didn't find X, or a directory has "'" in its name.
9054 ac_cv_have_x="have_x=no";; #(
9055 *)
9056 # Record where we found X for the cache.
9057 ac_cv_have_x="have_x=yes\
9058 ac_x_includes='$ac_x_includes'\
9059 ac_x_libraries='$ac_x_libraries'"
9060 esac
9061 fi
9062 ;; #(
9063 *) have_x=yes;;
9064 esac
9065 eval "$ac_cv_have_x"
9066 fi # $with_x != no
9067
9068 if test "$have_x" != yes; then
9069 { echo "$as_me:$LINENO: result: $have_x" >&5
9070 echo "${ECHO_T}$have_x" >&6; }
9071 no_x=yes
9072 else
9073 # If each of the values was on the command line, it overrides each guess.
9074 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9075 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9076 # Update the cache value to reflect the command line values.
9077 ac_cv_have_x="have_x=yes\
9078 ac_x_includes='$x_includes'\
9079 ac_x_libraries='$x_libraries'"
9080 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9081 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9082 fi
9083
9084 if test "$no_x" = yes; then
9085 window_system=none
9086 else
9087 window_system=x11
9088 fi
9089
9090 if test "${x_libraries}" != NONE; then
9091 if test -n "${x_libraries}"; then
9092 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9093 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9094 fi
9095 x_default_search_path=""
9096 x_search_path=${x_libraries}
9097 if test -z "${x_search_path}"; then
9098 x_search_path=/usr/lib
9099 fi
9100 for x_library in `echo ${x_search_path}: | \
9101 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9102 x_search_path="\
9103 ${x_library}/X11/%L/%T/%N%C%S:\
9104 ${x_library}/X11/%l/%T/%N%C%S:\
9105 ${x_library}/X11/%T/%N%C%S:\
9106 ${x_library}/X11/%L/%T/%N%S:\
9107 ${x_library}/X11/%l/%T/%N%S:\
9108 ${x_library}/X11/%T/%N%S"
9109 if test x"${x_default_search_path}" = x; then
9110 x_default_search_path=${x_search_path}
9111 else
9112 x_default_search_path="${x_search_path}:${x_default_search_path}"
9113 fi
9114 done
9115 fi
9116 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9117 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9118 fi
9119
9120 if test x"${x_includes}" = x; then
9121 bitmapdir=/usr/include/X11/bitmaps
9122 else
9123 # accumulate include directories that have X11 bitmap subdirectories
9124 bmd_acc="dummyval"
9125 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9126 if test -d "${bmd}/X11/bitmaps"; then
9127 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9128 fi
9129 if test -d "${bmd}/bitmaps"; then
9130 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9131 fi
9132 done
9133 if test ${bmd_acc} != "dummyval"; then
9134 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9135 fi
9136 fi
9137
9138 HAVE_CARBON=no
9139 if test "${with_carbon}" != no; then
9140 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9141 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9142 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9143 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 fi
9146 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9147 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9148 else
9149 # Is the header compilable?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 #include <Carbon/Carbon.h>
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9178 ac_header_compiler=yes
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_header_compiler=no
9184 fi
9185
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 echo "${ECHO_T}$ac_header_compiler" >&6; }
9189
9190 # Is the header present?
9191 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9192 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <Carbon/Carbon.h>
9200 _ACEOF
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null && {
9214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 }; then
9217 ac_header_preproc=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_header_preproc=no
9223 fi
9224
9225 rm -f conftest.err conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6; }
9228
9229 # So? What about this header?
9230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 yes:no: )
9232 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9235 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9236 ac_header_preproc=yes
9237 ;;
9238 no:yes:* )
9239 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9240 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9242 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9244 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9246 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9250 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9251
9252 ;;
9253 esac
9254 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9255 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9256 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9260 fi
9261 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9262 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9263
9264 fi
9265 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9266 HAVE_CARBON=yes
9267 fi
9268
9269
9270 fi
9271 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9272 if test "${with_carbon+set}" != set \
9273 && test "${carbon_appdir_x+set}" != set; then
9274 for var in with_x with_x_toolkit with_gtk with_xim \
9275 with_xpm with_jpeg with_tiff with_gif with_png; do
9276 if eval test \"\${$var+set}\" = set; then
9277 HAVE_CARBON=no
9278 break
9279 fi
9280 done
9281 fi
9282 fi
9283 if test "${HAVE_CARBON}" = yes; then
9284 window_system=mac
9285 fi
9286
9287 case "${window_system}" in
9288 x11 )
9289 HAVE_X_WINDOWS=yes
9290 HAVE_X11=yes
9291 case "${with_x_toolkit}" in
9292 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9293 motif ) USE_X_TOOLKIT=MOTIF ;;
9294 gtk ) with_gtk=yes
9295 USE_X_TOOLKIT=none ;;
9296 no ) USE_X_TOOLKIT=none ;;
9297 * )
9298 if test x"$with_gtk" = xyes; then
9299 USE_X_TOOLKIT=none
9300 else
9301 USE_X_TOOLKIT=maybe
9302 fi
9303 ;;
9304 esac
9305 ;;
9306 mac | none )
9307 HAVE_X_WINDOWS=no
9308 HAVE_X11=no
9309 USE_X_TOOLKIT=none
9310 ;;
9311 esac
9312
9313 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9314 # Extract the first word of "X", so it can be a program name with args.
9315 set dummy X; ac_word=$2
9316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9318 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 if test -n "$HAVE_XSERVER"; then
9322 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_prog_HAVE_XSERVER="true"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9334 fi
9335 done
9336 done
9337 IFS=$as_save_IFS
9338
9339 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9340 fi
9341 fi
9342 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9343 if test -n "$HAVE_XSERVER"; then
9344 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9345 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9346 else
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9349 fi
9350
9351
9352 if test "$HAVE_XSERVER" = true ||
9353 test -n "$DISPLAY" ||
9354 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9355 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9356 were found. You should install the relevant development files for X
9357 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9358 sure you have development files for image handling, i.e.
9359 tiff, gif, jpeg, png and xpm.
9360 If you are sure you want Emacs compiled without X window support, pass
9361 --without-x
9362 to configure." >&5
9363 echo "$as_me: error: You seem to be running X, but no X development libraries
9364 were found. You should install the relevant development files for X
9365 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9366 sure you have development files for image handling, i.e.
9367 tiff, gif, jpeg, png and xpm.
9368 If you are sure you want Emacs compiled without X window support, pass
9369 --without-x
9370 to configure." >&2;}
9371 { (exit 1); exit 1; }; }
9372 fi
9373 fi
9374
9375 ### If we're using X11, we should use the X menu package.
9376 HAVE_MENUS=no
9377 case ${HAVE_X11} in
9378 yes ) HAVE_MENUS=yes ;;
9379 esac
9380
9381 ### Compute the unexec source name from the object name.
9382 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9383
9384 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9385 # Assume not, until told otherwise.
9386 GNU_MALLOC=yes
9387 doug_lea_malloc=yes
9388 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9389 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9390 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
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 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define malloc_get_state innocuous_malloc_get_state
9402
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char malloc_get_state (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9407
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9413
9414 #undef malloc_get_state
9415
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char malloc_get_state ();
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9427 choke me
9428 #endif
9429
9430 int
9431 main ()
9432 {
9433 return malloc_get_state ();
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9456 ac_cv_func_malloc_get_state=yes
9457 else
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_cv_func_malloc_get_state=no
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465 conftest$ac_exeext conftest.$ac_ext
9466 fi
9467 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9468 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9469 if test $ac_cv_func_malloc_get_state = yes; then
9470 :
9471 else
9472 doug_lea_malloc=no
9473 fi
9474
9475 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9476 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9477 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9488 #define malloc_set_state innocuous_malloc_set_state
9489
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char malloc_set_state (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9494
9495 #ifdef __STDC__
9496 # include <limits.h>
9497 #else
9498 # include <assert.h>
9499 #endif
9500
9501 #undef malloc_set_state
9502
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 char malloc_set_state ();
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9514 choke me
9515 #endif
9516
9517 int
9518 main ()
9519 {
9520 return malloc_set_state ();
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_func_malloc_set_state=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_func_malloc_set_state=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 fi
9554 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9555 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9556 if test $ac_cv_func_malloc_set_state = yes; then
9557 :
9558 else
9559 doug_lea_malloc=no
9560 fi
9561
9562 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9563 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9564 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 extern void (* __after_morecore_hook)();
9574 int
9575 main ()
9576 {
9577 __after_morecore_hook = 0
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 emacs_cv_var___after_morecore_hook=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 emacs_cv_var___after_morecore_hook=no
9606 fi
9607
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9610 fi
9611 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9612 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9613 if test $emacs_cv_var___after_morecore_hook = no; then
9614 doug_lea_malloc=no
9615 fi
9616 if test "${system_malloc}" = "yes"; then
9617 GNU_MALLOC=no
9618 GNU_MALLOC_reason="
9619 (The GNU allocators don't work with this system configuration.)"
9620 fi
9621 if test "$doug_lea_malloc" = "yes" ; then
9622 if test "$GNU_MALLOC" = yes ; then
9623 GNU_MALLOC_reason="
9624 (Using Doug Lea's new malloc from the GNU C Library.)"
9625 fi
9626
9627 cat >>confdefs.h <<\_ACEOF
9628 #define DOUG_LEA_MALLOC 1
9629 _ACEOF
9630
9631 fi
9632
9633 if test x"${REL_ALLOC}" = x; then
9634 REL_ALLOC=${GNU_MALLOC}
9635 fi
9636
9637
9638
9639
9640 for ac_header in stdlib.h unistd.h
9641 do
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 fi
9649 ac_res=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9652 else
9653 # Is the header compilable?
9654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest.$ac_objext; then
9682 ac_header_compiler=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 ac_header_compiler=no
9688 fi
9689
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6; }
9693
9694 # Is the header present?
9695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9704 _ACEOF
9705 if { (ac_try="$ac_cpp conftest.$ac_ext"
9706 case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev/null && {
9718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 }; then
9721 ac_header_preproc=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_header_preproc=no
9727 fi
9728
9729 rm -f conftest.err conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9731 echo "${ECHO_T}$ac_header_preproc" >&6; }
9732
9733 # So? What about this header?
9734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9735 yes:no: )
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9740 ac_header_preproc=yes
9741 ;;
9742 no:yes:* )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9755
9756 ;;
9757 esac
9758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 eval "$as_ac_Header=\$ac_header_preproc"
9764 fi
9765 ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767 echo "${ECHO_T}$ac_res" >&6; }
9768
9769 fi
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 _ACEOF
9774
9775 fi
9776
9777 done
9778
9779
9780 for ac_func in getpagesize
9781 do
9782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define $ac_func innocuous_$ac_func
9797
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9802
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9808
9809 #undef $ac_func
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char $ac_func ();
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_$ac_func || defined __stub___$ac_func
9822 choke me
9823 #endif
9824
9825 int
9826 main ()
9827 {
9828 return $ac_func ();
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 eval "$as_ac_var=yes"
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 eval "$as_ac_var=no"
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9861 fi
9862 ac_res=`eval echo '${'$as_ac_var'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864 echo "${ECHO_T}$ac_res" >&6; }
9865 if test `eval echo '${'$as_ac_var'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9868 _ACEOF
9869
9870 fi
9871 done
9872
9873 { echo "$as_me:$LINENO: checking for working mmap" >&5
9874 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9875 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 if test "$cross_compiling" = yes; then
9879 ac_cv_func_mmap_fixed_mapped=no
9880 else
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 $ac_includes_default
9888 /* malloc might have been renamed as rpl_malloc. */
9889 #undef malloc
9890
9891 /* Thanks to Mike Haertel and Jim Avera for this test.
9892 Here is a matrix of mmap possibilities:
9893 mmap private not fixed
9894 mmap private fixed at somewhere currently unmapped
9895 mmap private fixed at somewhere already mapped
9896 mmap shared not fixed
9897 mmap shared fixed at somewhere currently unmapped
9898 mmap shared fixed at somewhere already mapped
9899 For private mappings, we should verify that changes cannot be read()
9900 back from the file, nor mmap's back from the file at a different
9901 address. (There have been systems where private was not correctly
9902 implemented like the infamous i386 svr4.0, and systems where the
9903 VM page cache was not coherent with the file system buffer cache
9904 like early versions of FreeBSD and possibly contemporary NetBSD.)
9905 For shared mappings, we should conversely verify that changes get
9906 propagated back to all the places they're supposed to be.
9907
9908 Grep wants private fixed already mapped.
9909 The main things grep needs to know about mmap are:
9910 * does it exist and is it safe to write into the mmap'd area
9911 * how to use it (BSD variants) */
9912
9913 #include <fcntl.h>
9914 #include <sys/mman.h>
9915
9916 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9917 char *malloc ();
9918 #endif
9919
9920 /* This mess was copied from the GNU getpagesize.h. */
9921 #ifndef HAVE_GETPAGESIZE
9922 /* Assume that all systems that can run configure have sys/param.h. */
9923 # ifndef HAVE_SYS_PARAM_H
9924 # define HAVE_SYS_PARAM_H 1
9925 # endif
9926
9927 # ifdef _SC_PAGESIZE
9928 # define getpagesize() sysconf(_SC_PAGESIZE)
9929 # else /* no _SC_PAGESIZE */
9930 # ifdef HAVE_SYS_PARAM_H
9931 # include <sys/param.h>
9932 # ifdef EXEC_PAGESIZE
9933 # define getpagesize() EXEC_PAGESIZE
9934 # else /* no EXEC_PAGESIZE */
9935 # ifdef NBPG
9936 # define getpagesize() NBPG * CLSIZE
9937 # ifndef CLSIZE
9938 # define CLSIZE 1
9939 # endif /* no CLSIZE */
9940 # else /* no NBPG */
9941 # ifdef NBPC
9942 # define getpagesize() NBPC
9943 # else /* no NBPC */
9944 # ifdef PAGESIZE
9945 # define getpagesize() PAGESIZE
9946 # endif /* PAGESIZE */
9947 # endif /* no NBPC */
9948 # endif /* no NBPG */
9949 # endif /* no EXEC_PAGESIZE */
9950 # else /* no HAVE_SYS_PARAM_H */
9951 # define getpagesize() 8192 /* punt totally */
9952 # endif /* no HAVE_SYS_PARAM_H */
9953 # endif /* no _SC_PAGESIZE */
9954
9955 #endif /* no HAVE_GETPAGESIZE */
9956
9957 int
9958 main ()
9959 {
9960 char *data, *data2, *data3;
9961 int i, pagesize;
9962 int fd;
9963
9964 pagesize = getpagesize ();
9965
9966 /* First, make a file with some known garbage in it. */
9967 data = (char *) malloc (pagesize);
9968 if (!data)
9969 return 1;
9970 for (i = 0; i < pagesize; ++i)
9971 *(data + i) = rand ();
9972 umask (0);
9973 fd = creat ("conftest.mmap", 0600);
9974 if (fd < 0)
9975 return 1;
9976 if (write (fd, data, pagesize) != pagesize)
9977 return 1;
9978 close (fd);
9979
9980 /* Next, try to mmap the file at a fixed address which already has
9981 something else allocated at it. If we can, also make sure that
9982 we see the same garbage. */
9983 fd = open ("conftest.mmap", O_RDWR);
9984 if (fd < 0)
9985 return 1;
9986 data2 = (char *) malloc (2 * pagesize);
9987 if (!data2)
9988 return 1;
9989 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9990 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9991 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9992 return 1;
9993 for (i = 0; i < pagesize; ++i)
9994 if (*(data + i) != *(data2 + i))
9995 return 1;
9996
9997 /* Finally, make sure that changes to the mapped area do not
9998 percolate back to the file as seen by read(). (This is a bug on
9999 some variants of i386 svr4.0.) */
10000 for (i = 0; i < pagesize; ++i)
10001 *(data2 + i) = *(data2 + i) + 1;
10002 data3 = (char *) malloc (pagesize);
10003 if (!data3)
10004 return 1;
10005 if (read (fd, data3, pagesize) != pagesize)
10006 return 1;
10007 for (i = 0; i < pagesize; ++i)
10008 if (*(data + i) != *(data3 + i))
10009 return 1;
10010 close (fd);
10011 return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_func_mmap_fixed_mapped=yes
10035 else
10036 echo "$as_me: program exited with status $ac_status" >&5
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ( exit $ac_status )
10041 ac_cv_func_mmap_fixed_mapped=no
10042 fi
10043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10044 fi
10045
10046
10047 fi
10048 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10049 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10051
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_MMAP 1
10054 _ACEOF
10055
10056 fi
10057 rm -f conftest.mmap
10058
10059 if test $use_mmap_for_buffers = yes; then
10060 REL_ALLOC=no
10061 fi
10062
10063 LIBS="$libsrc_libs $LIBS"
10064
10065
10066 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10067 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldnet $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dnet_ntoa ();
10087 int
10088 main ()
10089 {
10090 return dnet_ntoa ();
10091 ;
10092 return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && {
10109 test -z "$ac_c_werror_flag" ||
10110 test ! -s conftest.err
10111 } && test -s conftest$ac_exeext &&
10112 $as_test_x conftest$ac_exeext; then
10113 ac_cv_lib_dnet_dnet_ntoa=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_cv_lib_dnet_dnet_ntoa=no
10119 fi
10120
10121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LIBS=$ac_check_lib_save_LIBS
10124 fi
10125 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10126 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10127 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_LIBDNET 1
10130 _ACEOF
10131
10132 LIBS="-ldnet $LIBS"
10133
10134 fi
10135
10136
10137 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10138 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10139 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-lXbsd $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150
10151
10152 int
10153 main ()
10154 {
10155 return main ();
10156 ;
10157 return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext &&
10177 $as_test_x conftest$ac_exeext; then
10178 ac_cv_lib_Xbsd_main=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_lib_Xbsd_main=no
10184 fi
10185
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10191 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10192 if test $ac_cv_lib_Xbsd_main = yes; then
10193 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10194 fi
10195
10196
10197
10198 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10199 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lpthreads $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char cma_open ();
10219 int
10220 main ()
10221 {
10222 return cma_open ();
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 ac_cv_lib_pthreads_cma_open=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lib_pthreads_cma_open=no
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10258 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10259 if test $ac_cv_lib_pthreads_cma_open = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_LIBPTHREADS 1
10262 _ACEOF
10263
10264 LIBS="-lpthreads $LIBS"
10265
10266 fi
10267
10268
10269 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10270 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10271 if test -d /usr/X386/include; then
10272 HAVE_XFREE386=yes
10273 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10274 else
10275 HAVE_XFREE386=no
10276 fi
10277 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10278 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10279
10280
10281 case ${host_os} in
10282 aix*)
10283 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10284 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10285 if test "${gdb_cv_bigtoc+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288
10289 case $GCC in
10290 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10291 *) gdb_cv_bigtoc=-bbigtoc ;;
10292 esac
10293
10294 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301
10302 int
10303 main ()
10304 {
10305 int i;
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10328 :
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 gdb_cv_bigtoc=
10334 fi
10335
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10338
10339 fi
10340 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10341 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10342 ;;
10343 esac
10344
10345 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10346 # used for the tests that follow. We set them back to REAL_CFLAGS and
10347 # REAL_CPPFLAGS later on.
10348
10349 REAL_CPPFLAGS="$CPPFLAGS"
10350
10351 if test "${HAVE_X11}" = "yes"; then
10352 DEFS="$C_SWITCH_X_SITE $DEFS"
10353 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10354 LIBS="$LIBX $LIBS"
10355 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10356 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10357
10358 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10359 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10360 # but it's more convenient here to set LD_RUN_PATH
10361 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10362 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10363 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10364 export LD_RUN_PATH
10365 fi
10366
10367 if test "${opsys}" = "gnu-linux"; then
10368 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10369 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376
10377 int
10378 main ()
10379 {
10380 XOpenDisplay ("foo");
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 xlinux_first_failure=no
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 xlinux_first_failure=yes
10409 fi
10410
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test "${xlinux_first_failure}" = "yes"; then
10414 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10415 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10416 OLD_CPPFLAGS="$CPPFLAGS"
10417 OLD_LIBS="$LIBS"
10418 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10419 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10420 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10421 LIBS="$LIBS -b i486-linuxaout"
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428
10429 int
10430 main ()
10431 {
10432 XOpenDisplay ("foo");
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10455 xlinux_second_failure=no
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 xlinux_second_failure=yes
10461 fi
10462
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test "${xlinux_second_failure}" = "yes"; then
10466 # If we get the same failure with -b, there is no use adding -b.
10467 # So take it out. This plays safe.
10468 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10469 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10470 CPPFLAGS="$OLD_CPPFLAGS"
10471 LIBS="$OLD_LIBS"
10472 { echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6; }
10474 else
10475 { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10477 fi
10478 else
10479 { echo "$as_me:$LINENO: result: no" >&5
10480 echo "${ECHO_T}no" >&6; }
10481 fi
10482 fi
10483
10484 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10485 # header files included from there.
10486 { echo "$as_me:$LINENO: checking for Xkb" >&5
10487 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <X11/Xlib.h>
10495 #include <X11/XKBlib.h>
10496 int
10497 main ()
10498 {
10499 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10500 ;
10501 return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest$ac_exeext &&
10521 $as_test_x conftest$ac_exeext; then
10522 emacs_xkb=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 emacs_xkb=no
10528 fi
10529
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10533 echo "${ECHO_T}$emacs_xkb" >&6; }
10534 if test $emacs_xkb = yes; then
10535
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_XKBGETKEYBOARD 1
10538 _ACEOF
10539
10540 fi
10541
10542
10543
10544
10545
10546 for ac_func in XrmSetDatabase XScreenResourceString \
10547 XScreenNumberOfScreen XSetWMProtocols
10548 do
10549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10563 #define $ac_func innocuous_$ac_func
10564
10565 /* System header to define __stub macros and hopefully few prototypes,
10566 which can conflict with char $ac_func (); below.
10567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10568 <limits.h> exists even on freestanding compilers. */
10569
10570 #ifdef __STDC__
10571 # include <limits.h>
10572 #else
10573 # include <assert.h>
10574 #endif
10575
10576 #undef $ac_func
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char $ac_func ();
10585 /* The GNU C library defines this for functions which it implements
10586 to always fail with ENOSYS. Some functions are actually named
10587 something starting with __ and the normal name is an alias. */
10588 #if defined __stub_$ac_func || defined __stub___$ac_func
10589 choke me
10590 #endif
10591
10592 int
10593 main ()
10594 {
10595 return $ac_func ();
10596 ;
10597 return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext &&
10617 $as_test_x conftest$ac_exeext; then
10618 eval "$as_ac_var=yes"
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 eval "$as_ac_var=no"
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 fi
10629 ac_res=`eval echo '${'$as_ac_var'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632 if test `eval echo '${'$as_ac_var'}'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10635 _ACEOF
10636
10637 fi
10638 done
10639
10640 fi
10641
10642 if test "${window_system}" = "x11"; then
10643 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10644 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10645 if test "${emacs_cv_x11_version_6+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10655 int
10656 main ()
10657 {
10658 #if XlibSpecificationRelease < 6
10659 fail;
10660 #endif
10661
10662 ;
10663 return 0;
10664 }
10665 _ACEOF
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext &&
10683 $as_test_x conftest$ac_exeext; then
10684 emacs_cv_x11_version_6=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 emacs_cv_x11_version_6=no
10690 fi
10691
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10694 fi
10695
10696 if test $emacs_cv_x11_version_6 = yes; then
10697 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10698 echo "${ECHO_T}6 or newer" >&6; }
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_X11R6 1
10702 _ACEOF
10703
10704 else
10705 { echo "$as_me:$LINENO: result: before 6" >&5
10706 echo "${ECHO_T}before 6" >&6; }
10707 fi
10708 fi
10709
10710
10711 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10712 HAVE_RSVG=no
10713 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10714 if test "${with_rsvg}" != "no"; then
10715 RSVG_REQUIRED=2.0.0
10716 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10717
10718
10719 succeeded=no
10720
10721 # Extract the first word of "pkg-config", so it can be a program name with args.
10722 set dummy pkg-config; ac_word=$2
10723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 case $PKG_CONFIG in
10729 [\\/]* | ?:[\\/]*)
10730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10731 ;;
10732 *)
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10735 do
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10743 fi
10744 done
10745 done
10746 IFS=$as_save_IFS
10747
10748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10749 ;;
10750 esac
10751 fi
10752 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10753 if test -n "$PKG_CONFIG"; then
10754 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10755 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10756 else
10757 { echo "$as_me:$LINENO: result: no" >&5
10758 echo "${ECHO_T}no" >&6; }
10759 fi
10760
10761
10762
10763 if test "$PKG_CONFIG" = "no" ; then
10764 :
10765 else
10766 PKG_CONFIG_MIN_VERSION=0.9.0
10767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10768 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10769 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10770
10771 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10772 { echo "$as_me:$LINENO: result: yes" >&5
10773 echo "${ECHO_T}yes" >&6; }
10774 succeeded=yes
10775
10776 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10777 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10778 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10779 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10780 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10781
10782 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10783 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10784 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10785 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10786 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10787 else
10788 { echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6; }
10790 RSVG_CFLAGS=""
10791 RSVG_LIBS=""
10792 ## If we have a custom action on failure, don't print errors, but
10793 ## do set a variable so people can do so.
10794 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10795
10796 fi
10797
10798
10799
10800 else
10801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10803 fi
10804 fi
10805
10806 if test $succeeded = yes; then
10807 :
10808 else
10809 :
10810 fi
10811
10812
10813
10814
10815 if test ".${RSVG_CFLAGS}" != "."; then
10816 HAVE_RSVG=yes
10817
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_RSVG 1
10820 _ACEOF
10821
10822 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10823 LIBS="$RSVG_LIBS $LIBS"
10824 fi
10825 fi
10826 fi
10827
10828
10829 HAVE_GTK=no
10830 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10831 USE_X_TOOLKIT=none
10832 fi
10833 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10834 test "$USE_X_TOOLKIT" = "maybe"; then
10835 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10836 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10837 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10838 { (exit 1); exit 1; }; };
10839 fi
10840 GLIB_REQUIRED=2.6
10841 GTK_REQUIRED=2.6
10842 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10843
10844
10845 succeeded=no
10846
10847 # Extract the first word of "pkg-config", so it can be a program name with args.
10848 set dummy pkg-config; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 case $PKG_CONFIG in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10857 ;;
10858 *)
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870 done
10871 done
10872 IFS=$as_save_IFS
10873
10874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10875 ;;
10876 esac
10877 fi
10878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10879 if test -n "$PKG_CONFIG"; then
10880 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10881 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10882 else
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10885 fi
10886
10887
10888
10889 if test "$PKG_CONFIG" = "no" ; then
10890 pkg_check_gtk=no
10891 else
10892 PKG_CONFIG_MIN_VERSION=0.9.0
10893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10894 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10895 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10896
10897 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10898 { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10900 succeeded=yes
10901
10902 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10903 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10904 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10906 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10907
10908 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10909 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10910 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10911 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10912 echo "${ECHO_T}$GTK_LIBS" >&6; }
10913 else
10914 { echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6; }
10916 GTK_CFLAGS=""
10917 GTK_LIBS=""
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so.
10920 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10921
10922 fi
10923
10924
10925
10926 else
10927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10929 fi
10930 fi
10931
10932 if test $succeeded = yes; then
10933 pkg_check_gtk=yes
10934 else
10935 pkg_check_gtk=no
10936 fi
10937
10938 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10939 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10940 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10941 { (exit 1); exit 1; }; }
10942 fi
10943 fi
10944
10945
10946 if test x"$pkg_check_gtk" = xyes; then
10947
10948
10949
10950 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10951 CFLAGS="$CFLAGS $GTK_CFLAGS"
10952 LIBS="$GTK_LIBS $LIBS"
10953 GTK_COMPILES=no
10954
10955 for ac_func in gtk_main
10956 do
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h. */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10971 #define $ac_func innocuous_$ac_func
10972
10973 /* System header to define __stub macros and hopefully few prototypes,
10974 which can conflict with char $ac_func (); below.
10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 <limits.h> exists even on freestanding compilers. */
10977
10978 #ifdef __STDC__
10979 # include <limits.h>
10980 #else
10981 # include <assert.h>
10982 #endif
10983
10984 #undef $ac_func
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char $ac_func ();
10993 /* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996 #if defined __stub_$ac_func || defined __stub___$ac_func
10997 choke me
10998 #endif
10999
11000 int
11001 main ()
11002 {
11003 return $ac_func ();
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest$ac_exeext &&
11025 $as_test_x conftest$ac_exeext; then
11026 eval "$as_ac_var=yes"
11027 else
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 eval "$as_ac_var=no"
11032 fi
11033
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035 conftest$ac_exeext conftest.$ac_ext
11036 fi
11037 ac_res=`eval echo '${'$as_ac_var'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11040 if test `eval echo '${'$as_ac_var'}'` = yes; then
11041 cat >>confdefs.h <<_ACEOF
11042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11043 _ACEOF
11044 GTK_COMPILES=yes
11045 fi
11046 done
11047
11048 if test "${GTK_COMPILES}" != "yes"; then
11049 if test "$USE_X_TOOLKIT" != "maybe"; then
11050 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11051 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11052 { (exit 1); exit 1; }; };
11053 fi
11054 else
11055 HAVE_GTK=yes
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_GTK 1
11059 _ACEOF
11060
11061 USE_X_TOOLKIT=none
11062 fi
11063
11064 fi
11065
11066
11067 if test "${HAVE_GTK}" = "yes"; then
11068
11069 if test "$with_toolkit_scroll_bars" != no; then
11070 with_toolkit_scroll_bars=yes
11071 fi
11072
11073 HAVE_GTK_MULTIDISPLAY=no
11074
11075 for ac_func in gdk_display_open
11076 do
11077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091 #define $ac_func innocuous_$ac_func
11092
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11097
11098 #ifdef __STDC__
11099 # include <limits.h>
11100 #else
11101 # include <assert.h>
11102 #endif
11103
11104 #undef $ac_func
11105
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char $ac_func ();
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined __stub_$ac_func || defined __stub___$ac_func
11117 choke me
11118 #endif
11119
11120 int
11121 main ()
11122 {
11123 return $ac_func ();
11124 ;
11125 return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest$ac_exeext &&
11145 $as_test_x conftest$ac_exeext; then
11146 eval "$as_ac_var=yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 eval "$as_ac_var=no"
11152 fi
11153
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11156 fi
11157 ac_res=`eval echo '${'$as_ac_var'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_var'}'` = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11163 _ACEOF
11164 HAVE_GTK_MULTIDISPLAY=yes
11165 fi
11166 done
11167
11168 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_GTK_MULTIDISPLAY 1
11172 _ACEOF
11173
11174 fi
11175
11176 HAVE_GTK_FILE_SELECTION=no
11177
11178 for ac_func in gtk_file_selection_new
11179 do
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11195
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11200
11201 #ifdef __STDC__
11202 # include <limits.h>
11203 #else
11204 # include <assert.h>
11205 #endif
11206
11207 #undef $ac_func
11208
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11220 choke me
11221 #endif
11222
11223 int
11224 main ()
11225 {
11226 return $ac_func ();
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest$ac_exeext &&
11248 $as_test_x conftest$ac_exeext; then
11249 eval "$as_ac_var=yes"
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 eval "$as_ac_var=no"
11255 fi
11256
11257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 conftest$ac_exeext conftest.$ac_ext
11259 fi
11260 ac_res=`eval echo '${'$as_ac_var'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 _ACEOF
11267 HAVE_GTK_FILE_SELECTION=yes
11268 fi
11269 done
11270
11271
11272 HAVE_GTK_FILE_CHOOSER=no
11273
11274 for ac_func in gtk_file_chooser_dialog_new
11275 do
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11290 #define $ac_func innocuous_$ac_func
11291
11292 /* System header to define __stub macros and hopefully few prototypes,
11293 which can conflict with char $ac_func (); below.
11294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 <limits.h> exists even on freestanding compilers. */
11296
11297 #ifdef __STDC__
11298 # include <limits.h>
11299 #else
11300 # include <assert.h>
11301 #endif
11302
11303 #undef $ac_func
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char $ac_func ();
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined __stub_$ac_func || defined __stub___$ac_func
11316 choke me
11317 #endif
11318
11319 int
11320 main ()
11321 {
11322 return $ac_func ();
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
11345 eval "$as_ac_var=yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 eval "$as_ac_var=no"
11351 fi
11352
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11355 fi
11356 ac_res=`eval echo '${'$as_ac_var'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362 _ACEOF
11363 HAVE_GTK_FILE_CHOOSER=yes
11364 fi
11365 done
11366
11367
11368 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11369 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11370
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_GTK_FILE_BOTH 1
11373 _ACEOF
11374
11375 fi
11376
11377 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11378 HAVE_GTK_AND_PTHREAD=no
11379
11380 for ac_header in pthread.h
11381 do
11382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 fi
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392 else
11393 # Is the header compilable?
11394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 $ac_includes_default
11403 #include <$ac_header>
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (ac_try="$ac_compile"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_compile") 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest.$ac_objext; then
11422 ac_header_compiler=yes
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 ac_header_compiler=no
11428 fi
11429
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11432 echo "${ECHO_T}$ac_header_compiler" >&6; }
11433
11434 # Is the header present?
11435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <$ac_header>
11444 _ACEOF
11445 if { (ac_try="$ac_cpp conftest.$ac_ext"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev/null && {
11458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 }; then
11461 ac_header_preproc=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466 ac_header_preproc=no
11467 fi
11468
11469 rm -f conftest.err conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6; }
11472
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11481 ;;
11482 no:yes:* )
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11495
11496 ;;
11497 esac
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 eval "$as_ac_Header=\$ac_header_preproc"
11504 fi
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11508
11509 fi
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 _ACEOF
11514
11515 fi
11516
11517 done
11518
11519 if test "$ac_cv_header_pthread_h"; then
11520 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11521 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11522 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lpthread $LIBS"
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char pthread_self ();
11541 int
11542 main ()
11543 {
11544 return pthread_self ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_pthread_pthread_self=yes
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_cv_lib_pthread_pthread_self=no
11573 fi
11574
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11578 fi
11579 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11580 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11581 if test $ac_cv_lib_pthread_pthread_self = yes; then
11582 HAVE_GTK_AND_PTHREAD=yes
11583 fi
11584
11585 fi
11586 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11587 case "${canonical}" in
11588 *-hpux*) ;;
11589 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11590 esac
11591
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_GTK_AND_PTHREAD 1
11594 _ACEOF
11595
11596 fi
11597 fi
11598 fi
11599
11600 HAVE_DBUS=no
11601 if test "${with_dbus}" = "yes"; then
11602
11603 succeeded=no
11604
11605 # Extract the first word of "pkg-config", so it can be a program name with args.
11606 set dummy pkg-config; ac_word=$2
11607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 case $PKG_CONFIG in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11615 ;;
11616 *)
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628 done
11629 done
11630 IFS=$as_save_IFS
11631
11632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11633 ;;
11634 esac
11635 fi
11636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11637 if test -n "$PKG_CONFIG"; then
11638 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11639 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11640 else
11641 { echo "$as_me:$LINENO: result: no" >&5
11642 echo "${ECHO_T}no" >&6; }
11643 fi
11644
11645
11646
11647 if test "$PKG_CONFIG" = "no" ; then
11648 HAVE_DBUS=no
11649 else
11650 PKG_CONFIG_MIN_VERSION=0.9.0
11651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11652 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11653 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11654
11655 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11656 { echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6; }
11658 succeeded=yes
11659
11660 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11661 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11662 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11663 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11664 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11665
11666 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11667 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11668 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11669 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11670 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11671 else
11672 { echo "$as_me:$LINENO: result: no" >&5
11673 echo "${ECHO_T}no" >&6; }
11674 DBUS_CFLAGS=""
11675 DBUS_LIBS=""
11676 ## If we have a custom action on failure, don't print errors, but
11677 ## do set a variable so people can do so.
11678 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11679
11680 fi
11681
11682
11683
11684 else
11685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11687 fi
11688 fi
11689
11690 if test $succeeded = yes; then
11691 HAVE_DBUS=yes
11692 else
11693 HAVE_DBUS=no
11694 fi
11695
11696 if test "$HAVE_DBUS" = yes; then
11697
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_DBUS 1
11700 _ACEOF
11701
11702 fi
11703 fi
11704
11705 HAVE_XAW3D=no
11706 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11707 if test "$with_xaw3d" != no; then
11708 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11709 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11710 if test "${emacs_cv_xaw3d+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719
11720 #include <X11/Intrinsic.h>
11721 #include <X11/Xaw3d/Simple.h>
11722 int
11723 main ()
11724 {
11725
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && {
11744 test -z "$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11746 } && test -s conftest$ac_exeext &&
11747 $as_test_x conftest$ac_exeext; then
11748 emacs_cv_xaw3d=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 emacs_cv_xaw3d=no
11754 fi
11755
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11758 fi
11759
11760 else
11761 emacs_cv_xaw3d=no
11762 fi
11763 if test $emacs_cv_xaw3d = yes; then
11764 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11765 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11766 USE_X_TOOLKIT=LUCID
11767 HAVE_XAW3D=yes
11768
11769 cat >>confdefs.h <<\_ACEOF
11770 #define HAVE_XAW3D 1
11771 _ACEOF
11772
11773 else
11774 { echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6; }
11776 { echo "$as_me:$LINENO: checking for libXaw" >&5
11777 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11778 if test "${emacs_cv_xaw+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787
11788 #include <X11/Intrinsic.h>
11789 #include <X11/Xaw/Simple.h>
11790 int
11791 main ()
11792 {
11793
11794 ;
11795 return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext &&
11815 $as_test_x conftest$ac_exeext; then
11816 emacs_cv_xaw=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 emacs_cv_xaw=no
11822 fi
11823
11824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11825 conftest$ac_exeext conftest.$ac_ext
11826 fi
11827
11828 if test $emacs_cv_xaw = yes; then
11829 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11830 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11831 USE_X_TOOLKIT=LUCID
11832 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11833 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11834 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11835 { (exit 1); exit 1; }; }
11836 else
11837 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11838 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11839 USE_X_TOOLKIT=none
11840 fi
11841 fi
11842 fi
11843
11844 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11845
11846 if test "${USE_X_TOOLKIT}" != "none"; then
11847 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11848 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11849 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <X11/Intrinsic.h>
11859 int
11860 main ()
11861 {
11862 #if XtSpecificationRelease < 6
11863 fail;
11864 #endif
11865
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_link") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest$ac_exeext &&
11887 $as_test_x conftest$ac_exeext; then
11888 emacs_cv_x11_toolkit_version_6=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 emacs_cv_x11_toolkit_version_6=no
11894 fi
11895
11896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11897 conftest$ac_exeext conftest.$ac_ext
11898 fi
11899
11900 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11901 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11902 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11903 echo "${ECHO_T}6 or newer" >&6; }
11904
11905 cat >>confdefs.h <<\_ACEOF
11906 #define HAVE_X11XTR6 1
11907 _ACEOF
11908
11909 else
11910 { echo "$as_me:$LINENO: result: before 6" >&5
11911 echo "${ECHO_T}before 6" >&6; }
11912 fi
11913
11914 OLDLIBS="$LIBS"
11915 if test x$HAVE_X11XTR6 = xyes; then
11916 LIBS="-lXt -lSM -lICE $LIBS"
11917 else
11918 LIBS="-lXt $LIBS"
11919 fi
11920
11921 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11922 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11923 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-lXmu $LIBS"
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char XmuConvertStandardSelection ();
11942 int
11943 main ()
11944 {
11945 return XmuConvertStandardSelection ();
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest$ac_exeext &&
11967 $as_test_x conftest$ac_exeext; then
11968 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11981 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11982 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define HAVE_LIBXMU 1
11985 _ACEOF
11986
11987 LIBS="-lXmu $LIBS"
11988
11989 fi
11990
11991 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11992 fi
11993
11994 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${USE_X_TOOLKIT}" != "none"; then
11997
11998 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11999 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12000 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lXext $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char XShapeQueryExtension ();
12019 int
12020 main ()
12021 {
12022 return XShapeQueryExtension ();
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12045 ac_cv_lib_Xext_XShapeQueryExtension=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_lib_Xext_XShapeQueryExtension=no
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12058 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12059 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBXEXT 1
12062 _ACEOF
12063
12064 LIBS="-lXext $LIBS"
12065
12066 fi
12067
12068 fi
12069 fi
12070
12071 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12072 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12073 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12074 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <Xm/Xm.h>
12084 int
12085 main ()
12086 {
12087 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12088 int x = 5;
12089 #else
12090 Motif version prior to 2.1.
12091 #endif
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext
12097 if { (ac_try="$ac_compile"
12098 case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_compile") 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && {
12110 test -z "$ac_c_werror_flag" ||
12111 test ! -s conftest.err
12112 } && test -s conftest.$ac_objext; then
12113 emacs_cv_motif_version_2_1=yes
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 emacs_cv_motif_version_2_1=no
12119 fi
12120
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12124 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12125 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12126 if test $emacs_cv_motif_version_2_1 = yes; then
12127 HAVE_LIBXP=no
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_MOTIF_2_1 1
12131 _ACEOF
12132
12133 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12134 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12135 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138 ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-lXp $LIBS"
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char XpCreateContext ();
12154 int
12155 main ()
12156 {
12157 return XpCreateContext ();
12158 ;
12159 return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest$ac_exeext &&
12179 $as_test_x conftest$ac_exeext; then
12180 ac_cv_lib_Xp_XpCreateContext=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_cv_lib_Xp_XpCreateContext=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12193 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12194 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12195 HAVE_LIBXP=yes
12196 fi
12197
12198 if test ${HAVE_LIBXP} = yes; then
12199
12200 cat >>confdefs.h <<\_ACEOF
12201 #define HAVE_LIBXP 1
12202 _ACEOF
12203
12204 fi
12205 else
12206 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12207 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12208 if test "${emacs_cv_lesstif+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 # We put this in CFLAGS temporarily to precede other -I options
12212 # that might be in CFLAGS temporarily.
12213 # We put this in CPPFLAGS where it precedes the other -I options.
12214 OLD_CPPFLAGS=$CPPFLAGS
12215 OLD_CFLAGS=$CFLAGS
12216 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12217 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h. */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12225 int
12226 main ()
12227 {
12228 int x = 5;
12229 ;
12230 return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 emacs_cv_lesstif=yes
12251 else
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 emacs_cv_lesstif=no
12256 fi
12257
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 fi
12260 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12261 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12262 if test $emacs_cv_lesstif = yes; then
12263 # Make sure this -I option remains in CPPFLAGS after it is set
12264 # back to REAL_CPPFLAGS.
12265 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12266 # have those other -I options anyway. Ultimately, having this
12267 # directory ultimately in CPPFLAGS will be enough.
12268 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12269 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12270 else
12271 CFLAGS=$OLD_CFLAGS
12272 CPPFLAGS=$OLD_CPPFLAGS
12273 fi
12274 fi
12275 fi
12276
12277
12278
12279 USE_TOOLKIT_SCROLL_BARS=no
12280 if test "${with_toolkit_scroll_bars}" != "no"; then
12281 if test "${USE_X_TOOLKIT}" != "none"; then
12282 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12283 cat >>confdefs.h <<\_ACEOF
12284 #define USE_TOOLKIT_SCROLL_BARS 1
12285 _ACEOF
12286
12287 HAVE_XAW3D=no
12288 USE_TOOLKIT_SCROLL_BARS=yes
12289 elif test "${HAVE_XAW3D}" = "yes"; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define USE_TOOLKIT_SCROLL_BARS 1
12292 _ACEOF
12293
12294 USE_TOOLKIT_SCROLL_BARS=yes
12295 fi
12296 elif test "${HAVE_GTK}" = "yes"; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define USE_TOOLKIT_SCROLL_BARS 1
12299 _ACEOF
12300
12301 USE_TOOLKIT_SCROLL_BARS=yes
12302 elif test "${HAVE_CARBON}" = "yes"; then
12303 cat >>confdefs.h <<\_ACEOF
12304 #define USE_TOOLKIT_SCROLL_BARS 1
12305 _ACEOF
12306
12307 USE_TOOLKIT_SCROLL_BARS=yes
12308 fi
12309 fi
12310
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317
12318 #include <X11/Xlib.h>
12319 #include <X11/Xresource.h>
12320 int
12321 main ()
12322 {
12323 XIMProc callback;
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext
12329 if { (ac_try="$ac_compile"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_compile") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest.$ac_objext; then
12345 HAVE_XIM=yes
12346
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_XIM 1
12349 _ACEOF
12350
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 HAVE_XIM=no
12356 fi
12357
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359
12360
12361 if test "${with_xim}" != "no"; then
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define USE_XIM 1
12365 _ACEOF
12366
12367 fi
12368
12369
12370 if test "${HAVE_XIM}" != "no"; then
12371 late_CFLAGS=$CFLAGS
12372 if test "$GCC" = yes; then
12373 CFLAGS="$CFLAGS --pedantic-errors"
12374 fi
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381
12382 #include <X11/Xlib.h>
12383 #include <X11/Xresource.h>
12384 int
12385 main ()
12386 {
12387 Display *display;
12388 XrmDatabase db;
12389 char *res_name;
12390 char *res_class;
12391 XIMProc callback;
12392 XPointer *client_data;
12393 #ifndef __GNUC__
12394 /* If we're not using GCC, it's probably not XFree86, and this is
12395 probably right, but we can't use something like --pedantic-errors. */
12396 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12397 char*, XIMProc, XPointer*);
12398 #endif
12399 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12400 client_data);
12401 ;
12402 return 0;
12403 }
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
12422 emacs_cv_arg6_star=yes
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427
12428 fi
12429
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431
12432 if test "$emacs_cv_arg6_star" = yes; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12435 _ACEOF
12436
12437 else
12438 cat >>confdefs.h <<\_ACEOF
12439 #define XRegisterIMInstantiateCallback_arg6 XPointer
12440 _ACEOF
12441
12442 fi
12443 CFLAGS=$late_CFLAGS
12444 fi
12445
12446 #### For font-backend
12447 if test "${USE_FONT_BACKEND}" = "yes"; then
12448
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define USE_FONT_BACKEND 1
12452 _ACEOF
12453
12454
12455 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12456 HAVE_XFT=maybe
12457 if test "${HAVE_X11}" = "yes"; then
12458 if test "x${with_freetype}" = "xno"; then
12459 with_xft="no";
12460 fi
12461 if test "x${with_xft}" != "xno"; then
12462
12463 if test "X${with_pkg_config_prog}" != X; then
12464 PKG_CONFIG="${with_pkg_config_prog}"
12465 fi
12466
12467
12468 succeeded=no
12469
12470 # Extract the first word of "pkg-config", so it can be a program name with args.
12471 set dummy pkg-config; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 case $PKG_CONFIG in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12480 ;;
12481 *)
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493 done
12494 done
12495 IFS=$as_save_IFS
12496
12497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12498 ;;
12499 esac
12500 fi
12501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12502 if test -n "$PKG_CONFIG"; then
12503 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12504 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12505 else
12506 { echo "$as_me:$LINENO: result: no" >&5
12507 echo "${ECHO_T}no" >&6; }
12508 fi
12509
12510
12511
12512 if test "$PKG_CONFIG" = "no" ; then
12513 HAVE_XFT=no
12514 else
12515 PKG_CONFIG_MIN_VERSION=0.9.0
12516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12517 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12518 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12519
12520 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12521 { echo "$as_me:$LINENO: result: yes" >&5
12522 echo "${ECHO_T}yes" >&6; }
12523 succeeded=yes
12524
12525 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12526 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12527 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12528 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12529 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12530
12531 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12532 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12533 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12534 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12535 echo "${ECHO_T}$XFT_LIBS" >&6; }
12536 else
12537 { echo "$as_me:$LINENO: result: no" >&5
12538 echo "${ECHO_T}no" >&6; }
12539 XFT_CFLAGS=""
12540 XFT_LIBS=""
12541 ## If we have a custom action on failure, don't print errors, but
12542 ## do set a variable so people can do so.
12543 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12544
12545 fi
12546
12547
12548
12549 else
12550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12552 fi
12553 fi
12554
12555 if test $succeeded = yes; then
12556 :
12557 else
12558 HAVE_XFT=no
12559 fi
12560
12561 if test "$HAVE_XFT" != no; then
12562 OLD_CPPFLAGS="$CPPFLAGS"
12563 OLD_CFLAGS="$CFLAGS"
12564 OLD_LIBS="$LIBS"
12565 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12566 CFLAGS="$CFLAGS $XFT_CFLAGS"
12567 LIBS="$XFT_LIBS $LIBS"
12568 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12569 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12570 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12571 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12575 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12576 else
12577 # Is the header compilable?
12578 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12579 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 #include <X11/Xft/Xft.h>
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (ac_try="$ac_compile"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_header_compiler=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_header_compiler=no
12612 fi
12613
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12616 echo "${ECHO_T}$ac_header_compiler" >&6; }
12617
12618 # Is the header present?
12619 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12620 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 #include <X11/Xft/Xft.h>
12628 _ACEOF
12629 if { (ac_try="$ac_cpp conftest.$ac_ext"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } >/dev/null && {
12642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 }; then
12645 ac_header_preproc=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650 ac_header_preproc=no
12651 fi
12652
12653 rm -f conftest.err conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12655 echo "${ECHO_T}$ac_header_preproc" >&6; }
12656
12657 # So? What about this header?
12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12659 yes:no: )
12660 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12661 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12663 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc=yes
12665 ;;
12666 no:yes:* )
12667 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12668 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12670 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12672 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12674 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12679
12680 ;;
12681 esac
12682 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12683 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12684 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12688 fi
12689 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12690 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12691
12692 fi
12693 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12694 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12695 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12696 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lXft $XFT_LIBS $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char XftFontOpen ();
12715 int
12716 main ()
12717 {
12718 return XftFontOpen ();
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12741 ac_cv_lib_Xft_XftFontOpen=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 ac_cv_lib_Xft_XftFontOpen=no
12747 fi
12748
12749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12752 fi
12753 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12754 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12755 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12756 HAVE_XFT=yes
12757 fi
12758
12759 fi
12760
12761
12762
12763 if test "${HAVE_XFT}" = "yes"; then
12764
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_XFT 1
12767 _ACEOF
12768
12769
12770 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12771 else
12772 CPPFLAGS="$OLD_CPPFLAGS"
12773 CFLAGS="$OLD_CFLAGS"
12774 LIBS="$OLD_LIBS"
12775 fi
12776 fi
12777 fi
12778 fi
12779 if test "$HAVE_XFT" != "yes"; then
12780 HAVE_XFT=no
12781 fi
12782
12783
12784 HAVE_FREETYPE=no
12785 ### Use -lfreetype if available, unless `--with-freetype=no'.
12786 if test "${HAVE_XFT}" = "yes"; then
12787 HAVE_FREETYPE=yes
12788 elif test "x${with_freetype}" != "xno"; then
12789 if test "X${with_pkg_config_prog}" != X; then
12790 PKG_CONFIG="${with_pkg_config_prog}"
12791 fi
12792
12793
12794 succeeded=no
12795
12796 # Extract the first word of "pkg-config", so it can be a program name with args.
12797 set dummy pkg-config; ac_word=$2
12798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 case $PKG_CONFIG in
12804 [\\/]* | ?:[\\/]*)
12805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12806 ;;
12807 *)
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12810 do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819 done
12820 done
12821 IFS=$as_save_IFS
12822
12823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12824 ;;
12825 esac
12826 fi
12827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12828 if test -n "$PKG_CONFIG"; then
12829 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12830 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12831 else
12832 { echo "$as_me:$LINENO: result: no" >&5
12833 echo "${ECHO_T}no" >&6; }
12834 fi
12835
12836
12837
12838 if test "$PKG_CONFIG" = "no" ; then
12839 HAVE_FREETYPE=no
12840 else
12841 PKG_CONFIG_MIN_VERSION=0.9.0
12842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12843 { echo "$as_me:$LINENO: checking for freetype2" >&5
12844 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12845
12846 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12847 { echo "$as_me:$LINENO: result: yes" >&5
12848 echo "${ECHO_T}yes" >&6; }
12849 succeeded=yes
12850
12851 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12852 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12853 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12854 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12855 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12856
12857 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12858 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12859 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12860 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12861 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12862 else
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865 FREETYPE_CFLAGS=""
12866 FREETYPE_LIBS=""
12867 ## If we have a custom action on failure, don't print errors, but
12868 ## do set a variable so people can do so.
12869 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12870
12871 fi
12872
12873
12874
12875 else
12876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12878 fi
12879 fi
12880
12881 if test $succeeded = yes; then
12882 HAVE_FREETYPE=yes
12883 else
12884 HAVE_FREETYPE=no
12885 fi
12886
12887 if test "${HAVE_FREETYPE}" = "yes"; then
12888
12889 succeeded=no
12890
12891 # Extract the first word of "pkg-config", so it can be a program name with args.
12892 set dummy pkg-config; ac_word=$2
12893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 case $PKG_CONFIG in
12899 [\\/]* | ?:[\\/]*)
12900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12901 ;;
12902 *)
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12905 do
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 break 2
12913 fi
12914 done
12915 done
12916 IFS=$as_save_IFS
12917
12918 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12919 ;;
12920 esac
12921 fi
12922 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12923 if test -n "$PKG_CONFIG"; then
12924 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12925 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12926 else
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12929 fi
12930
12931
12932
12933 if test "$PKG_CONFIG" = "no" ; then
12934 HAVE_FC=no
12935 else
12936 PKG_CONFIG_MIN_VERSION=0.9.0
12937 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12938 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12939 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12940
12941 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12942 { echo "$as_me:$LINENO: result: yes" >&5
12943 echo "${ECHO_T}yes" >&6; }
12944 succeeded=yes
12945
12946 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12947 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12948 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12949 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12950 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12951
12952 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12953 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12954 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12955 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12956 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12957 else
12958 { echo "$as_me:$LINENO: result: no" >&5
12959 echo "${ECHO_T}no" >&6; }
12960 FONTCONFIG_CFLAGS=""
12961 FONTCONFIG_LIBS=""
12962 ## If we have a custom action on failure, don't print errors, but
12963 ## do set a variable so people can do so.
12964 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12965
12966 fi
12967
12968
12969
12970 else
12971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12973 fi
12974 fi
12975
12976 if test $succeeded = yes; then
12977 HAVE_FC=yes
12978 else
12979 HAVE_FC=no
12980 fi
12981
12982 if test "${HAVE_FC}" = "no"; then
12983 HAVE_FREETYPE=no
12984 fi
12985 fi
12986 fi
12987
12988 HAVE_LIBOTF=no
12989 if test "${HAVE_FREETYPE}" = "yes"; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_FREETYPE 1
12993 _ACEOF
12994
12995 if test "${with_libotf}" != "no"; then
12996 if test "X${with_pkg_config_prog}" != X; then
12997 PKG_CONFIG="${with_pkg_config_prog}"
12998 fi
12999
13000 succeeded=no
13001
13002 # Extract the first word of "pkg-config", so it can be a program name with args.
13003 set dummy pkg-config; ac_word=$2
13004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 case $PKG_CONFIG in
13010 [\\/]* | ?:[\\/]*)
13011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13012 ;;
13013 *)
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13030 ;;
13031 esac
13032 fi
13033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13034 if test -n "$PKG_CONFIG"; then
13035 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13036 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13037 else
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13040 fi
13041
13042
13043
13044 if test "$PKG_CONFIG" = "no" ; then
13045 pkg_check_libotf=no
13046 else
13047 PKG_CONFIG_MIN_VERSION=0.9.0
13048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13049 { echo "$as_me:$LINENO: checking for libotf" >&5
13050 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13051
13052 if $PKG_CONFIG --exists "libotf" 2>&5; then
13053 { echo "$as_me:$LINENO: result: yes" >&5
13054 echo "${ECHO_T}yes" >&6; }
13055 succeeded=yes
13056
13057 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13058 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13059 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13060 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13061 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13062
13063 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13064 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13065 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13066 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13067 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13068 else
13069 { echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6; }
13071 LIBOTF_CFLAGS=""
13072 LIBOTF_LIBS=""
13073 ## If we have a custom action on failure, don't print errors, but
13074 ## do set a variable so people can do so.
13075 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13076
13077 fi
13078
13079
13080
13081 else
13082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13084 fi
13085 fi
13086
13087 if test $succeeded = yes; then
13088 pkg_check_libotf=yes
13089 else
13090 pkg_check_libotf=no
13091 fi
13092
13093 if test "$pkg_check_libotf" = "yes"; then
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_LIBOTF 1
13097 _ACEOF
13098
13099 fi
13100 fi
13101 fi
13102
13103 HAVE_M17N_FLT=no
13104 if test "${with_m17n_flt}" != "no"; then
13105 if test "X${with_pkg_config_prog}" != X; then
13106 PKG_CONFIG="${with_pkg_config_prog}"
13107 fi
13108
13109 succeeded=no
13110
13111 # Extract the first word of "pkg-config", so it can be a program name with args.
13112 set dummy pkg-config; ac_word=$2
13113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 case $PKG_CONFIG in
13119 [\\/]* | ?:[\\/]*)
13120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13121 ;;
13122 *)
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13125 do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134 done
13135 done
13136 IFS=$as_save_IFS
13137
13138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13139 ;;
13140 esac
13141 fi
13142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13143 if test -n "$PKG_CONFIG"; then
13144 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13145 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13146 else
13147 { echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6; }
13149 fi
13150
13151
13152
13153 if test "$PKG_CONFIG" = "no" ; then
13154 pkg_check_m17n_flt=no
13155 else
13156 PKG_CONFIG_MIN_VERSION=0.9.0
13157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13158 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13159 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13160
13161 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13162 { echo "$as_me:$LINENO: result: yes" >&5
13163 echo "${ECHO_T}yes" >&6; }
13164 succeeded=yes
13165
13166 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13167 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13168 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13169 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13170 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13171
13172 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13173 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13174 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13175 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13176 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13177 else
13178 { echo "$as_me:$LINENO: result: no" >&5
13179 echo "${ECHO_T}no" >&6; }
13180 M17N_FLT_CFLAGS=""
13181 M17N_FLT_LIBS=""
13182 ## If we have a custom action on failure, don't print errors, but
13183 ## do set a variable so people can do so.
13184 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13185
13186 fi
13187
13188
13189
13190 else
13191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13193 fi
13194 fi
13195
13196 if test $succeeded = yes; then
13197 pkg_check_m17n_flt=yes
13198 else
13199 pkg_check_m17n_flt=no
13200 fi
13201
13202 if test "$pkg_check_m17n_flt" = "yes"; then
13203
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_M17N_FLT 1
13206 _ACEOF
13207
13208 fi
13209 fi
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220 fi
13221 #### End for font-backend
13222
13223 ### Use -lXpm if available, unless `--with-xpm=no'.
13224 HAVE_XPM=no
13225 if test "${HAVE_X11}" = "yes"; then
13226 if test "${with_xpm}" != "no"; then
13227 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13228 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13229 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13230 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 fi
13233 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13234 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13235 else
13236 # Is the header compilable?
13237 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13238 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13246 #include <X11/xpm.h>
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 ac_header_compiler=yes
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_header_compiler=no
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6; }
13276
13277 # Is the header present?
13278 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13279 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/xpm.h>
13287 _ACEOF
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev/null && {
13301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 }; then
13304 ac_header_preproc=yes
13305 else
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_header_preproc=no
13310 fi
13311
13312 rm -f conftest.err conftest.$ac_ext
13313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6; }
13315
13316 # So? What about this header?
13317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13318 yes:no: )
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13323 ac_header_preproc=yes
13324 ;;
13325 no:yes:* )
13326 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13327 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13329 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13335 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13337 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13338
13339 ;;
13340 esac
13341 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13342 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13343 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346 ac_cv_header_X11_xpm_h=$ac_header_preproc
13347 fi
13348 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13349 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13350
13351 fi
13352 if test $ac_cv_header_X11_xpm_h = yes; then
13353 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13354 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13355 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lXpm -lX11 $LIBS"
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366
13367 /* Override any GCC internal prototype to avoid an error.
13368 Use char because int might match the return type of a GCC
13369 builtin and then its argument prototype would still apply. */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 char XpmReadFileToPixmap ();
13374 int
13375 main ()
13376 {
13377 return XpmReadFileToPixmap ();
13378 ;
13379 return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (ac_try="$ac_link"
13384 case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_link") 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } && {
13396 test -z "$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13398 } && test -s conftest$ac_exeext &&
13399 $as_test_x conftest$ac_exeext; then
13400 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13406 fi
13407
13408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13411 fi
13412 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13413 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13414 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13415 HAVE_XPM=yes
13416 fi
13417
13418 fi
13419
13420
13421 if test "${HAVE_XPM}" = "yes"; then
13422 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13423 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include "X11/xpm.h"
13431 #ifndef XpmReturnAllocPixels
13432 no_return_alloc_pixels
13433 #endif
13434
13435 _ACEOF
13436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13437 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13438 HAVE_XPM=no
13439 else
13440 HAVE_XPM=yes
13441 fi
13442 rm -f conftest*
13443
13444
13445 if test "${HAVE_XPM}" = "yes"; then
13446 { echo "$as_me:$LINENO: result: yes" >&5
13447 echo "${ECHO_T}yes" >&6; }
13448 else
13449 { echo "$as_me:$LINENO: result: no" >&5
13450 echo "${ECHO_T}no" >&6; }
13451 fi
13452 fi
13453 fi
13454
13455 if test "${HAVE_XPM}" = "yes"; then
13456
13457 cat >>confdefs.h <<\_ACEOF
13458 #define HAVE_XPM 1
13459 _ACEOF
13460
13461 fi
13462 fi
13463
13464 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13465 HAVE_JPEG=no
13466 if test "${HAVE_X11}" = "yes"; then
13467 if test "${with_jpeg}" != "no"; then
13468 if test "${ac_cv_header_jerror_h+set}" = set; then
13469 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13470 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13471 if test "${ac_cv_header_jerror_h+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 fi
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13475 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13476 else
13477 # Is the header compilable?
13478 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13479 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <jerror.h>
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest.$ac_objext; then
13506 ac_header_compiler=yes
13507 else
13508 echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13510
13511 ac_header_compiler=no
13512 fi
13513
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13516 echo "${ECHO_T}$ac_header_compiler" >&6; }
13517
13518 # Is the header present?
13519 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13520 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <jerror.h>
13528 _ACEOF
13529 if { (ac_try="$ac_cpp conftest.$ac_ext"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } >/dev/null && {
13542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 }; then
13545 ac_header_preproc=yes
13546 else
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 ac_header_preproc=no
13551 fi
13552
13553 rm -f conftest.err conftest.$ac_ext
13554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13555 echo "${ECHO_T}$ac_header_preproc" >&6; }
13556
13557 # So? What about this header?
13558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13559 yes:no: )
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13561 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13563 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13564 ac_header_preproc=yes
13565 ;;
13566 no:yes:* )
13567 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13568 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13570 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13572 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13574 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13575 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13576 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13578 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13579
13580 ;;
13581 esac
13582 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13583 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_jerror_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 ac_cv_header_jerror_h=$ac_header_preproc
13588 fi
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13591
13592 fi
13593 if test $ac_cv_header_jerror_h = yes; then
13594 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13595 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13596 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-ljpeg $LIBS"
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 char jpeg_destroy_compress ();
13615 int
13616 main ()
13617 {
13618 return jpeg_destroy_compress ();
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest$ac_exeext &&
13640 $as_test_x conftest$ac_exeext; then
13641 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13642 else
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13647 fi
13648
13649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13652 fi
13653 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13654 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13655 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13656 HAVE_JPEG=yes
13657 fi
13658
13659 fi
13660
13661
13662 fi
13663
13664
13665 if test "${HAVE_JPEG}" = "yes"; then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_JPEG 1
13668 _ACEOF
13669
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <jpeglib.h>
13677 version=JPEG_LIB_VERSION
13678
13679 _ACEOF
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13682 cat >>confdefs.h <<\_ACEOF
13683 #define HAVE_JPEG 1
13684 _ACEOF
13685
13686 else
13687 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13688 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13689 HAVE_JPEG=no
13690 fi
13691 rm -f conftest*
13692
13693 fi
13694 fi
13695
13696 ### Use -lpng if available, unless `--with-png=no'.
13697 HAVE_PNG=no
13698 if test "${HAVE_X11}" = "yes"; then
13699 if test "${with_png}" != "no"; then
13700 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13701 # in /usr/include/libpng.
13702
13703
13704 for ac_header in png.h libpng/png.h
13705 do
13706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 fi
13713 ac_res=`eval echo '${'$as_ac_Header'}'`
13714 { echo "$as_me:$LINENO: result: $ac_res" >&5
13715 echo "${ECHO_T}$ac_res" >&6; }
13716 else
13717 # Is the header compilable?
13718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13720 cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h. */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 $ac_includes_default
13727 #include <$ac_header>
13728 _ACEOF
13729 rm -f conftest.$ac_objext
13730 if { (ac_try="$ac_compile"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compile") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest.$ac_objext; then
13746 ac_header_compiler=yes
13747 else
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_header_compiler=no
13752 fi
13753
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6; }
13757
13758 # Is the header present?
13759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h. */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <$ac_header>
13768 _ACEOF
13769 if { (ac_try="$ac_cpp conftest.$ac_ext"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } >/dev/null && {
13782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 }; then
13785 ac_header_preproc=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 ac_header_preproc=no
13791 fi
13792
13793 rm -f conftest.err conftest.$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13795 echo "${ECHO_T}$ac_header_preproc" >&6; }
13796
13797 # So? What about this header?
13798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13799 yes:no: )
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13804 ac_header_preproc=yes
13805 ;;
13806 no:yes:* )
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13819
13820 ;;
13821 esac
13822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827 eval "$as_ac_Header=\$ac_header_preproc"
13828 fi
13829 ac_res=`eval echo '${'$as_ac_Header'}'`
13830 { echo "$as_me:$LINENO: result: $ac_res" >&5
13831 echo "${ECHO_T}$ac_res" >&6; }
13832
13833 fi
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835 cat >>confdefs.h <<_ACEOF
13836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13837 _ACEOF
13838
13839 fi
13840
13841 done
13842
13843 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13844 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13845 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13846 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849 ac_check_lib_save_LIBS=$LIBS
13850 LIBS="-lpng -lz -lm $LIBS"
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13861 #ifdef __cplusplus
13862 extern "C"
13863 #endif
13864 char png_get_channels ();
13865 int
13866 main ()
13867 {
13868 return png_get_channels ();
13869 ;
13870 return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (ac_try="$ac_link"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext &&
13890 $as_test_x conftest$ac_exeext; then
13891 ac_cv_lib_png_png_get_channels=yes
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896 ac_cv_lib_png_png_get_channels=no
13897 fi
13898
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13902 fi
13903 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13904 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13905 if test $ac_cv_lib_png_png_get_channels = yes; then
13906 HAVE_PNG=yes
13907 fi
13908
13909 fi
13910 fi
13911
13912 if test "${HAVE_PNG}" = "yes"; then
13913
13914 cat >>confdefs.h <<\_ACEOF
13915 #define HAVE_PNG 1
13916 _ACEOF
13917
13918 fi
13919 fi
13920
13921 ### Use -ltiff if available, unless `--with-tiff=no'.
13922 HAVE_TIFF=no
13923 if test "${HAVE_X11}" = "yes"; then
13924 if test "${with_tiff}" != "no"; then
13925 if test "${ac_cv_header_tiffio_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13927 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_tiffio_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 fi
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13933 else
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13936 echo $ECHO_N "checking tiffio.h 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 <tiffio.h>
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 tiffio.h presence" >&5
13977 echo $ECHO_N "checking tiffio.h 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 <tiffio.h>
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: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
14022 ;;
14023 no:yes:* )
14024 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14036
14037 ;;
14038 esac
14039 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14040 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_tiffio_h+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 ac_cv_header_tiffio_h=$ac_header_preproc
14045 fi
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14048
14049 fi
14050 if test $ac_cv_header_tiffio_h = yes; then
14051 tifflibs="-lz -lm"
14052 # At least one tiff package requires the jpeg library.
14053 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14054 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14055 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14056 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-ltiff $tifflibs $LIBS"
14061 cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h. */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char TIFFGetVersion ();
14075 int
14076 main ()
14077 {
14078 return TIFFGetVersion ();
14079 ;
14080 return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest$ac_exeext &&
14100 $as_test_x conftest$ac_exeext; then
14101 ac_cv_lib_tiff_TIFFGetVersion=yes
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_cv_lib_tiff_TIFFGetVersion=no
14107 fi
14108
14109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14114 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14115 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14116 HAVE_TIFF=yes
14117 fi
14118
14119 fi
14120
14121
14122 fi
14123
14124 if test "${HAVE_TIFF}" = "yes"; then
14125
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_TIFF 1
14128 _ACEOF
14129
14130 fi
14131 fi
14132
14133 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14134 HAVE_GIF=no
14135 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14136 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14137 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14138 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 fi
14142 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14143 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14144 else
14145 # Is the header compilable?
14146 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14147 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14155 #include <gif_lib.h>
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_compile") 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && {
14171 test -z "$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 } && test -s conftest.$ac_objext; then
14174 ac_header_compiler=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 ac_header_compiler=no
14180 fi
14181
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14184 echo "${ECHO_T}$ac_header_compiler" >&6; }
14185
14186 # Is the header present?
14187 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14188 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 #include <gif_lib.h>
14196 _ACEOF
14197 if { (ac_try="$ac_cpp conftest.$ac_ext"
14198 case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null && {
14210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 }; then
14213 ac_header_preproc=yes
14214 else
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 ac_header_preproc=no
14219 fi
14220
14221 rm -f conftest.err conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14223 echo "${ECHO_T}$ac_header_preproc" >&6; }
14224
14225 # So? What about this header?
14226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14227 yes:no: )
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14229 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14231 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14232 ac_header_preproc=yes
14233 ;;
14234 no:yes:* )
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14236 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14238 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14240 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14242 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14244 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14246 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14247
14248 ;;
14249 esac
14250 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14251 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14252 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 ac_cv_header_gif_lib_h=$ac_header_preproc
14256 fi
14257 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14258 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14259
14260 fi
14261 if test $ac_cv_header_gif_lib_h = yes; then
14262 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14263 # Earlier versions can crash Emacs.
14264 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14265 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14266 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269 ac_check_lib_save_LIBS=$LIBS
14270 LIBS="-lgif $LIBS"
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277
14278 /* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply. */
14281 #ifdef __cplusplus
14282 extern "C"
14283 #endif
14284 char EGifPutExtensionLast ();
14285 int
14286 main ()
14287 {
14288 return EGifPutExtensionLast ();
14289 ;
14290 return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest$ac_exeext &&
14310 $as_test_x conftest$ac_exeext; then
14311 ac_cv_lib_gif_EGifPutExtensionLast=yes
14312 else
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_lib_gif_EGifPutExtensionLast=no
14317 fi
14318
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320 conftest$ac_exeext conftest.$ac_ext
14321 LIBS=$ac_check_lib_save_LIBS
14322 fi
14323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14324 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14325 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14326 HAVE_GIF=yes
14327 else
14328 try_libungif=yes
14329 fi
14330
14331 fi
14332
14333
14334
14335 if test "$HAVE_GIF" = yes; then
14336 ac_gif_lib_name="-lgif"
14337 fi
14338
14339 # If gif_lib.h but no libgif, try libungif.
14340 if test x"$try_libungif" = xyes; then
14341 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14342 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14343 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lungif $LIBS"
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char EGifPutExtensionLast ();
14362 int
14363 main ()
14364 {
14365 return EGifPutExtensionLast ();
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext &&
14387 $as_test_x conftest$ac_exeext; then
14388 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 ac_cv_lib_ungif_EGifPutExtensionLast=no
14394 fi
14395
14396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext conftest.$ac_ext
14398 LIBS=$ac_check_lib_save_LIBS
14399 fi
14400 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14401 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14402 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14403 HAVE_GIF=yes
14404 fi
14405
14406
14407 if test "$HAVE_GIF" = yes; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define LIBGIF -lungif
14411 _ACEOF
14412
14413 ac_gif_lib_name="-lungif"
14414 fi
14415 fi
14416
14417 if test "${HAVE_GIF}" = "yes"; then
14418
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_GIF 1
14421 _ACEOF
14422
14423 fi
14424 fi
14425
14426 if test "${HAVE_X11}" = "yes"; then
14427 MISSING=""
14428 WITH_NO=""
14429 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14430 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14431 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14432 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14433 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14434 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14435 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14436 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14437 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14438 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14439
14440 if test "X${MISSING}" != X; then
14441 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14442 $MISSING
14443 Maybe some development libraries/packages are missing?
14444 If you don't want to link with them give
14445 $WITH_NO
14446 as options to configure" >&5
14447 echo "$as_me: error: The following required libraries were not found:
14448 $MISSING
14449 Maybe some development libraries/packages are missing?
14450 If you don't want to link with them give
14451 $WITH_NO
14452 as options to configure" >&2;}
14453 { (exit 1); exit 1; }; }
14454 fi
14455 fi
14456
14457 ### Use -lgpm if available, unless `--with-gpm=no'.
14458 HAVE_GPM=no
14459 if test "${with_gpm}" != "no"; then
14460 if test "${ac_cv_header_gpm_h+set}" = set; then
14461 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14462 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14463 if test "${ac_cv_header_gpm_h+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14468 else
14469 # Is the header compilable?
14470 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14471 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 #include <gpm.h>
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 ac_header_compiler=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_header_compiler=no
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508 echo "${ECHO_T}$ac_header_compiler" >&6; }
14509
14510 # Is the header present?
14511 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14512 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h. */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 #include <gpm.h>
14520 _ACEOF
14521 if { (ac_try="$ac_cpp conftest.$ac_ext"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } >/dev/null && {
14534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 }; then
14537 ac_header_preproc=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_preproc=no
14543 fi
14544
14545 rm -f conftest.err conftest.$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6; }
14548
14549 # So? What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 yes:no: )
14552 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc=yes
14557 ;;
14558 no:yes:* )
14559 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14571
14572 ;;
14573 esac
14574 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14575 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14576 if test "${ac_cv_header_gpm_h+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 ac_cv_header_gpm_h=$ac_header_preproc
14580 fi
14581 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14582 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14583
14584 fi
14585 if test $ac_cv_header_gpm_h = yes; then
14586 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14587 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14588 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591 ac_check_lib_save_LIBS=$LIBS
14592 LIBS="-lgpm $LIBS"
14593 cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h. */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599
14600 /* Override any GCC internal prototype to avoid an error.
14601 Use char because int might match the return type of a GCC
14602 builtin and then its argument prototype would still apply. */
14603 #ifdef __cplusplus
14604 extern "C"
14605 #endif
14606 char Gpm_Open ();
14607 int
14608 main ()
14609 {
14610 return Gpm_Open ();
14611 ;
14612 return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 ac_cv_lib_gpm_Gpm_Open=yes
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_cv_lib_gpm_Gpm_Open=no
14639 fi
14640
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14644 fi
14645 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14646 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14647 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14648 HAVE_GPM=yes
14649 fi
14650
14651 fi
14652
14653
14654 fi
14655
14656 if test "${HAVE_GPM}" = "yes"; then
14657
14658 cat >>confdefs.h <<\_ACEOF
14659 #define HAVE_GPM 1
14660 _ACEOF
14661
14662 fi
14663
14664 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14665 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14666 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14667 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 fi
14670 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14671 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14672 else
14673 # Is the header compilable?
14674 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14675 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 $ac_includes_default
14683 #include <malloc/malloc.h>
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_compile") 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest.$ac_objext; then
14702 ac_header_compiler=yes
14703 else
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ac_header_compiler=no
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14713
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14716 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <malloc/malloc.h>
14724 _ACEOF
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null && {
14738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 }; then
14741 ac_header_preproc=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_header_preproc=no
14747 fi
14748
14749 rm -f conftest.err conftest.$ac_ext
14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
14752
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14755 yes:no: )
14756 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14759 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14760 ac_header_preproc=yes
14761 ;;
14762 no:yes:* )
14763 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14764 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14766 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14772 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14774 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14775
14776 ;;
14777 esac
14778 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14779 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14780 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14784 fi
14785 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14786 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14787
14788 fi
14789 if test $ac_cv_header_malloc_malloc_h = yes; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_MALLOC_MALLOC_H 1
14793 _ACEOF
14794
14795 fi
14796
14797
14798
14799 ### Use Mac OS X Carbon API to implement GUI.
14800 if test "${HAVE_CARBON}" = "yes"; then
14801
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_CARBON 1
14804 _ACEOF
14805
14806 ## Specify the install directory
14807 carbon_appdir=
14808 if test "${carbon_appdir_x}" != ""; then
14809 case ${carbon_appdir_x} in
14810 y | ye | yes) carbon_appdir=/Applications ;;
14811 * ) carbon_appdir=${carbon_appdir_x} ;;
14812 esac
14813 fi
14814 # We also have mouse menus.
14815 HAVE_MENUS=yes
14816 fi
14817
14818 ### Use session management (-lSM -lICE) if available
14819 HAVE_X_SM=no
14820 if test "${HAVE_X11}" = "yes"; then
14821 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14822 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14823 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14824 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 fi
14827 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14828 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14829 else
14830 # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14832 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h. */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 $ac_includes_default
14840 #include <X11/SM/SMlib.h>
14841 _ACEOF
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest.$ac_objext; then
14859 ac_header_compiler=yes
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864 ac_header_compiler=no
14865 fi
14866
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14869 echo "${ECHO_T}$ac_header_compiler" >&6; }
14870
14871 # Is the header present?
14872 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14873 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h. */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 #include <X11/SM/SMlib.h>
14881 _ACEOF
14882 if { (ac_try="$ac_cpp conftest.$ac_ext"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14886 esac
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } >/dev/null && {
14895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 }; then
14898 ac_header_preproc=yes
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ac_header_preproc=no
14904 fi
14905
14906 rm -f conftest.err conftest.$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 echo "${ECHO_T}$ac_header_preproc" >&6; }
14909
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14912 yes:no: )
14913 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14914 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14916 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14918 ;;
14919 no:yes:* )
14920 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14929 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14931 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14932
14933 ;;
14934 esac
14935 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14936 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14937 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14941 fi
14942 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14943 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14944
14945 fi
14946 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14947 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14948 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14949 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lSM -lICE $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14964 #ifdef __cplusplus
14965 extern "C"
14966 #endif
14967 char SmcOpenConnection ();
14968 int
14969 main ()
14970 {
14971 return SmcOpenConnection ();
14972 ;
14973 return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest$ac_exeext &&
14993 $as_test_x conftest$ac_exeext; then
14994 ac_cv_lib_SM_SmcOpenConnection=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999 ac_cv_lib_SM_SmcOpenConnection=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003 conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15005 fi
15006 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15007 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15008 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15009 HAVE_X_SM=yes
15010 fi
15011
15012 fi
15013
15014
15015
15016 if test "${HAVE_X_SM}" = "yes"; then
15017
15018 cat >>confdefs.h <<\_ACEOF
15019 #define HAVE_X_SM 1
15020 _ACEOF
15021
15022 case "$LIBS" in
15023 *-lSM*) ;;
15024 *) LIBS="-lSM -lICE $LIBS" ;;
15025 esac
15026 fi
15027 fi
15028
15029 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15030 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15031 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15032 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 #include <netdb.h>
15042 int
15043 main ()
15044 {
15045 return h_errno;
15046 ;
15047 return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_link") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest$ac_exeext &&
15067 $as_test_x conftest$ac_exeext; then
15068 emacs_cv_netdb_declares_h_errno=yes
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 emacs_cv_netdb_declares_h_errno=no
15074 fi
15075
15076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15077 conftest$ac_exeext conftest.$ac_ext
15078 fi
15079 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15080 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15081 if test $emacs_cv_netdb_declares_h_errno = yes; then
15082
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_H_ERRNO 1
15085 _ACEOF
15086
15087 fi
15088
15089 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15090 # for constant arguments. Useless!
15091 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15092 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15093 if test "${ac_cv_working_alloca_h+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h. */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 #include <alloca.h>
15103 int
15104 main ()
15105 {
15106 char *p = (char *) alloca (2 * sizeof (int));
15107 if (p) return 0;
15108 ;
15109 return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (ac_try="$ac_link"
15114 case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } && {
15126 test -z "$ac_c_werror_flag" ||
15127 test ! -s conftest.err
15128 } && test -s conftest$ac_exeext &&
15129 $as_test_x conftest$ac_exeext; then
15130 ac_cv_working_alloca_h=yes
15131 else
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 ac_cv_working_alloca_h=no
15136 fi
15137
15138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15139 conftest$ac_exeext conftest.$ac_ext
15140 fi
15141 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15142 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15143 if test $ac_cv_working_alloca_h = yes; then
15144
15145 cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_ALLOCA_H 1
15147 _ACEOF
15148
15149 fi
15150
15151 { echo "$as_me:$LINENO: checking for alloca" >&5
15152 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15153 if test "${ac_cv_func_alloca_works+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 #ifdef __GNUC__
15163 # define alloca __builtin_alloca
15164 #else
15165 # ifdef _MSC_VER
15166 # include <malloc.h>
15167 # define alloca _alloca
15168 # else
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15171 # else
15172 # ifdef _AIX
15173 #pragma alloca
15174 # else
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15176 char *alloca ();
15177 # endif
15178 # endif
15179 # endif
15180 # endif
15181 #endif
15182
15183 int
15184 main ()
15185 {
15186 char *p = (char *) alloca (1);
15187 if (p) return 0;
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext conftest$ac_exeext
15193 if { (ac_try="$ac_link"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_link") 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } && {
15206 test -z "$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 } && test -s conftest$ac_exeext &&
15209 $as_test_x conftest$ac_exeext; then
15210 ac_cv_func_alloca_works=yes
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_cv_func_alloca_works=no
15216 fi
15217
15218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15219 conftest$ac_exeext conftest.$ac_ext
15220 fi
15221 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15222 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15223
15224 if test $ac_cv_func_alloca_works = yes; then
15225
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_ALLOCA 1
15228 _ACEOF
15229
15230 else
15231 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15232 # that cause trouble. Some versions do not even contain alloca or
15233 # contain a buggy version. If you still want to use their alloca,
15234 # use ar to extract alloca.o from them instead of compiling alloca.c.
15235
15236 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15237
15238 cat >>confdefs.h <<\_ACEOF
15239 #define C_ALLOCA 1
15240 _ACEOF
15241
15242
15243 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15244 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15245 if test "${ac_cv_os_cray+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #if defined CRAY && ! defined CRAY2
15255 webecray
15256 #else
15257 wenotbecray
15258 #endif
15259
15260 _ACEOF
15261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15262 $EGREP "webecray" >/dev/null 2>&1; then
15263 ac_cv_os_cray=yes
15264 else
15265 ac_cv_os_cray=no
15266 fi
15267 rm -f conftest*
15268
15269 fi
15270 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15271 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15272 if test $ac_cv_os_cray = yes; then
15273 for ac_func in _getb67 GETB67 getb67; do
15274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15288 #define $ac_func innocuous_$ac_func
15289
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func (); below.
15292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15293 <limits.h> exists even on freestanding compilers. */
15294
15295 #ifdef __STDC__
15296 # include <limits.h>
15297 #else
15298 # include <assert.h>
15299 #endif
15300
15301 #undef $ac_func
15302
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 char $ac_func ();
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined __stub_$ac_func || defined __stub___$ac_func
15314 choke me
15315 #endif
15316
15317 int
15318 main ()
15319 {
15320 return $ac_func ();
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>conftest.er1
15333 ac_status=$?
15334 grep -v '^ *+' conftest.er1 >conftest.err
15335 rm -f conftest.er1
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } && {
15339 test -z "$ac_c_werror_flag" ||
15340 test ! -s conftest.err
15341 } && test -s conftest$ac_exeext &&
15342 $as_test_x conftest$ac_exeext; then
15343 eval "$as_ac_var=yes"
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 eval "$as_ac_var=no"
15349 fi
15350
15351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 conftest$ac_exeext conftest.$ac_ext
15353 fi
15354 ac_res=`eval echo '${'$as_ac_var'}'`
15355 { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_var'}'` = yes; then
15358
15359 cat >>confdefs.h <<_ACEOF
15360 #define CRAY_STACKSEG_END $ac_func
15361 _ACEOF
15362
15363 break
15364 fi
15365
15366 done
15367 fi
15368
15369 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15370 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15371 if test "${ac_cv_c_stack_direction+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 if test "$cross_compiling" = yes; then
15375 ac_cv_c_stack_direction=0
15376 else
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 $ac_includes_default
15384 int
15385 find_stack_direction ()
15386 {
15387 static char *addr = 0;
15388 auto char dummy;
15389 if (addr == 0)
15390 {
15391 addr = &dummy;
15392 return find_stack_direction ();
15393 }
15394 else
15395 return (&dummy > addr) ? 1 : -1;
15396 }
15397
15398 int
15399 main ()
15400 {
15401 return find_stack_direction () < 0;
15402 }
15403 _ACEOF
15404 rm -f conftest$ac_exeext
15405 if { (ac_try="$ac_link"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_link") 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_cv_c_stack_direction=1
15425 else
15426 echo "$as_me: program exited with status $ac_status" >&5
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ( exit $ac_status )
15431 ac_cv_c_stack_direction=-1
15432 fi
15433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15434 fi
15435
15436
15437 fi
15438 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15439 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15440
15441 cat >>confdefs.h <<_ACEOF
15442 #define STACK_DIRECTION $ac_cv_c_stack_direction
15443 _ACEOF
15444
15445
15446 fi
15447
15448
15449 if test x"$ac_cv_func_alloca_works" != xyes; then
15450 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15451 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15452 { (exit 1); exit 1; }; }
15453 fi
15454
15455 # fmod, logb, and frexp are found in -lm on most systems.
15456 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15457
15458 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15459 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15460 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463 ac_check_lib_save_LIBS=$LIBS
15464 LIBS="-lm $LIBS"
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
15472 /* Override any GCC internal prototype to avoid an error.
15473 Use char because int might match the return type of a GCC
15474 builtin and then its argument prototype would still apply. */
15475 #ifdef __cplusplus
15476 extern "C"
15477 #endif
15478 char sqrt ();
15479 int
15480 main ()
15481 {
15482 return sqrt ();
15483 ;
15484 return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_link") 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_c_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest$ac_exeext &&
15504 $as_test_x conftest$ac_exeext; then
15505 ac_cv_lib_m_sqrt=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_cv_lib_m_sqrt=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514 conftest$ac_exeext conftest.$ac_ext
15515 LIBS=$ac_check_lib_save_LIBS
15516 fi
15517 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15518 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15519 if test $ac_cv_lib_m_sqrt = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521 #define HAVE_LIBM 1
15522 _ACEOF
15523
15524 LIBS="-lm $LIBS"
15525
15526 fi
15527
15528
15529 # Check for mail-locking functions in a "mail" library. Probably this should
15530 # have the same check as for liblockfile below.
15531
15532 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15533 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15534 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lmail $LIBS"
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545
15546 /* Override any GCC internal prototype to avoid an error.
15547 Use char because int might match the return type of a GCC
15548 builtin and then its argument prototype would still apply. */
15549 #ifdef __cplusplus
15550 extern "C"
15551 #endif
15552 char maillock ();
15553 int
15554 main ()
15555 {
15556 return maillock ();
15557 ;
15558 return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && {
15575 test -z "$ac_c_werror_flag" ||
15576 test ! -s conftest.err
15577 } && test -s conftest$ac_exeext &&
15578 $as_test_x conftest$ac_exeext; then
15579 ac_cv_lib_mail_maillock=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 ac_cv_lib_mail_maillock=no
15585 fi
15586
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588 conftest$ac_exeext conftest.$ac_ext
15589 LIBS=$ac_check_lib_save_LIBS
15590 fi
15591 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15592 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15593 if test $ac_cv_lib_mail_maillock = yes; then
15594 cat >>confdefs.h <<_ACEOF
15595 #define HAVE_LIBMAIL 1
15596 _ACEOF
15597
15598 LIBS="-lmail $LIBS"
15599
15600 fi
15601
15602
15603 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15604 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15605 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-llockfile $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15620 #ifdef __cplusplus
15621 extern "C"
15622 #endif
15623 char maillock ();
15624 int
15625 main ()
15626 {
15627 return maillock ();
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637 esac
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_link") 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } && {
15646 test -z "$ac_c_werror_flag" ||
15647 test ! -s conftest.err
15648 } && test -s conftest$ac_exeext &&
15649 $as_test_x conftest$ac_exeext; then
15650 ac_cv_lib_lockfile_maillock=yes
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_cv_lib_lockfile_maillock=no
15656 fi
15657
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LIBS=$ac_check_lib_save_LIBS
15661 fi
15662 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15663 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15664 if test $ac_cv_lib_lockfile_maillock = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_LIBLOCKFILE 1
15667 _ACEOF
15668
15669 LIBS="-llockfile $LIBS"
15670
15671 fi
15672
15673 # If we have the shared liblockfile, assume we must use it for mail
15674 # locking (e.g. Debian). If we couldn't link against liblockfile
15675 # (no liblockfile.a installed), ensure that we don't need to.
15676 if test "$ac_cv_lib_lockfile_maillock" = no; then
15677 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15678 set dummy liblockfile.so; ac_word=$2
15679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15681 if test "${ac_cv_prog_liblockfile+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684 if test -n "$liblockfile"; then
15685 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15686 else
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15689 for as_dir in $as_dummy
15690 do
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15695 ac_cv_prog_liblockfile="yes"
15696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15698 fi
15699 done
15700 done
15701 IFS=$as_save_IFS
15702
15703 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15704 fi
15705 fi
15706 liblockfile=$ac_cv_prog_liblockfile
15707 if test -n "$liblockfile"; then
15708 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15709 echo "${ECHO_T}$liblockfile" >&6; }
15710 else
15711 { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15713 fi
15714
15715
15716 if test $ac_cv_prog_liblockfile = yes; then
15717 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15718 This probably means that movemail could lose mail.
15719 There may be a \`development' package to install containing liblockfile." >&5
15720 echo "$as_me: error: Shared liblockfile found but can't link against it.
15721 This probably means that movemail could lose mail.
15722 There may be a \`development' package to install containing liblockfile." >&2;}
15723 { (exit 1); exit 1; }; }
15724 else :
15725 fi
15726 fi
15727
15728 for ac_func in touchlock
15729 do
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15744 #define $ac_func innocuous_$ac_func
15745
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func (); below.
15748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749 <limits.h> exists even on freestanding compilers. */
15750
15751 #ifdef __STDC__
15752 # include <limits.h>
15753 #else
15754 # include <assert.h>
15755 #endif
15756
15757 #undef $ac_func
15758
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15762 #ifdef __cplusplus
15763 extern "C"
15764 #endif
15765 char $ac_func ();
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15770 choke me
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 return $ac_func ();
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
15799 eval "$as_ac_var=yes"
15800 else
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 eval "$as_ac_var=no"
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15809 fi
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811 { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 fi
15819 done
15820
15821
15822 for ac_header in maillock.h
15823 do
15824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 fi
15831 ac_res=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15834 else
15835 # Is the header compilable?
15836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15845 #include <$ac_header>
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (ac_try="$ac_compile"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_compile") 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest.$ac_objext; then
15864 ac_header_compiler=yes
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_header_compiler=no
15870 fi
15871
15872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6; }
15875
15876 # Is the header present?
15877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <$ac_header>
15886 _ACEOF
15887 if { (ac_try="$ac_cpp conftest.$ac_ext"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } >/dev/null && {
15900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 }; then
15903 ac_header_preproc=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908 ac_header_preproc=no
15909 fi
15910
15911 rm -f conftest.err conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15913 echo "${ECHO_T}$ac_header_preproc" >&6; }
15914
15915 # So? What about this header?
15916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15917 yes:no: )
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15922 ac_header_preproc=yes
15923 ;;
15924 no:yes:* )
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15937
15938 ;;
15939 esac
15940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 eval "$as_ac_Header=\$ac_header_preproc"
15946 fi
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15950
15951 fi
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953 cat >>confdefs.h <<_ACEOF
15954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15955 _ACEOF
15956
15957 fi
15958
15959 done
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030 for ac_func in gethostname getdomainname dup2 \
16031 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16032 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16033 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16034 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16035 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16036 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16037 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16038 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16039 do
16040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h. */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16054 #define $ac_func innocuous_$ac_func
16055
16056 /* System header to define __stub macros and hopefully few prototypes,
16057 which can conflict with char $ac_func (); below.
16058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16059 <limits.h> exists even on freestanding compilers. */
16060
16061 #ifdef __STDC__
16062 # include <limits.h>
16063 #else
16064 # include <assert.h>
16065 #endif
16066
16067 #undef $ac_func
16068
16069 /* Override any GCC internal prototype to avoid an error.
16070 Use char because int might match the return type of a GCC
16071 builtin and then its argument prototype would still apply. */
16072 #ifdef __cplusplus
16073 extern "C"
16074 #endif
16075 char $ac_func ();
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined __stub_$ac_func || defined __stub___$ac_func
16080 choke me
16081 #endif
16082
16083 int
16084 main ()
16085 {
16086 return $ac_func ();
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest$ac_exeext &&
16108 $as_test_x conftest$ac_exeext; then
16109 eval "$as_ac_var=yes"
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 eval "$as_ac_var=no"
16115 fi
16116
16117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16118 conftest$ac_exeext conftest.$ac_ext
16119 fi
16120 ac_res=`eval echo '${'$as_ac_var'}'`
16121 { echo "$as_me:$LINENO: result: $ac_res" >&5
16122 echo "${ECHO_T}$ac_res" >&6; }
16123 if test `eval echo '${'$as_ac_var'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16126 _ACEOF
16127
16128 fi
16129 done
16130
16131
16132
16133 for ac_header in sys/un.h
16134 do
16135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 fi
16142 ac_res=`eval echo '${'$as_ac_Header'}'`
16143 { echo "$as_me:$LINENO: result: $ac_res" >&5
16144 echo "${ECHO_T}$ac_res" >&6; }
16145 else
16146 # Is the header compilable?
16147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 $ac_includes_default
16156 #include <$ac_header>
16157 _ACEOF
16158 rm -f conftest.$ac_objext
16159 if { (ac_try="$ac_compile"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_compile") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest.$ac_objext; then
16175 ac_header_compiler=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 ac_header_compiler=no
16181 fi
16182
16183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16185 echo "${ECHO_T}$ac_header_compiler" >&6; }
16186
16187 # Is the header present?
16188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16190 cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h. */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <$ac_header>
16197 _ACEOF
16198 if { (ac_try="$ac_cpp conftest.$ac_ext"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } >/dev/null && {
16211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 }; then
16214 ac_header_preproc=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_header_preproc=no
16220 fi
16221
16222 rm -f conftest.err conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6; }
16225
16226 # So? What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16228 yes:no: )
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16233 ac_header_preproc=yes
16234 ;;
16235 no:yes:* )
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16248
16249 ;;
16250 esac
16251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256 eval "$as_ac_Header=\$ac_header_preproc"
16257 fi
16258 ac_res=`eval echo '${'$as_ac_Header'}'`
16259 { echo "$as_me:$LINENO: result: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16261
16262 fi
16263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16264 cat >>confdefs.h <<_ACEOF
16265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16266 _ACEOF
16267
16268 fi
16269
16270 done
16271
16272
16273
16274
16275
16276
16277 for ac_header in $ac_header_list
16278 do
16279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 fi
16286 ac_res=`eval echo '${'$as_ac_Header'}'`
16287 { echo "$as_me:$LINENO: result: $ac_res" >&5
16288 echo "${ECHO_T}$ac_res" >&6; }
16289 else
16290 # Is the header compilable?
16291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 $ac_includes_default
16300 #include <$ac_header>
16301 _ACEOF
16302 rm -f conftest.$ac_objext
16303 if { (ac_try="$ac_compile"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_compile") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest.$ac_objext; then
16319 ac_header_compiler=yes
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 ac_header_compiler=no
16325 fi
16326
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16329 echo "${ECHO_T}$ac_header_compiler" >&6; }
16330
16331 # Is the header present?
16332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <$ac_header>
16341 _ACEOF
16342 if { (ac_try="$ac_cpp conftest.$ac_ext"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346 esac
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16349 ac_status=$?
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } >/dev/null && {
16355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16356 test ! -s conftest.err
16357 }; then
16358 ac_header_preproc=yes
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_header_preproc=no
16364 fi
16365
16366 rm -f conftest.err conftest.$ac_ext
16367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368 echo "${ECHO_T}$ac_header_preproc" >&6; }
16369
16370 # So? What about this header?
16371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16372 yes:no: )
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377 ac_header_preproc=yes
16378 ;;
16379 no:yes:* )
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16392
16393 ;;
16394 esac
16395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 eval "$as_ac_Header=\$ac_header_preproc"
16401 fi
16402 ac_res=`eval echo '${'$as_ac_Header'}'`
16403 { echo "$as_me:$LINENO: result: $ac_res" >&5
16404 echo "${ECHO_T}$ac_res" >&6; }
16405
16406 fi
16407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16408 cat >>confdefs.h <<_ACEOF
16409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16410 _ACEOF
16411
16412 fi
16413
16414 done
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 for ac_func in $ac_func_list
16425 do
16426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16440 #define $ac_func innocuous_$ac_func
16441
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char $ac_func (); below.
16444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445 <limits.h> exists even on freestanding compilers. */
16446
16447 #ifdef __STDC__
16448 # include <limits.h>
16449 #else
16450 # include <assert.h>
16451 #endif
16452
16453 #undef $ac_func
16454
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16458 #ifdef __cplusplus
16459 extern "C"
16460 #endif
16461 char $ac_func ();
16462 /* The GNU C library defines this for functions which it implements
16463 to always fail with ENOSYS. Some functions are actually named
16464 something starting with __ and the normal name is an alias. */
16465 #if defined __stub_$ac_func || defined __stub___$ac_func
16466 choke me
16467 #endif
16468
16469 int
16470 main ()
16471 {
16472 return $ac_func ();
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (ac_try="$ac_link"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_link") 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } && {
16491 test -z "$ac_c_werror_flag" ||
16492 test ! -s conftest.err
16493 } && test -s conftest$ac_exeext &&
16494 $as_test_x conftest$ac_exeext; then
16495 eval "$as_ac_var=yes"
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 eval "$as_ac_var=no"
16501 fi
16502
16503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16504 conftest$ac_exeext conftest.$ac_ext
16505 fi
16506 ac_res=`eval echo '${'$as_ac_var'}'`
16507 { echo "$as_me:$LINENO: result: $ac_res" >&5
16508 echo "${ECHO_T}$ac_res" >&6; }
16509 if test `eval echo '${'$as_ac_var'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515 done
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533 { echo "$as_me:$LINENO: checking for working mktime" >&5
16534 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16535 if test "${ac_cv_func_working_mktime+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 if test "$cross_compiling" = yes; then
16539 ac_cv_func_working_mktime=no
16540 else
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 /* Test program from Paul Eggert and Tony Leneis. */
16548 #ifdef TIME_WITH_SYS_TIME
16549 # include <sys/time.h>
16550 # include <time.h>
16551 #else
16552 # ifdef HAVE_SYS_TIME_H
16553 # include <sys/time.h>
16554 # else
16555 # include <time.h>
16556 # endif
16557 #endif
16558
16559 #include <stdlib.h>
16560
16561 #ifdef HAVE_UNISTD_H
16562 # include <unistd.h>
16563 #endif
16564
16565 #ifndef HAVE_ALARM
16566 # define alarm(X) /* empty */
16567 #endif
16568
16569 /* Work around redefinition to rpl_putenv by other config tests. */
16570 #undef putenv
16571
16572 static time_t time_t_max;
16573 static time_t time_t_min;
16574
16575 /* Values we'll use to set the TZ environment variable. */
16576 static char *tz_strings[] = {
16577 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16578 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16579 };
16580 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16581
16582 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16583 Based on a problem report from Andreas Jaeger. */
16584 static int
16585 spring_forward_gap ()
16586 {
16587 /* glibc (up to about 1998-10-07) failed this test. */
16588 struct tm tm;
16589
16590 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16591 instead of "TZ=America/Vancouver" in order to detect the bug even
16592 on systems that don't support the Olson extension, or don't have the
16593 full zoneinfo tables installed. */
16594 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16595
16596 tm.tm_year = 98;
16597 tm.tm_mon = 3;
16598 tm.tm_mday = 5;
16599 tm.tm_hour = 2;
16600 tm.tm_min = 0;
16601 tm.tm_sec = 0;
16602 tm.tm_isdst = -1;
16603 return mktime (&tm) != (time_t) -1;
16604 }
16605
16606 static int
16607 mktime_test1 (now)
16608 time_t now;
16609 {
16610 struct tm *lt;
16611 return ! (lt = localtime (&now)) || mktime (lt) == now;
16612 }
16613
16614 static int
16615 mktime_test (now)
16616 time_t now;
16617 {
16618 return (mktime_test1 (now)
16619 && mktime_test1 ((time_t) (time_t_max - now))
16620 && mktime_test1 ((time_t) (time_t_min + now)));
16621 }
16622
16623 static int
16624 irix_6_4_bug ()
16625 {
16626 /* Based on code from Ariel Faigon. */
16627 struct tm tm;
16628 tm.tm_year = 96;
16629 tm.tm_mon = 3;
16630 tm.tm_mday = 0;
16631 tm.tm_hour = 0;
16632 tm.tm_min = 0;
16633 tm.tm_sec = 0;
16634 tm.tm_isdst = -1;
16635 mktime (&tm);
16636 return tm.tm_mon == 2 && tm.tm_mday == 31;
16637 }
16638
16639 static int
16640 bigtime_test (j)
16641 int j;
16642 {
16643 struct tm tm;
16644 time_t now;
16645 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16646 now = mktime (&tm);
16647 if (now != (time_t) -1)
16648 {
16649 struct tm *lt = localtime (&now);
16650 if (! (lt
16651 && lt->tm_year == tm.tm_year
16652 && lt->tm_mon == tm.tm_mon
16653 && lt->tm_mday == tm.tm_mday
16654 && lt->tm_hour == tm.tm_hour
16655 && lt->tm_min == tm.tm_min
16656 && lt->tm_sec == tm.tm_sec
16657 && lt->tm_yday == tm.tm_yday
16658 && lt->tm_wday == tm.tm_wday
16659 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16660 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16661 return 0;
16662 }
16663 return 1;
16664 }
16665
16666 static int
16667 year_2050_test ()
16668 {
16669 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16670 ignoring leap seconds. */
16671 unsigned long int answer = 2527315200UL;
16672
16673 struct tm tm;
16674 time_t t;
16675 tm.tm_year = 2050 - 1900;
16676 tm.tm_mon = 2 - 1;
16677 tm.tm_mday = 1;
16678 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16679 tm.tm_isdst = -1;
16680
16681 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16682 instead of "TZ=America/Vancouver" in order to detect the bug even
16683 on systems that don't support the Olson extension, or don't have the
16684 full zoneinfo tables installed. */
16685 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16686
16687 t = mktime (&tm);
16688
16689 /* Check that the result is either a failure, or close enough
16690 to the correct answer that we can assume the discrepancy is
16691 due to leap seconds. */
16692 return (t == (time_t) -1
16693 || (0 < t && answer - 120 <= t && t <= answer + 120));
16694 }
16695
16696 int
16697 main ()
16698 {
16699 time_t t, delta;
16700 int i, j;
16701
16702 /* This test makes some buggy mktime implementations loop.
16703 Give up after 60 seconds; a mktime slower than that
16704 isn't worth using anyway. */
16705 alarm (60);
16706
16707 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16708 continue;
16709 time_t_max--;
16710 if ((time_t) -1 < 0)
16711 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16712 continue;
16713 delta = time_t_max / 997; /* a suitable prime number */
16714 for (i = 0; i < N_STRINGS; i++)
16715 {
16716 if (tz_strings[i])
16717 putenv (tz_strings[i]);
16718
16719 for (t = 0; t <= time_t_max - delta; t += delta)
16720 if (! mktime_test (t))
16721 return 1;
16722 if (! (mktime_test ((time_t) 1)
16723 && mktime_test ((time_t) (60 * 60))
16724 && mktime_test ((time_t) (60 * 60 * 24))))
16725 return 1;
16726
16727 for (j = 1; 0 < j; j *= 2)
16728 if (! bigtime_test (j))
16729 return 1;
16730 if (! bigtime_test (j - 1))
16731 return 1;
16732 }
16733 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16734 }
16735 _ACEOF
16736 rm -f conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_func_working_mktime=yes
16757 else
16758 echo "$as_me: program exited with status $ac_status" >&5
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ( exit $ac_status )
16763 ac_cv_func_working_mktime=no
16764 fi
16765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16766 fi
16767
16768
16769 fi
16770 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16771 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16772 if test $ac_cv_func_working_mktime = no; then
16773 case " $LIBOBJS " in
16774 *" mktime.$ac_objext "* ) ;;
16775 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16776 ;;
16777 esac
16778
16779 fi
16780
16781 if test "$ac_cv_func_working_mktime" = no; then
16782
16783 cat >>confdefs.h <<\_ACEOF
16784 #define BROKEN_MKTIME 1
16785 _ACEOF
16786
16787 fi
16788
16789 ac_have_func=no # yes means we've found a way to get the load average.
16790
16791 # Make sure getloadavg.c is where it belongs, at configure-time.
16792 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16793 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16794 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16795 { (exit 1); exit 1; }; }
16796
16797 ac_save_LIBS=$LIBS
16798
16799 # Check for getloadavg, but be sure not to touch the cache variable.
16800 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16801 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16802 if test "${ac_cv_func_getloadavg+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h. */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16813 #define getloadavg innocuous_getloadavg
16814
16815 /* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char getloadavg (); below.
16817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818 <limits.h> exists even on freestanding compilers. */
16819
16820 #ifdef __STDC__
16821 # include <limits.h>
16822 #else
16823 # include <assert.h>
16824 #endif
16825
16826 #undef getloadavg
16827
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16831 #ifdef __cplusplus
16832 extern "C"
16833 #endif
16834 char getloadavg ();
16835 /* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838 #if defined __stub_getloadavg || defined __stub___getloadavg
16839 choke me
16840 #endif
16841
16842 int
16843 main ()
16844 {
16845 return getloadavg ();
16846 ;
16847 return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext &&
16867 $as_test_x conftest$ac_exeext; then
16868 ac_cv_func_getloadavg=yes
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_func_getloadavg=no
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16878 fi
16879 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16880 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16881 if test $ac_cv_func_getloadavg = yes; then
16882 exit 0
16883 else
16884 exit 1
16885 fi
16886 ) && ac_have_func=yes
16887
16888 # On HPUX9, an unprivileged user can get load averages through this function.
16889
16890 for ac_func in pstat_getdynamic
16891 do
16892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16906 #define $ac_func innocuous_$ac_func
16907
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char $ac_func (); below.
16910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 <limits.h> exists even on freestanding compilers. */
16912
16913 #ifdef __STDC__
16914 # include <limits.h>
16915 #else
16916 # include <assert.h>
16917 #endif
16918
16919 #undef $ac_func
16920
16921 /* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16924 #ifdef __cplusplus
16925 extern "C"
16926 #endif
16927 char $ac_func ();
16928 /* The GNU C library defines this for functions which it implements
16929 to always fail with ENOSYS. Some functions are actually named
16930 something starting with __ and the normal name is an alias. */
16931 #if defined __stub_$ac_func || defined __stub___$ac_func
16932 choke me
16933 #endif
16934
16935 int
16936 main ()
16937 {
16938 return $ac_func ();
16939 ;
16940 return 0;
16941 }
16942 _ACEOF
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (ac_try="$ac_link"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_link") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest$ac_exeext &&
16960 $as_test_x conftest$ac_exeext; then
16961 eval "$as_ac_var=yes"
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 eval "$as_ac_var=no"
16967 fi
16968
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971 fi
16972 ac_res=`eval echo '${'$as_ac_var'}'`
16973 { echo "$as_me:$LINENO: result: $ac_res" >&5
16974 echo "${ECHO_T}$ac_res" >&6; }
16975 if test `eval echo '${'$as_ac_var'}'` = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16978 _ACEOF
16979
16980 fi
16981 done
16982
16983
16984 # Solaris has libkstat which does not require root.
16985
16986 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16987 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16988 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991 ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-lkstat $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 char kstat_open ();
17007 int
17008 main ()
17009 {
17010 return kstat_open ();
17011 ;
17012 return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && {
17029 test -z "$ac_c_werror_flag" ||
17030 test ! -s conftest.err
17031 } && test -s conftest$ac_exeext &&
17032 $as_test_x conftest$ac_exeext; then
17033 ac_cv_lib_kstat_kstat_open=yes
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 ac_cv_lib_kstat_kstat_open=no
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17042 conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17044 fi
17045 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17046 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17047 if test $ac_cv_lib_kstat_kstat_open = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049 #define HAVE_LIBKSTAT 1
17050 _ACEOF
17051
17052 LIBS="-lkstat $LIBS"
17053
17054 fi
17055
17056 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17057
17058 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17059 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17060 # to get the right answer into the cache.
17061 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17062 if test $ac_have_func = no; then
17063 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17064 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17065 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 ac_check_lib_save_LIBS=$LIBS
17069 LIBS="-lelf $LIBS"
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char elf_begin ();
17084 int
17085 main ()
17086 {
17087 return elf_begin ();
17088 ;
17089 return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_elf_elf_begin=yes
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 ac_cv_lib_elf_elf_begin=no
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17121 fi
17122 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17123 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17124 if test $ac_cv_lib_elf_elf_begin = yes; then
17125 LIBS="-lelf $LIBS"
17126 fi
17127
17128 fi
17129 if test $ac_have_func = no; then
17130 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17131 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lkvm $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char kvm_open ();
17151 int
17152 main ()
17153 {
17154 return kvm_open ();
17155 ;
17156 return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest$ac_exeext &&
17176 $as_test_x conftest$ac_exeext; then
17177 ac_cv_lib_kvm_kvm_open=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 ac_cv_lib_kvm_kvm_open=no
17183 fi
17184
17185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17186 conftest$ac_exeext conftest.$ac_ext
17187 LIBS=$ac_check_lib_save_LIBS
17188 fi
17189 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17190 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17191 if test $ac_cv_lib_kvm_kvm_open = yes; then
17192 LIBS="-lkvm $LIBS"
17193 fi
17194
17195 # Check for the 4.4BSD definition of getloadavg.
17196 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17197 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17198 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 ac_check_lib_save_LIBS=$LIBS
17202 LIBS="-lutil $LIBS"
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17213 #ifdef __cplusplus
17214 extern "C"
17215 #endif
17216 char getloadavg ();
17217 int
17218 main ()
17219 {
17220 return getloadavg ();
17221 ;
17222 return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17243 ac_cv_lib_util_getloadavg=yes
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_cv_lib_util_getloadavg=no
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17254 fi
17255 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17256 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17257 if test $ac_cv_lib_util_getloadavg = yes; then
17258 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17259 fi
17260
17261 fi
17262
17263 if test $ac_have_func = no; then
17264 # There is a commonly available library for RS/6000 AIX.
17265 # Since it is not a standard part of AIX, it might be installed locally.
17266 ac_getloadavg_LIBS=$LIBS
17267 LIBS="-L/usr/local/lib $LIBS"
17268 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17269 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17270 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lgetloadavg $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char getloadavg ();
17289 int
17290 main ()
17291 {
17292 return getloadavg ();
17293 ;
17294 return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_getloadavg_getloadavg=yes
17316 else
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 ac_cv_lib_getloadavg_getloadavg=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17326 fi
17327 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17328 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17329 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17330 LIBS="-lgetloadavg $LIBS"
17331 else
17332 LIBS=$ac_getloadavg_LIBS
17333 fi
17334
17335 fi
17336
17337 # Make sure it is really in the library, if we think we found it,
17338 # otherwise set up the replacement function.
17339
17340 for ac_func in getloadavg
17341 do
17342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h. */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17357
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17362
17363 #ifdef __STDC__
17364 # include <limits.h>
17365 #else
17366 # include <assert.h>
17367 #endif
17368
17369 #undef $ac_func
17370
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 char $ac_func ();
17378 /* The GNU C library defines this for functions which it implements
17379 to always fail with ENOSYS. Some functions are actually named
17380 something starting with __ and the normal name is an alias. */
17381 #if defined __stub_$ac_func || defined __stub___$ac_func
17382 choke me
17383 #endif
17384
17385 int
17386 main ()
17387 {
17388 return $ac_func ();
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 eval "$as_ac_var=yes"
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 eval "$as_ac_var=no"
17417 fi
17418
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17421 fi
17422 ac_res=`eval echo '${'$as_ac_var'}'`
17423 { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 else
17431 case " $LIBOBJS " in
17432 *" getloadavg.$ac_objext "* ) ;;
17433 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17434 ;;
17435 esac
17436
17437
17438 cat >>confdefs.h <<\_ACEOF
17439 #define C_GETLOADAVG 1
17440 _ACEOF
17441
17442 # Figure out what our getloadavg.c needs.
17443 ac_have_func=no
17444 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17445 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17446 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17447 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 fi
17450 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17452 else
17453 # Is the header compilable?
17454 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17455 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17456 cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h. */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 $ac_includes_default
17463 #include <sys/dg_sys_info.h>
17464 _ACEOF
17465 rm -f conftest.$ac_objext
17466 if { (ac_try="$ac_compile"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_compile") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } && {
17479 test -z "$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17481 } && test -s conftest.$ac_objext; then
17482 ac_header_compiler=yes
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_header_compiler=no
17488 fi
17489
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17492 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493
17494 # Is the header present?
17495 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17496 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <sys/dg_sys_info.h>
17504 _ACEOF
17505 if { (ac_try="$ac_cpp conftest.$ac_ext"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null && {
17518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17520 }; then
17521 ac_header_preproc=yes
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 ac_header_preproc=no
17527 fi
17528
17529 rm -f conftest.err conftest.$ac_ext
17530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17531 echo "${ECHO_T}$ac_header_preproc" >&6; }
17532
17533 # So? What about this header?
17534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17535 yes:no: )
17536 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17537 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17538 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17539 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17540 ac_header_preproc=yes
17541 ;;
17542 no:yes:* )
17543 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17544 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17546 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17547 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17548 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17550 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17552 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17554 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17555
17556 ;;
17557 esac
17558 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17559 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17560 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17564 fi
17565 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17566 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17567
17568 fi
17569 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17570 ac_have_func=yes
17571
17572 cat >>confdefs.h <<\_ACEOF
17573 #define DGUX 1
17574 _ACEOF
17575
17576
17577 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17578 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17579 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-ldgc $LIBS"
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h. */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char dg_sys_info ();
17598 int
17599 main ()
17600 {
17601 return dg_sys_info ();
17602 ;
17603 return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 ac_cv_lib_dgc_dg_sys_info=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 ac_cv_lib_dgc_dg_sys_info=no
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 LIBS=$ac_check_lib_save_LIBS
17635 fi
17636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17637 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17638 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_LIBDGC 1
17641 _ACEOF
17642
17643 LIBS="-ldgc $LIBS"
17644
17645 fi
17646
17647 fi
17648
17649
17650
17651 if test "${ac_cv_header_locale_h+set}" = set; then
17652 { echo "$as_me:$LINENO: checking for locale.h" >&5
17653 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17654 if test "${ac_cv_header_locale_h+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 fi
17657 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17658 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17659 else
17660 # Is the header compilable?
17661 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17662 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 $ac_includes_default
17670 #include <locale.h>
17671 _ACEOF
17672 rm -f conftest.$ac_objext
17673 if { (ac_try="$ac_compile"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17689 ac_header_compiler=yes
17690 else
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_header_compiler=no
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17699 echo "${ECHO_T}$ac_header_compiler" >&6; }
17700
17701 # Is the header present?
17702 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17703 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <locale.h>
17711 _ACEOF
17712 if { (ac_try="$ac_cpp conftest.$ac_ext"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } >/dev/null && {
17725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 }; then
17728 ac_header_preproc=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_header_preproc=no
17734 fi
17735
17736 rm -f conftest.err conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17738 echo "${ECHO_T}$ac_header_preproc" >&6; }
17739
17740 # So? What about this header?
17741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17742 yes:no: )
17743 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17744 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17746 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17747 ac_header_preproc=yes
17748 ;;
17749 no:yes:* )
17750 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17751 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17753 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17755 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17757 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17759 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17761 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17762
17763 ;;
17764 esac
17765 { echo "$as_me:$LINENO: checking for locale.h" >&5
17766 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17767 if test "${ac_cv_header_locale_h+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770 ac_cv_header_locale_h=$ac_header_preproc
17771 fi
17772 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17774
17775 fi
17776
17777
17778
17779 for ac_func in setlocale
17780 do
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17796
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17801
17802 #ifdef __STDC__
17803 # include <limits.h>
17804 #else
17805 # include <assert.h>
17806 #endif
17807
17808 #undef $ac_func
17809
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char $ac_func ();
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17821 choke me
17822 #endif
17823
17824 int
17825 main ()
17826 {
17827 return $ac_func ();
17828 ;
17829 return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 eval "$as_ac_var=yes"
17851 else
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855 eval "$as_ac_var=no"
17856 fi
17857
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17860 fi
17861 ac_res=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17867 _ACEOF
17868
17869 fi
17870 done
17871
17872
17873 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17874 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17875 # Irix 4.0.5F has the header but not the library.
17876 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17877 ac_have_func=yes
17878
17879 cat >>confdefs.h <<\_ACEOF
17880 #define SVR4 1
17881 _ACEOF
17882
17883 fi
17884
17885 if test $ac_have_func = no; then
17886 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17887 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17888 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 fi
17892 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17894 else
17895 # Is the header compilable?
17896 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17897 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 $ac_includes_default
17905 #include <inq_stats/cpustats.h>
17906 _ACEOF
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_compile") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest.$ac_objext; then
17924 ac_header_compiler=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_header_compiler=no
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17934 echo "${ECHO_T}$ac_header_compiler" >&6; }
17935
17936 # Is the header present?
17937 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17938 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 #include <inq_stats/cpustats.h>
17946 _ACEOF
17947 if { (ac_try="$ac_cpp conftest.$ac_ext"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } >/dev/null && {
17960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 }; then
17963 ac_header_preproc=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 ac_header_preproc=no
17969 fi
17970
17971 rm -f conftest.err conftest.$ac_ext
17972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17973 echo "${ECHO_T}$ac_header_preproc" >&6; }
17974
17975 # So? What about this header?
17976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17977 yes:no: )
17978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17979 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17981 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17982 ac_header_preproc=yes
17983 ;;
17984 no:yes:* )
17985 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17986 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17988 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17990 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17992 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17993 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17994 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17995 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17996 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17997
17998 ;;
17999 esac
18000 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18001 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18002 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18006 fi
18007 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18008 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18009
18010 fi
18011 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18012 ac_have_func=yes
18013
18014 cat >>confdefs.h <<\_ACEOF
18015 #define UMAX 1
18016 _ACEOF
18017
18018
18019 cat >>confdefs.h <<\_ACEOF
18020 #define UMAX4_3 1
18021 _ACEOF
18022
18023 fi
18024
18025
18026 fi
18027
18028 if test $ac_have_func = no; then
18029 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18030 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18031 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18032 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 fi
18035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18037 else
18038 # Is the header compilable?
18039 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18040 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18048 #include <sys/cpustats.h>
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_compile") 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } && {
18064 test -z "$ac_c_werror_flag" ||
18065 test ! -s conftest.err
18066 } && test -s conftest.$ac_objext; then
18067 ac_header_compiler=yes
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 ac_header_compiler=no
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18077 echo "${ECHO_T}$ac_header_compiler" >&6; }
18078
18079 # Is the header present?
18080 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18081 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 #include <sys/cpustats.h>
18089 _ACEOF
18090 if { (ac_try="$ac_cpp conftest.$ac_ext"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } >/dev/null && {
18103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 }; then
18106 ac_header_preproc=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111 ac_header_preproc=no
18112 fi
18113
18114 rm -f conftest.err conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18116 echo "${ECHO_T}$ac_header_preproc" >&6; }
18117
18118 # So? What about this header?
18119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18120 yes:no: )
18121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18125 ac_header_preproc=yes
18126 ;;
18127 no:yes:* )
18128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18140
18141 ;;
18142 esac
18143 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18144 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18145 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18149 fi
18150 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18151 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18152
18153 fi
18154 if test $ac_cv_header_sys_cpustats_h = yes; then
18155 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18156 #define UMAX 1
18157 _ACEOF
18158
18159 fi
18160
18161
18162 fi
18163
18164 if test $ac_have_func = no; then
18165
18166 for ac_header in mach/mach.h
18167 do
18168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 fi
18175 ac_res=`eval echo '${'$as_ac_Header'}'`
18176 { echo "$as_me:$LINENO: result: $ac_res" >&5
18177 echo "${ECHO_T}$ac_res" >&6; }
18178 else
18179 # Is the header compilable?
18180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18182 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h. */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188 $ac_includes_default
18189 #include <$ac_header>
18190 _ACEOF
18191 rm -f conftest.$ac_objext
18192 if { (ac_try="$ac_compile"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_compile") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest.$ac_objext; then
18208 ac_header_compiler=yes
18209 else
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 ac_header_compiler=no
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18218 echo "${ECHO_T}$ac_header_compiler" >&6; }
18219
18220 # Is the header present?
18221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 #include <$ac_header>
18230 _ACEOF
18231 if { (ac_try="$ac_cpp conftest.$ac_ext"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18238 ac_status=$?
18239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } >/dev/null && {
18244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18246 }; then
18247 ac_header_preproc=yes
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_header_preproc=no
18253 fi
18254
18255 rm -f conftest.err conftest.$ac_ext
18256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18257 echo "${ECHO_T}$ac_header_preproc" >&6; }
18258
18259 # So? What about this header?
18260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18261 yes:no: )
18262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18266 ac_header_preproc=yes
18267 ;;
18268 no:yes:* )
18269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18281
18282 ;;
18283 esac
18284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289 eval "$as_ac_Header=\$ac_header_preproc"
18290 fi
18291 ac_res=`eval echo '${'$as_ac_Header'}'`
18292 { echo "$as_me:$LINENO: result: $ac_res" >&5
18293 echo "${ECHO_T}$ac_res" >&6; }
18294
18295 fi
18296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18297 cat >>confdefs.h <<_ACEOF
18298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18299 _ACEOF
18300
18301 fi
18302
18303 done
18304
18305 fi
18306
18307
18308 for ac_header in nlist.h
18309 do
18310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 fi
18317 ac_res=`eval echo '${'$as_ac_Header'}'`
18318 { echo "$as_me:$LINENO: result: $ac_res" >&5
18319 echo "${ECHO_T}$ac_res" >&6; }
18320 else
18321 # Is the header compilable?
18322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 $ac_includes_default
18331 #include <$ac_header>
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18350 ac_header_compiler=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ac_header_compiler=no
18356 fi
18357
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18360 echo "${ECHO_T}$ac_header_compiler" >&6; }
18361
18362 # Is the header present?
18363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <$ac_header>
18372 _ACEOF
18373 if { (ac_try="$ac_cpp conftest.$ac_ext"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } >/dev/null && {
18386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 }; then
18389 ac_header_preproc=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ac_header_preproc=no
18395 fi
18396
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18400
18401 # So? What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18403 yes:no: )
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18408 ac_header_preproc=yes
18409 ;;
18410 no:yes:* )
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18423
18424 ;;
18425 esac
18426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431 eval "$as_ac_Header=\$ac_header_preproc"
18432 fi
18433 ac_res=`eval echo '${'$as_ac_Header'}'`
18434 { echo "$as_me:$LINENO: result: $ac_res" >&5
18435 echo "${ECHO_T}$ac_res" >&6; }
18436
18437 fi
18438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18441 _ACEOF
18442 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18443 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18444 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <nlist.h>
18454
18455 int
18456 main ()
18457 {
18458 static struct nlist ac_aggr;
18459 if (ac_aggr.n_un.n_name)
18460 return 0;
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 rm -f conftest.$ac_objext
18466 if { (ac_try="$ac_compile"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_member_struct_nlist_n_un_n_name=yes
18483 else
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h. */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18493 #include <nlist.h>
18494
18495 int
18496 main ()
18497 {
18498 static struct nlist ac_aggr;
18499 if (sizeof ac_aggr.n_un.n_name)
18500 return 0;
18501 ;
18502 return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest.$ac_objext; then
18522 ac_cv_member_struct_nlist_n_un_n_name=yes
18523 else
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527 ac_cv_member_struct_nlist_n_un_n_name=no
18528 fi
18529
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 fi
18535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18536 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18537 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18538
18539 cat >>confdefs.h <<_ACEOF
18540 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18541 _ACEOF
18542
18543
18544 cat >>confdefs.h <<\_ACEOF
18545 #define NLIST_NAME_UNION 1
18546 _ACEOF
18547
18548 fi
18549
18550
18551 fi
18552
18553 done
18554
18555 fi
18556 done
18557
18558
18559 # Some definitions of getloadavg require that the program be installed setgid.
18560 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18561 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18562 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18572 #ifdef LDAV_PRIVILEGED
18573 Yowza Am I SETGID yet
18574 #endif
18575 _ACEOF
18576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18577 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18578 ac_cv_func_getloadavg_setgid=yes
18579 else
18580 ac_cv_func_getloadavg_setgid=no
18581 fi
18582 rm -f conftest*
18583
18584 fi
18585 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18586 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18587 if test $ac_cv_func_getloadavg_setgid = yes; then
18588 NEED_SETGID=true
18589
18590 cat >>confdefs.h <<\_ACEOF
18591 #define GETLOADAVG_PRIVILEGED 1
18592 _ACEOF
18593
18594 else
18595 NEED_SETGID=false
18596 fi
18597
18598 if test $ac_cv_func_getloadavg_setgid = yes; then
18599 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18600 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18601 if test "${ac_cv_group_kmem+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18605 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18606 # If we got an error (system does not support symlinks), try without -L.
18607 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18608 ac_cv_group_kmem=`echo $ac_ls_output \
18609 | sed -ne 's/[ ][ ]*/ /g;
18610 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18611 / /s/.* //;p;'`
18612
18613 fi
18614 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18615 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18616 KMEM_GROUP=$ac_cv_group_kmem
18617 fi
18618 if test "x$ac_save_LIBS" = x; then
18619 GETLOADAVG_LIBS=$LIBS
18620 else
18621 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18622 fi
18623 LIBS=$ac_save_LIBS
18624
18625
18626
18627 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18628 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18629 if test "${ac_cv_sys_largefile_source+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632 while :; do
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 #include <stdio.h>
18640 int
18641 main ()
18642 {
18643 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18644 ;
18645 return 0;
18646 }
18647 _ACEOF
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ac_cv_sys_largefile_source=no; break
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671
18672 fi
18673
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h. */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 #define _LARGEFILE_SOURCE 1
18683 #include <stdio.h>
18684 int
18685 main ()
18686 {
18687 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18688 ;
18689 return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (ac_try="$ac_link"
18694 case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_link") 2>conftest.er1
18700 ac_status=$?
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } && {
18706 test -z "$ac_c_werror_flag" ||
18707 test ! -s conftest.err
18708 } && test -s conftest$ac_exeext &&
18709 $as_test_x conftest$ac_exeext; then
18710 ac_cv_sys_largefile_source=1; break
18711 else
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18714
18715
18716 fi
18717
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18720 ac_cv_sys_largefile_source=unknown
18721 break
18722 done
18723 fi
18724 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18725 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18726 case $ac_cv_sys_largefile_source in #(
18727 no | unknown) ;;
18728 *)
18729 cat >>confdefs.h <<_ACEOF
18730 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18731 _ACEOF
18732 ;;
18733 esac
18734 rm -f conftest*
18735
18736 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18737 # in glibc 2.1.3, but that breaks too many other things.
18738 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18739 if test $ac_cv_sys_largefile_source != unknown; then
18740
18741 cat >>confdefs.h <<\_ACEOF
18742 #define HAVE_FSEEKO 1
18743 _ACEOF
18744
18745 fi
18746
18747
18748 # Configure getopt.
18749 # getopt.m4 serial 10
18750
18751 # The getopt module assume you want GNU getopt, with getopt_long etc,
18752 # rather than vanilla POSIX getopt. This means your your code should
18753 # always include <getopt.h> for the getopt prototypes.
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765 # Prerequisites of lib/getopt*.
18766
18767
18768
18769
18770 GETOPT_H=
18771
18772 for ac_header in getopt.h
18773 do
18774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 fi
18781 ac_res=`eval echo '${'$as_ac_Header'}'`
18782 { echo "$as_me:$LINENO: result: $ac_res" >&5
18783 echo "${ECHO_T}$ac_res" >&6; }
18784 else
18785 # Is the header compilable?
18786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h. */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 $ac_includes_default
18795 #include <$ac_header>
18796 _ACEOF
18797 rm -f conftest.$ac_objext
18798 if { (ac_try="$ac_compile"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_compile") 2>conftest.er1
18805 ac_status=$?
18806 grep -v '^ *+' conftest.er1 >conftest.err
18807 rm -f conftest.er1
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } && {
18811 test -z "$ac_c_werror_flag" ||
18812 test ! -s conftest.err
18813 } && test -s conftest.$ac_objext; then
18814 ac_header_compiler=yes
18815 else
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819 ac_header_compiler=no
18820 fi
18821
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18824 echo "${ECHO_T}$ac_header_compiler" >&6; }
18825
18826 # Is the header present?
18827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18829 cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h. */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 #include <$ac_header>
18836 _ACEOF
18837 if { (ac_try="$ac_cpp conftest.$ac_ext"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18841 esac
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } >/dev/null && {
18850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 }; then
18853 ac_header_preproc=yes
18854 else
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 ac_header_preproc=no
18859 fi
18860
18861 rm -f conftest.err conftest.$ac_ext
18862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18863 echo "${ECHO_T}$ac_header_preproc" >&6; }
18864
18865 # So? What about this header?
18866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18867 yes:no: )
18868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18872 ac_header_preproc=yes
18873 ;;
18874 no:yes:* )
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18887
18888 ;;
18889 esac
18890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895 eval "$as_ac_Header=\$ac_header_preproc"
18896 fi
18897 ac_res=`eval echo '${'$as_ac_Header'}'`
18898 { echo "$as_me:$LINENO: result: $ac_res" >&5
18899 echo "${ECHO_T}$ac_res" >&6; }
18900
18901 fi
18902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18905 _ACEOF
18906
18907 else
18908 GETOPT_H=getopt.h
18909 fi
18910
18911 done
18912
18913 if test -z "$GETOPT_H"; then
18914
18915 for ac_func in getopt_long_only
18916 do
18917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h. */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18931 #define $ac_func innocuous_$ac_func
18932
18933 /* System header to define __stub macros and hopefully few prototypes,
18934 which can conflict with char $ac_func (); below.
18935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18936 <limits.h> exists even on freestanding compilers. */
18937
18938 #ifdef __STDC__
18939 # include <limits.h>
18940 #else
18941 # include <assert.h>
18942 #endif
18943
18944 #undef $ac_func
18945
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18949 #ifdef __cplusplus
18950 extern "C"
18951 #endif
18952 char $ac_func ();
18953 /* The GNU C library defines this for functions which it implements
18954 to always fail with ENOSYS. Some functions are actually named
18955 something starting with __ and the normal name is an alias. */
18956 #if defined __stub_$ac_func || defined __stub___$ac_func
18957 choke me
18958 #endif
18959
18960 int
18961 main ()
18962 {
18963 return $ac_func ();
18964 ;
18965 return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18976 ac_status=$?
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest$ac_exeext &&
18985 $as_test_x conftest$ac_exeext; then
18986 eval "$as_ac_var=yes"
18987 else
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 eval "$as_ac_var=no"
18992 fi
18993
18994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18995 conftest$ac_exeext conftest.$ac_ext
18996 fi
18997 ac_res=`eval echo '${'$as_ac_var'}'`
18998 { echo "$as_me:$LINENO: result: $ac_res" >&5
18999 echo "${ECHO_T}$ac_res" >&6; }
19000 if test `eval echo '${'$as_ac_var'}'` = yes; then
19001 cat >>confdefs.h <<_ACEOF
19002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19003 _ACEOF
19004
19005 else
19006 GETOPT_H=getopt.h
19007 fi
19008 done
19009
19010 fi
19011
19012 if test -z "$GETOPT_H"; then
19013 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19014 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19015 if test "${ac_cv_have_decl_optreset+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h. */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 #include <getopt.h>
19025
19026 int
19027 main ()
19028 {
19029 #ifndef optreset
19030 (void) optreset;
19031 #endif
19032
19033 ;
19034 return 0;
19035 }
19036 _ACEOF
19037 rm -f conftest.$ac_objext
19038 if { (ac_try="$ac_compile"
19039 case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_compile") 2>conftest.er1
19045 ac_status=$?
19046 grep -v '^ *+' conftest.er1 >conftest.err
19047 rm -f conftest.er1
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } && {
19051 test -z "$ac_c_werror_flag" ||
19052 test ! -s conftest.err
19053 } && test -s conftest.$ac_objext; then
19054 ac_cv_have_decl_optreset=yes
19055 else
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 ac_cv_have_decl_optreset=no
19060 fi
19061
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 fi
19064 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19065 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19066 if test $ac_cv_have_decl_optreset = yes; then
19067 GETOPT_H=getopt.h
19068 fi
19069
19070 fi
19071
19072 if test -z "$GETOPT_H"; then
19073 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19074 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19075 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 else
19078 if test "$cross_compiling" = yes; then
19079 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19080 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19081 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h. */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 #include <getopt.h>
19091
19092 int
19093 main ()
19094 {
19095 #ifndef getopt_clip
19096 (void) getopt_clip;
19097 #endif
19098
19099 ;
19100 return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_compile") 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest.$ac_objext; then
19120 ac_cv_have_decl_getopt_clip=yes
19121 else
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_cv_have_decl_getopt_clip=no
19126 fi
19127
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 fi
19130 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19131 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19132 if test $ac_cv_have_decl_getopt_clip = yes; then
19133 gl_cv_func_gnu_getopt=no
19134 else
19135 gl_cv_func_gnu_getopt=yes
19136 fi
19137
19138 else
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include <getopt.h>
19146 int
19147 main ()
19148 {
19149
19150 char *myargv[3];
19151 myargv[0] = "conftest";
19152 myargv[1] = "-+";
19153 myargv[2] = 0;
19154 return getopt (2, myargv, "+a") != '?';
19155
19156 ;
19157 return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_link") 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19171 { (case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174 esac
19175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_try") 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 gl_cv_func_gnu_getopt=yes
19181 else
19182 echo "$as_me: program exited with status $ac_status" >&5
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186 ( exit $ac_status )
19187 gl_cv_func_gnu_getopt=no
19188 fi
19189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19190 fi
19191
19192
19193 fi
19194 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19195 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19196 if test "$gl_cv_func_gnu_getopt" = "no"; then
19197 GETOPT_H=getopt.h
19198 fi
19199 fi
19200
19201
19202
19203 if test -n "$GETOPT_H"; then
19204
19205
19206 GETOPT_H=getopt.h
19207
19208 cat >>confdefs.h <<\_ACEOF
19209 #define __GETOPT_PREFIX rpl_
19210 _ACEOF
19211
19212
19213
19214 :
19215 GETOPTOBJS='getopt.o getopt1.o'
19216
19217 fi
19218
19219
19220
19221
19222 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19223 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19224 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227 # Use it with a single arg.
19228 cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h. */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 $ac_includes_default
19235 int
19236 main ()
19237 {
19238 getpgrp (0);
19239 ;
19240 return 0;
19241 }
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (ac_try="$ac_compile"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_compile") 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest.$ac_objext; then
19260 ac_cv_func_getpgrp_void=no
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 ac_cv_func_getpgrp_void=yes
19266 fi
19267
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269
19270 fi
19271 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19272 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19273 if test $ac_cv_func_getpgrp_void = yes; then
19274
19275 cat >>confdefs.h <<\_ACEOF
19276 #define GETPGRP_VOID 1
19277 _ACEOF
19278
19279 fi
19280
19281
19282
19283 for ac_func in strftime
19284 do
19285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h. */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19299 #define $ac_func innocuous_$ac_func
19300
19301 /* System header to define __stub macros and hopefully few prototypes,
19302 which can conflict with char $ac_func (); below.
19303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19304 <limits.h> exists even on freestanding compilers. */
19305
19306 #ifdef __STDC__
19307 # include <limits.h>
19308 #else
19309 # include <assert.h>
19310 #endif
19311
19312 #undef $ac_func
19313
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19317 #ifdef __cplusplus
19318 extern "C"
19319 #endif
19320 char $ac_func ();
19321 /* The GNU C library defines this for functions which it implements
19322 to always fail with ENOSYS. Some functions are actually named
19323 something starting with __ and the normal name is an alias. */
19324 #if defined __stub_$ac_func || defined __stub___$ac_func
19325 choke me
19326 #endif
19327
19328 int
19329 main ()
19330 {
19331 return $ac_func ();
19332 ;
19333 return 0;
19334 }
19335 _ACEOF
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19344 ac_status=$?
19345 grep -v '^ *+' conftest.er1 >conftest.err
19346 rm -f conftest.er1
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19354 eval "$as_ac_var=yes"
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359 eval "$as_ac_var=no"
19360 fi
19361
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19364 fi
19365 ac_res=`eval echo '${'$as_ac_var'}'`
19366 { echo "$as_me:$LINENO: result: $ac_res" >&5
19367 echo "${ECHO_T}$ac_res" >&6; }
19368 if test `eval echo '${'$as_ac_var'}'` = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19371 _ACEOF
19372
19373 else
19374 # strftime is in -lintl on SCO UNIX.
19375 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19376 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19377 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380 ac_check_lib_save_LIBS=$LIBS
19381 LIBS="-lintl $LIBS"
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19392 #ifdef __cplusplus
19393 extern "C"
19394 #endif
19395 char strftime ();
19396 int
19397 main ()
19398 {
19399 return strftime ();
19400 ;
19401 return 0;
19402 }
19403 _ACEOF
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409 esac
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_link") 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest$ac_exeext &&
19421 $as_test_x conftest$ac_exeext; then
19422 ac_cv_lib_intl_strftime=yes
19423 else
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19426
19427 ac_cv_lib_intl_strftime=no
19428 fi
19429
19430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19433 fi
19434 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19435 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19436 if test $ac_cv_lib_intl_strftime = yes; then
19437 cat >>confdefs.h <<\_ACEOF
19438 #define HAVE_STRFTIME 1
19439 _ACEOF
19440
19441 LIBS="-lintl $LIBS"
19442 fi
19443
19444 fi
19445 done
19446
19447
19448 # UNIX98 PTYs.
19449
19450 for ac_func in grantpt
19451 do
19452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h. */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19466 #define $ac_func innocuous_$ac_func
19467
19468 /* System header to define __stub macros and hopefully few prototypes,
19469 which can conflict with char $ac_func (); below.
19470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19471 <limits.h> exists even on freestanding compilers. */
19472
19473 #ifdef __STDC__
19474 # include <limits.h>
19475 #else
19476 # include <assert.h>
19477 #endif
19478
19479 #undef $ac_func
19480
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19484 #ifdef __cplusplus
19485 extern "C"
19486 #endif
19487 char $ac_func ();
19488 /* The GNU C library defines this for functions which it implements
19489 to always fail with ENOSYS. Some functions are actually named
19490 something starting with __ and the normal name is an alias. */
19491 #if defined __stub_$ac_func || defined __stub___$ac_func
19492 choke me
19493 #endif
19494
19495 int
19496 main ()
19497 {
19498 return $ac_func ();
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 eval "$as_ac_var=yes"
19522 else
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526 eval "$as_ac_var=no"
19527 fi
19528
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19531 fi
19532 ac_res=`eval echo '${'$as_ac_var'}'`
19533 { echo "$as_me:$LINENO: result: $ac_res" >&5
19534 echo "${ECHO_T}$ac_res" >&6; }
19535 if test `eval echo '${'$as_ac_var'}'` = yes; then
19536 cat >>confdefs.h <<_ACEOF
19537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19538 _ACEOF
19539
19540 fi
19541 done
19542
19543
19544 # PTY-related GNU extensions.
19545
19546 for ac_func in getpt
19547 do
19548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19549 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19562 #define $ac_func innocuous_$ac_func
19563
19564 /* System header to define __stub macros and hopefully few prototypes,
19565 which can conflict with char $ac_func (); below.
19566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19567 <limits.h> exists even on freestanding compilers. */
19568
19569 #ifdef __STDC__
19570 # include <limits.h>
19571 #else
19572 # include <assert.h>
19573 #endif
19574
19575 #undef $ac_func
19576
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19580 #ifdef __cplusplus
19581 extern "C"
19582 #endif
19583 char $ac_func ();
19584 /* The GNU C library defines this for functions which it implements
19585 to always fail with ENOSYS. Some functions are actually named
19586 something starting with __ and the normal name is an alias. */
19587 #if defined __stub_$ac_func || defined __stub___$ac_func
19588 choke me
19589 #endif
19590
19591 int
19592 main ()
19593 {
19594 return $ac_func ();
19595 ;
19596 return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (ac_try="$ac_link"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_link") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext &&
19616 $as_test_x conftest$ac_exeext; then
19617 eval "$as_ac_var=yes"
19618 else
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622 eval "$as_ac_var=no"
19623 fi
19624
19625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19626 conftest$ac_exeext conftest.$ac_ext
19627 fi
19628 ac_res=`eval echo '${'$as_ac_var'}'`
19629 { echo "$as_me:$LINENO: result: $ac_res" >&5
19630 echo "${ECHO_T}$ac_res" >&6; }
19631 if test `eval echo '${'$as_ac_var'}'` = yes; then
19632 cat >>confdefs.h <<_ACEOF
19633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19634 _ACEOF
19635
19636 fi
19637 done
19638
19639
19640 # Check this now, so that we will NOT find the above functions in ncurses.
19641 # That is because we have not set up to link ncurses in lib-src.
19642 # It's better to believe a function is not available
19643 # than to expect to find it in ncurses.
19644
19645 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19646 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19647 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650 ac_check_lib_save_LIBS=$LIBS
19651 LIBS="-lncurses $LIBS"
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19662 #ifdef __cplusplus
19663 extern "C"
19664 #endif
19665 char tparm ();
19666 int
19667 main ()
19668 {
19669 return tparm ();
19670 ;
19671 return 0;
19672 }
19673 _ACEOF
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (ac_try="$ac_link"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_link") 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } && {
19688 test -z "$ac_c_werror_flag" ||
19689 test ! -s conftest.err
19690 } && test -s conftest$ac_exeext &&
19691 $as_test_x conftest$ac_exeext; then
19692 ac_cv_lib_ncurses_tparm=yes
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_cv_lib_ncurses_tparm=no
19698 fi
19699
19700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19701 conftest$ac_exeext conftest.$ac_ext
19702 LIBS=$ac_check_lib_save_LIBS
19703 fi
19704 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19705 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19706 if test $ac_cv_lib_ncurses_tparm = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_LIBNCURSES 1
19709 _ACEOF
19710
19711 LIBS="-lncurses $LIBS"
19712
19713 fi
19714
19715
19716 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19717
19718 resolv=no
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <netinet/in.h>
19726 #include <arpa/nameser.h>
19727 #include <resolv.h>
19728 int
19729 main ()
19730 {
19731 return res_init();
19732 ;
19733 return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext conftest$ac_exeext
19737 if { (ac_try="$ac_link"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_link") 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } && {
19750 test -z "$ac_c_werror_flag" ||
19751 test ! -s conftest.err
19752 } && test -s conftest$ac_exeext &&
19753 $as_test_x conftest$ac_exeext; then
19754 have_res_init=yes
19755 else
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 have_res_init=no
19760 fi
19761
19762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19763 conftest$ac_exeext conftest.$ac_ext
19764 if test "$have_res_init" = no; then
19765 OLIBS="$LIBS"
19766 LIBS="$LIBS -lresolv"
19767 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19768 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h. */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <netinet/in.h>
19776 #include <arpa/nameser.h>
19777 #include <resolv.h>
19778 int
19779 main ()
19780 {
19781 return res_init();
19782 ;
19783 return 0;
19784 }
19785 _ACEOF
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_link") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest$ac_exeext &&
19803 $as_test_x conftest$ac_exeext; then
19804 have_res_init=yes
19805 else
19806 echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 have_res_init=no
19810 fi
19811
19812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19813 conftest$ac_exeext conftest.$ac_ext
19814 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19815 echo "${ECHO_T}$have_res_init" >&6; }
19816 if test "$have_res_init" = yes ; then
19817 resolv=yes
19818 fi
19819 LIBS="$OLIBS"
19820 fi
19821
19822 if test "$have_res_init" = yes; then
19823
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_RES_INIT 1
19826 _ACEOF
19827
19828 fi
19829
19830 # Do we need the Hesiod library to provide the support routines?
19831 if test "$with_hesiod" = yes ; then
19832 # Don't set $LIBS here -- see comments above.
19833 { echo "$as_me:$LINENO: checking for res_send" >&5
19834 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19835 if test "${ac_cv_func_res_send+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h. */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19846 #define res_send innocuous_res_send
19847
19848 /* System header to define __stub macros and hopefully few prototypes,
19849 which can conflict with char res_send (); below.
19850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19851 <limits.h> exists even on freestanding compilers. */
19852
19853 #ifdef __STDC__
19854 # include <limits.h>
19855 #else
19856 # include <assert.h>
19857 #endif
19858
19859 #undef res_send
19860
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19864 #ifdef __cplusplus
19865 extern "C"
19866 #endif
19867 char res_send ();
19868 /* The GNU C library defines this for functions which it implements
19869 to always fail with ENOSYS. Some functions are actually named
19870 something starting with __ and the normal name is an alias. */
19871 #if defined __stub_res_send || defined __stub___res_send
19872 choke me
19873 #endif
19874
19875 int
19876 main ()
19877 {
19878 return res_send ();
19879 ;
19880 return 0;
19881 }
19882 _ACEOF
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>conftest.er1
19891 ac_status=$?
19892 grep -v '^ *+' conftest.er1 >conftest.err
19893 rm -f conftest.er1
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest$ac_exeext &&
19900 $as_test_x conftest$ac_exeext; then
19901 ac_cv_func_res_send=yes
19902 else
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 ac_cv_func_res_send=no
19907 fi
19908
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19911 fi
19912 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19913 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19914 if test $ac_cv_func_res_send = yes; then
19915 :
19916 else
19917 { echo "$as_me:$LINENO: checking for __res_send" >&5
19918 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19919 if test "${ac_cv_func___res_send+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19930 #define __res_send innocuous___res_send
19931
19932 /* System header to define __stub macros and hopefully few prototypes,
19933 which can conflict with char __res_send (); below.
19934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19935 <limits.h> exists even on freestanding compilers. */
19936
19937 #ifdef __STDC__
19938 # include <limits.h>
19939 #else
19940 # include <assert.h>
19941 #endif
19942
19943 #undef __res_send
19944
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19948 #ifdef __cplusplus
19949 extern "C"
19950 #endif
19951 char __res_send ();
19952 /* The GNU C library defines this for functions which it implements
19953 to always fail with ENOSYS. Some functions are actually named
19954 something starting with __ and the normal name is an alias. */
19955 #if defined __stub___res_send || defined __stub_____res_send
19956 choke me
19957 #endif
19958
19959 int
19960 main ()
19961 {
19962 return __res_send ();
19963 ;
19964 return 0;
19965 }
19966 _ACEOF
19967 rm -f conftest.$ac_objext conftest$ac_exeext
19968 if { (ac_try="$ac_link"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_link") 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } && {
19981 test -z "$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19983 } && test -s conftest$ac_exeext &&
19984 $as_test_x conftest$ac_exeext; then
19985 ac_cv_func___res_send=yes
19986 else
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19989
19990 ac_cv_func___res_send=no
19991 fi
19992
19993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19994 conftest$ac_exeext conftest.$ac_ext
19995 fi
19996 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19997 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19998 if test $ac_cv_func___res_send = yes; then
19999 :
20000 else
20001 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20002 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20003 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006 ac_check_lib_save_LIBS=$LIBS
20007 LIBS="-lresolv $LIBS"
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20018 #ifdef __cplusplus
20019 extern "C"
20020 #endif
20021 char res_send ();
20022 int
20023 main ()
20024 {
20025 return res_send ();
20026 ;
20027 return 0;
20028 }
20029 _ACEOF
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_link") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest$ac_exeext &&
20047 $as_test_x conftest$ac_exeext; then
20048 ac_cv_lib_resolv_res_send=yes
20049 else
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053 ac_cv_lib_resolv_res_send=no
20054 fi
20055
20056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20057 conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20059 fi
20060 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20061 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20062 if test $ac_cv_lib_resolv_res_send = yes; then
20063 resolv=yes
20064 else
20065 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20066 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20067 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070 ac_check_lib_save_LIBS=$LIBS
20071 LIBS="-lresolv $LIBS"
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char __res_send ();
20086 int
20087 main ()
20088 {
20089 return __res_send ();
20090 ;
20091 return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest$ac_exeext &&
20111 $as_test_x conftest$ac_exeext; then
20112 ac_cv_lib_resolv___res_send=yes
20113 else
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117 ac_cv_lib_resolv___res_send=no
20118 fi
20119
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121 conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20123 fi
20124 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20125 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20126 if test $ac_cv_lib_resolv___res_send = yes; then
20127 resolv=yes
20128 fi
20129
20130 fi
20131
20132 fi
20133
20134 fi
20135
20136 if test "$resolv" = yes ; then
20137 RESOLVLIB=-lresolv
20138 else
20139 RESOLVLIB=
20140 fi
20141 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20142 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20154 #define hes_getmailhost innocuous_hes_getmailhost
20155
20156 /* System header to define __stub macros and hopefully few prototypes,
20157 which can conflict with char hes_getmailhost (); below.
20158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20159 <limits.h> exists even on freestanding compilers. */
20160
20161 #ifdef __STDC__
20162 # include <limits.h>
20163 #else
20164 # include <assert.h>
20165 #endif
20166
20167 #undef hes_getmailhost
20168
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 char hes_getmailhost ();
20176 /* The GNU C library defines this for functions which it implements
20177 to always fail with ENOSYS. Some functions are actually named
20178 something starting with __ and the normal name is an alias. */
20179 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20180 choke me
20181 #endif
20182
20183 int
20184 main ()
20185 {
20186 return hes_getmailhost ();
20187 ;
20188 return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20199 ac_status=$?
20200 grep -v '^ *+' conftest.er1 >conftest.err
20201 rm -f conftest.er1
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext &&
20208 $as_test_x conftest$ac_exeext; then
20209 ac_cv_func_hes_getmailhost=yes
20210 else
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20213
20214 ac_cv_func_hes_getmailhost=no
20215 fi
20216
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218 conftest$ac_exeext conftest.$ac_ext
20219 fi
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20221 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20222 if test $ac_cv_func_hes_getmailhost = yes; then
20223 :
20224 else
20225 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20226 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20227 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lhesiod $RESOLVLIB $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20242 #ifdef __cplusplus
20243 extern "C"
20244 #endif
20245 char hes_getmailhost ();
20246 int
20247 main ()
20248 {
20249 return hes_getmailhost ();
20250 ;
20251 return 0;
20252 }
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_lib_hesiod_hes_getmailhost=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_cv_lib_hesiod_hes_getmailhost=no
20278 fi
20279
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20283 fi
20284 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20285 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20286 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20287
20288 cat >>confdefs.h <<\_ACEOF
20289 #define HAVE_LIBHESIOD 1
20290 _ACEOF
20291
20292 else
20293 :
20294 fi
20295
20296 fi
20297
20298 fi
20299
20300 # Do we need libresolv (due to res_init or Hesiod)?
20301 if test "$resolv" = yes ; then
20302
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE_LIBRESOLV 1
20305 _ACEOF
20306
20307 fi
20308
20309 # These tell us which Kerberos-related libraries to use.
20310 if test "${with_kerberos+set}" = set; then
20311
20312 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20313 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20314 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317 ac_check_lib_save_LIBS=$LIBS
20318 LIBS="-lcom_err $LIBS"
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20329 #ifdef __cplusplus
20330 extern "C"
20331 #endif
20332 char com_err ();
20333 int
20334 main ()
20335 {
20336 return com_err ();
20337 ;
20338 return 0;
20339 }
20340 _ACEOF
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (ac_try="$ac_link"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_link") 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest$ac_exeext &&
20358 $as_test_x conftest$ac_exeext; then
20359 ac_cv_lib_com_err_com_err=yes
20360 else
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ac_cv_lib_com_err_com_err=no
20365 fi
20366
20367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20368 conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20370 fi
20371 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20372 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20373 if test $ac_cv_lib_com_err_com_err = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375 #define HAVE_LIBCOM_ERR 1
20376 _ACEOF
20377
20378 LIBS="-lcom_err $LIBS"
20379
20380 fi
20381
20382
20383 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20384 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20385 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388 ac_check_lib_save_LIBS=$LIBS
20389 LIBS="-lk5crypto $LIBS"
20390 cat >conftest.$ac_ext <<_ACEOF
20391 /* confdefs.h. */
20392 _ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396
20397 /* Override any GCC internal prototype to avoid an error.
20398 Use char because int might match the return type of a GCC
20399 builtin and then its argument prototype would still apply. */
20400 #ifdef __cplusplus
20401 extern "C"
20402 #endif
20403 char mit_des_cbc_encrypt ();
20404 int
20405 main ()
20406 {
20407 return mit_des_cbc_encrypt ();
20408 ;
20409 return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>conftest.er1
20420 ac_status=$?
20421 grep -v '^ *+' conftest.er1 >conftest.err
20422 rm -f conftest.er1
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } && {
20426 test -z "$ac_c_werror_flag" ||
20427 test ! -s conftest.err
20428 } && test -s conftest$ac_exeext &&
20429 $as_test_x conftest$ac_exeext; then
20430 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20431 else
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20439 conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20441 fi
20442 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20443 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20444 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define HAVE_LIBK5CRYPTO 1
20447 _ACEOF
20448
20449 LIBS="-lk5crypto $LIBS"
20450
20451 fi
20452
20453
20454 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20455 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20456 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459 ac_check_lib_save_LIBS=$LIBS
20460 LIBS="-lcrypto $LIBS"
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h. */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char mit_des_cbc_encrypt ();
20475 int
20476 main ()
20477 {
20478 return mit_des_cbc_encrypt ();
20479 ;
20480 return 0;
20481 }
20482 _ACEOF
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>conftest.er1
20491 ac_status=$?
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } && {
20497 test -z "$ac_c_werror_flag" ||
20498 test ! -s conftest.err
20499 } && test -s conftest$ac_exeext &&
20500 $as_test_x conftest$ac_exeext; then
20501 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20502 else
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20507 fi
20508
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20512 fi
20513 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20514 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20515 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_LIBCRYPTO 1
20518 _ACEOF
20519
20520 LIBS="-lcrypto $LIBS"
20521
20522 fi
20523
20524
20525 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20526 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530 ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lkrb5 $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char krb5_init_context ();
20546 int
20547 main ()
20548 {
20549 return krb5_init_context ();
20550 ;
20551 return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest$ac_exeext &&
20571 $as_test_x conftest$ac_exeext; then
20572 ac_cv_lib_krb5_krb5_init_context=yes
20573 else
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_cv_lib_krb5_krb5_init_context=no
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20583 fi
20584 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20585 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20586 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_LIBKRB5 1
20589 _ACEOF
20590
20591 LIBS="-lkrb5 $LIBS"
20592
20593 fi
20594
20595 if test "${with_kerberos5+set}" != set; then
20596
20597 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20598 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20599 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 else
20602 ac_check_lib_save_LIBS=$LIBS
20603 LIBS="-ldes425 $LIBS"
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h. */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610
20611 /* Override any GCC internal prototype to avoid an error.
20612 Use char because int might match the return type of a GCC
20613 builtin and then its argument prototype would still apply. */
20614 #ifdef __cplusplus
20615 extern "C"
20616 #endif
20617 char des_cbc_encrypt ();
20618 int
20619 main ()
20620 {
20621 return des_cbc_encrypt ();
20622 ;
20623 return 0;
20624 }
20625 _ACEOF
20626 rm -f conftest.$ac_objext conftest$ac_exeext
20627 if { (ac_try="$ac_link"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_link") 2>conftest.er1
20634 ac_status=$?
20635 grep -v '^ *+' conftest.er1 >conftest.err
20636 rm -f conftest.er1
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest$ac_exeext &&
20643 $as_test_x conftest$ac_exeext; then
20644 ac_cv_lib_des425_des_cbc_encrypt=yes
20645 else
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ac_cv_lib_des425_des_cbc_encrypt=no
20650 fi
20651
20652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20653 conftest$ac_exeext conftest.$ac_ext
20654 LIBS=$ac_check_lib_save_LIBS
20655 fi
20656 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20657 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20658 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_LIBDES425 1
20661 _ACEOF
20662
20663 LIBS="-ldes425 $LIBS"
20664
20665 else
20666
20667 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20668 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20669 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 ac_check_lib_save_LIBS=$LIBS
20673 LIBS="-ldes $LIBS"
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h. */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20684 #ifdef __cplusplus
20685 extern "C"
20686 #endif
20687 char des_cbc_encrypt ();
20688 int
20689 main ()
20690 {
20691 return des_cbc_encrypt ();
20692 ;
20693 return 0;
20694 }
20695 _ACEOF
20696 rm -f conftest.$ac_objext conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_link") 2>conftest.er1
20704 ac_status=$?
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest$ac_exeext &&
20713 $as_test_x conftest$ac_exeext; then
20714 ac_cv_lib_des_des_cbc_encrypt=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_cv_lib_des_des_cbc_encrypt=no
20720 fi
20721
20722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20725 fi
20726 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20727 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20728 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_LIBDES 1
20731 _ACEOF
20732
20733 LIBS="-ldes $LIBS"
20734
20735 fi
20736
20737 fi
20738
20739
20740 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20741 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20742 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 ac_check_lib_save_LIBS=$LIBS
20746 LIBS="-lkrb4 $LIBS"
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h. */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753
20754 /* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20757 #ifdef __cplusplus
20758 extern "C"
20759 #endif
20760 char krb_get_cred ();
20761 int
20762 main ()
20763 {
20764 return krb_get_cred ();
20765 ;
20766 return 0;
20767 }
20768 _ACEOF
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774 esac
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_link") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest$ac_exeext &&
20786 $as_test_x conftest$ac_exeext; then
20787 ac_cv_lib_krb4_krb_get_cred=yes
20788 else
20789 echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20791
20792 ac_cv_lib_krb4_krb_get_cred=no
20793 fi
20794
20795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796 conftest$ac_exeext conftest.$ac_ext
20797 LIBS=$ac_check_lib_save_LIBS
20798 fi
20799 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20800 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20801 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_LIBKRB4 1
20804 _ACEOF
20805
20806 LIBS="-lkrb4 $LIBS"
20807
20808 else
20809
20810 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20811 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20812 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815 ac_check_lib_save_LIBS=$LIBS
20816 LIBS="-lkrb $LIBS"
20817 cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h. */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20823
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20827 #ifdef __cplusplus
20828 extern "C"
20829 #endif
20830 char krb_get_cred ();
20831 int
20832 main ()
20833 {
20834 return krb_get_cred ();
20835 ;
20836 return 0;
20837 }
20838 _ACEOF
20839 rm -f conftest.$ac_objext conftest$ac_exeext
20840 if { (ac_try="$ac_link"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_link") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest$ac_exeext &&
20856 $as_test_x conftest$ac_exeext; then
20857 ac_cv_lib_krb_krb_get_cred=yes
20858 else
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 ac_cv_lib_krb_krb_get_cred=no
20863 fi
20864
20865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20866 conftest$ac_exeext conftest.$ac_ext
20867 LIBS=$ac_check_lib_save_LIBS
20868 fi
20869 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20870 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20871 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define HAVE_LIBKRB 1
20874 _ACEOF
20875
20876 LIBS="-lkrb $LIBS"
20877
20878 fi
20879
20880 fi
20881
20882 fi
20883
20884 if test "${with_kerberos5+set}" = set; then
20885
20886 for ac_header in krb5.h
20887 do
20888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 fi
20895 ac_res=`eval echo '${'$as_ac_Header'}'`
20896 { echo "$as_me:$LINENO: result: $ac_res" >&5
20897 echo "${ECHO_T}$ac_res" >&6; }
20898 else
20899 # Is the header compilable?
20900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20902 cat >conftest.$ac_ext <<_ACEOF
20903 /* confdefs.h. */
20904 _ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20908 $ac_includes_default
20909 #include <$ac_header>
20910 _ACEOF
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_compile") 2>conftest.er1
20919 ac_status=$?
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest.$ac_objext; then
20928 ac_header_compiler=yes
20929 else
20930 echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 ac_header_compiler=no
20934 fi
20935
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20938 echo "${ECHO_T}$ac_header_compiler" >&6; }
20939
20940 # Is the header present?
20941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20943 cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h. */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 #include <$ac_header>
20950 _ACEOF
20951 if { (ac_try="$ac_cpp conftest.$ac_ext"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } >/dev/null && {
20964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 }; then
20967 ac_header_preproc=yes
20968 else
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972 ac_header_preproc=no
20973 fi
20974
20975 rm -f conftest.err conftest.$ac_ext
20976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20977 echo "${ECHO_T}$ac_header_preproc" >&6; }
20978
20979 # So? What about this header?
20980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20981 yes:no: )
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20986 ac_header_preproc=yes
20987 ;;
20988 no:yes:* )
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21001
21002 ;;
21003 esac
21004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009 eval "$as_ac_Header=\$ac_header_preproc"
21010 fi
21011 ac_res=`eval echo '${'$as_ac_Header'}'`
21012 { echo "$as_me:$LINENO: result: $ac_res" >&5
21013 echo "${ECHO_T}$ac_res" >&6; }
21014
21015 fi
21016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21017 cat >>confdefs.h <<_ACEOF
21018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21019 _ACEOF
21020
21021 fi
21022
21023 done
21024
21025 else
21026
21027 for ac_header in des.h
21028 do
21029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 fi
21036 ac_res=`eval echo '${'$as_ac_Header'}'`
21037 { echo "$as_me:$LINENO: result: $ac_res" >&5
21038 echo "${ECHO_T}$ac_res" >&6; }
21039 else
21040 # Is the header compilable?
21041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21043 cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h. */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 $ac_includes_default
21050 #include <$ac_header>
21051 _ACEOF
21052 rm -f conftest.$ac_objext
21053 if { (ac_try="$ac_compile"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_compile") 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest.$ac_objext; then
21069 ac_header_compiler=yes
21070 else
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074 ac_header_compiler=no
21075 fi
21076
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21079 echo "${ECHO_T}$ac_header_compiler" >&6; }
21080
21081 # Is the header present?
21082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21084 cat >conftest.$ac_ext <<_ACEOF
21085 /* confdefs.h. */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090 #include <$ac_header>
21091 _ACEOF
21092 if { (ac_try="$ac_cpp conftest.$ac_ext"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } >/dev/null && {
21105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 }; then
21108 ac_header_preproc=yes
21109 else
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113 ac_header_preproc=no
21114 fi
21115
21116 rm -f conftest.err conftest.$ac_ext
21117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21118 echo "${ECHO_T}$ac_header_preproc" >&6; }
21119
21120 # So? What about this header?
21121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21122 yes:no: )
21123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21127 ac_header_preproc=yes
21128 ;;
21129 no:yes:* )
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21142
21143 ;;
21144 esac
21145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21148 echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150 eval "$as_ac_Header=\$ac_header_preproc"
21151 fi
21152 ac_res=`eval echo '${'$as_ac_Header'}'`
21153 { echo "$as_me:$LINENO: result: $ac_res" >&5
21154 echo "${ECHO_T}$ac_res" >&6; }
21155
21156 fi
21157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 else
21163
21164 for ac_header in kerberosIV/des.h
21165 do
21166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 fi
21173 ac_res=`eval echo '${'$as_ac_Header'}'`
21174 { echo "$as_me:$LINENO: result: $ac_res" >&5
21175 echo "${ECHO_T}$ac_res" >&6; }
21176 else
21177 # Is the header compilable?
21178 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21187 #include <$ac_header>
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_compile") 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest.$ac_objext; then
21206 ac_header_compiler=yes
21207 else
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 ac_header_compiler=no
21212 fi
21213
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21216 echo "${ECHO_T}$ac_header_compiler" >&6; }
21217
21218 # Is the header present?
21219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h. */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 #include <$ac_header>
21228 _ACEOF
21229 if { (ac_try="$ac_cpp conftest.$ac_ext"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21233 esac
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } >/dev/null && {
21242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 }; then
21245 ac_header_preproc=yes
21246 else
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_header_preproc=no
21251 fi
21252
21253 rm -f conftest.err conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21255 echo "${ECHO_T}$ac_header_preproc" >&6; }
21256
21257 # So? What about this header?
21258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21259 yes:no: )
21260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21264 ac_header_preproc=yes
21265 ;;
21266 no:yes:* )
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21279
21280 ;;
21281 esac
21282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287 eval "$as_ac_Header=\$ac_header_preproc"
21288 fi
21289 ac_res=`eval echo '${'$as_ac_Header'}'`
21290 { echo "$as_me:$LINENO: result: $ac_res" >&5
21291 echo "${ECHO_T}$ac_res" >&6; }
21292
21293 fi
21294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21295 cat >>confdefs.h <<_ACEOF
21296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21297 _ACEOF
21298
21299 else
21300
21301 for ac_header in kerberos/des.h
21302 do
21303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 fi
21310 ac_res=`eval echo '${'$as_ac_Header'}'`
21311 { echo "$as_me:$LINENO: result: $ac_res" >&5
21312 echo "${ECHO_T}$ac_res" >&6; }
21313 else
21314 # Is the header compilable?
21315 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h. */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 $ac_includes_default
21324 #include <$ac_header>
21325 _ACEOF
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21331 esac
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_compile") 2>conftest.er1
21334 ac_status=$?
21335 grep -v '^ *+' conftest.er1 >conftest.err
21336 rm -f conftest.er1
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest.$ac_objext; then
21343 ac_header_compiler=yes
21344 else
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ac_header_compiler=no
21349 fi
21350
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21353 echo "${ECHO_T}$ac_header_compiler" >&6; }
21354
21355 # Is the header present?
21356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21358 cat >conftest.$ac_ext <<_ACEOF
21359 /* confdefs.h. */
21360 _ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 #include <$ac_header>
21365 _ACEOF
21366 if { (ac_try="$ac_cpp conftest.$ac_ext"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } >/dev/null && {
21379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 }; then
21382 ac_header_preproc=yes
21383 else
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_header_preproc=no
21388 fi
21389
21390 rm -f conftest.err conftest.$ac_ext
21391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21392 echo "${ECHO_T}$ac_header_preproc" >&6; }
21393
21394 # So? What about this header?
21395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21396 yes:no: )
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21401 ac_header_preproc=yes
21402 ;;
21403 no:yes:* )
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21416
21417 ;;
21418 esac
21419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 eval "$as_ac_Header=\$ac_header_preproc"
21425 fi
21426 ac_res=`eval echo '${'$as_ac_Header'}'`
21427 { echo "$as_me:$LINENO: result: $ac_res" >&5
21428 echo "${ECHO_T}$ac_res" >&6; }
21429
21430 fi
21431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21432 cat >>confdefs.h <<_ACEOF
21433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21434 _ACEOF
21435
21436 fi
21437
21438 done
21439
21440 fi
21441
21442 done
21443
21444 fi
21445
21446 done
21447
21448
21449 for ac_header in krb.h
21450 do
21451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 fi
21458 ac_res=`eval echo '${'$as_ac_Header'}'`
21459 { echo "$as_me:$LINENO: result: $ac_res" >&5
21460 echo "${ECHO_T}$ac_res" >&6; }
21461 else
21462 # Is the header compilable?
21463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21465 cat >conftest.$ac_ext <<_ACEOF
21466 /* confdefs.h. */
21467 _ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21471 $ac_includes_default
21472 #include <$ac_header>
21473 _ACEOF
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 ac_header_compiler=yes
21492 else
21493 echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496 ac_header_compiler=no
21497 fi
21498
21499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21501 echo "${ECHO_T}$ac_header_compiler" >&6; }
21502
21503 # Is the header present?
21504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <$ac_header>
21513 _ACEOF
21514 if { (ac_try="$ac_cpp conftest.$ac_ext"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21521 ac_status=$?
21522 grep -v '^ *+' conftest.er1 >conftest.err
21523 rm -f conftest.er1
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); } >/dev/null && {
21527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21529 }; then
21530 ac_header_preproc=yes
21531 else
21532 echo "$as_me: failed program was:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21534
21535 ac_header_preproc=no
21536 fi
21537
21538 rm -f conftest.err conftest.$ac_ext
21539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21540 echo "${ECHO_T}$ac_header_preproc" >&6; }
21541
21542 # So? What about this header?
21543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21544 yes:no: )
21545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21549 ac_header_preproc=yes
21550 ;;
21551 no:yes:* )
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21564
21565 ;;
21566 esac
21567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572 eval "$as_ac_Header=\$ac_header_preproc"
21573 fi
21574 ac_res=`eval echo '${'$as_ac_Header'}'`
21575 { echo "$as_me:$LINENO: result: $ac_res" >&5
21576 echo "${ECHO_T}$ac_res" >&6; }
21577
21578 fi
21579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21580 cat >>confdefs.h <<_ACEOF
21581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21582 _ACEOF
21583
21584 else
21585
21586 for ac_header in kerberosIV/krb.h
21587 do
21588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 fi
21595 ac_res=`eval echo '${'$as_ac_Header'}'`
21596 { echo "$as_me:$LINENO: result: $ac_res" >&5
21597 echo "${ECHO_T}$ac_res" >&6; }
21598 else
21599 # Is the header compilable?
21600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21602 cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h. */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 $ac_includes_default
21609 #include <$ac_header>
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_compile") 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest.$ac_objext; then
21628 ac_header_compiler=yes
21629 else
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633 ac_header_compiler=no
21634 fi
21635
21636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21638 echo "${ECHO_T}$ac_header_compiler" >&6; }
21639
21640 # Is the header present?
21641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <$ac_header>
21650 _ACEOF
21651 if { (ac_try="$ac_cpp conftest.$ac_ext"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21655 esac
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21658 ac_status=$?
21659 grep -v '^ *+' conftest.er1 >conftest.err
21660 rm -f conftest.er1
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } >/dev/null && {
21664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21665 test ! -s conftest.err
21666 }; then
21667 ac_header_preproc=yes
21668 else
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672 ac_header_preproc=no
21673 fi
21674
21675 rm -f conftest.err conftest.$ac_ext
21676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21677 echo "${ECHO_T}$ac_header_preproc" >&6; }
21678
21679 # So? What about this header?
21680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21681 yes:no: )
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21686 ac_header_preproc=yes
21687 ;;
21688 no:yes:* )
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21701
21702 ;;
21703 esac
21704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709 eval "$as_ac_Header=\$ac_header_preproc"
21710 fi
21711 ac_res=`eval echo '${'$as_ac_Header'}'`
21712 { echo "$as_me:$LINENO: result: $ac_res" >&5
21713 echo "${ECHO_T}$ac_res" >&6; }
21714
21715 fi
21716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21717 cat >>confdefs.h <<_ACEOF
21718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21719 _ACEOF
21720
21721 else
21722
21723 for ac_header in kerberos/krb.h
21724 do
21725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 fi
21732 ac_res=`eval echo '${'$as_ac_Header'}'`
21733 { echo "$as_me:$LINENO: result: $ac_res" >&5
21734 echo "${ECHO_T}$ac_res" >&6; }
21735 else
21736 # Is the header compilable?
21737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21739 cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h. */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 $ac_includes_default
21746 #include <$ac_header>
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_compile") 2>conftest.er1
21756 ac_status=$?
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.$ac_objext; then
21765 ac_header_compiler=yes
21766 else
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770 ac_header_compiler=no
21771 fi
21772
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21775 echo "${ECHO_T}$ac_header_compiler" >&6; }
21776
21777 # Is the header present?
21778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h. */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 #include <$ac_header>
21787 _ACEOF
21788 if { (ac_try="$ac_cpp conftest.$ac_ext"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21792 esac
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21795 ac_status=$?
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } >/dev/null && {
21801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 }; then
21804 ac_header_preproc=yes
21805 else
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 ac_header_preproc=no
21810 fi
21811
21812 rm -f conftest.err conftest.$ac_ext
21813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21814 echo "${ECHO_T}$ac_header_preproc" >&6; }
21815
21816 # So? What about this header?
21817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21818 yes:no: )
21819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21823 ac_header_preproc=yes
21824 ;;
21825 no:yes:* )
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21838
21839 ;;
21840 esac
21841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846 eval "$as_ac_Header=\$ac_header_preproc"
21847 fi
21848 ac_res=`eval echo '${'$as_ac_Header'}'`
21849 { echo "$as_me:$LINENO: result: $ac_res" >&5
21850 echo "${ECHO_T}$ac_res" >&6; }
21851
21852 fi
21853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21854 cat >>confdefs.h <<_ACEOF
21855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21856 _ACEOF
21857
21858 fi
21859
21860 done
21861
21862 fi
21863
21864 done
21865
21866 fi
21867
21868 done
21869
21870 fi
21871
21872 for ac_header in com_err.h
21873 do
21874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21879 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 fi
21881 ac_res=`eval echo '${'$as_ac_Header'}'`
21882 { echo "$as_me:$LINENO: result: $ac_res" >&5
21883 echo "${ECHO_T}$ac_res" >&6; }
21884 else
21885 # Is the header compilable?
21886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h. */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 $ac_includes_default
21895 #include <$ac_header>
21896 _ACEOF
21897 rm -f conftest.$ac_objext
21898 if { (ac_try="$ac_compile"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_compile") 2>conftest.er1
21905 ac_status=$?
21906 grep -v '^ *+' conftest.er1 >conftest.err
21907 rm -f conftest.er1
21908 cat conftest.err >&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest.$ac_objext; then
21914 ac_header_compiler=yes
21915 else
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 ac_header_compiler=no
21920 fi
21921
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21924 echo "${ECHO_T}$ac_header_compiler" >&6; }
21925
21926 # Is the header present?
21927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21929 cat >conftest.$ac_ext <<_ACEOF
21930 /* confdefs.h. */
21931 _ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 #include <$ac_header>
21936 _ACEOF
21937 if { (ac_try="$ac_cpp conftest.$ac_ext"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21944 ac_status=$?
21945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } >/dev/null && {
21950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 }; then
21953 ac_header_preproc=yes
21954 else
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958 ac_header_preproc=no
21959 fi
21960
21961 rm -f conftest.err conftest.$ac_ext
21962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21963 echo "${ECHO_T}$ac_header_preproc" >&6; }
21964
21965 # So? What about this header?
21966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21967 yes:no: )
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21972 ac_header_preproc=yes
21973 ;;
21974 no:yes:* )
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21987
21988 ;;
21989 esac
21990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 else
21995 eval "$as_ac_Header=\$ac_header_preproc"
21996 fi
21997 ac_res=`eval echo '${'$as_ac_Header'}'`
21998 { echo "$as_me:$LINENO: result: $ac_res" >&5
21999 echo "${ECHO_T}$ac_res" >&6; }
22000
22001 fi
22002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22003 cat >>confdefs.h <<_ACEOF
22004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22005 _ACEOF
22006
22007 fi
22008
22009 done
22010
22011 fi
22012
22013 # Solaris requires -lintl if you want strerror (which calls dgettext)
22014 # to return localized messages.
22015
22016 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22017 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22018 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021 ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lintl $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h. */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029
22030 /* Override any GCC internal prototype to avoid an error.
22031 Use char because int might match the return type of a GCC
22032 builtin and then its argument prototype would still apply. */
22033 #ifdef __cplusplus
22034 extern "C"
22035 #endif
22036 char dgettext ();
22037 int
22038 main ()
22039 {
22040 return dgettext ();
22041 ;
22042 return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_link") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest$ac_exeext &&
22062 $as_test_x conftest$ac_exeext; then
22063 ac_cv_lib_intl_dgettext=yes
22064 else
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068 ac_cv_lib_intl_dgettext=no
22069 fi
22070
22071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22072 conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22074 fi
22075 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22076 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22077 if test $ac_cv_lib_intl_dgettext = yes; then
22078 cat >>confdefs.h <<_ACEOF
22079 #define HAVE_LIBINTL 1
22080 _ACEOF
22081
22082 LIBS="-lintl $LIBS"
22083
22084 fi
22085
22086
22087 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22088 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22089 if test "${emacs_cv_localtime_cache+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092 if test x$ac_cv_func_tzset = xyes; then
22093 if test "$cross_compiling" = yes; then
22094 # If we have tzset, assume the worst when cross-compiling.
22095 emacs_cv_localtime_cache=yes
22096 else
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 #include <time.h>
22104 extern char **environ;
22105 unset_TZ ()
22106 {
22107 char **from, **to;
22108 for (to = from = environ; (*to = *from); from++)
22109 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22110 to++;
22111 }
22112 char TZ_GMT0[] = "TZ=GMT0";
22113 char TZ_PST8[] = "TZ=PST8";
22114 main()
22115 {
22116 time_t now = time ((time_t *) 0);
22117 int hour_GMT0, hour_unset;
22118 if (putenv (TZ_GMT0) != 0)
22119 exit (1);
22120 hour_GMT0 = localtime (&now)->tm_hour;
22121 unset_TZ ();
22122 hour_unset = localtime (&now)->tm_hour;
22123 if (putenv (TZ_PST8) != 0)
22124 exit (1);
22125 if (localtime (&now)->tm_hour == hour_GMT0)
22126 exit (1);
22127 unset_TZ ();
22128 if (localtime (&now)->tm_hour != hour_unset)
22129 exit (1);
22130 exit (0);
22131 }
22132 _ACEOF
22133 rm -f conftest$ac_exeext
22134 if { (ac_try="$ac_link"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22138 esac
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_link") 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22144 { (case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22147 esac
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_try") 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 emacs_cv_localtime_cache=no
22154 else
22155 echo "$as_me: program exited with status $ac_status" >&5
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159 ( exit $ac_status )
22160 emacs_cv_localtime_cache=yes
22161 fi
22162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22163 fi
22164
22165
22166 else
22167 # If we lack tzset, report that localtime does not cache TZ,
22168 # since we can't invalidate the cache if we don't have tzset.
22169 emacs_cv_localtime_cache=no
22170 fi
22171 fi
22172 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22173 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22174 if test $emacs_cv_localtime_cache = yes; then
22175
22176 cat >>confdefs.h <<\_ACEOF
22177 #define LOCALTIME_CACHE 1
22178 _ACEOF
22179
22180 fi
22181
22182 if test "x$HAVE_TIMEVAL" = xyes; then
22183
22184 for ac_func in gettimeofday
22185 do
22186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192 cat >conftest.$ac_ext <<_ACEOF
22193 /* confdefs.h. */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22200 #define $ac_func innocuous_$ac_func
22201
22202 /* System header to define __stub macros and hopefully few prototypes,
22203 which can conflict with char $ac_func (); below.
22204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22205 <limits.h> exists even on freestanding compilers. */
22206
22207 #ifdef __STDC__
22208 # include <limits.h>
22209 #else
22210 # include <assert.h>
22211 #endif
22212
22213 #undef $ac_func
22214
22215 /* Override any GCC internal prototype to avoid an error.
22216 Use char because int might match the return type of a GCC
22217 builtin and then its argument prototype would still apply. */
22218 #ifdef __cplusplus
22219 extern "C"
22220 #endif
22221 char $ac_func ();
22222 /* The GNU C library defines this for functions which it implements
22223 to always fail with ENOSYS. Some functions are actually named
22224 something starting with __ and the normal name is an alias. */
22225 #if defined __stub_$ac_func || defined __stub___$ac_func
22226 choke me
22227 #endif
22228
22229 int
22230 main ()
22231 {
22232 return $ac_func ();
22233 ;
22234 return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext conftest$ac_exeext
22238 if { (ac_try="$ac_link"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_link") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && {
22251 test -z "$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 } && test -s conftest$ac_exeext &&
22254 $as_test_x conftest$ac_exeext; then
22255 eval "$as_ac_var=yes"
22256 else
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 eval "$as_ac_var=no"
22261 fi
22262
22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264 conftest$ac_exeext conftest.$ac_ext
22265 fi
22266 ac_res=`eval echo '${'$as_ac_var'}'`
22267 { echo "$as_me:$LINENO: result: $ac_res" >&5
22268 echo "${ECHO_T}$ac_res" >&6; }
22269 if test `eval echo '${'$as_ac_var'}'` = yes; then
22270 cat >>confdefs.h <<_ACEOF
22271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22272 _ACEOF
22273
22274 fi
22275 done
22276
22277 if test $ac_cv_func_gettimeofday = yes; then
22278 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22279 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22280 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289
22290 #ifdef TIME_WITH_SYS_TIME
22291 #include <sys/time.h>
22292 #include <time.h>
22293 #else
22294 #ifdef HAVE_SYS_TIME_H
22295 #include <sys/time.h>
22296 #else
22297 #include <time.h>
22298 #endif
22299 #endif
22300 int
22301 main ()
22302 {
22303 struct timeval time;
22304 gettimeofday (&time, 0);
22305 ;
22306 return 0;
22307 }
22308 _ACEOF
22309 rm -f conftest.$ac_objext
22310 if { (ac_try="$ac_compile"
22311 case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22314 esac
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_compile") 2>conftest.er1
22317 ac_status=$?
22318 grep -v '^ *+' conftest.er1 >conftest.err
22319 rm -f conftest.er1
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest.$ac_objext; then
22326 emacs_cv_gettimeofday_two_arguments=yes
22327 else
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 emacs_cv_gettimeofday_two_arguments=no
22332 fi
22333
22334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22335 fi
22336 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22337 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22338 if test $emacs_cv_gettimeofday_two_arguments = no; then
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22342 _ACEOF
22343
22344 fi
22345 fi
22346 fi
22347
22348 ok_so_far=yes
22349 { echo "$as_me:$LINENO: checking for socket" >&5
22350 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22351 if test "${ac_cv_func_socket+set}" = set; then
22352 echo $ECHO_N "(cached) $ECHO_C" >&6
22353 else
22354 cat >conftest.$ac_ext <<_ACEOF
22355 /* confdefs.h. */
22356 _ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22362 #define socket innocuous_socket
22363
22364 /* System header to define __stub macros and hopefully few prototypes,
22365 which can conflict with char socket (); below.
22366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22367 <limits.h> exists even on freestanding compilers. */
22368
22369 #ifdef __STDC__
22370 # include <limits.h>
22371 #else
22372 # include <assert.h>
22373 #endif
22374
22375 #undef socket
22376
22377 /* Override any GCC internal prototype to avoid an error.
22378 Use char because int might match the return type of a GCC
22379 builtin and then its argument prototype would still apply. */
22380 #ifdef __cplusplus
22381 extern "C"
22382 #endif
22383 char socket ();
22384 /* The GNU C library defines this for functions which it implements
22385 to always fail with ENOSYS. Some functions are actually named
22386 something starting with __ and the normal name is an alias. */
22387 #if defined __stub_socket || defined __stub___socket
22388 choke me
22389 #endif
22390
22391 int
22392 main ()
22393 {
22394 return socket ();
22395 ;
22396 return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
22417 ac_cv_func_socket=yes
22418 else
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ac_cv_func_socket=no
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 fi
22428 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22429 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22430 if test $ac_cv_func_socket = yes; then
22431 :
22432 else
22433 ok_so_far=no
22434 fi
22435
22436 if test $ok_so_far = yes; then
22437 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22438 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22439 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22440 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22442 fi
22443 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22444 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22445 else
22446 # Is the header compilable?
22447 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22448 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 $ac_includes_default
22456 #include <netinet/in.h>
22457 _ACEOF
22458 rm -f conftest.$ac_objext
22459 if { (ac_try="$ac_compile"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_compile") 2>conftest.er1
22466 ac_status=$?
22467 grep -v '^ *+' conftest.er1 >conftest.err
22468 rm -f conftest.er1
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } && {
22472 test -z "$ac_c_werror_flag" ||
22473 test ! -s conftest.err
22474 } && test -s conftest.$ac_objext; then
22475 ac_header_compiler=yes
22476 else
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480 ac_header_compiler=no
22481 fi
22482
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22485 echo "${ECHO_T}$ac_header_compiler" >&6; }
22486
22487 # Is the header present?
22488 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22489 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h. */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 #include <netinet/in.h>
22497 _ACEOF
22498 if { (ac_try="$ac_cpp conftest.$ac_ext"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22505 ac_status=$?
22506 grep -v '^ *+' conftest.er1 >conftest.err
22507 rm -f conftest.er1
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } >/dev/null && {
22511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 }; then
22514 ac_header_preproc=yes
22515 else
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519 ac_header_preproc=no
22520 fi
22521
22522 rm -f conftest.err conftest.$ac_ext
22523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22524 echo "${ECHO_T}$ac_header_preproc" >&6; }
22525
22526 # So? What about this header?
22527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22528 yes:no: )
22529 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22530 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22531 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22532 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22533 ac_header_preproc=yes
22534 ;;
22535 no:yes:* )
22536 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22537 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22539 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22541 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22543 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22544 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22545 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22546 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22547 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22548
22549 ;;
22550 esac
22551 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22552 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22553 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22554 echo $ECHO_N "(cached) $ECHO_C" >&6
22555 else
22556 ac_cv_header_netinet_in_h=$ac_header_preproc
22557 fi
22558 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22559 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22560
22561 fi
22562 if test $ac_cv_header_netinet_in_h = yes; then
22563 :
22564 else
22565 ok_so_far=no
22566 fi
22567
22568
22569 fi
22570 if test $ok_so_far = yes; then
22571 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22572 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22573 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22574 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 fi
22577 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22578 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22579 else
22580 # Is the header compilable?
22581 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22582 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h. */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 #include <arpa/inet.h>
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 ac_header_compiler=yes
22610 else
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ac_header_compiler=no
22615 fi
22616
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22619 echo "${ECHO_T}$ac_header_compiler" >&6; }
22620
22621 # Is the header present?
22622 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22623 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22624 cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h. */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22630 #include <arpa/inet.h>
22631 _ACEOF
22632 if { (ac_try="$ac_cpp conftest.$ac_ext"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22636 esac
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22639 ac_status=$?
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } >/dev/null && {
22645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22647 }; then
22648 ac_header_preproc=yes
22649 else
22650 echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22652
22653 ac_header_preproc=no
22654 fi
22655
22656 rm -f conftest.err conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22658 echo "${ECHO_T}$ac_header_preproc" >&6; }
22659
22660 # So? What about this header?
22661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22662 yes:no: )
22663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22664 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22665 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22666 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22667 ac_header_preproc=yes
22668 ;;
22669 no:yes:* )
22670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22671 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22672 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22673 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22674 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22675 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22677 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22678 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22679 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22681 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22682
22683 ;;
22684 esac
22685 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22686 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22687 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22688 echo $ECHO_N "(cached) $ECHO_C" >&6
22689 else
22690 ac_cv_header_arpa_inet_h=$ac_header_preproc
22691 fi
22692 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22693 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22694
22695 fi
22696 if test $ac_cv_header_arpa_inet_h = yes; then
22697 :
22698 else
22699 ok_so_far=no
22700 fi
22701
22702
22703 fi
22704 if test $ok_so_far = yes; then
22705
22706 cat >>confdefs.h <<\_ACEOF
22707 #define HAVE_INET_SOCKETS 1
22708 _ACEOF
22709
22710 fi
22711
22712
22713 for ac_header in sys/ioctl.h
22714 do
22715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 fi
22722 ac_res=`eval echo '${'$as_ac_Header'}'`
22723 { echo "$as_me:$LINENO: result: $ac_res" >&5
22724 echo "${ECHO_T}$ac_res" >&6; }
22725 else
22726 # Is the header compilable?
22727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 $ac_includes_default
22736 #include <$ac_header>
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22746 ac_status=$?
22747 grep -v '^ *+' conftest.er1 >conftest.err
22748 rm -f conftest.er1
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_header_compiler=yes
22756 else
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22759
22760 ac_header_compiler=no
22761 fi
22762
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22765 echo "${ECHO_T}$ac_header_compiler" >&6; }
22766
22767 # Is the header present?
22768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h. */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <$ac_header>
22777 _ACEOF
22778 if { (ac_try="$ac_cpp conftest.$ac_ext"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } >/dev/null && {
22791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 }; then
22794 ac_header_preproc=yes
22795 else
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_header_preproc=no
22800 fi
22801
22802 rm -f conftest.err conftest.$ac_ext
22803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22804 echo "${ECHO_T}$ac_header_preproc" >&6; }
22805
22806 # So? What about this header?
22807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22808 yes:no: )
22809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22813 ac_header_preproc=yes
22814 ;;
22815 no:yes:* )
22816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22828
22829 ;;
22830 esac
22831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836 eval "$as_ac_Header=\$ac_header_preproc"
22837 fi
22838 ac_res=`eval echo '${'$as_ac_Header'}'`
22839 { echo "$as_me:$LINENO: result: $ac_res" >&5
22840 echo "${ECHO_T}$ac_res" >&6; }
22841
22842 fi
22843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22844 cat >>confdefs.h <<_ACEOF
22845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22846 _ACEOF
22847
22848 fi
22849
22850 done
22851
22852
22853 if test -f /usr/lpp/X11/bin/smt.exp; then
22854
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_AIX_SMT_EXP 1
22857 _ACEOF
22858
22859 fi
22860
22861 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22862 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22863 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22864 { echo "$as_me:$LINENO: result: yes" >&5
22865 echo "${ECHO_T}yes" >&6; }
22866
22867 cat >>confdefs.h <<\_ACEOF
22868 #define HAVE_DEV_PTMX 1
22869 _ACEOF
22870
22871 else
22872 { echo "$as_me:$LINENO: result: no" >&5
22873 echo "${ECHO_T}no" >&6; }
22874 fi
22875
22876 { echo "$as_me:$LINENO: checking for pid_t" >&5
22877 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22878 if test "${ac_cv_type_pid_t+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881 cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h. */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 $ac_includes_default
22888 typedef pid_t ac__type_new_;
22889 int
22890 main ()
22891 {
22892 if ((ac__type_new_ *) 0)
22893 return 0;
22894 if (sizeof (ac__type_new_))
22895 return 0;
22896 ;
22897 return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22908 ac_status=$?
22909 grep -v '^ *+' conftest.er1 >conftest.err
22910 rm -f conftest.er1
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_cv_type_pid_t=yes
22918 else
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922 ac_cv_type_pid_t=no
22923 fi
22924
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 fi
22927 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22929 if test $ac_cv_type_pid_t = yes; then
22930 :
22931 else
22932
22933 cat >>confdefs.h <<_ACEOF
22934 #define pid_t int
22935 _ACEOF
22936
22937 fi
22938
22939
22940 for ac_header in vfork.h
22941 do
22942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
22948 fi
22949 ac_res=`eval echo '${'$as_ac_Header'}'`
22950 { echo "$as_me:$LINENO: result: $ac_res" >&5
22951 echo "${ECHO_T}$ac_res" >&6; }
22952 else
22953 # Is the header compilable?
22954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h. */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 #include <$ac_header>
22964 _ACEOF
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 ac_header_compiler=yes
22983 else
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987 ac_header_compiler=no
22988 fi
22989
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22992 echo "${ECHO_T}$ac_header_compiler" >&6; }
22993
22994 # Is the header present?
22995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22997 cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h. */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 #include <$ac_header>
23004 _ACEOF
23005 if { (ac_try="$ac_cpp conftest.$ac_ext"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23009 esac
23010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 }; then
23021 ac_header_preproc=yes
23022 else
23023 echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 ac_header_preproc=no
23027 fi
23028
23029 rm -f conftest.err conftest.$ac_ext
23030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23031 echo "${ECHO_T}$ac_header_preproc" >&6; }
23032
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23035 yes:no: )
23036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23040 ac_header_preproc=yes
23041 ;;
23042 no:yes:* )
23043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23055
23056 ;;
23057 esac
23058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063 eval "$as_ac_Header=\$ac_header_preproc"
23064 fi
23065 ac_res=`eval echo '${'$as_ac_Header'}'`
23066 { echo "$as_me:$LINENO: result: $ac_res" >&5
23067 echo "${ECHO_T}$ac_res" >&6; }
23068
23069 fi
23070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23073 _ACEOF
23074
23075 fi
23076
23077 done
23078
23079
23080
23081 for ac_func in fork vfork
23082 do
23083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089 cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h. */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23097 #define $ac_func innocuous_$ac_func
23098
23099 /* System header to define __stub macros and hopefully few prototypes,
23100 which can conflict with char $ac_func (); below.
23101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23102 <limits.h> exists even on freestanding compilers. */
23103
23104 #ifdef __STDC__
23105 # include <limits.h>
23106 #else
23107 # include <assert.h>
23108 #endif
23109
23110 #undef $ac_func
23111
23112 /* Override any GCC internal prototype to avoid an error.
23113 Use char because int might match the return type of a GCC
23114 builtin and then its argument prototype would still apply. */
23115 #ifdef __cplusplus
23116 extern "C"
23117 #endif
23118 char $ac_func ();
23119 /* The GNU C library defines this for functions which it implements
23120 to always fail with ENOSYS. Some functions are actually named
23121 something starting with __ and the normal name is an alias. */
23122 #if defined __stub_$ac_func || defined __stub___$ac_func
23123 choke me
23124 #endif
23125
23126 int
23127 main ()
23128 {
23129 return $ac_func ();
23130 ;
23131 return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext conftest$ac_exeext
23135 if { (ac_try="$ac_link"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_link") 2>conftest.er1
23142 ac_status=$?
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } && {
23148 test -z "$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 } && test -s conftest$ac_exeext &&
23151 $as_test_x conftest$ac_exeext; then
23152 eval "$as_ac_var=yes"
23153 else
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 eval "$as_ac_var=no"
23158 fi
23159
23160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23161 conftest$ac_exeext conftest.$ac_ext
23162 fi
23163 ac_res=`eval echo '${'$as_ac_var'}'`
23164 { echo "$as_me:$LINENO: result: $ac_res" >&5
23165 echo "${ECHO_T}$ac_res" >&6; }
23166 if test `eval echo '${'$as_ac_var'}'` = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23169 _ACEOF
23170
23171 fi
23172 done
23173
23174 if test "x$ac_cv_func_fork" = xyes; then
23175 { echo "$as_me:$LINENO: checking for working fork" >&5
23176 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23177 if test "${ac_cv_func_fork_works+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180 if test "$cross_compiling" = yes; then
23181 ac_cv_func_fork_works=cross
23182 else
23183 cat >conftest.$ac_ext <<_ACEOF
23184 /* confdefs.h. */
23185 _ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 $ac_includes_default
23190 int
23191 main ()
23192 {
23193
23194 /* By Ruediger Kuhlmann. */
23195 return fork () < 0;
23196
23197 ;
23198 return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest$ac_exeext
23202 if { (ac_try="$ac_link"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_link") 2>&5
23209 ac_status=$?
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23212 { (case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_try") 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_func_fork_works=yes
23222 else
23223 echo "$as_me: program exited with status $ac_status" >&5
23224 echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23226
23227 ( exit $ac_status )
23228 ac_cv_func_fork_works=no
23229 fi
23230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23231 fi
23232
23233
23234 fi
23235 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23236 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23237
23238 else
23239 ac_cv_func_fork_works=$ac_cv_func_fork
23240 fi
23241 if test "x$ac_cv_func_fork_works" = xcross; then
23242 case $host in
23243 *-*-amigaos* | *-*-msdosdjgpp*)
23244 # Override, as these systems have only a dummy fork() stub
23245 ac_cv_func_fork_works=no
23246 ;;
23247 *)
23248 ac_cv_func_fork_works=yes
23249 ;;
23250 esac
23251 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23252 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23253 fi
23254 ac_cv_func_vfork_works=$ac_cv_func_vfork
23255 if test "x$ac_cv_func_vfork" = xyes; then
23256 { echo "$as_me:$LINENO: checking for working vfork" >&5
23257 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23258 if test "${ac_cv_func_vfork_works+set}" = set; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23260 else
23261 if test "$cross_compiling" = yes; then
23262 ac_cv_func_vfork_works=cross
23263 else
23264 cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h. */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 /* Thanks to Paul Eggert for this test. */
23271 $ac_includes_default
23272 #include <sys/wait.h>
23273 #ifdef HAVE_VFORK_H
23274 # include <vfork.h>
23275 #endif
23276 /* On some sparc systems, changes by the child to local and incoming
23277 argument registers are propagated back to the parent. The compiler
23278 is told about this with #include <vfork.h>, but some compilers
23279 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23280 static variable whose address is put into a register that is
23281 clobbered by the vfork. */
23282 static void
23283 #ifdef __cplusplus
23284 sparc_address_test (int arg)
23285 # else
23286 sparc_address_test (arg) int arg;
23287 #endif
23288 {
23289 static pid_t child;
23290 if (!child) {
23291 child = vfork ();
23292 if (child < 0) {
23293 perror ("vfork");
23294 _exit(2);
23295 }
23296 if (!child) {
23297 arg = getpid();
23298 write(-1, "", 0);
23299 _exit (arg);
23300 }
23301 }
23302 }
23303
23304 int
23305 main ()
23306 {
23307 pid_t parent = getpid ();
23308 pid_t child;
23309
23310 sparc_address_test (0);
23311
23312 child = vfork ();
23313
23314 if (child == 0) {
23315 /* Here is another test for sparc vfork register problems. This
23316 test uses lots of local variables, at least as many local
23317 variables as main has allocated so far including compiler
23318 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23319 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23320 reuse the register of parent for one of the local variables,
23321 since it will think that parent can't possibly be used any more
23322 in this routine. Assigning to the local variable will thus
23323 munge parent in the parent process. */
23324 pid_t
23325 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23326 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23327 /* Convince the compiler that p..p7 are live; otherwise, it might
23328 use the same hardware register for all 8 local variables. */
23329 if (p != p1 || p != p2 || p != p3 || p != p4
23330 || p != p5 || p != p6 || p != p7)
23331 _exit(1);
23332
23333 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23334 from child file descriptors. If the child closes a descriptor
23335 before it execs or exits, this munges the parent's descriptor
23336 as well. Test for this by closing stdout in the child. */
23337 _exit(close(fileno(stdout)) != 0);
23338 } else {
23339 int status;
23340 struct stat st;
23341
23342 while (wait(&status) != child)
23343 ;
23344 return (
23345 /* Was there some problem with vforking? */
23346 child < 0
23347
23348 /* Did the child fail? (This shouldn't happen.) */
23349 || status
23350
23351 /* Did the vfork/compiler bug occur? */
23352 || parent != getpid()
23353
23354 /* Did the file descriptor bug occur? */
23355 || fstat(fileno(stdout), &st) != 0
23356 );
23357 }
23358 }
23359 _ACEOF
23360 rm -f conftest$ac_exeext
23361 if { (ac_try="$ac_link"
23362 case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_link") 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23371 { (case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_try") 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; }; then
23380 ac_cv_func_vfork_works=yes
23381 else
23382 echo "$as_me: program exited with status $ac_status" >&5
23383 echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23385
23386 ( exit $ac_status )
23387 ac_cv_func_vfork_works=no
23388 fi
23389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23390 fi
23391
23392
23393 fi
23394 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23395 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23396
23397 fi;
23398 if test "x$ac_cv_func_fork_works" = xcross; then
23399 ac_cv_func_vfork_works=$ac_cv_func_vfork
23400 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23401 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23402 fi
23403
23404 if test "x$ac_cv_func_vfork_works" = xyes; then
23405
23406 cat >>confdefs.h <<\_ACEOF
23407 #define HAVE_WORKING_VFORK 1
23408 _ACEOF
23409
23410 else
23411
23412 cat >>confdefs.h <<\_ACEOF
23413 #define vfork fork
23414 _ACEOF
23415
23416 fi
23417 if test "x$ac_cv_func_fork_works" = xyes; then
23418
23419 cat >>confdefs.h <<\_ACEOF
23420 #define HAVE_WORKING_FORK 1
23421 _ACEOF
23422
23423 fi
23424
23425
23426 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23427 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23428 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23429 echo $ECHO_N "(cached) $ECHO_C" >&6
23430 else
23431 cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h. */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 #include <langinfo.h>
23438 int
23439 main ()
23440 {
23441 char* cs = nl_langinfo(CODESET);
23442 ;
23443 return 0;
23444 }
23445 _ACEOF
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (ac_try="$ac_link"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451 esac
23452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23453 (eval "$ac_link") 2>conftest.er1
23454 ac_status=$?
23455 grep -v '^ *+' conftest.er1 >conftest.err
23456 rm -f conftest.er1
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } && {
23460 test -z "$ac_c_werror_flag" ||
23461 test ! -s conftest.err
23462 } && test -s conftest$ac_exeext &&
23463 $as_test_x conftest$ac_exeext; then
23464 emacs_cv_langinfo_codeset=yes
23465 else
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23468
23469 emacs_cv_langinfo_codeset=no
23470 fi
23471
23472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23473 conftest$ac_exeext conftest.$ac_ext
23474
23475 fi
23476 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23477 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23478 if test $emacs_cv_langinfo_codeset = yes; then
23479
23480 cat >>confdefs.h <<\_ACEOF
23481 #define HAVE_LANGINFO_CODESET 1
23482 _ACEOF
23483
23484 fi
23485
23486 { echo "$as_me:$LINENO: checking for size_t" >&5
23487 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23488 if test "${ac_cv_type_size_t+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23498 typedef size_t ac__type_new_;
23499 int
23500 main ()
23501 {
23502 if ((ac__type_new_ *) 0)
23503 return 0;
23504 if (sizeof (ac__type_new_))
23505 return 0;
23506 ;
23507 return 0;
23508 }
23509 _ACEOF
23510 rm -f conftest.$ac_objext
23511 if { (ac_try="$ac_compile"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23515 esac
23516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_compile") 2>conftest.er1
23518 ac_status=$?
23519 grep -v '^ *+' conftest.er1 >conftest.err
23520 rm -f conftest.er1
23521 cat conftest.err >&5
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && {
23524 test -z "$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 } && test -s conftest.$ac_objext; then
23527 ac_cv_type_size_t=yes
23528 else
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 ac_cv_type_size_t=no
23533 fi
23534
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 fi
23537 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23538 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23539 if test $ac_cv_type_size_t = yes; then
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_SIZE_T 1
23543 _ACEOF
23544
23545
23546 fi
23547
23548
23549 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23550 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23551 if test "${ac_cv_type_mbstate_t+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h. */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 $ac_includes_default
23561 # include <wchar.h>
23562 int
23563 main ()
23564 {
23565 mbstate_t x; return sizeof x;
23566 ;
23567 return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23575 esac
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23587 ac_cv_type_mbstate_t=yes
23588 else
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592 ac_cv_type_mbstate_t=no
23593 fi
23594
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 fi
23597 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23598 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23599 if test $ac_cv_type_mbstate_t = yes; then
23600
23601 cat >>confdefs.h <<\_ACEOF
23602 #define HAVE_MBSTATE_T 1
23603 _ACEOF
23604
23605 else
23606
23607 cat >>confdefs.h <<\_ACEOF
23608 #define mbstate_t int
23609 _ACEOF
23610
23611 fi
23612
23613 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23614 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23615 if test "${emacs_cv_c_restrict+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 else
23618 cat >conftest.$ac_ext <<_ACEOF
23619 /* confdefs.h. */
23620 _ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 void fred (int *restrict x);
23625 int
23626 main ()
23627 {
23628
23629 ;
23630 return 0;
23631 }
23632 _ACEOF
23633 rm -f conftest.$ac_objext
23634 if { (ac_try="$ac_compile"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23638 esac
23639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23640 (eval "$ac_compile") 2>conftest.er1
23641 ac_status=$?
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } && {
23647 test -z "$ac_c_werror_flag" ||
23648 test ! -s conftest.err
23649 } && test -s conftest.$ac_objext; then
23650 emacs_cv_c_restrict=yes
23651 else
23652 echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23654
23655 cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h. */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 void fred (int *__restrict x);
23662 int
23663 main ()
23664 {
23665
23666 ;
23667 return 0;
23668 }
23669 _ACEOF
23670 rm -f conftest.$ac_objext
23671 if { (ac_try="$ac_compile"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23675 esac
23676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_compile") 2>conftest.er1
23678 ac_status=$?
23679 grep -v '^ *+' conftest.er1 >conftest.err
23680 rm -f conftest.er1
23681 cat conftest.err >&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && {
23684 test -z "$ac_c_werror_flag" ||
23685 test ! -s conftest.err
23686 } && test -s conftest.$ac_objext; then
23687 emacs_cv_c_restrict=__restrict
23688 else
23689 echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 emacs_cv_c_restrict=no
23693 fi
23694
23695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 fi
23697
23698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699 fi
23700 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23701 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23702 case "$emacs_cv_c_restrict" in
23703 yes) emacs_restrict=restrict;;
23704 no) emacs_restrict="";;
23705 *) emacs_restrict="$emacs_cv_c_restrict";;
23706 esac
23707 if test "$emacs_restrict" != __restrict; then
23708
23709 cat >>confdefs.h <<_ACEOF
23710 #define __restrict $emacs_restrict
23711 _ACEOF
23712
23713 fi
23714
23715 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23716 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23717 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720 cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h. */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 void fred (int x[__restrict]);
23727 int
23728 main ()
23729 {
23730
23731 ;
23732 return 0;
23733 }
23734 _ACEOF
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23740 esac
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_compile") 2>conftest.er1
23743 ac_status=$?
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } && {
23749 test -z "$ac_c_werror_flag" ||
23750 test ! -s conftest.err
23751 } && test -s conftest.$ac_objext; then
23752 emacs_cv_c_restrict_arr=yes
23753 else
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 emacs_cv_c_restrict_arr=no
23758 fi
23759
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 fi
23762 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23763 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23764 if test "$emacs_cv_c_restrict_arr" = yes; then
23765
23766 cat >>confdefs.h <<\_ACEOF
23767 #define __restrict_arr __restrict
23768 _ACEOF
23769
23770 fi
23771
23772
23773
23774 # Set up the CFLAGS for real compilation, so we can substitute it.
23775 CFLAGS="$REAL_CFLAGS"
23776 CPPFLAGS="$REAL_CPPFLAGS"
23777
23778 #### Find out which version of Emacs this is.
23779 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23780 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23781 if test x"${version}" = x; then
23782 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23783 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23784 { (exit 1); exit 1; }; }
23785 fi
23786
23787 ### Specify what sort of things we'll be editing into Makefile and config.h.
23788 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define EMACS_CONFIGURATION "${canonical}"
23826 _ACEOF
23827
23828
23829 cat >>confdefs.h <<_ACEOF
23830 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23831 _ACEOF
23832
23833
23834 cat >>confdefs.h <<_ACEOF
23835 #define config_machfile "${machfile}"
23836 _ACEOF
23837
23838
23839 cat >>confdefs.h <<_ACEOF
23840 #define config_opsysfile "${opsysfile}"
23841 _ACEOF
23842
23843
23844 cat >>confdefs.h <<_ACEOF
23845 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23846 _ACEOF
23847
23848
23849 cat >>confdefs.h <<_ACEOF
23850 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23851 _ACEOF
23852
23853
23854 cat >>confdefs.h <<_ACEOF
23855 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23856 _ACEOF
23857
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define UNEXEC_SRC ${UNEXEC_SRC}
23861 _ACEOF
23862
23863
23864 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23865
23866 cat >>confdefs.h <<\_ACEOF
23867 #define HAVE_X_WINDOWS 1
23868 _ACEOF
23869
23870 fi
23871 if test "${USE_X_TOOLKIT}" != "none" ; then
23872
23873 cat >>confdefs.h <<\_ACEOF
23874 #define USE_X_TOOLKIT 1
23875 _ACEOF
23876
23877 fi
23878 if test "${HAVE_X11}" = "yes" ; then
23879
23880 cat >>confdefs.h <<\_ACEOF
23881 #define HAVE_X11 1
23882 _ACEOF
23883
23884 fi
23885 if test "${HAVE_XFREE386}" = "yes" ; then
23886
23887 cat >>confdefs.h <<\_ACEOF
23888 #define HAVE_XFREE386 1
23889 _ACEOF
23890
23891 fi
23892 if test "${HAVE_MENUS}" = "yes" ; then
23893
23894 cat >>confdefs.h <<\_ACEOF
23895 #define HAVE_MENUS 1
23896 _ACEOF
23897
23898 fi
23899 if test "${GNU_MALLOC}" = "yes" ; then
23900
23901 cat >>confdefs.h <<\_ACEOF
23902 #define GNU_MALLOC 1
23903 _ACEOF
23904
23905 fi
23906 if test "${REL_ALLOC}" = "yes" ; then
23907
23908 cat >>confdefs.h <<\_ACEOF
23909 #define REL_ALLOC 1
23910 _ACEOF
23911
23912 fi
23913
23914
23915
23916
23917
23918
23919 #### Report on what we decided to do.
23920 #### Report GTK as a toolkit, even if it doesn't use Xt.
23921 #### It makes printing result more understandable as using GTK sets
23922 #### toolkit_scroll_bars to yes by default.
23923 if test "${HAVE_GTK}" = "yes"; then
23924 USE_X_TOOLKIT=GTK
23925 fi
23926
23927 echo "
23928 Configured for \`${canonical}'.
23929
23930 Where should the build process find the source code? ${srcdir}
23931 What operating system and machine description files should Emacs use?
23932 \`${opsysfile}' and \`${machfile}'
23933 What compiler should emacs be built with? ${CC} ${CFLAGS}
23934 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23935 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23936 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23937 What window system should Emacs use? ${window_system}
23938 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23939
23940 if test -n "${x_includes}"; then
23941 echo " Where do we find X Windows header files? ${x_includes}"
23942 else
23943 echo " Where do we find X Windows header files? Standard dirs"
23944 fi
23945 if test -n "${x_libraries}"; then
23946 echo " Where do we find X Windows libraries? ${x_libraries}"
23947 else
23948 echo " Where do we find X Windows libraries? Standard dirs"
23949 fi
23950
23951 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23952 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23953 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23954 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23955 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23956 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23957 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23958 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23959 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23960 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23961
23962 if test "${USE_FONT_BACKEND}" = "yes"; then
23963 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23964 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23965 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23966 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23967 fi
23968 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23969 echo
23970
23971 if test $USE_XASSERTS = yes; then
23972 echo " Compiling with asserts turned on."
23973 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23974 echo
23975 fi
23976
23977 if test "$USE_X_TOOLKIT" = GTK; then
23978 case "$canonical" in
23979 *cygwin*)
23980 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23981 will probably get a crash on startup. If this happens, please use another
23982 toolkit for Emacs. See etc/PROBLEMS for more information."
23983 ;;
23984 esac
23985 fi
23986
23987
23988 if test "$HAVE_CARBON" = "yes"; then
23989 echo
23990 echo "Warning: The Mac Carbon port is currently unsupported and has
23991 known problems. It is not recommended for use by non-developers.
23992 Read the emacs-devel archives for more information."
23993 echo
23994 fi
23995
23996 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23997 echo "D-Bus integration has been tested for GNU/Linux only."
23998 echo
23999 fi
24000
24001
24002 # Remove any trailing slashes in these variables.
24003 test "${prefix}" != NONE &&
24004 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24005 test "${exec_prefix}" != NONE &&
24006 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24007
24008 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24009 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24010 ## from Makefile.c can correctly provide the arg `-traditional' to the
24011 ## C preprocessor.
24012
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h. */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 yes..yes
24020 _ACEOF
24021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24022 $EGREP "yes..yes" >/dev/null 2>&1; then
24023 CPP_NEED_TRADITIONAL=no
24024 else
24025 CPP_NEED_TRADITIONAL=yes
24026 fi
24027 rm -f conftest*
24028
24029
24030 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"
24031
24032 ac_config_commands="$ac_config_commands default"
24033
24034 cat >confcache <<\_ACEOF
24035 # This file is a shell script that caches the results of configure
24036 # tests run on this system so they can be shared between configure
24037 # scripts and configure runs, see configure's option --config-cache.
24038 # It is not useful on other systems. If it contains results you don't
24039 # want to keep, you may remove or edit it.
24040 #
24041 # config.status only pays attention to the cache file if you give it
24042 # the --recheck option to rerun configure.
24043 #
24044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24046 # following values.
24047
24048 _ACEOF
24049
24050 # The following way of writing the cache mishandles newlines in values,
24051 # but we know of no workaround that is simple, portable, and efficient.
24052 # So, we kill variables containing newlines.
24053 # Ultrix sh set writes to stderr and can't be redirected directly,
24054 # and sets the high bit in the cache file unless we assign to the vars.
24055 (
24056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24057 eval ac_val=\$$ac_var
24058 case $ac_val in #(
24059 *${as_nl}*)
24060 case $ac_var in #(
24061 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24062 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24063 esac
24064 case $ac_var in #(
24065 _ | IFS | as_nl) ;; #(
24066 *) $as_unset $ac_var ;;
24067 esac ;;
24068 esac
24069 done
24070
24071 (set) 2>&1 |
24072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24073 *${as_nl}ac_space=\ *)
24074 # `set' does not quote correctly, so add quotes (double-quote
24075 # substitution turns \\\\ into \\, and sed turns \\ into \).
24076 sed -n \
24077 "s/'/'\\\\''/g;
24078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24079 ;; #(
24080 *)
24081 # `set' quotes correctly as required by POSIX, so do not add quotes.
24082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24083 ;;
24084 esac |
24085 sort
24086 ) |
24087 sed '
24088 /^ac_cv_env_/b end
24089 t clear
24090 :clear
24091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24092 t end
24093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24094 :end' >>confcache
24095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24096 if test -w "$cache_file"; then
24097 test "x$cache_file" != "x/dev/null" &&
24098 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24099 echo "$as_me: updating cache $cache_file" >&6;}
24100 cat confcache >$cache_file
24101 else
24102 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24103 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24104 fi
24105 fi
24106 rm -f confcache
24107
24108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24109 # Let make expand exec_prefix.
24110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24111
24112 DEFS=-DHAVE_CONFIG_H
24113
24114 ac_libobjs=
24115 ac_ltlibobjs=
24116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24117 # 1. Remove the extension, and $U if already installed.
24118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24119 ac_i=`echo "$ac_i" | sed "$ac_script"`
24120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24121 # will be set to the directory where LIBOBJS objects are built.
24122 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24123 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24124 done
24125 LIBOBJS=$ac_libobjs
24126
24127 LTLIBOBJS=$ac_ltlibobjs
24128
24129
24130
24131 : ${CONFIG_STATUS=./config.status}
24132 ac_clean_files_save=$ac_clean_files
24133 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24134 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24135 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24136 cat >$CONFIG_STATUS <<_ACEOF
24137 #! $SHELL
24138 # Generated by $as_me.
24139 # Run this file to recreate the current configuration.
24140 # Compiler output produced by configure, useful for debugging
24141 # configure, is in config.log if it exists.
24142
24143 debug=false
24144 ac_cs_recheck=false
24145 ac_cs_silent=false
24146 SHELL=\${CONFIG_SHELL-$SHELL}
24147 _ACEOF
24148
24149 cat >>$CONFIG_STATUS <<\_ACEOF
24150 ## --------------------- ##
24151 ## M4sh Initialization. ##
24152 ## --------------------- ##
24153
24154 # Be more Bourne compatible
24155 DUALCASE=1; export DUALCASE # for MKS sh
24156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24157 emulate sh
24158 NULLCMD=:
24159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24160 # is contrary to our usage. Disable this feature.
24161 alias -g '${1+"$@"}'='"$@"'
24162 setopt NO_GLOB_SUBST
24163 else
24164 case `(set -o) 2>/dev/null` in
24165 *posix*) set -o posix ;;
24166 esac
24167
24168 fi
24169
24170
24171
24172
24173 # PATH needs CR
24174 # Avoid depending upon Character Ranges.
24175 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24176 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24177 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24178 as_cr_digits='0123456789'
24179 as_cr_alnum=$as_cr_Letters$as_cr_digits
24180
24181 # The user is always right.
24182 if test "${PATH_SEPARATOR+set}" != set; then
24183 echo "#! /bin/sh" >conf$$.sh
24184 echo "exit 0" >>conf$$.sh
24185 chmod +x conf$$.sh
24186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24187 PATH_SEPARATOR=';'
24188 else
24189 PATH_SEPARATOR=:
24190 fi
24191 rm -f conf$$.sh
24192 fi
24193
24194 # Support unset when possible.
24195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24196 as_unset=unset
24197 else
24198 as_unset=false
24199 fi
24200
24201
24202 # IFS
24203 # We need space, tab and new line, in precisely that order. Quoting is
24204 # there to prevent editors from complaining about space-tab.
24205 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24206 # splitting by setting IFS to empty value.)
24207 as_nl='
24208 '
24209 IFS=" "" $as_nl"
24210
24211 # Find who we are. Look in the path if we contain no directory separator.
24212 case $0 in
24213 *[\\/]* ) as_myself=$0 ;;
24214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24215 for as_dir in $PATH
24216 do
24217 IFS=$as_save_IFS
24218 test -z "$as_dir" && as_dir=.
24219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24220 done
24221 IFS=$as_save_IFS
24222
24223 ;;
24224 esac
24225 # We did not find ourselves, most probably we were run as `sh COMMAND'
24226 # in which case we are not to be found in the path.
24227 if test "x$as_myself" = x; then
24228 as_myself=$0
24229 fi
24230 if test ! -f "$as_myself"; then
24231 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24232 { (exit 1); exit 1; }
24233 fi
24234
24235 # Work around bugs in pre-3.0 UWIN ksh.
24236 for as_var in ENV MAIL MAILPATH
24237 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24238 done
24239 PS1='$ '
24240 PS2='> '
24241 PS4='+ '
24242
24243 # NLS nuisances.
24244 for as_var in \
24245 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24246 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24247 LC_TELEPHONE LC_TIME
24248 do
24249 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24250 eval $as_var=C; export $as_var
24251 else
24252 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24253 fi
24254 done
24255
24256 # Required to use basename.
24257 if expr a : '\(a\)' >/dev/null 2>&1 &&
24258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24259 as_expr=expr
24260 else
24261 as_expr=false
24262 fi
24263
24264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24265 as_basename=basename
24266 else
24267 as_basename=false
24268 fi
24269
24270
24271 # Name of the executable.
24272 as_me=`$as_basename -- "$0" ||
24273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24274 X"$0" : 'X\(//\)$' \| \
24275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24276 echo X/"$0" |
24277 sed '/^.*\/\([^/][^/]*\)\/*$/{
24278 s//\1/
24279 q
24280 }
24281 /^X\/\(\/\/\)$/{
24282 s//\1/
24283 q
24284 }
24285 /^X\/\(\/\).*/{
24286 s//\1/
24287 q
24288 }
24289 s/.*/./; q'`
24290
24291 # CDPATH.
24292 $as_unset CDPATH
24293
24294
24295
24296 as_lineno_1=$LINENO
24297 as_lineno_2=$LINENO
24298 test "x$as_lineno_1" != "x$as_lineno_2" &&
24299 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24300
24301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24302 # uniformly replaced by the line number. The first 'sed' inserts a
24303 # line-number line after each line using $LINENO; the second 'sed'
24304 # does the real work. The second script uses 'N' to pair each
24305 # line-number line with the line containing $LINENO, and appends
24306 # trailing '-' during substitution so that $LINENO is not a special
24307 # case at line end.
24308 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24309 # scripts with optimization help from Paolo Bonzini. Blame Lee
24310 # E. McMahon (1931-1989) for sed's syntax. :-)
24311 sed -n '
24312 p
24313 /[$]LINENO/=
24314 ' <$as_myself |
24315 sed '
24316 s/[$]LINENO.*/&-/
24317 t lineno
24318 b
24319 :lineno
24320 N
24321 :loop
24322 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24323 t loop
24324 s/-\n.*//
24325 ' >$as_me.lineno &&
24326 chmod +x "$as_me.lineno" ||
24327 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24328 { (exit 1); exit 1; }; }
24329
24330 # Don't try to exec as it changes $[0], causing all sort of problems
24331 # (the dirname of $[0] is not the place where we might find the
24332 # original and so on. Autoconf is especially sensitive to this).
24333 . "./$as_me.lineno"
24334 # Exit status is that of the last command.
24335 exit
24336 }
24337
24338
24339 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24340 as_dirname=dirname
24341 else
24342 as_dirname=false
24343 fi
24344
24345 ECHO_C= ECHO_N= ECHO_T=
24346 case `echo -n x` in
24347 -n*)
24348 case `echo 'x\c'` in
24349 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24350 *) ECHO_C='\c';;
24351 esac;;
24352 *)
24353 ECHO_N='-n';;
24354 esac
24355
24356 if expr a : '\(a\)' >/dev/null 2>&1 &&
24357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24358 as_expr=expr
24359 else
24360 as_expr=false
24361 fi
24362
24363 rm -f conf$$ conf$$.exe conf$$.file
24364 if test -d conf$$.dir; then
24365 rm -f conf$$.dir/conf$$.file
24366 else
24367 rm -f conf$$.dir
24368 mkdir conf$$.dir
24369 fi
24370 echo >conf$$.file
24371 if ln -s conf$$.file conf$$ 2>/dev/null; then
24372 as_ln_s='ln -s'
24373 # ... but there are two gotchas:
24374 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24375 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24376 # In both cases, we have to default to `cp -p'.
24377 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24378 as_ln_s='cp -p'
24379 elif ln conf$$.file conf$$ 2>/dev/null; then
24380 as_ln_s=ln
24381 else
24382 as_ln_s='cp -p'
24383 fi
24384 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24385 rmdir conf$$.dir 2>/dev/null
24386
24387 if mkdir -p . 2>/dev/null; then
24388 as_mkdir_p=:
24389 else
24390 test -d ./-p && rmdir ./-p
24391 as_mkdir_p=false
24392 fi
24393
24394 if test -x / >/dev/null 2>&1; then
24395 as_test_x='test -x'
24396 else
24397 if ls -dL / >/dev/null 2>&1; then
24398 as_ls_L_option=L
24399 else
24400 as_ls_L_option=
24401 fi
24402 as_test_x='
24403 eval sh -c '\''
24404 if test -d "$1"; then
24405 test -d "$1/.";
24406 else
24407 case $1 in
24408 -*)set "./$1";;
24409 esac;
24410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24411 ???[sx]*):;;*)false;;esac;fi
24412 '\'' sh
24413 '
24414 fi
24415 as_executable_p=$as_test_x
24416
24417 # Sed expression to map a string onto a valid CPP name.
24418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24419
24420 # Sed expression to map a string onto a valid variable name.
24421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24422
24423
24424 exec 6>&1
24425
24426 # Save the log message, to keep $[0] and so on meaningful, and to
24427 # report actual input values of CONFIG_FILES etc. instead of their
24428 # values after options handling.
24429 ac_log="
24430 This file was extended by emacs $as_me 23.0.50, which was
24431 generated by GNU Autoconf 2.61. Invocation command line was
24432
24433 CONFIG_FILES = $CONFIG_FILES
24434 CONFIG_HEADERS = $CONFIG_HEADERS
24435 CONFIG_LINKS = $CONFIG_LINKS
24436 CONFIG_COMMANDS = $CONFIG_COMMANDS
24437 $ $0 $@
24438
24439 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24440 "
24441
24442 _ACEOF
24443
24444 cat >>$CONFIG_STATUS <<_ACEOF
24445 # Files that config.status was made for.
24446 config_files="$ac_config_files"
24447 config_headers="$ac_config_headers"
24448 config_commands="$ac_config_commands"
24449
24450 _ACEOF
24451
24452 cat >>$CONFIG_STATUS <<\_ACEOF
24453 ac_cs_usage="\
24454 \`$as_me' instantiates files from templates according to the
24455 current configuration.
24456
24457 Usage: $0 [OPTIONS] [FILE]...
24458
24459 -h, --help print this help, then exit
24460 -V, --version print version number and configuration settings, then exit
24461 -q, --quiet do not print progress messages
24462 -d, --debug don't remove temporary files
24463 --recheck update $as_me by reconfiguring in the same conditions
24464 --file=FILE[:TEMPLATE]
24465 instantiate the configuration file FILE
24466 --header=FILE[:TEMPLATE]
24467 instantiate the configuration header FILE
24468
24469 Configuration files:
24470 $config_files
24471
24472 Configuration headers:
24473 $config_headers
24474
24475 Configuration commands:
24476 $config_commands
24477
24478 Report bugs to <bug-autoconf@gnu.org>."
24479
24480 _ACEOF
24481 cat >>$CONFIG_STATUS <<_ACEOF
24482 ac_cs_version="\\
24483 emacs config.status 23.0.50
24484 configured by $0, generated by GNU Autoconf 2.61,
24485 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24486
24487 Copyright (C) 2006 Free Software Foundation, Inc.
24488 This config.status script is free software; the Free Software Foundation
24489 gives unlimited permission to copy, distribute and modify it."
24490
24491 ac_pwd='$ac_pwd'
24492 srcdir='$srcdir'
24493 INSTALL='$INSTALL'
24494 _ACEOF
24495
24496 cat >>$CONFIG_STATUS <<\_ACEOF
24497 # If no file are specified by the user, then we need to provide default
24498 # value. By we need to know if files were specified by the user.
24499 ac_need_defaults=:
24500 while test $# != 0
24501 do
24502 case $1 in
24503 --*=*)
24504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24506 ac_shift=:
24507 ;;
24508 *)
24509 ac_option=$1
24510 ac_optarg=$2
24511 ac_shift=shift
24512 ;;
24513 esac
24514
24515 case $ac_option in
24516 # Handling of the options.
24517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24518 ac_cs_recheck=: ;;
24519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24520 echo "$ac_cs_version"; exit ;;
24521 --debug | --debu | --deb | --de | --d | -d )
24522 debug=: ;;
24523 --file | --fil | --fi | --f )
24524 $ac_shift
24525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24526 ac_need_defaults=false;;
24527 --header | --heade | --head | --hea )
24528 $ac_shift
24529 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24530 ac_need_defaults=false;;
24531 --he | --h)
24532 # Conflict between --help and --header
24533 { echo "$as_me: error: ambiguous option: $1
24534 Try \`$0 --help' for more information." >&2
24535 { (exit 1); exit 1; }; };;
24536 --help | --hel | -h )
24537 echo "$ac_cs_usage"; exit ;;
24538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24540 ac_cs_silent=: ;;
24541
24542 # This is an error.
24543 -*) { echo "$as_me: error: unrecognized option: $1
24544 Try \`$0 --help' for more information." >&2
24545 { (exit 1); exit 1; }; } ;;
24546
24547 *) ac_config_targets="$ac_config_targets $1"
24548 ac_need_defaults=false ;;
24549
24550 esac
24551 shift
24552 done
24553
24554 ac_configure_extra_args=
24555
24556 if $ac_cs_silent; then
24557 exec 6>/dev/null
24558 ac_configure_extra_args="$ac_configure_extra_args --silent"
24559 fi
24560
24561 _ACEOF
24562 cat >>$CONFIG_STATUS <<_ACEOF
24563 if \$ac_cs_recheck; then
24564 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24565 CONFIG_SHELL=$SHELL
24566 export CONFIG_SHELL
24567 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24568 fi
24569
24570 _ACEOF
24571 cat >>$CONFIG_STATUS <<\_ACEOF
24572 exec 5>>config.log
24573 {
24574 echo
24575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24576 ## Running $as_me. ##
24577 _ASBOX
24578 echo "$ac_log"
24579 } >&5
24580
24581 _ACEOF
24582 cat >>$CONFIG_STATUS <<_ACEOF
24583 #
24584 # INIT-COMMANDS
24585 #
24586 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24587
24588 _ACEOF
24589
24590 cat >>$CONFIG_STATUS <<\_ACEOF
24591
24592 # Handling of arguments.
24593 for ac_config_target in $ac_config_targets
24594 do
24595 case $ac_config_target in
24596 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24598 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24599 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24600 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24601 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24602 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24603 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24604 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24605 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24606 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24607 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24608 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24609
24610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24612 { (exit 1); exit 1; }; };;
24613 esac
24614 done
24615
24616
24617 # If the user did not use the arguments to specify the items to instantiate,
24618 # then the envvar interface is used. Set only those that are not.
24619 # We use the long form for the default assignment because of an extremely
24620 # bizarre bug on SunOS 4.1.3.
24621 if $ac_need_defaults; then
24622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24625 fi
24626
24627 # Have a temporary directory for convenience. Make it in the build tree
24628 # simply because there is no reason against having it here, and in addition,
24629 # creating and moving files from /tmp can sometimes cause problems.
24630 # Hook for its removal unless debugging.
24631 # Note that there is a small window in which the directory will not be cleaned:
24632 # after its creation but before its name has been assigned to `$tmp'.
24633 $debug ||
24634 {
24635 tmp=
24636 trap 'exit_status=$?
24637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24638 ' 0
24639 trap '{ (exit 1); exit 1; }' 1 2 13 15
24640 }
24641 # Create a (secure) tmp directory for tmp files.
24642
24643 {
24644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24645 test -n "$tmp" && test -d "$tmp"
24646 } ||
24647 {
24648 tmp=./conf$$-$RANDOM
24649 (umask 077 && mkdir "$tmp")
24650 } ||
24651 {
24652 echo "$me: cannot create a temporary directory in ." >&2
24653 { (exit 1); exit 1; }
24654 }
24655
24656 #
24657 # Set up the sed scripts for CONFIG_FILES section.
24658 #
24659
24660 # No need to generate the scripts if there are no CONFIG_FILES.
24661 # This happens for instance when ./config.status config.h
24662 if test -n "$CONFIG_FILES"; then
24663
24664 _ACEOF
24665
24666
24667
24668 ac_delim='%!_!# '
24669 for ac_last_try in false false false false false :; do
24670 cat >conf$$subs.sed <<_ACEOF
24671 SHELL!$SHELL$ac_delim
24672 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24673 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24674 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24675 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24676 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24677 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24678 exec_prefix!$exec_prefix$ac_delim
24679 prefix!$prefix$ac_delim
24680 program_transform_name!$program_transform_name$ac_delim
24681 bindir!$bindir$ac_delim
24682 sbindir!$sbindir$ac_delim
24683 libexecdir!$libexecdir$ac_delim
24684 datarootdir!$datarootdir$ac_delim
24685 datadir!$datadir$ac_delim
24686 sysconfdir!$sysconfdir$ac_delim
24687 sharedstatedir!$sharedstatedir$ac_delim
24688 localstatedir!$localstatedir$ac_delim
24689 includedir!$includedir$ac_delim
24690 oldincludedir!$oldincludedir$ac_delim
24691 docdir!$docdir$ac_delim
24692 infodir!$infodir$ac_delim
24693 htmldir!$htmldir$ac_delim
24694 dvidir!$dvidir$ac_delim
24695 pdfdir!$pdfdir$ac_delim
24696 psdir!$psdir$ac_delim
24697 libdir!$libdir$ac_delim
24698 localedir!$localedir$ac_delim
24699 mandir!$mandir$ac_delim
24700 DEFS!$DEFS$ac_delim
24701 ECHO_C!$ECHO_C$ac_delim
24702 ECHO_N!$ECHO_N$ac_delim
24703 ECHO_T!$ECHO_T$ac_delim
24704 LIBS!$LIBS$ac_delim
24705 build_alias!$build_alias$ac_delim
24706 host_alias!$host_alias$ac_delim
24707 target_alias!$target_alias$ac_delim
24708 MAINT!$MAINT$ac_delim
24709 build!$build$ac_delim
24710 build_cpu!$build_cpu$ac_delim
24711 build_vendor!$build_vendor$ac_delim
24712 build_os!$build_os$ac_delim
24713 host!$host$ac_delim
24714 host_cpu!$host_cpu$ac_delim
24715 host_vendor!$host_vendor$ac_delim
24716 host_os!$host_os$ac_delim
24717 CC!$CC$ac_delim
24718 CFLAGS!$CFLAGS$ac_delim
24719 LDFLAGS!$LDFLAGS$ac_delim
24720 CPPFLAGS!$CPPFLAGS$ac_delim
24721 ac_ct_CC!$ac_ct_CC$ac_delim
24722 EXEEXT!$EXEEXT$ac_delim
24723 OBJEXT!$OBJEXT$ac_delim
24724 CPP!$CPP$ac_delim
24725 GREP!$GREP$ac_delim
24726 EGREP!$EGREP$ac_delim
24727 LN_S!$LN_S$ac_delim
24728 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24729 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24730 INSTALL_DATA!$INSTALL_DATA$ac_delim
24731 RANLIB!$RANLIB$ac_delim
24732 INSTALL_INFO!$INSTALL_INFO$ac_delim
24733 GZIP_PROG!$GZIP_PROG$ac_delim
24734 MAKEINFO!$MAKEINFO$ac_delim
24735 LIBSOUND!$LIBSOUND$ac_delim
24736 PKG_CONFIG!$PKG_CONFIG$ac_delim
24737 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24738 ALSA_LIBS!$ALSA_LIBS$ac_delim
24739 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24740 SET_MAKE!$SET_MAKE$ac_delim
24741 XMKMF!$XMKMF$ac_delim
24742 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24743 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24744 RSVG_LIBS!$RSVG_LIBS$ac_delim
24745 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24746 GTK_LIBS!$GTK_LIBS$ac_delim
24747 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24748 DBUS_LIBS!$DBUS_LIBS$ac_delim
24749 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24750 XFT_LIBS!$XFT_LIBS$ac_delim
24751 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24752 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24753 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24754 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24755 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24756 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24757 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24758 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24759 ALLOCA!$ALLOCA$ac_delim
24760 liblockfile!$liblockfile$ac_delim
24761 LIBOBJS!$LIBOBJS$ac_delim
24762 NEED_SETGID!$NEED_SETGID$ac_delim
24763 KMEM_GROUP!$KMEM_GROUP$ac_delim
24764 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24765 GETOPT_H!$GETOPT_H$ac_delim
24766 GETOPTOBJS!$GETOPTOBJS$ac_delim
24767 version!$version$ac_delim
24768 _ACEOF
24769
24770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24771 break
24772 elif $ac_last_try; then
24773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24775 { (exit 1); exit 1; }; }
24776 else
24777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24778 fi
24779 done
24780
24781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24782 if test -n "$ac_eof"; then
24783 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24784 ac_eof=`expr $ac_eof + 1`
24785 fi
24786
24787 cat >>$CONFIG_STATUS <<_ACEOF
24788 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24790 _ACEOF
24791 sed '
24792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24793 s/^/s,@/; s/!/@,|#_!!_#|/
24794 :n
24795 t n
24796 s/'"$ac_delim"'$/,g/; t
24797 s/$/\\/; p
24798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24799 ' >>$CONFIG_STATUS <conf$$subs.sed
24800 rm -f conf$$subs.sed
24801 cat >>$CONFIG_STATUS <<_ACEOF
24802 CEOF$ac_eof
24803 _ACEOF
24804
24805
24806 ac_delim='%!_!# '
24807 for ac_last_try in false false false false false :; do
24808 cat >conf$$subs.sed <<_ACEOF
24809 configuration!$configuration$ac_delim
24810 canonical!$canonical$ac_delim
24811 srcdir!$srcdir$ac_delim
24812 lispdir!$lispdir$ac_delim
24813 locallisppath!$locallisppath$ac_delim
24814 lisppath!$lisppath$ac_delim
24815 x_default_search_path!$x_default_search_path$ac_delim
24816 etcdir!$etcdir$ac_delim
24817 archlibdir!$archlibdir$ac_delim
24818 bitmapdir!$bitmapdir$ac_delim
24819 gamedir!$gamedir$ac_delim
24820 gameuser!$gameuser$ac_delim
24821 c_switch_system!$c_switch_system$ac_delim
24822 c_switch_machine!$c_switch_machine$ac_delim
24823 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24824 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24825 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24826 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24827 machfile!$machfile$ac_delim
24828 opsysfile!$opsysfile$ac_delim
24829 carbon_appdir!$carbon_appdir$ac_delim
24830 LTLIBOBJS!$LTLIBOBJS$ac_delim
24831 _ACEOF
24832
24833 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24834 break
24835 elif $ac_last_try; then
24836 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24837 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24838 { (exit 1); exit 1; }; }
24839 else
24840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24841 fi
24842 done
24843
24844 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24845 if test -n "$ac_eof"; then
24846 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24847 ac_eof=`expr $ac_eof + 1`
24848 fi
24849
24850 cat >>$CONFIG_STATUS <<_ACEOF
24851 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24853 _ACEOF
24854 sed '
24855 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24856 s/^/s,@/; s/!/@,|#_!!_#|/
24857 :n
24858 t n
24859 s/'"$ac_delim"'$/,g/; t
24860 s/$/\\/; p
24861 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24862 ' >>$CONFIG_STATUS <conf$$subs.sed
24863 rm -f conf$$subs.sed
24864 cat >>$CONFIG_STATUS <<_ACEOF
24865 :end
24866 s/|#_!!_#|//g
24867 CEOF$ac_eof
24868 _ACEOF
24869
24870
24871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24873 # trailing colons and then remove the whole line if VPATH becomes empty
24874 # (actually we leave an empty line to preserve line numbers).
24875 if test "x$srcdir" = x.; then
24876 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24877 s/:*\$(srcdir):*/:/
24878 s/:*\${srcdir}:*/:/
24879 s/:*@srcdir@:*/:/
24880 s/^\([^=]*=[ ]*\):*/\1/
24881 s/:*$//
24882 s/^[^=]*=[ ]*$//
24883 }'
24884 fi
24885
24886 cat >>$CONFIG_STATUS <<\_ACEOF
24887 fi # test -n "$CONFIG_FILES"
24888
24889
24890 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24891 do
24892 case $ac_tag in
24893 :[FHLC]) ac_mode=$ac_tag; continue;;
24894 esac
24895 case $ac_mode$ac_tag in
24896 :[FHL]*:*);;
24897 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24898 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24899 { (exit 1); exit 1; }; };;
24900 :[FH]-) ac_tag=-:-;;
24901 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24902 esac
24903 ac_save_IFS=$IFS
24904 IFS=:
24905 set x $ac_tag
24906 IFS=$ac_save_IFS
24907 shift
24908 ac_file=$1
24909 shift
24910
24911 case $ac_mode in
24912 :L) ac_source=$1;;
24913 :[FH])
24914 ac_file_inputs=
24915 for ac_f
24916 do
24917 case $ac_f in
24918 -) ac_f="$tmp/stdin";;
24919 *) # Look for the file first in the build tree, then in the source tree
24920 # (if the path is not absolute). The absolute path cannot be DOS-style,
24921 # because $ac_f cannot contain `:'.
24922 test -f "$ac_f" ||
24923 case $ac_f in
24924 [\\/$]*) false;;
24925 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24926 esac ||
24927 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24928 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24929 { (exit 1); exit 1; }; };;
24930 esac
24931 ac_file_inputs="$ac_file_inputs $ac_f"
24932 done
24933
24934 # Let's still pretend it is `configure' which instantiates (i.e., don't
24935 # use $as_me), people would be surprised to read:
24936 # /* config.h. Generated by config.status. */
24937 configure_input="Generated from "`IFS=:
24938 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24939 if test x"$ac_file" != x-; then
24940 configure_input="$ac_file. $configure_input"
24941 { echo "$as_me:$LINENO: creating $ac_file" >&5
24942 echo "$as_me: creating $ac_file" >&6;}
24943 fi
24944
24945 case $ac_tag in
24946 *:-:* | *:-) cat >"$tmp/stdin";;
24947 esac
24948 ;;
24949 esac
24950
24951 ac_dir=`$as_dirname -- "$ac_file" ||
24952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24953 X"$ac_file" : 'X\(//\)[^/]' \| \
24954 X"$ac_file" : 'X\(//\)$' \| \
24955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24956 echo X"$ac_file" |
24957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24958 s//\1/
24959 q
24960 }
24961 /^X\(\/\/\)[^/].*/{
24962 s//\1/
24963 q
24964 }
24965 /^X\(\/\/\)$/{
24966 s//\1/
24967 q
24968 }
24969 /^X\(\/\).*/{
24970 s//\1/
24971 q
24972 }
24973 s/.*/./; q'`
24974 { as_dir="$ac_dir"
24975 case $as_dir in #(
24976 -*) as_dir=./$as_dir;;
24977 esac
24978 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24979 as_dirs=
24980 while :; do
24981 case $as_dir in #(
24982 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24983 *) as_qdir=$as_dir;;
24984 esac
24985 as_dirs="'$as_qdir' $as_dirs"
24986 as_dir=`$as_dirname -- "$as_dir" ||
24987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24988 X"$as_dir" : 'X\(//\)[^/]' \| \
24989 X"$as_dir" : 'X\(//\)$' \| \
24990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24991 echo X"$as_dir" |
24992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24993 s//\1/
24994 q
24995 }
24996 /^X\(\/\/\)[^/].*/{
24997 s//\1/
24998 q
24999 }
25000 /^X\(\/\/\)$/{
25001 s//\1/
25002 q
25003 }
25004 /^X\(\/\).*/{
25005 s//\1/
25006 q
25007 }
25008 s/.*/./; q'`
25009 test -d "$as_dir" && break
25010 done
25011 test -z "$as_dirs" || eval "mkdir $as_dirs"
25012 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25013 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25014 { (exit 1); exit 1; }; }; }
25015 ac_builddir=.
25016
25017 case "$ac_dir" in
25018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25019 *)
25020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25021 # A ".." for each directory in $ac_dir_suffix.
25022 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25023 case $ac_top_builddir_sub in
25024 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25025 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25026 esac ;;
25027 esac
25028 ac_abs_top_builddir=$ac_pwd
25029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25030 # for backward compatibility:
25031 ac_top_builddir=$ac_top_build_prefix
25032
25033 case $srcdir in
25034 .) # We are building in place.
25035 ac_srcdir=.
25036 ac_top_srcdir=$ac_top_builddir_sub
25037 ac_abs_top_srcdir=$ac_pwd ;;
25038 [\\/]* | ?:[\\/]* ) # Absolute name.
25039 ac_srcdir=$srcdir$ac_dir_suffix;
25040 ac_top_srcdir=$srcdir
25041 ac_abs_top_srcdir=$srcdir ;;
25042 *) # Relative name.
25043 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25044 ac_top_srcdir=$ac_top_build_prefix$srcdir
25045 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25046 esac
25047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25048
25049
25050 case $ac_mode in
25051 :F)
25052 #
25053 # CONFIG_FILE
25054 #
25055
25056 case $INSTALL in
25057 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25058 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25059 esac
25060 _ACEOF
25061
25062 cat >>$CONFIG_STATUS <<\_ACEOF
25063 # If the template does not know about datarootdir, expand it.
25064 # FIXME: This hack should be removed a few years after 2.60.
25065 ac_datarootdir_hack=; ac_datarootdir_seen=
25066
25067 case `sed -n '/datarootdir/ {
25068 p
25069 q
25070 }
25071 /@datadir@/p
25072 /@docdir@/p
25073 /@infodir@/p
25074 /@localedir@/p
25075 /@mandir@/p
25076 ' $ac_file_inputs` in
25077 *datarootdir*) ac_datarootdir_seen=yes;;
25078 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25079 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25080 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25081 _ACEOF
25082 cat >>$CONFIG_STATUS <<_ACEOF
25083 ac_datarootdir_hack='
25084 s&@datadir@&$datadir&g
25085 s&@docdir@&$docdir&g
25086 s&@infodir@&$infodir&g
25087 s&@localedir@&$localedir&g
25088 s&@mandir@&$mandir&g
25089 s&\\\${datarootdir}&$datarootdir&g' ;;
25090 esac
25091 _ACEOF
25092
25093 # Neutralize VPATH when `$srcdir' = `.'.
25094 # Shell code in configure.ac might set extrasub.
25095 # FIXME: do we really want to maintain this feature?
25096 cat >>$CONFIG_STATUS <<_ACEOF
25097 sed "$ac_vpsub
25098 $extrasub
25099 _ACEOF
25100 cat >>$CONFIG_STATUS <<\_ACEOF
25101 :t
25102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25103 s&@configure_input@&$configure_input&;t t
25104 s&@top_builddir@&$ac_top_builddir_sub&;t t
25105 s&@srcdir@&$ac_srcdir&;t t
25106 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25107 s&@top_srcdir@&$ac_top_srcdir&;t t
25108 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25109 s&@builddir@&$ac_builddir&;t t
25110 s&@abs_builddir@&$ac_abs_builddir&;t t
25111 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25112 s&@INSTALL@&$ac_INSTALL&;t t
25113 $ac_datarootdir_hack
25114 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25115
25116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25117 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25119 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25120 which seems to be undefined. Please make sure it is defined." >&5
25121 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25122 which seems to be undefined. Please make sure it is defined." >&2;}
25123
25124 rm -f "$tmp/stdin"
25125 case $ac_file in
25126 -) cat "$tmp/out"; rm -f "$tmp/out";;
25127 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25128 esac
25129 ;;
25130 :H)
25131 #
25132 # CONFIG_HEADER
25133 #
25134 _ACEOF
25135
25136 # Transform confdefs.h into a sed script `conftest.defines', that
25137 # substitutes the proper values into config.h.in to produce config.h.
25138 rm -f conftest.defines conftest.tail
25139 # First, append a space to every undef/define line, to ease matching.
25140 echo 's/$/ /' >conftest.defines
25141 # Then, protect against being on the right side of a sed subst, or in
25142 # an unquoted here document, in config.status. If some macros were
25143 # called several times there might be several #defines for the same
25144 # symbol, which is useless. But do not sort them, since the last
25145 # AC_DEFINE must be honored.
25146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25147 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25148 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25149 # PARAMS is the parameter list in the macro definition--in most cases, it's
25150 # just an empty string.
25151 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25152 ac_dB='\\)[ (].*,\\1define\\2'
25153 ac_dC=' '
25154 ac_dD=' ,'
25155
25156 uniq confdefs.h |
25157 sed -n '
25158 t rset
25159 :rset
25160 s/^[ ]*#[ ]*define[ ][ ]*//
25161 t ok
25162 d
25163 :ok
25164 s/[\\&,]/\\&/g
25165 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25166 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25167 ' >>conftest.defines
25168
25169 # Remove the space that was appended to ease matching.
25170 # Then replace #undef with comments. This is necessary, for
25171 # example, in the case of _POSIX_SOURCE, which is predefined and required
25172 # on some systems where configure will not decide to define it.
25173 # (The regexp can be short, since the line contains either #define or #undef.)
25174 echo 's/ $//
25175 s,^[ #]*u.*,/* & */,' >>conftest.defines
25176
25177 # Break up conftest.defines:
25178 ac_max_sed_lines=50
25179
25180 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25181 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25182 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25183 # et cetera.
25184 ac_in='$ac_file_inputs'
25185 ac_out='"$tmp/out1"'
25186 ac_nxt='"$tmp/out2"'
25187
25188 while :
25189 do
25190 # Write a here document:
25191 cat >>$CONFIG_STATUS <<_ACEOF
25192 # First, check the format of the line:
25193 cat >"\$tmp/defines.sed" <<\\CEOF
25194 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25195 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25196 b
25197 :def
25198 _ACEOF
25199 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25200 echo 'CEOF
25201 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25202 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25203 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25204 grep . conftest.tail >/dev/null || break
25205 rm -f conftest.defines
25206 mv conftest.tail conftest.defines
25207 done
25208 rm -f conftest.defines conftest.tail
25209
25210 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25211 cat >>$CONFIG_STATUS <<\_ACEOF
25212 if test x"$ac_file" != x-; then
25213 echo "/* $configure_input */" >"$tmp/config.h"
25214 cat "$ac_result" >>"$tmp/config.h"
25215 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25216 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25217 echo "$as_me: $ac_file is unchanged" >&6;}
25218 else
25219 rm -f $ac_file
25220 mv "$tmp/config.h" $ac_file
25221 fi
25222 else
25223 echo "/* $configure_input */"
25224 cat "$ac_result"
25225 fi
25226 rm -f "$tmp/out12"
25227 ;;
25228
25229 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25230 echo "$as_me: executing $ac_file commands" >&6;}
25231 ;;
25232 esac
25233
25234
25235 case $ac_file$ac_mode in
25236 "default":C)
25237
25238 ### Make the necessary directories, if they don't exist.
25239 for dir in etc lisp ; do
25240 test -d ${dir} || mkdir ${dir}
25241 done
25242
25243 # Build src/Makefile from ${srcdir}/src/Makefile.c
25244 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25245 # This must be done after src/config.h is built, since we rely on that file.
25246
25247 # Now get this: Some word that is part of the ${srcdir} directory name
25248 # or the ${configuration} value might, just might, happen to be an
25249 # identifier like `sun4' or `i386' or something, and be predefined by
25250 # the C preprocessor to some helpful value like 1, or maybe the empty
25251 # string. Needless to say consequent macro substitutions are less
25252 # than conducive to the makefile finding the correct directory.
25253 undefs="`echo $top_srcdir $configuration $canonical |
25254 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25255 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25256 `"
25257
25258 echo creating src/epaths.h
25259 ${MAKE-make} epaths-force
25260
25261 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25262 # `..' to `. .' unless invoked with -traditional
25263
25264 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25265 CPPFLAGS="$CPPFLAGS -traditional"
25266 fi
25267
25268 echo creating lib-src/Makefile
25269 ( cd lib-src
25270 rm -f junk.c junk1.c junk2.c
25271 sed -e '/start of cpp stuff/q' \
25272 < Makefile.c > junk1.c
25273 sed -e '1,/start of cpp stuff/d'\
25274 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25275 < Makefile.c > junk.c
25276 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25277 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25278 cat junk1.c junk2.c > Makefile.new
25279 rm -f junk.c junk1.c junk2.c
25280 chmod 444 Makefile.new
25281 mv -f Makefile.new Makefile
25282 )
25283
25284 echo creating src/Makefile
25285 ( cd src
25286 rm -f junk.c junk1.c junk2.c
25287 sed -e '/start of cpp stuff/q' \
25288 < Makefile.c > junk1.c
25289 sed -e '1,/start of cpp stuff/d'\
25290 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25291 < Makefile.c > junk.c
25292 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25293 echo creating ${srcdir}/admin/unidata/Makefile
25294 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25295 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25296 fi
25297 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25298 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25299 cat junk1.c junk2.c > Makefile.new
25300 rm -f junk.c junk1.c junk2.c
25301 chmod 444 Makefile.new
25302 mv -f Makefile.new Makefile
25303 )
25304
25305 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25306 echo creating src/.gdbinit
25307 echo source $srcdir/src/.gdbinit > src/.gdbinit
25308 fi
25309
25310 # This is how we know whether to re-run configure in certain cases.
25311 touch src/config.stamp
25312
25313 ;;
25314
25315 esac
25316 done # for ac_tag
25317
25318
25319 { (exit 0); exit 0; }
25320 _ACEOF
25321 chmod +x $CONFIG_STATUS
25322 ac_clean_files=$ac_clean_files_save
25323
25324
25325 # configure is writing to config.log, and then calls config.status.
25326 # config.status does its own redirection, appending to config.log.
25327 # Unfortunately, on DOS this fails, as config.log is still kept open
25328 # by configure, so config.status won't be able to write to it; its
25329 # output is simply discarded. So we exec the FD to /dev/null,
25330 # effectively closing config.log, so it can be properly (re)opened and
25331 # appended to by config.status. When coming back to configure, we
25332 # need to make the FD available again.
25333 if test "$no_create" != yes; then
25334 ac_cs_success=:
25335 ac_config_status_args=
25336 test "$silent" = yes &&
25337 ac_config_status_args="$ac_config_status_args --quiet"
25338 exec 5>/dev/null
25339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25340 exec 5>>config.log
25341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25342 # would make configure fail if this is the last instruction.
25343 $ac_cs_success || { (exit 1); exit 1; }
25344 fi
25345
25346