Merge from emacs--devo--0
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 XMKMF'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126 fi
1127
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133 do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1299
1300 cat <<\_ACEOF
1301
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1334
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1853 #define KERBEROS 1
1854 _ACEOF
1855
1856 fi
1857
1858
1859
1860 # Check whether --with-kerberos5 was given.
1861 if test "${with_kerberos5+set}" = set; then
1862 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1863 if test "${with_kerberos+set}" != set; then
1864 with_kerberos=yes
1865 cat >>confdefs.h <<\_ACEOF
1866 #define KERBEROS 1
1867 _ACEOF
1868
1869 fi
1870 fi
1871
1872 cat >>confdefs.h <<\_ACEOF
1873 #define KERBEROS5 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879 # Check whether --with-hesiod was given.
1880 if test "${with_hesiod+set}" = set; then
1881 withval=$with_hesiod;
1882 cat >>confdefs.h <<\_ACEOF
1883 #define HESIOD 1
1884 _ACEOF
1885
1886 fi
1887
1888
1889
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval=$with_sound;
1893 fi
1894
1895
1896
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval=$with_x_toolkit; case "${withval}" in
1900 y | ye | yes ) val=athena ;;
1901 n | no ) val=no ;;
1902 l | lu | luc | luci | lucid ) val=lucid ;;
1903 a | at | ath | athe | athen | athena ) val=athena ;;
1904 m | mo | mot | moti | motif ) val=motif ;;
1905 g | gt | gtk ) val=gtk ;;
1906 * )
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1908 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1909 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1911 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1912 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1914 ;;
1915 esac
1916 with_x_toolkit=$val
1917
1918 fi
1919
1920
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1923 withval=$with_xpm;
1924 fi
1925
1926
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1929 withval=$with_jpeg;
1930 fi
1931
1932
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1935 withval=$with_tiff;
1936 fi
1937
1938
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1941 withval=$with_gif;
1942 fi
1943
1944
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1947 withval=$with_png;
1948 fi
1949
1950
1951 # Check whether --with-freetype was given.
1952 if test "${with_freetype+set}" = set; then
1953 withval=$with_freetype;
1954 fi
1955
1956
1957 # Check whether --with-xft was given.
1958 if test "${with_xft+set}" = set; then
1959 withval=$with_xft;
1960 fi
1961
1962
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1965 withval=$with_gtk;
1966 fi
1967
1968
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval=$with_pkg_config_prog;
1972 fi
1973
1974
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval=$with_toolkit_scroll_bars;
1978 fi
1979
1980
1981 # Check whether --with-xim was given.
1982 if test "${with_xim+set}" = set; then
1983 withval=$with_xim;
1984 fi
1985
1986
1987 # Check whether --with-carbon was given.
1988 if test "${with_carbon+set}" = set; then
1989 withval=$with_carbon;
1990 fi
1991
1992 # Check whether --enable-carbon-app was given.
1993 if test "${enable_carbon_app+set}" = set; then
1994 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1995 fi
1996
1997
1998 # Check whether --enable-font-backend was given.
1999 if test "${enable_font_backend+set}" = set; then
2000 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2001 else
2002 USE_FONT_BACKEND=no
2003 fi
2004
2005
2006 # Check whether --enable-asserts was given.
2007 if test "${enable_asserts+set}" = set; then
2008 enableval=$enable_asserts; USE_XASSERTS=$enableval
2009 else
2010 USE_XASSERTS=no
2011 fi
2012
2013
2014 # Check whether --enable-maintainer-mode was given.
2015 if test "${enable_maintainer_mode+set}" = set; then
2016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2017 else
2018 USE_MAINTAINER_MODE=no
2019 fi
2020
2021 if test $USE_MAINTAINER_MODE = yes; then
2022 MAINT=
2023 else
2024 MAINT=#
2025 fi
2026
2027
2028 # Check whether --enable-locallisppath was given.
2029 if test "${enable_locallisppath+set}" = set; then
2030 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2031 locallisppath=
2032 elif test "${enableval}" != "yes"; then
2033 locallisppath=${enableval}
2034 fi
2035 fi
2036
2037
2038 #### Make srcdir absolute, if it isn't already. It's important to
2039 #### avoid running the path through pwd unnecessarily, since pwd can
2040 #### give you automounter prefixes, which can go away. We do all this
2041 #### so Emacs can find its files when run uninstalled.
2042 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2043 unset CDPATH
2044 case "${srcdir}" in
2045 /* ) ;;
2046 . )
2047 ## We may be able to use the $PWD environment variable to make this
2048 ## absolute. But sometimes PWD is inaccurate.
2049 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2050 ## but that tested only for a well-formed and valid PWD,
2051 ## it did not object when PWD was well-formed and valid but just wrong.
2052 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2053 then
2054 srcdir="$PWD"
2055 else
2056 srcdir="`(cd ${srcdir}; pwd)`"
2057 fi
2058 ;;
2059 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2060 esac
2061
2062 #### Check if the source directory already has a configured system in it.
2063 if test `pwd` != `(cd ${srcdir} && pwd)` \
2064 && test -f "${srcdir}/src/config.h" ; then
2065 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2066 as a build directory right now; it has been configured in its own
2067 right. To configure in another directory as well, you MUST
2068 use GNU make. If you do not have GNU make, then you must
2069 now do \`make distclean' in ${srcdir},
2070 and then run $0 again." >&5
2071 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2072 as a build directory right now; it has been configured in its own
2073 right. To configure in another directory as well, you MUST
2074 use GNU make. If you do not have GNU make, then you must
2075 now do \`make distclean' in ${srcdir},
2076 and then run $0 again." >&2;}
2077 fi
2078
2079 #### Given the configuration name, set machfile and opsysfile to the
2080 #### names of the m/*.h and s/*.h files we should use.
2081
2082 ### Canonicalize the configuration name.
2083
2084 ac_aux_dir=
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 break
2090 elif test -f "$ac_dir/install.sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 break
2094 elif test -f "$ac_dir/shtool"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 break
2098 fi
2099 done
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2104 fi
2105
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113
2114
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2137
2138 fi
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2142 *-*-*) ;;
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2146 esac
2147 build=$ac_cv_build
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_build
2150 shift
2151 build_cpu=$1
2152 build_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 build_os=$*
2157 IFS=$ac_save_IFS
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2168 else
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2178 case $ac_cv_host in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2183 esac
2184 host=$ac_cv_host
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_host
2187 shift
2188 host_cpu=$1
2189 host_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 host_os=$*
2194 IFS=$ac_save_IFS
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 canonical=$host
2199 configuration=${host_alias-$host}
2200
2201
2202
2203 ### If you add support for a new configuration, add code to this
2204 ### switch statement to recognize your configuration name and select
2205 ### the appropriate operating system and machine description files.
2206
2207 ### You would hope that you could choose an m/*.h file pretty much
2208 ### based on the machine portion of the configuration name, and an s-
2209 ### file based on the operating system portion. However, it turns out
2210 ### that each m/*.h file is pretty manufacturer-specific - for
2211 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2212 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2213 ### machines. So we basically have to have a special case for each
2214 ### configuration name.
2215 ###
2216 ### As far as handling version numbers on operating systems is
2217 ### concerned, make sure things will fail in a fixable way. If
2218 ### /etc/MACHINES doesn't say anything about version numbers, be
2219 ### prepared to handle anything reasonably. If version numbers
2220 ### matter, be sure /etc/MACHINES says something about it.
2221 ###
2222 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2223 ### "System V Release 4"; he writes, "The old convention encouraged
2224 ### confusion between `system' and `release' levels'."
2225
2226 machine='' opsys='' unported=no
2227 case "${canonical}" in
2228
2229 ## FreeBSD ports
2230 *-*-freebsd* )
2231 opsys=freebsd
2232 case "${canonical}" in
2233 alpha*-*-freebsd*) machine=alpha ;;
2234 ia64-*-freebsd*) machine=ia64 ;;
2235 sparc64-*-freebsd*) machine=sparc ;;
2236 powerpc-*-freebsd*) machine=macppc ;;
2237 i[3456]86-*-freebsd*) machine=intel386 ;;
2238 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2239 esac
2240 ;;
2241
2242 ## NetBSD ports
2243 *-*-netbsd* )
2244 opsys=netbsd
2245 if test -f /usr/lib/crti.o; then
2246
2247 cat >>confdefs.h <<\_ACEOF
2248 #define HAVE_CRTIN
2249 _ACEOF
2250
2251 fi
2252
2253 case "${canonical}" in
2254 alpha*-*-netbsd*) machine=alpha ;;
2255 i[3456]86-*-netbsd*) machine=intel386 ;;
2256 m68k-*-netbsd*)
2257 # This is somewhat bogus.
2258 machine=hp9000s300 ;;
2259 mips-*-netbsd*) machine=pmax ;;
2260 mipsel-*-netbsd*) machine=pmax ;;
2261 mipseb-*-netbsd*) machine=pmax ;;
2262 ns32k-*-netbsd*) machine=ns32000 ;;
2263 powerpc-*-netbsd*) machine=macppc ;;
2264 sparc*-*-netbsd*) machine=sparc ;;
2265 vax-*-netbsd*) machine=vax ;;
2266 arm-*-netbsd*) machine=arm ;;
2267 x86_64-*-netbsd*) machine=amdx86-64 ;;
2268 hppa-*-netbsd*) machine=hp800 ;;
2269 shle-*-netbsd*) machine=sh3el ;;
2270 esac
2271 ;;
2272
2273 ## OpenBSD ports
2274 *-*-openbsd* )
2275 opsys=openbsd
2276 case "${canonical}" in
2277 alpha*-*-openbsd*) machine=alpha ;;
2278 i386-*-openbsd*) machine=intel386 ;;
2279 x86_64-*-openbsd*) machine=amdx86-64 ;;
2280 m68k-*-openbsd*) machine=hp9000s300 ;;
2281 mipsel-*-openbsd*) machine=pmax ;;
2282 ns32k-*-openbsd*) machine=ns32000 ;;
2283 sparc-*-openbsd*) machine=sparc ;;
2284 vax-*-openbsd*) machine=vax ;;
2285 esac
2286 ;;
2287
2288 ## LynxOS ports
2289 *-*-lynxos* )
2290 opsys=lynxos
2291 case "${canonical}" in
2292 i[3456]86-*-lynxos*) machine=intel386 ;;
2293 powerpc-*-lynxos*) machine=powerpc ;;
2294 esac
2295 ;;
2296
2297 ## Acorn RISCiX:
2298 arm-acorn-riscix1.1* )
2299 machine=acorn opsys=riscix1-1
2300 ;;
2301 arm-acorn-riscix1.2* | arm-acorn-riscix )
2302 ## This name is riscix12 instead of riscix1.2
2303 ## to avoid a file name conflict on MSDOS.
2304 machine=acorn opsys=riscix12
2305 ;;
2306
2307 ## BSDI ports
2308 *-*-bsdi* )
2309 opsys=bsdi
2310 case "${canonical}" in
2311 i[345]86-*-bsdi*) machine=intel386 ;;
2312 sparc-*-bsdi*) machine=sparc ;;
2313 powerpc-*-bsdi*) machine=macppc ;;
2314 esac
2315 case "${canonical}" in
2316 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2317 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2318 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2319 *-*-bsdi3* ) opsys=bsdos3 ;;
2320 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2321 esac
2322 ;;
2323
2324 ## Alliant machines
2325 ## Strictly speaking, we need the version of the alliant operating
2326 ## system to choose the right machine file, but currently the
2327 ## configuration name doesn't tell us enough to choose the right
2328 ## one; we need to give alliants their own operating system name to
2329 ## do this right. When someone cares, they can help us.
2330 fx80-alliant-* )
2331 machine=alliant4 opsys=bsd4-2
2332 ;;
2333 i860-alliant-* )
2334 machine=alliant-2800 opsys=bsd4-3
2335 ;;
2336
2337 ## Alpha (DEC) machines.
2338 alpha*-dec-osf* )
2339 machine=alpha opsys=osf1
2340 # This is needed to find X11R6.1 libraries for certain tests.
2341 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2342 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2343 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2344 # due to non-traditional preprocessing with the current compiler
2345 # defaults. OSF 4 can also have that compiler version, and there
2346 # seems always to have been a usable /usr/bin/cpp.
2347 NON_GNU_CPP=/usr/bin/cpp
2348 case "${canonical}" in
2349 alpha*-dec-osf[5-9]*)
2350 opsys=osf5-0 ;;
2351 esac
2352 ;;
2353
2354 alpha*-*-linux-gnu* )
2355 machine=alpha opsys=gnu-linux
2356 ;;
2357
2358 arm*-*-linux-gnu* )
2359 machine=arm opsys=gnu-linux
2360 ;;
2361
2362 ## Altos 3068
2363 m68*-altos-sysv* )
2364 machine=altos opsys=usg5-2
2365 ;;
2366
2367 ## Amdahl UTS
2368 580-amdahl-sysv* )
2369 machine=amdahl opsys=usg5-2-2
2370 ;;
2371
2372 ## Apollo, Domain/OS
2373 m68*-apollo-* )
2374 machine=apollo opsys=bsd4-3
2375 ;;
2376
2377 ## Apple Darwin / Mac OS X
2378 *-apple-darwin* )
2379 case "${canonical}" in
2380 i[3456]86-* ) machine=intel386 ;;
2381 powerpc-* ) machine=powermac ;;
2382 * ) unported=yes ;;
2383 esac
2384 opsys=darwin
2385 # Define CPP as follows to make autoconf work correctly.
2386 CPP="${CC-cc} -E -no-cpp-precomp"
2387 # Use fink packages if available.
2388 if test -d /sw/include && test -d /sw/lib; then
2389 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2390 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2391 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2392 fi
2393 ;;
2394
2395 ## AT&T 3b2, 3b5, 3b15, 3b20
2396 we32k-att-sysv* )
2397 machine=att3b opsys=usg5-2-2
2398 ;;
2399
2400 ## AT&T 3b1 - The Mighty Unix PC!
2401 m68*-att-sysv* )
2402 machine=7300 opsys=usg5-2-2
2403 ;;
2404
2405 ## Bull dpx20
2406 rs6000-bull-bosx* )
2407 machine=ibmrs6000 opsys=aix3-2
2408 ;;
2409
2410 ## Bull dpx2
2411 m68*-bull-sysv3* )
2412 machine=dpx2 opsys=usg5-3
2413 ;;
2414
2415 ## Bull sps7
2416 m68*-bull-sysv2* )
2417 machine=sps7 opsys=usg5-2
2418 ;;
2419
2420 ## CCI 5/32, 6/32 -- see "Tahoe".
2421
2422 ## Celerity
2423 ## I don't know what configuration name to use for this; config.sub
2424 ## doesn't seem to know anything about it. Hey, Celerity users, get
2425 ## in touch with us!
2426 celerity-celerity-bsd* )
2427 machine=celerity opsys=bsd4-2
2428 ;;
2429
2430 ## Clipper
2431 ## What operating systems does this chip run that Emacs has been
2432 ## tested on?
2433 clipper-* )
2434 machine=clipper
2435 ## We'll use the catch-all code at the bottom to guess the
2436 ## operating system.
2437 ;;
2438
2439 ## Compaq Nonstop
2440 mips-compaq-nonstopux* )
2441 machine=nonstopux opsys=nonstopux
2442 ;;
2443
2444 ## Convex
2445 *-convex-bsd* | *-convex-convexos* )
2446 machine=convex opsys=bsd4-3
2447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2448 NON_GNU_CPP="cc -E -P"
2449 ;;
2450
2451 ## Cubix QBx/386
2452 i[3456]86-cubix-sysv* )
2453 machine=intel386 opsys=usg5-3
2454 ;;
2455
2456 ## Cydra 5
2457 cydra*-cydrome-sysv* )
2458 machine=cydra5 opsys=usg5-3
2459 ;;
2460
2461 ## Data General AViiON Machines
2462 ## DG changed naming conventions with the release of 5.4.4.10, they
2463 ## dropped the initial 5.4 but left the intervening R. Because of the
2464 ## R this shouldn't conflict with older versions of the OS (which I
2465 ## think were named like dgux4.*). In addition, DG new AViiONs series
2466 ## uses either Motorola M88k or Intel Pentium CPUs.
2467 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2468 machine=aviion opsys=dgux4
2469 ;;
2470 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2471 ## This name is dgux5-4-3 instead of dgux5-4r3
2472 ## to avoid a file name conflict on MSDOS.
2473 machine=aviion opsys=dgux5-4-3
2474 ;;
2475 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2476 machine=aviion opsys=dgux5-4r2
2477 ;;
2478 m88k-dg-dgux* )
2479 machine=aviion opsys=dgux
2480 ;;
2481
2482 ## Data General AViiON Intel (x86) Machines
2483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2485 i[345]86-dg-dguxR4* )
2486 machine=aviion-intel opsys=dgux4
2487 ;;
2488
2489 ## DECstations
2490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2491 machine=pmax opsys=bsd4-2
2492 ;;
2493 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2494 machine=pmax opsys=bsd4-3
2495 ;;
2496 mips-dec-ultrix* )
2497 machine=pmax opsys=ultrix4-3
2498 ;;
2499 mips-dec-osf* )
2500 machine=pmax opsys=osf1
2501 ;;
2502 mips-dec-mach_bsd4.3* )
2503 machine=pmax opsys=mach-bsd4-3
2504 ;;
2505
2506 ## Motorola Delta machines
2507 m68k-motorola-sysv* | m68000-motorola-sysv* )
2508 machine=delta opsys=usg5-3
2509 if test -z "`type gnucc | grep 'not found'`"
2510 then
2511 if test -s /etc/167config
2512 then CC="gnucc -m68040"
2513 else CC="gnucc -m68881"
2514 fi
2515 else
2516 if test -z "`type gcc | grep 'not found'`"
2517 then CC=gcc
2518 else CC=cc
2519 fi
2520 fi
2521 ;;
2522 m88k-motorola-sysv4* )
2523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2524 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2525 # I hope there are not other 4.0 versions for this machine
2526 # which really need usg5-4 instead.
2527 machine=delta88k opsys=usg5-4-2
2528 ;;
2529 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2530 machine=delta88k opsys=usg5-3
2531 ;;
2532
2533 ## Dual machines
2534 m68*-dual-sysv* )
2535 machine=dual opsys=usg5-2
2536 ;;
2537 m68*-dual-uniplus* )
2538 machine=dual opsys=unipl5-2
2539 ;;
2540
2541 ## Elxsi 6400
2542 elxsi-elxsi-sysv* )
2543 machine=elxsi opsys=usg5-2
2544 ;;
2545
2546 ## Encore machines
2547 ns16k-encore-bsd* )
2548 machine=ns16000 opsys=umax
2549 ;;
2550
2551 ## The GEC 63 - apparently, this port isn't really finished yet.
2552 # I'm sure we finished off the last of the machines, though. -- fx
2553
2554 ## Gould Power Node and NP1
2555 pn-gould-bsd4.2* )
2556 machine=gould opsys=bsd4-2
2557 ;;
2558 pn-gould-bsd4.3* )
2559 machine=gould opsys=bsd4-3
2560 ;;
2561 np1-gould-bsd* )
2562 machine=gould-np1 opsys=bsd4-3
2563 ;;
2564
2565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2566 ## as far as Emacs is concerned).
2567 m88k-harris-cxux* )
2568 # Build needs to be different on 7.0 and later releases
2569 case "`uname -r`" in
2570 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2571 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2572 esac
2573 NON_GNU_CPP="/lib/cpp"
2574 ;;
2575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2576 m68k-harris-cxux* )
2577 machine=nh3000 opsys=cxux
2578 ;;
2579 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2580 powerpc-harris-powerunix )
2581 machine=nh6000 opsys=powerunix
2582 NON_GNU_CPP="cc -Xo -E -P"
2583 ;;
2584 ## Honeywell XPS100
2585 xps*-honeywell-sysv* )
2586 machine=xps100 opsys=usg5-2
2587 ;;
2588
2589 ## HP 9000 series 200 or 300
2590 m68*-hp-bsd* )
2591 machine=hp9000s300 opsys=bsd4-3
2592 ;;
2593 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2594 m68*-hp-hpux* )
2595 case "`uname -r`" in
2596 ## Someone's system reports A.B8.05 for this.
2597 ## I wonder what other possibilities there are.
2598 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2599 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2600 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2601 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2602 *) machine=hp9000s300 opsys=hpux ;;
2603 esac
2604 ;;
2605
2606 hppa*-*-linux-gnu* )
2607 machine=hp800 opsys=gnu-linux
2608 ;;
2609
2610 hppa*-*-nextstep* )
2611 machine=hp800 opsys=nextstep
2612 ;;
2613
2614 ## Orion machines
2615 orion-orion-bsd* )
2616 machine=orion opsys=bsd4-2
2617 ;;
2618 clipper-orion-bsd* )
2619 machine=orion105 opsys=bsd4-2
2620 ;;
2621
2622 ## IBM machines
2623 i[3456]86-ibm-aix1.1* )
2624 machine=ibmps2-aix opsys=usg5-2-2
2625 ;;
2626 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2627 machine=ibmps2-aix opsys=usg5-3
2628 ;;
2629 i370-ibm-aix*)
2630 machine=ibm370aix opsys=usg5-3
2631 ;;
2632 s390-*-linux-gnu* )
2633 machine=ibms390 opsys=gnu-linux
2634 ;;
2635 s390x-*-linux-gnu* )
2636 machine=ibms390x opsys=gnu-linux
2637 ;;
2638 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2639 machine=ibmrs6000 opsys=aix3-1
2640 ;;
2641 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2642 machine=ibmrs6000 opsys=aix3-2-5
2643 ;;
2644 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2645 machine=ibmrs6000 opsys=aix4-1
2646 ;;
2647 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2648 machine=ibmrs6000 opsys=aix4-2
2649 ;;
2650 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2651 machine=ibmrs6000 opsys=aix4-2
2652 ;;
2653 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2654 machine=ibmrs6000 opsys=aix4
2655 ;;
2656 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2657 machine=ibmrs6000 opsys=aix4-1
2658 ;;
2659 rs6000-ibm-aix* | powerpc-ibm-aix* )
2660 machine=ibmrs6000 opsys=aix3-2
2661 ;;
2662 romp-ibm-bsd4.3* )
2663 machine=ibmrt opsys=bsd4-3
2664 ;;
2665 romp-ibm-bsd4.2* )
2666 machine=ibmrt opsys=bsd4-2
2667 ;;
2668 romp-ibm-aos4.3* )
2669 machine=ibmrt opsys=bsd4-3
2670 ;;
2671 romp-ibm-aos4.2* )
2672 machine=ibmrt opsys=bsd4-2
2673 ;;
2674 romp-ibm-aos* )
2675 machine=ibmrt opsys=bsd4-3
2676 ;;
2677 romp-ibm-bsd* )
2678 machine=ibmrt opsys=bsd4-3
2679 ;;
2680 romp-ibm-aix* )
2681 machine=ibmrt-aix opsys=usg5-2-2
2682 ;;
2683
2684 ## Integrated Solutions `Optimum V'
2685 m68*-isi-bsd4.2* )
2686 machine=isi-ov opsys=bsd4-2
2687 ;;
2688 m68*-isi-bsd4.3* )
2689 machine=isi-ov opsys=bsd4-3
2690 ;;
2691
2692 ## Intel 386 machines where we do care about the manufacturer
2693 i[3456]86-intsys-sysv* )
2694 machine=is386 opsys=usg5-2-2
2695 ;;
2696
2697 ## Prime EXL
2698 i[3456]86-prime-sysv* )
2699 machine=i386 opsys=usg5-3
2700 ;;
2701
2702 ## Sequent Symmetry running Dynix
2703 i[3456]86-sequent-bsd* )
2704 machine=symmetry opsys=bsd4-3
2705 ;;
2706
2707 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2708 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2709 machine=sequent-ptx opsys=ptx4
2710 NON_GNU_CPP=/lib/cpp
2711 ;;
2712
2713 ## Sequent Symmetry running DYNIX/ptx
2714 ## Use the old cpp rather than the newer ANSI one.
2715 i[3456]86-sequent-ptx* )
2716 machine=sequent-ptx opsys=ptx
2717 NON_GNU_CPP="/lib/cpp"
2718 ;;
2719
2720 ## ncr machine running svr4.3.
2721 i[3456]86-ncr-sysv4.3 )
2722 machine=ncr386 opsys=usg5-4-3
2723 ;;
2724
2725 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2726 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2727 i[3456]86-ncr-sysv* )
2728 machine=ncr386 opsys=usg5-4-2
2729 ;;
2730
2731 ## Intel Paragon OSF/1
2732 i860-intel-osf1* )
2733 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2734 ;;
2735
2736 ## Intel 860
2737 i860-*-sysv4* )
2738 machine=i860 opsys=usg5-4
2739 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2740 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2741 ;;
2742
2743 ## Macintosh PowerPC
2744 powerpc*-*-linux-gnu* )
2745 machine=macppc opsys=gnu-linux
2746 ;;
2747
2748 ## Masscomp machines
2749 m68*-masscomp-rtu* )
2750 machine=masscomp opsys=rtu
2751 ;;
2752
2753 ## Megatest machines
2754 m68*-megatest-bsd* )
2755 machine=mega68 opsys=bsd4-2
2756 ;;
2757
2758 ## Workstations sold by MIPS
2759 ## This is not necessarily all workstations using the MIPS processor -
2760 ## Irises are produced by SGI, and DECstations by DEC.
2761
2762 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2763 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2764 ## it gives for choosing between the alternatives seems to be "Use
2765 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2766 ## the BSD world." I'll assume that these are instructions for
2767 ## handling two odd situations, and that every other situation
2768 ## should use mips.h and usg5-2-2, they being listed first.
2769 mips-mips-usg* )
2770 machine=mips4
2771 ## Fall through to the general code at the bottom to decide on the OS.
2772 ;;
2773 mips-mips-riscos4* )
2774 machine=mips4 opsys=bsd4-3
2775 NON_GNU_CC="cc -systype bsd43"
2776 NON_GNU_CPP="cc -systype bsd43 -E"
2777 ;;
2778 mips-mips-riscos5* )
2779 machine=mips4 opsys=riscos5
2780 NON_GNU_CC="cc -systype bsd43"
2781 NON_GNU_CPP="cc -systype bsd43 -E"
2782 ;;
2783 mips-mips-bsd* )
2784 machine=mips opsys=bsd4-3
2785 ;;
2786 mips-mips-* )
2787 machine=mips opsys=usg5-2-2
2788 ;;
2789
2790 ## NeXT
2791 m68*-next-* | m68k-*-nextstep* )
2792 machine=m68k opsys=nextstep
2793 ;;
2794
2795 ## The complete machine from National Semiconductor
2796 ns32k-ns-genix* )
2797 machine=ns32000 opsys=usg5-2
2798 ;;
2799
2800 ## NCR machines
2801 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2802 machine=tower32 opsys=usg5-2-2
2803 ;;
2804 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2805 machine=tower32v3 opsys=usg5-3
2806 ;;
2807
2808 ## NEC EWS4800
2809 mips-nec-sysv4*)
2810 machine=ews4800 opsys=ux4800
2811 ;;
2812
2813 ## Nixdorf Targon 31
2814 m68*-nixdorf-sysv* )
2815 machine=targon31 opsys=usg5-2-2
2816 ;;
2817
2818 ## Nu (TI or LMI)
2819 m68*-nu-sysv* )
2820 machine=nu opsys=usg5-2
2821 ;;
2822
2823 ## Plexus
2824 m68*-plexus-sysv* )
2825 machine=plexus opsys=usg5-2
2826 ;;
2827
2828 ## Pyramid machines
2829 ## I don't really have any idea what sort of processor the Pyramid has,
2830 ## so I'm assuming it is its own architecture.
2831 pyramid-pyramid-bsd* )
2832 machine=pyramid opsys=bsd4-2
2833 ;;
2834
2835 ## Sequent Balance
2836 ns32k-sequent-bsd4.2* )
2837 machine=sequent opsys=bsd4-2
2838 ;;
2839 ns32k-sequent-bsd4.3* )
2840 machine=sequent opsys=bsd4-3
2841 ;;
2842
2843 ## Siemens Nixdorf
2844 mips-siemens-sysv* | mips-sni-sysv*)
2845 machine=mips-siemens opsys=usg5-4
2846 NON_GNU_CC=/usr/ccs/bin/cc
2847 NON_GNU_CPP=/usr/ccs/lib/cpp
2848 ;;
2849
2850 ## Silicon Graphics machines
2851 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2852 m68*-sgi-iris3.5* )
2853 machine=irist opsys=iris3-5
2854 ;;
2855 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2856 machine=irist opsys=iris3-6
2857 ;;
2858 ## Iris 4D
2859 mips-sgi-irix3* )
2860 machine=iris4d opsys=irix3-3
2861 ;;
2862 mips-sgi-irix4* )
2863 machine=iris4d opsys=irix4-0
2864 ;;
2865 mips-sgi-irix6.5 )
2866 machine=iris4d opsys=irix6-5
2867 # Without defining _LANGUAGE_C, things get masked out in the headers
2868 # so that, for instance, grepping for `free' in stdlib.h fails and
2869 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2870 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2871 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2872 ;;
2873 mips-sgi-irix6* )
2874 machine=iris4d opsys=irix6-0
2875 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2876 # but presumably it does no harm.
2877 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2878 # -32 probably isn't necessary in later v.6s -- anyone know which?
2879 NON_GCC_TEST_OPTIONS=-32
2880 ;;
2881 mips-sgi-irix5.[01]* )
2882 machine=iris4d opsys=irix5-0
2883 ;;
2884 mips-sgi-irix5* | mips-sgi-irix* )
2885 machine=iris4d opsys=irix5-2
2886 ;;
2887
2888 ## SONY machines
2889 m68*-sony-bsd4.2* )
2890 machine=news opsys=bsd4-2
2891 ;;
2892 m68*-sony-bsd4.3* )
2893 machine=news opsys=bsd4-3
2894 ;;
2895 m68*-sony-newsos3* | m68*-sony-news3*)
2896 machine=news opsys=bsd4-3
2897 ;;
2898 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2899 machine=news-risc opsys=bsd4-3
2900 ;;
2901 mips-sony-newsos6* )
2902 machine=news-r6 opsys=newsos6
2903 ;;
2904 mips-sony-news* )
2905 machine=news-risc opsys=newsos5
2906 ;;
2907
2908 ## Stride
2909 m68*-stride-sysv* )
2910 machine=stride opsys=usg5-2
2911 ;;
2912
2913 ## Suns
2914 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2915 machine=sparc opsys=gnu-linux
2916 ;;
2917
2918 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2919 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2920 | rs6000-*-solaris2*)
2921 case "${canonical}" in
2922 m68*-sunos1* ) machine=sun1 ;;
2923 m68*-sunos2* ) machine=sun2 ;;
2924 m68* ) machine=sun3 ;;
2925 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2926 i[3456]86-*-* ) machine=intel386 ;;
2927 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2928 powerpcle* ) machine=powerpcle ;;
2929 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2930 sparc* ) machine=sparc ;;
2931 * ) unported=yes ;;
2932 esac
2933 case "${canonical}" in
2934 ## The Sun386 didn't get past 4.0.
2935 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2936 *-sunos4.0* ) opsys=sunos4-0 ;;
2937 *-sunos4.1.[3-9]*noshare )
2938 ## This name is sunos413 instead of sunos4-1-3
2939 ## to avoid a file name conflict on MSDOS.
2940 opsys=sunos413
2941 NON_GNU_CPP=/usr/lib/cpp
2942 NON_GCC_TEST_OPTIONS=-Bstatic
2943 GCC_TEST_OPTIONS=-static
2944 ;;
2945 *-sunos4.1.[3-9]* | *-sunos4shr*)
2946 opsys=sunos4shr
2947 NON_GNU_CPP=/usr/lib/cpp
2948 ;;
2949 *-sunos4* | *-sunos )
2950 opsys=sunos4-1
2951 NON_GCC_TEST_OPTIONS=-Bstatic
2952 GCC_TEST_OPTIONS=-static
2953 ;;
2954 *-sunos5.3* | *-solaris2.3* )
2955 opsys=sol2-3
2956 NON_GNU_CPP=/usr/ccs/lib/cpp
2957 ;;
2958 *-sunos5.4* | *-solaris2.4* )
2959 opsys=sol2-4
2960 NON_GNU_CPP=/usr/ccs/lib/cpp
2961 RANLIB="ar -ts"
2962 ;;
2963 *-sunos5.5* | *-solaris2.5* )
2964 opsys=sol2-5
2965 NON_GNU_CPP=/usr/ccs/lib/cpp
2966 RANLIB="ar -ts"
2967 ;;
2968 *-sunos5.6* | *-solaris2.6* )
2969 opsys=sol2-6
2970 NON_GNU_CPP=/usr/ccs/lib/cpp
2971 RANLIB="ar -ts"
2972 ;;
2973 *-sunos5* | *-solaris* )
2974 opsys=sol2-6
2975 NON_GNU_CPP=/usr/ccs/lib/cpp
2976 ;;
2977 * ) opsys=bsd4-2 ;;
2978 esac
2979 ## Watch out for a compiler that we know will not work.
2980 case "${canonical}" in
2981 *-solaris* | *-sunos5* )
2982 if [ "x$CC" = x/usr/ucb/cc ]; then
2983 ## /usr/ucb/cc doesn't work;
2984 ## we should find some other compiler that does work.
2985 unset CC
2986 fi
2987 ;;
2988 *) ;;
2989 esac
2990 ;;
2991 sparc-*-nextstep* )
2992 machine=sparc opsys=nextstep
2993 ;;
2994
2995 ## Tadpole 68k
2996 m68*-tadpole-sysv* )
2997 machine=tad68k opsys=usg5-3
2998 ;;
2999
3000 ## Tahoe machines
3001 tahoe-tahoe-bsd4.2* )
3002 machine=tahoe opsys=bsd4-2
3003 ;;
3004 tahoe-tahoe-bsd4.3* )
3005 machine=tahoe opsys=bsd4-3
3006 ;;
3007
3008 ## Tandem Integrity S2
3009 mips-tandem-sysv* )
3010 machine=tandem-s2 opsys=usg5-3
3011 ;;
3012
3013 ## Tektronix XD88
3014 m88k-tektronix-sysv3* )
3015 machine=tekxd88 opsys=usg5-3
3016 ;;
3017
3018 ## Tektronix 16000 box (6130?)
3019 ns16k-tektronix-bsd* )
3020 machine=ns16000 opsys=bsd4-2
3021 ;;
3022 ## Tektronix 4300
3023 ## src/m/tek4300.h hints that this is a m68k machine.
3024 m68*-tektronix-bsd* )
3025 machine=tek4300 opsys=bsd4-3
3026 ;;
3027
3028 ## Titan P2 or P3
3029 ## We seem to have lost the machine-description file titan.h!
3030 titan-titan-sysv* )
3031 machine=titan opsys=usg5-3
3032 ;;
3033
3034 ## Ustation E30 (SS5E)
3035 m68*-unisys-uniplus* )
3036 machine=ustation opsystem=unipl5-2
3037 ;;
3038
3039 ## Vaxen.
3040 vax-dec-* )
3041 machine=vax
3042 case "${canonical}" in
3043 *-bsd4.1* ) opsys=bsd4-1 ;;
3044 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3045 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3046 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3047 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3048 *-vms* ) opsys=vms ;;
3049 * ) unported=yes
3050 esac
3051 ;;
3052
3053 ## Whitechapel MG1
3054 ns16k-whitechapel-* )
3055 machine=mg1
3056 ## We don't know what sort of OS runs on these; we'll let the
3057 ## operating system guessing code below try.
3058 ;;
3059
3060 ## Wicat
3061 m68*-wicat-sysv* )
3062 machine=wicat opsys=usg5-2
3063 ;;
3064
3065 ## IA-64
3066 ia64*-*-linux* )
3067 machine=ia64 opsys=gnu-linux
3068 ;;
3069
3070 ## Intel 386 machines where we don't care about the manufacturer
3071 i[3456]86-*-* )
3072 machine=intel386
3073 case "${canonical}" in
3074 *-cygwin ) opsys=cygwin ;;
3075 *-darwin* ) opsys=darwin
3076 CPP="${CC-cc} -E -no-cpp-precomp"
3077 ;;
3078 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3079 *-isc2.2* ) opsys=isc2-2 ;;
3080 *-isc4.0* ) opsys=isc4-0 ;;
3081 *-isc4.* ) opsys=isc4-1
3082 GCC_TEST_OPTIONS=-posix
3083 NON_GCC_TEST_OPTIONS=-Xp
3084 ;;
3085 *-isc* ) opsys=isc3-0 ;;
3086 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3087 *-esix* ) opsys=esix ;;
3088 *-xenix* ) opsys=xenix ;;
3089 *-linux-gnu* ) opsys=gnu-linux ;;
3090 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3091 *-sco3.2v5* ) opsys=sco5
3092 NON_GNU_CPP=/lib/cpp
3093 # Prevent -belf from being passed to $CPP.
3094 # /lib/cpp does not accept it.
3095 OVERRIDE_CPPFLAGS=" "
3096 ;;
3097 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3098 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3099 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3100 *-386bsd* ) opsys=386bsd ;;
3101 *-nextstep* ) opsys=nextstep ;;
3102 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3103 esac
3104 ;;
3105
3106 ## m68k Linux-based GNU system
3107 m68k-*-linux-gnu* )
3108 machine=m68k opsys=gnu-linux
3109 ;;
3110
3111 ## Mips Linux-based GNU system
3112 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3113 machine=mips opsys=gnu-linux
3114 ;;
3115
3116 ## UXP/DS
3117 sparc-fujitsu-sysv4* )
3118 machine=sparc opsys=uxpds
3119 NON_GNU_CPP=/usr/ccs/lib/cpp
3120 RANLIB="ar -ts"
3121 ;;
3122
3123 ## UXP/V
3124 f301-fujitsu-uxpv4.1)
3125 machine=f301 opsys=uxpv
3126 ;;
3127
3128 ## AMD x86-64 Linux-based GNU system
3129 x86_64-*-linux-gnu* )
3130 machine=amdx86-64 opsys=gnu-linux
3131 ;;
3132
3133 * )
3134 unported=yes
3135 ;;
3136 esac
3137
3138 ### If the code above didn't choose an operating system, just choose
3139 ### an operating system based on the configuration name. You really
3140 ### only want to use this when you have no idea what the right
3141 ### operating system is; if you know what operating systems a machine
3142 ### runs, it's cleaner to make it explicit in the case statement
3143 ### above.
3144 if test x"${opsys}" = x; then
3145 case "${canonical}" in
3146 *-gnu* ) opsys=gnu ;;
3147 *-bsd4.[01] ) opsys=bsd4-1 ;;
3148 *-bsd4.2 ) opsys=bsd4-2 ;;
3149 *-bsd4.3 ) opsys=bsd4-3 ;;
3150 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3151 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3152 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3153 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3154 *-sysv4.2uw* ) opsys=unixware ;;
3155 *-sysv5uw* ) opsys=unixware ;;
3156 *-sysv5OpenUNIX* ) opsys=unixware ;;
3157 *-sysv4.1* | *-sysvr4.1* )
3158 NON_GNU_CPP=/usr/lib/cpp
3159 opsys=usg5-4 ;;
3160 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3161 if [ x$NON_GNU_CPP = x ]; then
3162 if [ -f /usr/ccs/lib/cpp ]; then
3163 NON_GNU_CPP=/usr/ccs/lib/cpp
3164 else
3165 NON_GNU_CPP=/lib/cpp
3166 fi
3167 fi
3168 opsys=usg5-4-2 ;;
3169 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3170 * )
3171 unported=yes
3172 ;;
3173 esac
3174 fi
3175
3176
3177
3178 if test $unported = yes; then
3179 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3180 Check \`etc/MACHINES' for recognized configuration names." >&5
3181 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3182 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3183 { (exit 1); exit 1; }; }
3184 fi
3185
3186 machfile="m/${machine}.h"
3187 opsysfile="s/${opsys}.h"
3188
3189
3190 #### Choose a compiler.
3191 test -n "$CC" && cc_specified=yes
3192
3193 # Save the value of CFLAGS that the user specified.
3194 SPECIFIED_CFLAGS="$CFLAGS"
3195
3196 case ${with_gcc} in
3197 "yes" ) CC="gcc" GCC=yes ;;
3198 "no" ) : ${CC=cc} ;;
3199 * )
3200 esac
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3211 if test "${ac_cv_prog_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236 { echo "$as_me:$LINENO: result: $CC" >&5
3237 echo "${ECHO_T}$CC" >&6; }
3238 else
3239 { echo "$as_me:$LINENO: result: no" >&5
3240 echo "${ECHO_T}no" >&6; }
3241 fi
3242
3243
3244 fi
3245 if test -z "$ac_cv_prog_CC"; then
3246 ac_ct_CC=$CC
3247 # Extract the first word of "gcc", so it can be a program name with args.
3248 set dummy gcc; ac_word=$2
3249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_ac_ct_CC="gcc"
3265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi
3273 fi
3274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275 if test -n "$ac_ct_CC"; then
3276 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3277 echo "${ECHO_T}$ac_ct_CC" >&6; }
3278 else
3279 { echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6; }
3281 fi
3282
3283 if test "x$ac_ct_CC" = x; then
3284 CC=""
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287 yes:)
3288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3289 whose name does not start with the host triplet. If you think this
3290 configuration is useful to you, please write to autoconf@gnu.org." >&5
3291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3292 whose name does not start with the host triplet. If you think this
3293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296 CC=$ac_ct_CC
3297 fi
3298 else
3299 CC="$ac_cv_prog_CC"
3300 fi
3301
3302 if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}cc; ac_word=$2
3306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC="${ac_tool_prefix}cc"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { echo "$as_me:$LINENO: result: $CC" >&5
3334 echo "${ECHO_T}$CC" >&6; }
3335 else
3336 { echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6; }
3338 fi
3339
3340
3341 fi
3342 fi
3343 if test -z "$CC"; then
3344 # Extract the first word of "cc", so it can be a program name with args.
3345 set dummy cc; ac_word=$2
3346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 ac_prog_rejected=no
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363 ac_prog_rejected=yes
3364 continue
3365 fi
3366 ac_cv_prog_CC="cc"
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3369 fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 if test $ac_prog_rejected = yes; then
3375 # We found a bogon in the path, so make sure we never use it.
3376 set dummy $ac_cv_prog_CC
3377 shift
3378 if test $# != 0; then
3379 # We chose a different compiler from the bogus one.
3380 # However, it has the same basename, so the bogon will be chosen
3381 # first if we set CC to just the basename; use the full file name.
3382 shift
3383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3384 fi
3385 fi
3386 fi
3387 fi
3388 CC=$ac_cv_prog_CC
3389 if test -n "$CC"; then
3390 { echo "$as_me:$LINENO: result: $CC" >&5
3391 echo "${ECHO_T}$CC" >&6; }
3392 else
3393 { echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6; }
3395 fi
3396
3397
3398 fi
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 for ac_prog in cl.exe
3402 do
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { echo "$as_me:$LINENO: result: $CC" >&5
3433 echo "${ECHO_T}$CC" >&6; }
3434 else
3435 { echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6; }
3437 fi
3438
3439
3440 test -n "$CC" && break
3441 done
3442 fi
3443 if test -z "$CC"; then
3444 ac_ct_CC=$CC
3445 for ac_prog in cl.exe
3446 do
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 else
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3459 do
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_ac_ct_CC="$ac_prog"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468 done
3469 done
3470 IFS=$as_save_IFS
3471
3472 fi
3473 fi
3474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477 echo "${ECHO_T}$ac_ct_CC" >&6; }
3478 else
3479 { echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6; }
3481 fi
3482
3483
3484 test -n "$ac_ct_CC" && break
3485 done
3486
3487 if test "x$ac_ct_CC" = x; then
3488 CC=""
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491 yes:)
3492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3493 whose name does not start with the host triplet. If you think this
3494 configuration is useful to you, please write to autoconf@gnu.org." >&5
3495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3496 whose name does not start with the host triplet. If you think this
3497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3498 ac_tool_warned=yes ;;
3499 esac
3500 CC=$ac_ct_CC
3501 fi
3502 fi
3503
3504 fi
3505
3506
3507 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details." >&5
3509 echo "$as_me: error: no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details." >&2;}
3511 { (exit 1); exit 1; }; }
3512
3513 # Provide some information about the compiler.
3514 echo "$as_me:$LINENO: checking for C compiler version" >&5
3515 ac_compiler=`set X $ac_compile; echo $2`
3516 { (ac_try="$ac_compiler --version >&5"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compiler --version >&5") 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }
3536 { (ac_try="$ac_compiler -V >&5"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compiler -V >&5") 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }
3546
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 ac_clean_files_save=$ac_clean_files
3563 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3564 # Try to create an executable without -o first, disregard a.out.
3565 # It will help us diagnose broken compilers, and finding out an intuition
3566 # of exeext.
3567 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3568 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3569 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3570 #
3571 # List of possible output files, starting from the most likely.
3572 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3573 # only as a last resort. b.out is created by i960 compilers.
3574 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3575 #
3576 # The IRIX 6 linker writes into existing files which may not be
3577 # executable, retaining their permissions. Remove them first so a
3578 # subsequent execution test works.
3579 ac_rmfiles=
3580 for ac_file in $ac_files
3581 do
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3585 esac
3586 done
3587 rm -f $ac_rmfiles
3588
3589 if { (ac_try="$ac_link_default"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_link_default") 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; then
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3603 # Autoconf.
3604 for ac_file in $ac_files ''
3605 do
3606 test -f "$ac_file" || continue
3607 case $ac_file in
3608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3609 ;;
3610 [ab].out )
3611 # We found the default executable, but exeext='' is most
3612 # certainly right.
3613 break;;
3614 *.* )
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3616 then :; else
3617 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618 fi
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3623 # actually working.
3624 break;;
3625 * )
3626 break;;
3627 esac
3628 done
3629 test "$ac_cv_exeext" = no && ac_cv_exeext=
3630
3631 else
3632 ac_file=''
3633 fi
3634
3635 { echo "$as_me:$LINENO: result: $ac_file" >&5
3636 echo "${ECHO_T}$ac_file" >&6; }
3637 if test -z "$ac_file"; then
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3642 See \`config.log' for more details." >&5
3643 echo "$as_me: error: C compiler cannot create executables
3644 See \`config.log' for more details." >&2;}
3645 { (exit 77); exit 77; }; }
3646 fi
3647
3648 ac_exeext=$ac_cv_exeext
3649
3650 # Check that the compiler produces executables we can run. If not, either
3651 # the compiler is broken, or we cross compile.
3652 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3653 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3654 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3655 # If not cross compiling, check that we can run a simple program.
3656 if test "$cross_compiling" != yes; then
3657 if { ac_try='./$ac_file'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 cross_compiling=no
3668 else
3669 if test "$cross_compiling" = maybe; then
3670 cross_compiling=yes
3671 else
3672 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details." >&5
3675 echo "$as_me: error: cannot run C compiled programs.
3676 If you meant to cross compile, use \`--host'.
3677 See \`config.log' for more details." >&2;}
3678 { (exit 1); exit 1; }; }
3679 fi
3680 fi
3681 fi
3682 { echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6; }
3684
3685 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3690 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3691 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3692 echo "${ECHO_T}$cross_compiling" >&6; }
3693
3694 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3695 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3696 if { (ac_try="$ac_link"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; then
3706 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3707 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3708 # work properly (i.e., refer to `conftest.exe'), while it won't with
3709 # `rm'.
3710 for ac_file in conftest.exe conftest conftest.*; do
3711 test -f "$ac_file" || continue
3712 case $ac_file in
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 break;;
3716 * ) break;;
3717 esac
3718 done
3719 else
3720 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3725 fi
3726
3727 rm -f conftest$ac_cv_exeext
3728 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3729 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3730
3731 rm -f conftest.$ac_ext
3732 EXEEXT=$ac_cv_exeext
3733 ac_exeext=$EXEEXT
3734 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3735 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3736 if test "${ac_cv_objext+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745
3746 int
3747 main ()
3748 {
3749
3750 ;
3751 return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.o conftest.obj
3755 if { (ac_try="$ac_compile"
3756 case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; then
3765 for ac_file in conftest.o conftest.obj conftest.*; do
3766 test -f "$ac_file" || continue;
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3770 break;;
3771 esac
3772 done
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3778 See \`config.log' for more details." >&5
3779 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details." >&2;}
3781 { (exit 1); exit 1; }; }
3782 fi
3783
3784 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3785 fi
3786 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3787 echo "${ECHO_T}$ac_cv_objext" >&6; }
3788 OBJEXT=$ac_cv_objext
3789 ac_objext=$OBJEXT
3790 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3791 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3792 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805 #ifndef __GNUC__
3806 choke me
3807 #endif
3808
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_compiler_gnu=yes
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_compiler_gnu=no
3836 fi
3837
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3840
3841 fi
3842 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3843 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3844 GCC=`test $ac_compiler_gnu = yes && echo yes`
3845 ac_test_CFLAGS=${CFLAGS+set}
3846 ac_save_CFLAGS=$CFLAGS
3847 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3848 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3849 if test "${ac_cv_prog_cc_g+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 ac_save_c_werror_flag=$ac_c_werror_flag
3853 ac_c_werror_flag=yes
3854 ac_cv_prog_cc_g=no
3855 CFLAGS="-g"
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862
3863 int
3864 main ()
3865 {
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.$ac_objext
3872 if { (ac_try="$ac_compile"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } && {
3885 test -z "$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 } && test -s conftest.$ac_objext; then
3888 ac_cv_prog_cc_g=yes
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893 CFLAGS=""
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3926 :
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 ac_c_werror_flag=$ac_save_c_werror_flag
3932 CFLAGS="-g"
3933 cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h. */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939
3940 int
3941 main ()
3942 {
3943
3944 ;
3945 return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3956 ac_status=$?
3957 grep -v '^ *+' conftest.er1 >conftest.err
3958 rm -f conftest.er1
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3965 ac_cv_prog_cc_g=yes
3966 else
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970
3971 fi
3972
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 fi
3975
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 fi
3978
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3981 fi
3982 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3984 if test "$ac_test_CFLAGS" = set; then
3985 CFLAGS=$ac_save_CFLAGS
3986 elif test $ac_cv_prog_cc_g = yes; then
3987 if test "$GCC" = yes; then
3988 CFLAGS="-g -O2"
3989 else
3990 CFLAGS="-g"
3991 fi
3992 else
3993 if test "$GCC" = yes; then
3994 CFLAGS="-O2"
3995 else
3996 CFLAGS=
3997 fi
3998 fi
3999 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4000 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4001 if test "${ac_cv_prog_cc_c89+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004 ac_cv_prog_cc_c89=no
4005 ac_save_CC=$CC
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <stdarg.h>
4013 #include <stdio.h>
4014 #include <sys/types.h>
4015 #include <sys/stat.h>
4016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4017 struct buf { int x; };
4018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4019 static char *e (p, i)
4020 char **p;
4021 int i;
4022 {
4023 return p[i];
4024 }
4025 static char *f (char * (*g) (char **, int), char **p, ...)
4026 {
4027 char *s;
4028 va_list v;
4029 va_start (v,p);
4030 s = g (p, va_arg (v,int));
4031 va_end (v);
4032 return s;
4033 }
4034
4035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4036 function prototypes and stuff, but not '\xHH' hex character constants.
4037 These don't provoke an error unfortunately, instead are silently treated
4038 as 'x'. The following induces an error, until -std is added to get
4039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4040 array size at least. It's necessary to write '\x00'==0 to get something
4041 that's true only with -std. */
4042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4043
4044 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4045 inside strings and character constants. */
4046 #define FOO(x) 'x'
4047 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4048
4049 int test (int i, double x);
4050 struct s1 {int (*f) (int a);};
4051 struct s2 {int (*f) (double a);};
4052 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4053 int argc;
4054 char **argv;
4055 int
4056 main ()
4057 {
4058 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4065 do
4066 CC="$ac_save_CC $ac_arg"
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 ac_cv_prog_cc_c89=$ac_arg
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089
4090 fi
4091
4092 rm -f core conftest.err conftest.$ac_objext
4093 test "x$ac_cv_prog_cc_c89" != "xno" && break
4094 done
4095 rm -f conftest.$ac_ext
4096 CC=$ac_save_CC
4097
4098 fi
4099 # AC_CACHE_VAL
4100 case "x$ac_cv_prog_cc_c89" in
4101 x)
4102 { echo "$as_me:$LINENO: result: none needed" >&5
4103 echo "${ECHO_T}none needed" >&6; } ;;
4104 xno)
4105 { echo "$as_me:$LINENO: result: unsupported" >&5
4106 echo "${ECHO_T}unsupported" >&6; } ;;
4107 *)
4108 CC="$CC $ac_cv_prog_cc_c89"
4109 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4110 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4111 esac
4112
4113
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119
4120
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4123 CPP=
4124 fi
4125
4126 #### Some systems specify a CPP to use unless we are using GCC.
4127 #### Now that we know whether we are using GCC, we can decide whether
4128 #### to use that one.
4129 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4130 then
4131 CPP="$NON_GNU_CPP"
4132 fi
4133
4134 #### Some systems specify a CC to use unless we are using GCC.
4135 #### Now that we know whether we are using GCC, we can decide whether
4136 #### to use that one.
4137 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4138 test x$cc_specified != xyes
4139 then
4140 CC="$NON_GNU_CC"
4141 fi
4142
4143 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4144 then
4145 CC="$CC $GCC_TEST_OPTIONS"
4146 fi
4147
4148 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4149 then
4150 CC="$CC $NON_GCC_TEST_OPTIONS"
4151 fi
4152
4153
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4160 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4163 CPP=
4164 fi
4165 if test -z "$CPP"; then
4166 if test "${ac_cv_prog_CPP+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4171 do
4172 ac_preproc_ok=false
4173 for ac_c_preproc_warn_flag in '' yes
4174 do
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #ifdef __STDC__
4188 # include <limits.h>
4189 #else
4190 # include <assert.h>
4191 #endif
4192 Syntax error
4193 _ACEOF
4194 if { (ac_try="$ac_cpp conftest.$ac_ext"
4195 case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198 esac
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 }; then
4210 :
4211 else
4212 echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 # Broken: fails on valid input.
4216 continue
4217 fi
4218
4219 rm -f conftest.err conftest.$ac_ext
4220
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4238 ac_status=$?
4239 grep -v '^ *+' conftest.er1 >conftest.err
4240 rm -f conftest.er1
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 }; then
4247 # Broken: success on invalid input.
4248 continue
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 # Passes both tests.
4254 ac_preproc_ok=:
4255 break
4256 fi
4257
4258 rm -f conftest.err conftest.$ac_ext
4259
4260 done
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.$ac_ext
4263 if $ac_preproc_ok; then
4264 break
4265 fi
4266
4267 done
4268 ac_cv_prog_CPP=$CPP
4269
4270 fi
4271 CPP=$ac_cv_prog_CPP
4272 else
4273 ac_cv_prog_CPP=$CPP
4274 fi
4275 { echo "$as_me:$LINENO: result: $CPP" >&5
4276 echo "${ECHO_T}$CPP" >&6; }
4277 ac_preproc_ok=false
4278 for ac_c_preproc_warn_flag in '' yes
4279 do
4280 # Use a header file that comes with gcc, so configuring glibc
4281 # with a fresh cross-compiler works.
4282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4283 # <limits.h> exists even on freestanding compilers.
4284 # On the NeXT, cc -E runs the code through the compiler's parser,
4285 # not just through cpp. "Syntax error" is here to catch this case.
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292 #ifdef __STDC__
4293 # include <limits.h>
4294 #else
4295 # include <assert.h>
4296 #endif
4297 Syntax error
4298 _ACEOF
4299 if { (ac_try="$ac_cpp conftest.$ac_ext"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } >/dev/null && {
4312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4313 test ! -s conftest.err
4314 }; then
4315 :
4316 else
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 # Broken: fails on valid input.
4321 continue
4322 fi
4323
4324 rm -f conftest.err conftest.$ac_ext
4325
4326 # OK, works on sane cases. Now check whether nonexistent headers
4327 # can be detected and how.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <ac_nonexistent.h>
4335 _ACEOF
4336 if { (ac_try="$ac_cpp conftest.$ac_ext"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } >/dev/null && {
4349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 }; then
4352 # Broken: success on invalid input.
4353 continue
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 # Passes both tests.
4359 ac_preproc_ok=:
4360 break
4361 fi
4362
4363 rm -f conftest.err conftest.$ac_ext
4364
4365 done
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then
4369 :
4370 else
4371 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4372 See \`config.log' for more details." >&5
4373 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4374 See \`config.log' for more details." >&2;}
4375 { (exit 1); exit 1; }; }
4376 fi
4377
4378 ac_ext=c
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
4384
4385 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4386 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4387 if test "${ac_cv_path_GREP+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 # Extract the first word of "grep ggrep" to use in msg output
4391 if test -z "$GREP"; then
4392 set dummy grep ggrep; ac_prog_name=$2
4393 if test "${ac_cv_path_GREP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396 ac_path_GREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in grep ggrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4406 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4407 # Check for GNU ac_path_GREP and select it if it is found.
4408 # Check for GNU $ac_path_GREP
4409 case `"$ac_path_GREP" --version 2>&1` in
4410 *GNU*)
4411 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4412 *)
4413 ac_count=0
4414 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4415 while :
4416 do
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 echo 'GREP' >> "conftest.nl"
4421 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 ac_count=`expr $ac_count + 1`
4424 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_GREP="$ac_path_GREP"
4427 ac_path_GREP_max=$ac_count
4428 fi
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4434
4435
4436 $ac_path_GREP_found && break 3
4437 done
4438 done
4439
4440 done
4441 IFS=$as_save_IFS
4442
4443
4444 fi
4445
4446 GREP="$ac_cv_path_GREP"
4447 if test -z "$GREP"; then
4448 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4449 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4450 { (exit 1); exit 1; }; }
4451 fi
4452
4453 else
4454 ac_cv_path_GREP=$GREP
4455 fi
4456
4457
4458 fi
4459 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4460 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4461 GREP="$ac_cv_path_GREP"
4462
4463
4464 { echo "$as_me:$LINENO: checking for egrep" >&5
4465 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4466 if test "${ac_cv_path_EGREP+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4470 then ac_cv_path_EGREP="$GREP -E"
4471 else
4472 # Extract the first word of "egrep" to use in msg output
4473 if test -z "$EGREP"; then
4474 set dummy egrep; ac_prog_name=$2
4475 if test "${ac_cv_path_EGREP+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 ac_path_EGREP_found=false
4479 # Loop through the user's path and test for each of PROGNAME-LIST
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_prog in egrep; do
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4488 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4489 # Check for GNU ac_path_EGREP and select it if it is found.
4490 # Check for GNU $ac_path_EGREP
4491 case `"$ac_path_EGREP" --version 2>&1` in
4492 *GNU*)
4493 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4494 *)
4495 ac_count=0
4496 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4497 while :
4498 do
4499 cat "conftest.in" "conftest.in" >"conftest.tmp"
4500 mv "conftest.tmp" "conftest.in"
4501 cp "conftest.in" "conftest.nl"
4502 echo 'EGREP' >> "conftest.nl"
4503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505 ac_count=`expr $ac_count + 1`
4506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4507 # Best one so far, save it but keep looking for a better one
4508 ac_cv_path_EGREP="$ac_path_EGREP"
4509 ac_path_EGREP_max=$ac_count
4510 fi
4511 # 10*(2^10) chars as input seems more than enough
4512 test $ac_count -gt 10 && break
4513 done
4514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515 esac
4516
4517
4518 $ac_path_EGREP_found && break 3
4519 done
4520 done
4521
4522 done
4523 IFS=$as_save_IFS
4524
4525
4526 fi
4527
4528 EGREP="$ac_cv_path_EGREP"
4529 if test -z "$EGREP"; then
4530 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4531 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4532 { (exit 1); exit 1; }; }
4533 fi
4534
4535 else
4536 ac_cv_path_EGREP=$EGREP
4537 fi
4538
4539
4540 fi
4541 fi
4542 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4543 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4544 EGREP="$ac_cv_path_EGREP"
4545
4546
4547
4548 { echo "$as_me:$LINENO: checking for AIX" >&5
4549 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #ifdef _AIX
4557 yes
4558 #endif
4559
4560 _ACEOF
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 $EGREP "yes" >/dev/null 2>&1; then
4563 { echo "$as_me:$LINENO: result: yes" >&5
4564 echo "${ECHO_T}yes" >&6; }
4565 cat >>confdefs.h <<\_ACEOF
4566 #define _ALL_SOURCE 1
4567 _ACEOF
4568
4569 else
4570 { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4572 fi
4573 rm -f conftest*
4574
4575
4576
4577 cat >>confdefs.h <<\_ACEOF
4578 #define _GNU_SOURCE 1
4579 _ACEOF
4580
4581
4582
4583 ### Use -Wno-pointer-sign if the compiler supports it
4584 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4585 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4586 SAVE_CFLAGS="$CFLAGS"
4587 CFLAGS="$CFLAGS -Wno-pointer-sign"
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594
4595 int
4596 main ()
4597 {
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (ac_try="$ac_compile"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_compile") 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && {
4617 test -z "$ac_c_werror_flag" ||
4618 test ! -s conftest.err
4619 } && test -s conftest.$ac_objext; then
4620 has_option=yes
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 has_option=no
4626 fi
4627
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 if test $has_option = yes; then
4630 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4631 fi
4632 { echo "$as_me:$LINENO: result: $has_option" >&5
4633 echo "${ECHO_T}$has_option" >&6; }
4634 CFLAGS="$SAVE_CFLAGS"
4635 unset has_option
4636 unset SAVE_CFLAGS
4637
4638 #### Some other nice autoconf tests.
4639
4640 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4641 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4642 LN_S=$as_ln_s
4643 if test "$LN_S" = "ln -s"; then
4644 { echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6; }
4646 else
4647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4648 echo "${ECHO_T}no, using $LN_S" >&6; }
4649 fi
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4658 # On Suns, sometimes $CPP names a directory.
4659 if test -n "$CPP" && test -d "$CPP"; then
4660 CPP=
4661 fi
4662 if test -z "$CPP"; then
4663 if test "${ac_cv_prog_CPP+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 # Double quotes because CPP needs to be expanded
4667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4668 do
4669 ac_preproc_ok=false
4670 for ac_c_preproc_warn_flag in '' yes
4671 do
4672 # Use a header file that comes with gcc, so configuring glibc
4673 # with a fresh cross-compiler works.
4674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675 # <limits.h> exists even on freestanding compilers.
4676 # On the NeXT, cc -E runs the code through the compiler's parser,
4677 # not just through cpp. "Syntax error" is here to catch this case.
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #ifdef __STDC__
4685 # include <limits.h>
4686 #else
4687 # include <assert.h>
4688 #endif
4689 Syntax error
4690 _ACEOF
4691 if { (ac_try="$ac_cpp conftest.$ac_ext"
4692 case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4695 esac
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698 ac_status=$?
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null && {
4704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4706 }; then
4707 :
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 # Broken: fails on valid input.
4713 continue
4714 fi
4715
4716 rm -f conftest.err conftest.$ac_ext
4717
4718 # OK, works on sane cases. Now check whether nonexistent headers
4719 # can be detected and how.
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <ac_nonexistent.h>
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null && {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 }; then
4744 # Broken: success on invalid input.
4745 continue
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 # Passes both tests.
4751 ac_preproc_ok=:
4752 break
4753 fi
4754
4755 rm -f conftest.err conftest.$ac_ext
4756
4757 done
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.err conftest.$ac_ext
4760 if $ac_preproc_ok; then
4761 break
4762 fi
4763
4764 done
4765 ac_cv_prog_CPP=$CPP
4766
4767 fi
4768 CPP=$ac_cv_prog_CPP
4769 else
4770 ac_cv_prog_CPP=$CPP
4771 fi
4772 { echo "$as_me:$LINENO: result: $CPP" >&5
4773 echo "${ECHO_T}$CPP" >&6; }
4774 ac_preproc_ok=false
4775 for ac_c_preproc_warn_flag in '' yes
4776 do
4777 # Use a header file that comes with gcc, so configuring glibc
4778 # with a fresh cross-compiler works.
4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4780 # <limits.h> exists even on freestanding compilers.
4781 # On the NeXT, cc -E runs the code through the compiler's parser,
4782 # not just through cpp. "Syntax error" is here to catch this case.
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #ifdef __STDC__
4790 # include <limits.h>
4791 #else
4792 # include <assert.h>
4793 #endif
4794 Syntax error
4795 _ACEOF
4796 if { (ac_try="$ac_cpp conftest.$ac_ext"
4797 case "(($ac_try" in
4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } >/dev/null && {
4809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4811 }; then
4812 :
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 # Broken: fails on valid input.
4818 continue
4819 fi
4820
4821 rm -f conftest.err conftest.$ac_ext
4822
4823 # OK, works on sane cases. Now check whether nonexistent headers
4824 # can be detected and how.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4832 _ACEOF
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 case "(($ac_try" in
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null && {
4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 }; then
4849 # Broken: success on invalid input.
4850 continue
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 # Passes both tests.
4856 ac_preproc_ok=:
4857 break
4858 fi
4859
4860 rm -f conftest.err conftest.$ac_ext
4861
4862 done
4863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4864 rm -f conftest.err conftest.$ac_ext
4865 if $ac_preproc_ok; then
4866 :
4867 else
4868 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4869 See \`config.log' for more details." >&5
4870 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4871 See \`config.log' for more details." >&2;}
4872 { (exit 1); exit 1; }; }
4873 fi
4874
4875 ac_ext=c
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880
4881 # Find a good install program. We prefer a C program (faster),
4882 # so one script is as good as another. But avoid the broken or
4883 # incompatible versions:
4884 # SysV /etc/install, /usr/sbin/install
4885 # SunOS /usr/etc/install
4886 # IRIX /sbin/install
4887 # AIX /bin/install
4888 # AmigaOS /C/install, which installs bootblocks on floppy discs
4889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4892 # OS/2's system install, which has a completely different semantic
4893 # ./install, which can be erroneously created by make from ./install.sh.
4894 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4895 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4896 if test -z "$INSTALL"; then
4897 if test "${ac_cv_path_install+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 # Account for people who put trailing slashes in PATH elements.
4906 case $as_dir/ in
4907 ./ | .// | /cC/* | \
4908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4909 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4910 /usr/ucb/* ) ;;
4911 *)
4912 # OSF1 and SCO ODT 3.0 have their own names for install.
4913 # Don't use installbsd from OSF since it installs stuff as root
4914 # by default.
4915 for ac_prog in ginstall scoinst install; do
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4918 if test $ac_prog = install &&
4919 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4920 # AIX install. It has an incompatible calling convention.
4921 :
4922 elif test $ac_prog = install &&
4923 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4924 # program-specific install script used by HP pwplus--don't use.
4925 :
4926 else
4927 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4928 break 3
4929 fi
4930 fi
4931 done
4932 done
4933 ;;
4934 esac
4935 done
4936 IFS=$as_save_IFS
4937
4938
4939 fi
4940 if test "${ac_cv_path_install+set}" = set; then
4941 INSTALL=$ac_cv_path_install
4942 else
4943 # As a last resort, use the slow shell script. Don't cache a
4944 # value for INSTALL within a source directory, because that will
4945 # break other packages using the cache if that directory is
4946 # removed, or if the value is a relative name.
4947 INSTALL=$ac_install_sh
4948 fi
4949 fi
4950 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4951 echo "${ECHO_T}$INSTALL" >&6; }
4952
4953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4954 # It thinks the first close brace ends the variable substitution.
4955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4956
4957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4958
4959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4960
4961 if test "x$RANLIB" = x; then
4962 if test -n "$ac_tool_prefix"; then
4963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_prog_RANLIB+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 if test -n "$RANLIB"; then
4971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 RANLIB=$ac_cv_prog_RANLIB
4991 if test -n "$RANLIB"; then
4992 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4993 echo "${ECHO_T}$RANLIB" >&6; }
4994 else
4995 { echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6; }
4997 fi
4998
4999
5000 fi
5001 if test -z "$ac_cv_prog_RANLIB"; then
5002 ac_ct_RANLIB=$RANLIB
5003 # Extract the first word of "ranlib", so it can be a program name with args.
5004 set dummy ranlib; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 if test -n "$ac_ct_RANLIB"; then
5011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_ac_ct_RANLIB="ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024 done
5025 done
5026 IFS=$as_save_IFS
5027
5028 fi
5029 fi
5030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5031 if test -n "$ac_ct_RANLIB"; then
5032 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5033 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5034 else
5035 { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5037 fi
5038
5039 if test "x$ac_ct_RANLIB" = x; then
5040 RANLIB=":"
5041 else
5042 case $cross_compiling:$ac_tool_warned in
5043 yes:)
5044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5045 whose name does not start with the host triplet. If you think this
5046 configuration is useful to you, please write to autoconf@gnu.org." >&5
5047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet. If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5050 ac_tool_warned=yes ;;
5051 esac
5052 RANLIB=$ac_ct_RANLIB
5053 fi
5054 else
5055 RANLIB="$ac_cv_prog_RANLIB"
5056 fi
5057
5058 fi
5059 # Extract the first word of "install-info", so it can be a program name with args.
5060 set dummy install-info; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 case $INSTALL_INFO in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 ;;
5087 esac
5088 fi
5089 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5090 if test -n "$INSTALL_INFO"; then
5091 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5092 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5093 else
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5096 fi
5097
5098
5099 # Extract the first word of "install-info", so it can be a program name with args.
5100 set dummy install-info; ac_word=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 case $INSTALL_INFO in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in /usr/sbin
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 ;;
5127 esac
5128 fi
5129 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5130 if test -n "$INSTALL_INFO"; then
5131 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5132 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5133 else
5134 { echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6; }
5136 fi
5137
5138
5139 # Extract the first word of "install-info", so it can be a program name with args.
5140 set dummy install-info; ac_word=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 case $INSTALL_INFO in
5147 [\\/]* | ?:[\\/]*)
5148 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5149 ;;
5150 *)
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in /sbin
5153 do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162 done
5163 done
5164 IFS=$as_save_IFS
5165
5166 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5167 ;;
5168 esac
5169 fi
5170 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5171 if test -n "$INSTALL_INFO"; then
5172 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5173 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5174 else
5175 { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5177 fi
5178
5179
5180 # Extract the first word of "gzip", so it can be a program name with args.
5181 set dummy gzip; ac_word=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 case $GZIP_PROG in
5188 [\\/]* | ?:[\\/]*)
5189 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5190 ;;
5191 *)
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 ;;
5208 esac
5209 fi
5210 GZIP_PROG=$ac_cv_path_GZIP_PROG
5211 if test -n "$GZIP_PROG"; then
5212 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5213 echo "${ECHO_T}$GZIP_PROG" >&6; }
5214 else
5215 { echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6; }
5217 fi
5218
5219
5220
5221
5222 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5223 then
5224 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5225 fi
5226
5227 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5228 then
5229 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5230 fi
5231
5232
5233 late_LDFLAGS=$LDFLAGS
5234 if test "$GCC" = yes; then
5235 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5236 else
5237 LDFLAGS="$LDFLAGS -znocombreloc"
5238 fi
5239
5240 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5241 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5242 cat >conftest.$ac_ext <<_ACEOF
5243 main(){return 0;}
5244 _ACEOF
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (ac_try="$ac_link"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_link") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest$ac_exeext &&
5262 $as_test_x conftest$ac_exeext; then
5263 { echo "$as_me:$LINENO: result: yes" >&5
5264 echo "${ECHO_T}yes" >&6; }
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 LDFLAGS=$late_LDFLAGS
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272 fi
5273
5274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5275 conftest$ac_exeext conftest.$ac_ext
5276
5277 #### Extract some information from the operating system and machine files.
5278
5279 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5280 - which libraries the lib-src programs will want, and
5281 - whether the GNU malloc routines are usable..." >&5
5282 echo "$as_me: checking the machine- and system-dependent files to find out
5283 - which libraries the lib-src programs will want, and
5284 - whether the GNU malloc routines are usable..." >&6;}
5285
5286 ### First figure out CFLAGS (which we use for running the compiler here)
5287 ### and REAL_CFLAGS (which we use for real compilation).
5288 ### The two are the same except on a few systems, where they are made
5289 ### different to work around various lossages. For example,
5290 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5291 ### as implying static linking.
5292
5293 ### If the CFLAGS env var is specified, we use that value
5294 ### instead of the default.
5295
5296 ### It's not important that this name contain the PID; you can't run
5297 ### two configures in the same directory and have anything work
5298 ### anyway.
5299 tempcname="conftest.c"
5300
5301 echo '
5302 #include "'${srcdir}'/src/'${opsysfile}'"
5303 #include "'${srcdir}'/src/'${machfile}'"
5304 #ifndef LIBS_MACHINE
5305 #define LIBS_MACHINE
5306 #endif
5307 #ifndef LIBS_SYSTEM
5308 #define LIBS_SYSTEM
5309 #endif
5310 #ifndef C_SWITCH_SYSTEM
5311 #define C_SWITCH_SYSTEM
5312 #endif
5313 #ifndef C_SWITCH_MACHINE
5314 #define C_SWITCH_MACHINE
5315 #endif
5316 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5317 configure___ c_switch_system=C_SWITCH_SYSTEM
5318 configure___ c_switch_machine=C_SWITCH_MACHINE
5319
5320 #ifndef LIB_X11_LIB
5321 #define LIB_X11_LIB -lX11
5322 #endif
5323
5324 #ifndef LIBX11_MACHINE
5325 #define LIBX11_MACHINE
5326 #endif
5327
5328 #ifndef LIBX11_SYSTEM
5329 #define LIBX11_SYSTEM
5330 #endif
5331 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5332
5333 #ifdef UNEXEC
5334 configure___ unexec=UNEXEC
5335 #else
5336 configure___ unexec=unexec.o
5337 #endif
5338
5339 #ifdef SYSTEM_MALLOC
5340 configure___ system_malloc=yes
5341 #else
5342 configure___ system_malloc=no
5343 #endif
5344
5345 #ifdef USE_MMAP_FOR_BUFFERS
5346 configure___ use_mmap_for_buffers=yes
5347 #else
5348 configure___ use_mmap_for_buffers=no
5349 #endif
5350
5351 #ifndef C_DEBUG_SWITCH
5352 #define C_DEBUG_SWITCH -g
5353 #endif
5354
5355 #ifndef C_OPTIMIZE_SWITCH
5356 #ifdef __GNUC__
5357 #define C_OPTIMIZE_SWITCH -O2
5358 #else
5359 #define C_OPTIMIZE_SWITCH -O
5360 #endif
5361 #endif
5362
5363 #ifndef C_WARNINGS_SWITCH
5364 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5365 #endif
5366
5367 #ifndef LD_SWITCH_MACHINE
5368 #define LD_SWITCH_MACHINE
5369 #endif
5370
5371 #ifndef LD_SWITCH_SYSTEM
5372 #define LD_SWITCH_SYSTEM
5373 #endif
5374
5375 #ifndef LD_SWITCH_X_SITE_AUX
5376 #define LD_SWITCH_X_SITE_AUX
5377 #endif
5378
5379 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5380 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5381
5382 #ifdef THIS_IS_CONFIGURE
5383
5384 /* Get the CFLAGS for tests in configure. */
5385 #ifdef __GNUC__
5386 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5387 #else
5388 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5389 #endif
5390
5391 #else /* not THIS_IS_CONFIGURE */
5392
5393 /* Get the CFLAGS for real compilation. */
5394 #ifdef __GNUC__
5395 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5396 #else
5397 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5398 #endif
5399
5400 #endif /* not THIS_IS_CONFIGURE */
5401 ' > ${tempcname}
5402
5403 # The value of CPP is a quoted variable reference, so we need to do this
5404 # to get its actual value...
5405 CPP=`eval "echo $CPP"`
5406 eval `${CPP} -Isrc ${tempcname} \
5407 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5408 if test "x$SPECIFIED_CFLAGS" = x; then
5409 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5410 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5411 else
5412 REAL_CFLAGS="$CFLAGS"
5413 fi
5414 rm ${tempcname}
5415
5416 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5417
5418 ### Make sure subsequent tests use flags consistent with the build flags.
5419
5420 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5421 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5422 else
5423 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5424 fi
5425
5426
5427
5428 # Check whether --enable-largefile was given.
5429 if test "${enable_largefile+set}" = set; then
5430 enableval=$enable_largefile;
5431 fi
5432
5433 if test "$enable_largefile" != no; then
5434
5435 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5436 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5437 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 ac_cv_sys_largefile_CC=no
5441 if test "$GCC" != yes; then
5442 ac_save_CC=$CC
5443 while :; do
5444 # IRIX 6.2 and later do not support large files by default,
5445 # so use the C compiler's -n32 option if that helps.
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <sys/types.h>
5453 /* Check that off_t can represent 2**63 - 1 correctly.
5454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5455 since some C++ compilers masquerading as C compilers
5456 incorrectly reject 9223372036854775807. */
5457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5459 && LARGE_OFF_T % 2147483647 == 1)
5460 ? 1 : -1];
5461 int
5462 main ()
5463 {
5464
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5471 case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5486 break
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491
5492 fi
5493
5494 rm -f core conftest.err conftest.$ac_objext
5495 CC="$CC -n32"
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_cv_sys_largefile_CC=' -n32'; break
5514 else
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518
5519 fi
5520
5521 rm -f core conftest.err conftest.$ac_objext
5522 break
5523 done
5524 CC=$ac_save_CC
5525 rm -f conftest.$ac_ext
5526 fi
5527 fi
5528 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5529 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5530 if test "$ac_cv_sys_largefile_CC" != no; then
5531 CC=$CC$ac_cv_sys_largefile_CC
5532 fi
5533
5534 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5535 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5536 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 while :; do
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5554 ? 1 : -1];
5555 int
5556 main ()
5557 {
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5565 case "(($ac_try" in
5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5567 *) ac_try_echo=$ac_try;;
5568 esac
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.$ac_objext; then
5580 ac_cv_sys_file_offset_bits=no; break
5581 else
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #define _FILE_OFFSET_BITS 64
5596 #include <sys/types.h>
5597 /* Check that off_t can represent 2**63 - 1 correctly.
5598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5599 since some C++ compilers masquerading as C compilers
5600 incorrectly reject 9223372036854775807. */
5601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5603 && LARGE_OFF_T % 2147483647 == 1)
5604 ? 1 : -1];
5605 int
5606 main ()
5607 {
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_cv_sys_file_offset_bits=64; break
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635
5636 fi
5637
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cv_sys_file_offset_bits=unknown
5640 break
5641 done
5642 fi
5643 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5644 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5645 case $ac_cv_sys_file_offset_bits in #(
5646 no | unknown) ;;
5647 *)
5648 cat >>confdefs.h <<_ACEOF
5649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5650 _ACEOF
5651 ;;
5652 esac
5653 rm -f conftest*
5654 if test $ac_cv_sys_file_offset_bits = unknown; then
5655 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5656 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5657 if test "${ac_cv_sys_large_files+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 while :; do
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5675 ? 1 : -1];
5676 int
5677 main ()
5678 {
5679
5680 ;
5681 return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5686 case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compile") 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } && {
5698 test -z "$ac_c_werror_flag" ||
5699 test ! -s conftest.err
5700 } && test -s conftest.$ac_objext; then
5701 ac_cv_sys_large_files=no; break
5702 else
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706
5707 fi
5708
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #define _LARGE_FILES 1
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5725 ? 1 : -1];
5726 int
5727 main ()
5728 {
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_sys_large_files=1; break
5752 else
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_cv_sys_large_files=unknown
5761 break
5762 done
5763 fi
5764 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5765 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5766 case $ac_cv_sys_large_files in #(
5767 no | unknown) ;;
5768 *)
5769 cat >>confdefs.h <<_ACEOF
5770 #define _LARGE_FILES $ac_cv_sys_large_files
5771 _ACEOF
5772 ;;
5773 esac
5774 rm -f conftest*
5775 fi
5776 fi
5777
5778
5779
5780 ### The standard library on x86-64 GNU/Linux distributions can
5781 ### be located in either /usr/lib64 or /usr/lib.
5782 case "${canonical}" in
5783 x86_64-*-linux-gnu* )
5784 if test -d /usr/lib64; then
5785
5786 cat >>confdefs.h <<\_ACEOF
5787 #define HAVE_X86_64_LIB64_DIR 1
5788 _ACEOF
5789
5790 fi
5791 esac
5792
5793
5794
5795
5796 if test "${with_sound}" != "no"; then
5797 # Sound support for GNU/Linux and the free BSDs.
5798 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5799 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5800 if test "${ac_cv_header_stdc+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #include <stdlib.h>
5810 #include <stdarg.h>
5811 #include <string.h>
5812 #include <float.h>
5813
5814 int
5815 main ()
5816 {
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 ac_cv_header_stdc=yes
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_header_stdc=no
5845 fi
5846
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848
5849 if test $ac_cv_header_stdc = yes; then
5850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5851 cat >conftest.$ac_ext <<_ACEOF
5852 /* confdefs.h. */
5853 _ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <string.h>
5858
5859 _ACEOF
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP "memchr" >/dev/null 2>&1; then
5862 :
5863 else
5864 ac_cv_header_stdc=no
5865 fi
5866 rm -f conftest*
5867
5868 fi
5869
5870 if test $ac_cv_header_stdc = yes; then
5871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 #include <stdlib.h>
5879
5880 _ACEOF
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "free" >/dev/null 2>&1; then
5883 :
5884 else
5885 ac_cv_header_stdc=no
5886 fi
5887 rm -f conftest*
5888
5889 fi
5890
5891 if test $ac_cv_header_stdc = yes; then
5892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5893 if test "$cross_compiling" = yes; then
5894 :
5895 else
5896 cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h. */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #include <ctype.h>
5903 #include <stdlib.h>
5904 #if ((' ' & 0x0FF) == 0x020)
5905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5907 #else
5908 # define ISLOWER(c) \
5909 (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5913 #endif
5914
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5916 int
5917 main ()
5918 {
5919 int i;
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5923 return 2;
5924 return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest$ac_exeext
5928 if { (ac_try="$ac_link"
5929 case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_link") 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 :
5948 else
5949 echo "$as_me: program exited with status $ac_status" >&5
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ( exit $ac_status )
5954 ac_cv_header_stdc=no
5955 fi
5956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5957 fi
5958
5959
5960 fi
5961 fi
5962 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5963 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5964 if test $ac_cv_header_stdc = yes; then
5965
5966 cat >>confdefs.h <<\_ACEOF
5967 #define STDC_HEADERS 1
5968 _ACEOF
5969
5970 fi
5971
5972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5983 inttypes.h stdint.h unistd.h
5984 do
5985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998
5999 #include <$ac_header>
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018 eval "$as_ac_Header=yes"
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 eval "$as_ac_Header=no"
6024 fi
6025
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 fi
6028 ac_res=`eval echo '${'$as_ac_Header'}'`
6029 { echo "$as_me:$LINENO: result: $ac_res" >&5
6030 echo "${ECHO_T}$ac_res" >&6; }
6031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032 cat >>confdefs.h <<_ACEOF
6033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6034 _ACEOF
6035
6036 fi
6037
6038 done
6039
6040
6041
6042
6043
6044 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6045 do
6046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 fi
6053 ac_res=`eval echo '${'$as_ac_Header'}'`
6054 { echo "$as_me:$LINENO: result: $ac_res" >&5
6055 echo "${ECHO_T}$ac_res" >&6; }
6056 else
6057 # Is the header compilable?
6058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6067 #include <$ac_header>
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (ac_try="$ac_compile"
6071 case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074 esac
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_compile") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest.$ac_objext; then
6086 ac_header_compiler=yes
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091 ac_header_compiler=no
6092 fi
6093
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6; }
6097
6098 # Is the header present?
6099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <$ac_header>
6108 _ACEOF
6109 if { (ac_try="$ac_cpp conftest.$ac_ext"
6110 case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113 esac
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6116 ac_status=$?
6117 grep -v '^ *+' conftest.er1 >conftest.err
6118 rm -f conftest.er1
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } >/dev/null && {
6122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6123 test ! -s conftest.err
6124 }; then
6125 ac_header_preproc=yes
6126 else
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 ac_header_preproc=no
6131 fi
6132
6133 rm -f conftest.err conftest.$ac_ext
6134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6135 echo "${ECHO_T}$ac_header_preproc" >&6; }
6136
6137 # So? What about this header?
6138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6139 yes:no: )
6140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6144 ac_header_preproc=yes
6145 ;;
6146 no:yes:* )
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6159
6160 ;;
6161 esac
6162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 eval "$as_ac_Header=\$ac_header_preproc"
6168 fi
6169 ac_res=`eval echo '${'$as_ac_Header'}'`
6170 { echo "$as_me:$LINENO: result: $ac_res" >&5
6171 echo "${ECHO_T}$ac_res" >&6; }
6172
6173 fi
6174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6175 cat >>confdefs.h <<_ACEOF
6176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6177 _ACEOF
6178
6179 fi
6180
6181 done
6182
6183 # Emulation library used on NetBSD.
6184 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6185 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6186 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 ac_check_lib_save_LIBS=$LIBS
6190 LIBS="-lossaudio $LIBS"
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197
6198 /* Override any GCC internal prototype to avoid an error.
6199 Use char because int might match the return type of a GCC
6200 builtin and then its argument prototype would still apply. */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 char _oss_ioctl ();
6205 int
6206 main ()
6207 {
6208 return _oss_ioctl ();
6209 ;
6210 return 0;
6211 }
6212 _ACEOF
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6215 case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_link") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest$ac_exeext &&
6230 $as_test_x conftest$ac_exeext; then
6231 ac_cv_lib_ossaudio__oss_ioctl=yes
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_cv_lib_ossaudio__oss_ioctl=no
6237 fi
6238
6239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6240 conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6242 fi
6243 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6244 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6245 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6246 LIBSOUND=-lossaudio
6247 else
6248 LIBSOUND=
6249 fi
6250
6251
6252
6253 ALSA_REQUIRED=1.0.0
6254 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6255 if test "X${with_pkg_config_prog}" != X; then
6256 PKG_CONFIG="${with_pkg_config_prog}"
6257 fi
6258
6259 succeeded=no
6260
6261 if test -z "$PKG_CONFIG"; then
6262 # Extract the first word of "pkg-config", so it can be a program name with args.
6263 set dummy pkg-config; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 case $PKG_CONFIG in
6270 [\\/]* | ?:[\\/]*)
6271 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6272 ;;
6273 *)
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6284 fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6290 ;;
6291 esac
6292 fi
6293 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6294 if test -n "$PKG_CONFIG"; then
6295 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6296 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6297 else
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6300 fi
6301
6302
6303 fi
6304
6305 if test "$PKG_CONFIG" = "no" ; then
6306 HAVE_ALSA=no
6307 else
6308 PKG_CONFIG_MIN_VERSION=0.9.0
6309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6310 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6311 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6312
6313 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6314 { echo "$as_me:$LINENO: result: yes" >&5
6315 echo "${ECHO_T}yes" >&6; }
6316 succeeded=yes
6317
6318 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6319 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6320 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6321 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6322 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6323
6324 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6325 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6326 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6327 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6328 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6329 else
6330 { echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6; }
6332 ALSA_CFLAGS=""
6333 ALSA_LIBS=""
6334 ## If we have a custom action on failure, don't print errors, but
6335 ## do set a variable so people can do so.
6336 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6337
6338 fi
6339
6340
6341
6342 else
6343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6345 fi
6346 fi
6347
6348 if test $succeeded = yes; then
6349 HAVE_ALSA=yes
6350 else
6351 HAVE_ALSA=no
6352 fi
6353
6354 if test $HAVE_ALSA = yes; then
6355 SAVE_CFLAGS="$CFLAGS"
6356 SAVE_LDFLAGS="$LDFLAGS"
6357 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6358 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <asoundlib.h>
6366 int
6367 main ()
6368 {
6369 snd_lib_error_set_handler (0);
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6376 case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_c_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6391 emacs_alsa_normal=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 emacs_alsa_normal=no
6397 fi
6398
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 if test "$emacs_alsa_normal" != yes; then
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <alsa/asoundlib.h>
6408 int
6409 main ()
6410 {
6411 snd_lib_error_set_handler (0);
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (ac_try="$ac_compile"
6418 case "(($ac_try" in
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_compile") 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest.$ac_objext; then
6433 emacs_alsa_subdir=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 emacs_alsa_subdir=no
6439 fi
6440
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test "$emacs_alsa_subdir" != yes; then
6443 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6444 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6445 { (exit 1); exit 1; }; }
6446 fi
6447 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6448 fi
6449
6450 CFLAGS="$SAVE_CFLAGS"
6451 LDFLAGS="$SAVE_LDFLAGS"
6452 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6453 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6454
6455 cat >>confdefs.h <<\_ACEOF
6456 #define HAVE_ALSA 1
6457 _ACEOF
6458
6459
6460 fi
6461
6462 fi
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6490 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6491 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6492 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6493 sys/utsname.h pwd.h
6494 do
6495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 fi
6502 ac_res=`eval echo '${'$as_ac_Header'}'`
6503 { echo "$as_me:$LINENO: result: $ac_res" >&5
6504 echo "${ECHO_T}$ac_res" >&6; }
6505 else
6506 # Is the header compilable?
6507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h. */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 #include <$ac_header>
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 ac_header_compiler=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_header_compiler=no
6541 fi
6542
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6545 echo "${ECHO_T}$ac_header_compiler" >&6; }
6546
6547 # Is the header present?
6548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <$ac_header>
6557 _ACEOF
6558 if { (ac_try="$ac_cpp conftest.$ac_ext"
6559 case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev/null && {
6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 }; then
6574 ac_header_preproc=yes
6575 else
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 ac_header_preproc=no
6580 fi
6581
6582 rm -f conftest.err conftest.$ac_ext
6583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584 echo "${ECHO_T}$ac_header_preproc" >&6; }
6585
6586 # So? What about this header?
6587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6588 yes:no: )
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6593 ac_header_preproc=yes
6594 ;;
6595 no:yes:* )
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6608
6609 ;;
6610 esac
6611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 eval "$as_ac_Header=\$ac_header_preproc"
6617 fi
6618 ac_res=`eval echo '${'$as_ac_Header'}'`
6619 { echo "$as_me:$LINENO: result: $ac_res" >&5
6620 echo "${ECHO_T}$ac_res" >&6; }
6621
6622 fi
6623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6624 cat >>confdefs.h <<_ACEOF
6625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6626 _ACEOF
6627
6628 fi
6629
6630 done
6631
6632
6633 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6634 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <sys/personality.h>
6642 int
6643 main ()
6644 {
6645 personality (PER_LINUX32)
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (ac_try="$ac_compile"
6652 case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655 esac
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_compile") 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest.$ac_objext; then
6667 emacs_cv_personality_linux32=yes
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 emacs_cv_personality_linux32=no
6673 fi
6674
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6677 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6678
6679 if test $emacs_cv_personality_linux32 = yes; then
6680
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_PERSONALITY_LINUX32 1
6683 _ACEOF
6684
6685 fi
6686
6687
6688 for ac_header in term.h
6689 do
6690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <$ac_header>
6703 _ACEOF
6704 if { (ac_try="$ac_cpp conftest.$ac_ext"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } >/dev/null && {
6717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6719 }; then
6720 eval "$as_ac_Header=yes"
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725 eval "$as_ac_Header=no"
6726 fi
6727
6728 rm -f conftest.err conftest.$ac_ext
6729 fi
6730 ac_res=`eval echo '${'$as_ac_Header'}'`
6731 { echo "$as_me:$LINENO: result: $ac_res" >&5
6732 echo "${ECHO_T}$ac_res" >&6; }
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736 _ACEOF
6737
6738 fi
6739
6740 done
6741
6742 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6743 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6744 if test "${ac_cv_header_stdc+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 <stdlib.h>
6754 #include <stdarg.h>
6755 #include <string.h>
6756 #include <float.h>
6757
6758 int
6759 main ()
6760 {
6761
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_stdc=yes
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 ac_cv_header_stdc=no
6789 fi
6790
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792
6793 if test $ac_cv_header_stdc = yes; then
6794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h. */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <string.h>
6802
6803 _ACEOF
6804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805 $EGREP "memchr" >/dev/null 2>&1; then
6806 :
6807 else
6808 ac_cv_header_stdc=no
6809 fi
6810 rm -f conftest*
6811
6812 fi
6813
6814 if test $ac_cv_header_stdc = yes; then
6815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h. */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <stdlib.h>
6823
6824 _ACEOF
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "free" >/dev/null 2>&1; then
6827 :
6828 else
6829 ac_cv_header_stdc=no
6830 fi
6831 rm -f conftest*
6832
6833 fi
6834
6835 if test $ac_cv_header_stdc = yes; then
6836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6837 if test "$cross_compiling" = yes; then
6838 :
6839 else
6840 cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h. */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6846 #include <ctype.h>
6847 #include <stdlib.h>
6848 #if ((' ' & 0x0FF) == 0x020)
6849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6851 #else
6852 # define ISLOWER(c) \
6853 (('a' <= (c) && (c) <= 'i') \
6854 || ('j' <= (c) && (c) <= 'r') \
6855 || ('s' <= (c) && (c) <= 'z'))
6856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6857 #endif
6858
6859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6860 int
6861 main ()
6862 {
6863 int i;
6864 for (i = 0; i < 256; i++)
6865 if (XOR (islower (i), ISLOWER (i))
6866 || toupper (i) != TOUPPER (i))
6867 return 2;
6868 return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest$ac_exeext
6872 if { (ac_try="$ac_link"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_link") 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6882 { (case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885 esac
6886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887 (eval "$ac_try") 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 :
6892 else
6893 echo "$as_me: program exited with status $ac_status" >&5
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 ( exit $ac_status )
6898 ac_cv_header_stdc=no
6899 fi
6900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6901 fi
6902
6903
6904 fi
6905 fi
6906 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6907 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6908 if test $ac_cv_header_stdc = yes; then
6909
6910 cat >>confdefs.h <<\_ACEOF
6911 #define STDC_HEADERS 1
6912 _ACEOF
6913
6914 fi
6915
6916 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6917 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6918 if test "${ac_cv_header_time+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #include <sys/types.h>
6928 #include <sys/time.h>
6929 #include <time.h>
6930
6931 int
6932 main ()
6933 {
6934 if ((struct tm *) 0)
6935 return 0;
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6942 case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945 esac
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6948 ac_status=$?
6949 grep -v '^ *+' conftest.er1 >conftest.err
6950 rm -f conftest.er1
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
6957 ac_cv_header_time=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 ac_cv_header_time=no
6963 fi
6964
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 fi
6967 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6968 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6969 if test $ac_cv_header_time = yes; then
6970
6971 cat >>confdefs.h <<\_ACEOF
6972 #define TIME_WITH_SYS_TIME 1
6973 _ACEOF
6974
6975 fi
6976
6977 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6978 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6979 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 int
6990 main ()
6991 {
6992 #ifndef sys_siglist
6993 (void) sys_siglist;
6994 #endif
6995
6996 ;
6997 return 0;
6998 }
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (ac_try="$ac_compile"
7002 case "(($ac_try" in
7003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7005 esac
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7008 ac_status=$?
7009 grep -v '^ *+' conftest.er1 >conftest.err
7010 rm -f conftest.er1
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7017 ac_cv_have_decl_sys_siglist=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ac_cv_have_decl_sys_siglist=no
7023 fi
7024
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 fi
7027 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7028 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7029 if test $ac_cv_have_decl_sys_siglist = yes; then
7030
7031 cat >>confdefs.h <<_ACEOF
7032 #define HAVE_DECL_SYS_SIGLIST 1
7033 _ACEOF
7034
7035
7036 else
7037 cat >>confdefs.h <<_ACEOF
7038 #define HAVE_DECL_SYS_SIGLIST 0
7039 _ACEOF
7040
7041
7042 fi
7043
7044
7045 if test $ac_cv_have_decl_sys_siglist != yes; then
7046 # For Tru64, at least:
7047 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7048 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7049 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052 cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h. */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 $ac_includes_default
7059 int
7060 main ()
7061 {
7062 #ifndef __sys_siglist
7063 (void) __sys_siglist;
7064 #endif
7065
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.$ac_objext; then
7087 ac_cv_have_decl___sys_siglist=yes
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_cv_have_decl___sys_siglist=no
7093 fi
7094
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 fi
7097 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7098 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7099 if test $ac_cv_have_decl___sys_siglist = yes; then
7100
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_DECL___SYS_SIGLIST 1
7103 _ACEOF
7104
7105
7106 else
7107 cat >>confdefs.h <<_ACEOF
7108 #define HAVE_DECL___SYS_SIGLIST 0
7109 _ACEOF
7110
7111
7112 fi
7113
7114
7115 if test $ac_cv_have_decl___sys_siglist = yes; then
7116
7117 cat >>confdefs.h <<\_ACEOF
7118 #define sys_siglist __sys_siglist
7119 _ACEOF
7120
7121 fi
7122 fi
7123 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7124 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7125 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 #include <sys/wait.h>
7136 #ifndef WEXITSTATUS
7137 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7138 #endif
7139 #ifndef WIFEXITED
7140 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7141 #endif
7142
7143 int
7144 main ()
7145 {
7146 int s;
7147 wait (&s);
7148 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (ac_try="$ac_compile"
7155 case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 ac_cv_header_sys_wait_h=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ac_cv_header_sys_wait_h=no
7176 fi
7177
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 fi
7180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7181 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7182 if test $ac_cv_header_sys_wait_h = yes; then
7183
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_SYS_WAIT_H 1
7186 _ACEOF
7187
7188 fi
7189
7190
7191 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7192 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7193 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 #ifdef TIME_WITH_SYS_TIME
7203 #include <sys/time.h>
7204 #include <time.h>
7205 #else
7206 #ifdef HAVE_SYS_TIME_H
7207 #include <sys/time.h>
7208 #else
7209 #include <time.h>
7210 #endif
7211 #endif
7212 #ifdef HAVE_UTIME_H
7213 #include <utime.h>
7214 #endif
7215 int
7216 main ()
7217 {
7218 static struct utimbuf x; x.actime = x.modtime;
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.$ac_objext; then
7240 emacs_cv_struct_utimbuf=yes
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245 emacs_cv_struct_utimbuf=no
7246 fi
7247
7248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249 fi
7250 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7251 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7252 if test $emacs_cv_struct_utimbuf = yes; then
7253
7254 cat >>confdefs.h <<\_ACEOF
7255 #define HAVE_STRUCT_UTIMBUF 1
7256 _ACEOF
7257
7258 fi
7259
7260 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7261 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7262 if test "${ac_cv_type_signal+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <sys/types.h>
7272 #include <signal.h>
7273
7274 int
7275 main ()
7276 {
7277 return *(signal (0, 0)) (0) == 1;
7278 ;
7279 return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7284 case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7287 esac
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.$ac_objext; then
7299 ac_cv_type_signal=int
7300 else
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ac_cv_type_signal=void
7305 fi
7306
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7310 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7311
7312 cat >>confdefs.h <<_ACEOF
7313 #define RETSIGTYPE $ac_cv_type_signal
7314 _ACEOF
7315
7316
7317
7318 { echo "$as_me:$LINENO: checking for speed_t" >&5
7319 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7320 if test "${emacs_cv_speed_t+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <termios.h>
7330 int
7331 main ()
7332 {
7333 speed_t x = 1;
7334 ;
7335 return 0;
7336 }
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7340 case "(($ac_try" in
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7343 esac
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_compile") 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.$ac_objext; then
7355 emacs_cv_speed_t=yes
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 emacs_cv_speed_t=no
7361 fi
7362
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7366 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7367 if test $emacs_cv_speed_t = yes; then
7368
7369 cat >>confdefs.h <<\_ACEOF
7370 #define HAVE_SPEED_T 1
7371 _ACEOF
7372
7373 fi
7374
7375 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7376 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7377 if test "${emacs_cv_struct_timeval+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #ifdef TIME_WITH_SYS_TIME
7387 #include <sys/time.h>
7388 #include <time.h>
7389 #else
7390 #ifdef HAVE_SYS_TIME_H
7391 #include <sys/time.h>
7392 #else
7393 #include <time.h>
7394 #endif
7395 #endif
7396 int
7397 main ()
7398 {
7399 static struct timeval x; x.tv_sec = x.tv_usec;
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7406 case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 emacs_cv_struct_timeval=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 emacs_cv_struct_timeval=no
7427 fi
7428
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 fi
7431 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7432 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7433 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7434 if test $emacs_cv_struct_timeval = yes; then
7435
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_TIMEVAL 1
7438 _ACEOF
7439
7440 fi
7441
7442 { echo "$as_me:$LINENO: checking for struct exception" >&5
7443 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7444 if test "${emacs_cv_struct_exception+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 #include <math.h>
7454 int
7455 main ()
7456 {
7457 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 emacs_cv_struct_exception=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 emacs_cv_struct_exception=no
7485 fi
7486
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7490 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7491 HAVE_EXCEPTION=$emacs_cv_struct_exception
7492 if test $emacs_cv_struct_exception != yes; then
7493
7494 cat >>confdefs.h <<\_ACEOF
7495 #define NO_MATHERR 1
7496 _ACEOF
7497
7498 fi
7499
7500
7501 for ac_header in sys/socket.h
7502 do
7503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 fi
7510 ac_res=`eval echo '${'$as_ac_Header'}'`
7511 { echo "$as_me:$LINENO: result: $ac_res" >&5
7512 echo "${ECHO_T}$ac_res" >&6; }
7513 else
7514 # Is the header compilable?
7515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h. */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7523 $ac_includes_default
7524 #include <$ac_header>
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7543 ac_header_compiler=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 ac_header_compiler=no
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6; }
7554
7555 # Is the header present?
7556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <$ac_header>
7565 _ACEOF
7566 if { (ac_try="$ac_cpp conftest.$ac_ext"
7567 case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } >/dev/null && {
7579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 }; then
7582 ac_header_preproc=yes
7583 else
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587 ac_header_preproc=no
7588 fi
7589
7590 rm -f conftest.err conftest.$ac_ext
7591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7592 echo "${ECHO_T}$ac_header_preproc" >&6; }
7593
7594 # So? What about this header?
7595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7596 yes:no: )
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7601 ac_header_preproc=yes
7602 ;;
7603 no:yes:* )
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7616
7617 ;;
7618 esac
7619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 eval "$as_ac_Header=\$ac_header_preproc"
7625 fi
7626 ac_res=`eval echo '${'$as_ac_Header'}'`
7627 { echo "$as_me:$LINENO: result: $ac_res" >&5
7628 echo "${ECHO_T}$ac_res" >&6; }
7629
7630 fi
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7634 _ACEOF
7635
7636 fi
7637
7638 done
7639
7640
7641 for ac_header in net/if.h
7642 do
7643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 $ac_includes_default
7656 #if HAVE_SYS_SOCKET_H
7657 #include <sys/socket.h>
7658 #endif
7659
7660 #include <$ac_header>
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 eval "$as_ac_Header=yes"
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7683
7684 eval "$as_ac_Header=no"
7685 fi
7686
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 fi
7689 ac_res=`eval echo '${'$as_ac_Header'}'`
7690 { echo "$as_me:$LINENO: result: $ac_res" >&5
7691 echo "${ECHO_T}$ac_res" >&6; }
7692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7695 _ACEOF
7696
7697 fi
7698
7699 done
7700
7701
7702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7704 if test "${ac_cv_struct_tm+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7714 #include <time.h>
7715
7716 int
7717 main ()
7718 {
7719 struct tm tm;
7720 int *p = &tm.tm_sec;
7721 return !p;
7722 ;
7723 return 0;
7724 }
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7728 case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 ac_cv_struct_tm=time.h
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 ac_cv_struct_tm=sys/time.h
7749 fi
7750
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7754 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7755 if test $ac_cv_struct_tm = sys/time.h; then
7756
7757 cat >>confdefs.h <<\_ACEOF
7758 #define TM_IN_SYS_TIME 1
7759 _ACEOF
7760
7761 fi
7762
7763 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7764 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7765 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 #include <$ac_cv_struct_tm>
7776
7777
7778 int
7779 main ()
7780 {
7781 static struct tm ac_aggr;
7782 if (ac_aggr.tm_zone)
7783 return 0;
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (ac_try="$ac_compile"
7790 case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_compile") 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
7805 ac_cv_member_struct_tm_tm_zone=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h. */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 #include <sys/types.h>
7817 #include <$ac_cv_struct_tm>
7818
7819
7820 int
7821 main ()
7822 {
7823 static struct tm ac_aggr;
7824 if (sizeof ac_aggr.tm_zone)
7825 return 0;
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 ac_cv_member_struct_tm_tm_zone=yes
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 ac_cv_member_struct_tm_tm_zone=no
7853 fi
7854
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 fi
7857
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 fi
7860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7862 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7863
7864 cat >>confdefs.h <<_ACEOF
7865 #define HAVE_STRUCT_TM_TM_ZONE 1
7866 _ACEOF
7867
7868
7869 fi
7870
7871 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7872
7873 cat >>confdefs.h <<\_ACEOF
7874 #define HAVE_TM_ZONE 1
7875 _ACEOF
7876
7877 else
7878 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7879 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7880 if test "${ac_cv_have_decl_tzname+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h. */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 #include <time.h>
7890
7891 int
7892 main ()
7893 {
7894 #ifndef tzname
7895 (void) tzname;
7896 #endif
7897
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 rm -f conftest.$ac_objext
7903 if { (ac_try="$ac_compile"
7904 case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7907 esac
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_compile") 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest.$ac_objext; then
7919 ac_cv_have_decl_tzname=yes
7920 else
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 ac_cv_have_decl_tzname=no
7925 fi
7926
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 fi
7929 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7930 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7931 if test $ac_cv_have_decl_tzname = yes; then
7932
7933 cat >>confdefs.h <<_ACEOF
7934 #define HAVE_DECL_TZNAME 1
7935 _ACEOF
7936
7937
7938 else
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_DECL_TZNAME 0
7941 _ACEOF
7942
7943
7944 fi
7945
7946
7947 { echo "$as_me:$LINENO: checking for tzname" >&5
7948 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7949 if test "${ac_cv_var_tzname+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h. */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 #include <time.h>
7959 #if !HAVE_DECL_TZNAME
7960 extern char *tzname[];
7961 #endif
7962
7963 int
7964 main ()
7965 {
7966 return tzname[0][0];
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest$ac_exeext &&
7988 $as_test_x conftest$ac_exeext; then
7989 ac_cv_var_tzname=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ac_cv_var_tzname=no
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7998 conftest$ac_exeext conftest.$ac_ext
7999 fi
8000 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8001 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8002 if test $ac_cv_var_tzname = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_TZNAME 1
8006 _ACEOF
8007
8008 fi
8009 fi
8010
8011 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8012 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8013 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <time.h>
8023
8024 int
8025 main ()
8026 {
8027 static struct tm ac_aggr;
8028 if (ac_aggr.tm_gmtoff)
8029 return 0;
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_member_struct_tm_tm_gmtoff=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 #include <time.h>
8063
8064 int
8065 main ()
8066 {
8067 static struct tm ac_aggr;
8068 if (sizeof ac_aggr.tm_gmtoff)
8069 return 0;
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8076 case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_cv_member_struct_tm_tm_gmtoff=yes
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_member_struct_tm_tm_gmtoff=no
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8105 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8106 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8107
8108 cat >>confdefs.h <<\_ACEOF
8109 #define HAVE_TM_GMTOFF 1
8110 _ACEOF
8111
8112 fi
8113
8114 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8115 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8116 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #if HAVE_SYS_SOCKET_H
8127 #include <sys/socket.h>
8128 #endif
8129 #if HAVE_NET_IF_H
8130 #include <net/if.h>
8131 #endif
8132
8133 int
8134 main ()
8135 {
8136 static struct ifreq ac_aggr;
8137 if (ac_aggr.ifr_flags)
8138 return 0;
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_cv_member_struct_ifreq_ifr_flags=yes
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8172 #if HAVE_SYS_SOCKET_H
8173 #include <sys/socket.h>
8174 #endif
8175 #if HAVE_NET_IF_H
8176 #include <net/if.h>
8177 #endif
8178
8179 int
8180 main ()
8181 {
8182 static struct ifreq ac_aggr;
8183 if (sizeof ac_aggr.ifr_flags)
8184 return 0;
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.$ac_objext; then
8206 ac_cv_member_struct_ifreq_ifr_flags=yes
8207 else
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8210
8211 ac_cv_member_struct_ifreq_ifr_flags=no
8212 fi
8213
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8220 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8221 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8222
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8225 _ACEOF
8226
8227
8228 fi
8229 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8230 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8231 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8241 #if HAVE_SYS_SOCKET_H
8242 #include <sys/socket.h>
8243 #endif
8244 #if HAVE_NET_IF_H
8245 #include <net/if.h>
8246 #endif
8247
8248 int
8249 main ()
8250 {
8251 static struct ifreq ac_aggr;
8252 if (ac_aggr.ifr_hwaddr)
8253 return 0;
8254 ;
8255 return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8260 case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.$ac_objext; then
8275 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8276 else
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 cat >conftest.$ac_ext <<_ACEOF
8281 /* confdefs.h. */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 $ac_includes_default
8287 #if HAVE_SYS_SOCKET_H
8288 #include <sys/socket.h>
8289 #endif
8290 #if HAVE_NET_IF_H
8291 #include <net/if.h>
8292 #endif
8293
8294 int
8295 main ()
8296 {
8297 static struct ifreq ac_aggr;
8298 if (sizeof ac_aggr.ifr_hwaddr)
8299 return 0;
8300 ;
8301 return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8306 case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.$ac_objext; then
8321 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8335 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8336 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8337
8338 cat >>confdefs.h <<_ACEOF
8339 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8340 _ACEOF
8341
8342
8343 fi
8344 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8345 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8346 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 else
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 #if HAVE_SYS_SOCKET_H
8357 #include <sys/socket.h>
8358 #endif
8359 #if HAVE_NET_IF_H
8360 #include <net/if.h>
8361 #endif
8362
8363 int
8364 main ()
8365 {
8366 static struct ifreq ac_aggr;
8367 if (ac_aggr.ifr_netmask)
8368 return 0;
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_c_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.$ac_objext; then
8390 ac_cv_member_struct_ifreq_ifr_netmask=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 #if HAVE_SYS_SOCKET_H
8403 #include <sys/socket.h>
8404 #endif
8405 #if HAVE_NET_IF_H
8406 #include <net/if.h>
8407 #endif
8408
8409 int
8410 main ()
8411 {
8412 static struct ifreq ac_aggr;
8413 if (sizeof ac_aggr.ifr_netmask)
8414 return 0;
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8421 case "(($ac_try" in
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8427 ac_status=$?
8428 grep -v '^ *+' conftest.er1 >conftest.err
8429 rm -f conftest.er1
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8436 ac_cv_member_struct_ifreq_ifr_netmask=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_member_struct_ifreq_ifr_netmask=no
8442 fi
8443
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 fi
8446
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 fi
8449 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8450 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8451 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8452
8453 cat >>confdefs.h <<_ACEOF
8454 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8455 _ACEOF
8456
8457
8458 fi
8459 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8460 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8461 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 $ac_includes_default
8471 #if HAVE_SYS_SOCKET_H
8472 #include <sys/socket.h>
8473 #endif
8474 #if HAVE_NET_IF_H
8475 #include <net/if.h>
8476 #endif
8477
8478 int
8479 main ()
8480 {
8481 static struct ifreq ac_aggr;
8482 if (ac_aggr.ifr_broadaddr)
8483 return 0;
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext
8489 if { (ac_try="$ac_compile"
8490 case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 #if HAVE_SYS_SOCKET_H
8518 #include <sys/socket.h>
8519 #endif
8520 #if HAVE_NET_IF_H
8521 #include <net/if.h>
8522 #endif
8523
8524 int
8525 main ()
8526 {
8527 static struct ifreq ac_aggr;
8528 if (sizeof ac_aggr.ifr_broadaddr)
8529 return 0;
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8536 case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_compile") 2>conftest.er1
8542 ac_status=$?
8543 grep -v '^ *+' conftest.er1 >conftest.err
8544 rm -f conftest.er1
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest.$ac_objext; then
8551 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8552 else
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8557 fi
8558
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 fi
8561
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 fi
8564 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8565 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8566 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8567
8568 cat >>confdefs.h <<_ACEOF
8569 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8570 _ACEOF
8571
8572
8573 fi
8574 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8575 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8576 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 $ac_includes_default
8586 #if HAVE_SYS_SOCKET_H
8587 #include <sys/socket.h>
8588 #endif
8589 #if HAVE_NET_IF_H
8590 #include <net/if.h>
8591 #endif
8592
8593 int
8594 main ()
8595 {
8596 static struct ifreq ac_aggr;
8597 if (ac_aggr.ifr_addr)
8598 return 0;
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8605 case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && {
8617 test -z "$ac_c_werror_flag" ||
8618 test ! -s conftest.err
8619 } && test -s conftest.$ac_objext; then
8620 ac_cv_member_struct_ifreq_ifr_addr=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #if HAVE_SYS_SOCKET_H
8633 #include <sys/socket.h>
8634 #endif
8635 #if HAVE_NET_IF_H
8636 #include <net/if.h>
8637 #endif
8638
8639 int
8640 main ()
8641 {
8642 static struct ifreq ac_aggr;
8643 if (sizeof ac_aggr.ifr_addr)
8644 return 0;
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8657 ac_status=$?
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.$ac_objext; then
8666 ac_cv_member_struct_ifreq_ifr_addr=yes
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_member_struct_ifreq_ifr_addr=no
8672 fi
8673
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 fi
8679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8680 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8681 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8682
8683 cat >>confdefs.h <<_ACEOF
8684 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8685 _ACEOF
8686
8687
8688 fi
8689
8690
8691
8692 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8693 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8694 if test "$ac_cv_prog_cc_c89" != no; then
8695 { echo "$as_me:$LINENO: result: yes" >&5
8696 echo "${ECHO_T}yes" >&6; }
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define PROTOTYPES 1
8700 _ACEOF
8701
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define __PROTOTYPES 1
8705 _ACEOF
8706
8707 else
8708 { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8710 fi
8711
8712 { echo "$as_me:$LINENO: checking for working volatile" >&5
8713 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8714 if test "${ac_cv_c_volatile+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723
8724 int
8725 main ()
8726 {
8727
8728 volatile int x;
8729 int * volatile y = (int *) 0;
8730 return !x && !y;
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compile") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest.$ac_objext; then
8752 ac_cv_c_volatile=yes
8753 else
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757 ac_cv_c_volatile=no
8758 fi
8759
8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761 fi
8762 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8763 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8764 if test $ac_cv_c_volatile = no; then
8765
8766 cat >>confdefs.h <<\_ACEOF
8767 #define volatile
8768 _ACEOF
8769
8770 fi
8771
8772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774 if test "${ac_cv_c_const+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783
8784 int
8785 main ()
8786 {
8787 /* FIXME: Include the comments suggested by Paul. */
8788 #ifndef __cplusplus
8789 /* Ultrix mips cc rejects this. */
8790 typedef int charset[2];
8791 const charset cs;
8792 /* SunOS 4.1.1 cc rejects this. */
8793 char const *const *pcpcc;
8794 char **ppc;
8795 /* NEC SVR4.0.2 mips cc rejects this. */
8796 struct point {int x, y;};
8797 static struct point const zero = {0,0};
8798 /* AIX XL C 1.02.0.0 rejects this.
8799 It does not let you subtract one const X* pointer from another in
8800 an arm of an if-expression whose if-part is not a constant
8801 expression */
8802 const char *g = "string";
8803 pcpcc = &g + (g ? g-g : 0);
8804 /* HPUX 7.0 cc rejects these. */
8805 ++pcpcc;
8806 ppc = (char**) pcpcc;
8807 pcpcc = (char const *const *) ppc;
8808 { /* SCO 3.2v4 cc rejects this. */
8809 char *t;
8810 char const *s = 0 ? (char *) 0 : (char const *) 0;
8811
8812 *t++ = 0;
8813 if (s) return 0;
8814 }
8815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8816 int x[] = {25, 17};
8817 const int *foo = &x[0];
8818 ++foo;
8819 }
8820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821 typedef const int *iptr;
8822 iptr p = 0;
8823 ++p;
8824 }
8825 { /* AIX XL C 1.02.0.0 rejects this saying
8826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827 struct s { int j; const int *ap[3]; };
8828 struct s *b; b->j = 5;
8829 }
8830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8831 const int foo = 10;
8832 if (!foo) return 0;
8833 }
8834 return !cs[0] && !zero.x;
8835 #endif
8836
8837 ;
8838 return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8843 case "(($ac_try" in
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest.$ac_objext; then
8858 ac_cv_c_const=yes
8859 else
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863 ac_cv_c_const=no
8864 fi
8865
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 fi
8868 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8869 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8870 if test $ac_cv_c_const = no; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define const
8874 _ACEOF
8875
8876 fi
8877
8878 { echo "$as_me:$LINENO: checking for void * support" >&5
8879 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8880 if test "${emacs_cv_void_star+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h. */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889
8890 int
8891 main ()
8892 {
8893 void * foo;
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8900 case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.$ac_objext; then
8915 emacs_cv_void_star=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 emacs_cv_void_star=no
8921 fi
8922
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8926 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8927 if test $emacs_cv_void_star = yes; then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define POINTER_TYPE void
8930 _ACEOF
8931
8932 else
8933 cat >>confdefs.h <<\_ACEOF
8934 #define POINTER_TYPE char
8935 _ACEOF
8936
8937 fi
8938
8939
8940
8941
8942
8943 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8944 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8945 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8946 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 cat >conftest.make <<\_ACEOF
8950 SHELL = /bin/sh
8951 all:
8952 @echo '@@@%%%=$(MAKE)=@@@%%%'
8953 _ACEOF
8954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8956 *@@@%%%=?*=@@@%%%*)
8957 eval ac_cv_prog_make_${ac_make}_set=yes;;
8958 *)
8959 eval ac_cv_prog_make_${ac_make}_set=no;;
8960 esac
8961 rm -f conftest.make
8962 fi
8963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8964 { echo "$as_me:$LINENO: result: yes" >&5
8965 echo "${ECHO_T}yes" >&6; }
8966 SET_MAKE=
8967 else
8968 { echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6; }
8970 SET_MAKE="MAKE=${MAKE-make}"
8971 fi
8972
8973
8974 { echo "$as_me:$LINENO: checking for long file names" >&5
8975 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8976 if test "${ac_cv_sys_long_file_names+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 ac_cv_sys_long_file_names=yes
8980 # Test for long file names in all the places we know might matter:
8981 # . the current directory, where building will happen
8982 # $prefix/lib where we will be installing things
8983 # $exec_prefix/lib likewise
8984 # $TMPDIR if set, where it might want to write temporary files
8985 # /tmp where it might want to write temporary files
8986 # /var/tmp likewise
8987 # /usr/tmp likewise
8988 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8989 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8990 # in the usual case where exec_prefix is '${prefix}'.
8991 case $ac_dir in #(
8992 . | /* | ?:[\\/]*) ;; #(
8993 *) continue;;
8994 esac
8995 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8996 ac_xdir=$ac_dir/cf$$
8997 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8998 ac_tf1=$ac_xdir/conftest9012345
8999 ac_tf2=$ac_xdir/conftest9012346
9000 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9001 ac_cv_sys_long_file_names=no
9002 rm -f -r "$ac_xdir" 2>/dev/null
9003 test $ac_cv_sys_long_file_names = no && break
9004 done
9005 fi
9006 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9007 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9008 if test $ac_cv_sys_long_file_names = yes; then
9009
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_LONG_FILE_NAMES 1
9012 _ACEOF
9013
9014 fi
9015
9016
9017 #### Choose a window system.
9018
9019 { echo "$as_me:$LINENO: checking for X" >&5
9020 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9021
9022
9023 # Check whether --with-x was given.
9024 if test "${with_x+set}" = set; then
9025 withval=$with_x;
9026 fi
9027
9028 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9029 if test "x$with_x" = xno; then
9030 # The user explicitly disabled X.
9031 have_x=disabled
9032 else
9033 case $x_includes,$x_libraries in #(
9034 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9035 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9036 { (exit 1); exit 1; }; };; #(
9037 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 # One or both of the vars are not set, and there is no cached value.
9041 ac_x_includes=no ac_x_libraries=no
9042 rm -f -r conftest.dir
9043 if mkdir conftest.dir; then
9044 cd conftest.dir
9045 cat >Imakefile <<'_ACEOF'
9046 incroot:
9047 @echo incroot='${INCROOT}'
9048 usrlibdir:
9049 @echo usrlibdir='${USRLIBDIR}'
9050 libdir:
9051 @echo libdir='${LIBDIR}'
9052 _ACEOF
9053 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9055 for ac_var in incroot usrlibdir libdir; do
9056 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9057 done
9058 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9059 for ac_extension in a so sl; do
9060 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9061 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9062 ac_im_usrlibdir=$ac_im_libdir; break
9063 fi
9064 done
9065 # Screen out bogus values from the imake configuration. They are
9066 # bogus both because they are the default anyway, and because
9067 # using them would break gcc on systems where it needs fixed includes.
9068 case $ac_im_incroot in
9069 /usr/include) ac_x_includes= ;;
9070 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9071 esac
9072 case $ac_im_usrlibdir in
9073 /usr/lib | /lib) ;;
9074 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9075 esac
9076 fi
9077 cd ..
9078 rm -f -r conftest.dir
9079 fi
9080
9081 # Standard set of common directories for X headers.
9082 # Check X11 before X11Rn because it is often a symlink to the current release.
9083 ac_x_header_dirs='
9084 /usr/X11/include
9085 /usr/X11R6/include
9086 /usr/X11R5/include
9087 /usr/X11R4/include
9088
9089 /usr/include/X11
9090 /usr/include/X11R6
9091 /usr/include/X11R5
9092 /usr/include/X11R4
9093
9094 /usr/local/X11/include
9095 /usr/local/X11R6/include
9096 /usr/local/X11R5/include
9097 /usr/local/X11R4/include
9098
9099 /usr/local/include/X11
9100 /usr/local/include/X11R6
9101 /usr/local/include/X11R5
9102 /usr/local/include/X11R4
9103
9104 /usr/X386/include
9105 /usr/x386/include
9106 /usr/XFree86/include/X11
9107
9108 /usr/include
9109 /usr/local/include
9110 /usr/unsupported/include
9111 /usr/athena/include
9112 /usr/local/x11r5/include
9113 /usr/lpp/Xamples/include
9114
9115 /usr/openwin/include
9116 /usr/openwin/share/include'
9117
9118 if test "$ac_x_includes" = no; then
9119 # Guess where to find include files, by looking for Xlib.h.
9120 # First, try using that file with no special directory specified.
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h. */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 #include <X11/Xlib.h>
9128 _ACEOF
9129 if { (ac_try="$ac_cpp conftest.$ac_ext"
9130 case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev/null && {
9142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 }; then
9145 # We can compile using X headers with no special include directory.
9146 ac_x_includes=
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 for ac_dir in $ac_x_header_dirs; do
9152 if test -r "$ac_dir/X11/Xlib.h"; then
9153 ac_x_includes=$ac_dir
9154 break
9155 fi
9156 done
9157 fi
9158
9159 rm -f conftest.err conftest.$ac_ext
9160 fi # $ac_x_includes = no
9161
9162 if test "$ac_x_libraries" = no; then
9163 # Check for the libraries.
9164 # See if we find them without any special options.
9165 # Don't add to $LIBS permanently.
9166 ac_save_LIBS=$LIBS
9167 LIBS="-lX11 $LIBS"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 #include <X11/Xlib.h>
9175 int
9176 main ()
9177 {
9178 XrmInitialize ()
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (ac_try="$ac_link"
9185 case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188 esac
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_link") 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } && {
9197 test -z "$ac_c_werror_flag" ||
9198 test ! -s conftest.err
9199 } && test -s conftest$ac_exeext &&
9200 $as_test_x conftest$ac_exeext; then
9201 LIBS=$ac_save_LIBS
9202 # We can link X programs with no special library path.
9203 ac_x_libraries=
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 LIBS=$ac_save_LIBS
9209 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9210 do
9211 # Don't even attempt the hair of trying to link an X program!
9212 for ac_extension in a so sl; do
9213 if test -r "$ac_dir/libX11.$ac_extension"; then
9214 ac_x_libraries=$ac_dir
9215 break 2
9216 fi
9217 done
9218 done
9219 fi
9220
9221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9222 conftest$ac_exeext conftest.$ac_ext
9223 fi # $ac_x_libraries = no
9224
9225 case $ac_x_includes,$ac_x_libraries in #(
9226 no,* | *,no | *\'*)
9227 # Didn't find X, or a directory has "'" in its name.
9228 ac_cv_have_x="have_x=no";; #(
9229 *)
9230 # Record where we found X for the cache.
9231 ac_cv_have_x="have_x=yes\
9232 ac_x_includes='$ac_x_includes'\
9233 ac_x_libraries='$ac_x_libraries'"
9234 esac
9235 fi
9236 ;; #(
9237 *) have_x=yes;;
9238 esac
9239 eval "$ac_cv_have_x"
9240 fi # $with_x != no
9241
9242 if test "$have_x" != yes; then
9243 { echo "$as_me:$LINENO: result: $have_x" >&5
9244 echo "${ECHO_T}$have_x" >&6; }
9245 no_x=yes
9246 else
9247 # If each of the values was on the command line, it overrides each guess.
9248 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9249 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9250 # Update the cache value to reflect the command line values.
9251 ac_cv_have_x="have_x=yes\
9252 ac_x_includes='$x_includes'\
9253 ac_x_libraries='$x_libraries'"
9254 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9255 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9256 fi
9257
9258 if test "$no_x" = yes; then
9259 window_system=none
9260 else
9261 window_system=x11
9262 fi
9263
9264 if test "${x_libraries}" != NONE; then
9265 if test -n "${x_libraries}"; then
9266 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9267 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9268 fi
9269 x_default_search_path=""
9270 x_search_path=${x_libraries}
9271 if test -z "${x_search_path}"; then
9272 x_search_path=/usr/lib
9273 fi
9274 for x_library in `echo ${x_search_path}: | \
9275 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9276 x_search_path="\
9277 ${x_library}/X11/%L/%T/%N%C%S:\
9278 ${x_library}/X11/%l/%T/%N%C%S:\
9279 ${x_library}/X11/%T/%N%C%S:\
9280 ${x_library}/X11/%L/%T/%N%S:\
9281 ${x_library}/X11/%l/%T/%N%S:\
9282 ${x_library}/X11/%T/%N%S"
9283 if test x"${x_default_search_path}" = x; then
9284 x_default_search_path=${x_search_path}
9285 else
9286 x_default_search_path="${x_search_path}:${x_default_search_path}"
9287 fi
9288 done
9289 fi
9290 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9291 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9292 fi
9293
9294 if test x"${x_includes}" = x; then
9295 bitmapdir=/usr/include/X11/bitmaps
9296 else
9297 # accumulate include directories that have X11 bitmap subdirectories
9298 bmd_acc="dummyval"
9299 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9300 if test -d "${bmd}/X11/bitmaps"; then
9301 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9302 fi
9303 if test -d "${bmd}/bitmaps"; then
9304 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9305 fi
9306 done
9307 if test ${bmd_acc} != "dummyval"; then
9308 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9309 fi
9310 fi
9311
9312 HAVE_CARBON=no
9313 if test "${with_carbon}" != no; then
9314 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9315 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9316 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9317 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 fi
9320 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9321 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9322 else
9323 # Is the header compilable?
9324 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9325 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h. */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9333 #include <Carbon/Carbon.h>
9334 _ACEOF
9335 rm -f conftest.$ac_objext
9336 if { (ac_try="$ac_compile"
9337 case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_compile") 2>conftest.er1
9343 ac_status=$?
9344 grep -v '^ *+' conftest.er1 >conftest.err
9345 rm -f conftest.er1
9346 cat conftest.err >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest.$ac_objext; then
9352 ac_header_compiler=yes
9353 else
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357 ac_header_compiler=no
9358 fi
9359
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 echo "${ECHO_T}$ac_header_compiler" >&6; }
9363
9364 # Is the header present?
9365 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9366 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 #include <Carbon/Carbon.h>
9374 _ACEOF
9375 if { (ac_try="$ac_cpp conftest.$ac_ext"
9376 case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } >/dev/null && {
9388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 }; then
9391 ac_header_preproc=yes
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_header_preproc=no
9397 fi
9398
9399 rm -f conftest.err conftest.$ac_ext
9400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 echo "${ECHO_T}$ac_header_preproc" >&6; }
9402
9403 # So? What about this header?
9404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9405 yes:no: )
9406 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9407 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9409 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9410 ac_header_preproc=yes
9411 ;;
9412 no:yes:* )
9413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9414 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9416 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9418 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9422 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9424 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9425
9426 ;;
9427 esac
9428 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9429 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9430 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9434 fi
9435 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9436 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9437
9438 fi
9439 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9440 HAVE_CARBON=yes
9441 fi
9442
9443
9444 fi
9445 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9446 if test "${with_carbon+set}" != set \
9447 && test "${carbon_appdir_x+set}" != set; then
9448 for var in with_x with_x_toolkit with_gtk with_xim \
9449 with_xpm with_jpeg with_tiff with_gif with_png; do
9450 if eval test \"\${$var+set}\" = set; then
9451 HAVE_CARBON=no
9452 break
9453 fi
9454 done
9455 fi
9456 fi
9457 if test "${HAVE_CARBON}" = yes; then
9458 window_system=mac
9459 fi
9460
9461 case "${window_system}" in
9462 x11 )
9463 HAVE_X_WINDOWS=yes
9464 HAVE_X11=yes
9465 case "${with_x_toolkit}" in
9466 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9467 motif ) USE_X_TOOLKIT=MOTIF ;;
9468 gtk ) with_gtk=yes
9469 USE_X_TOOLKIT=none ;;
9470 no ) USE_X_TOOLKIT=none ;;
9471 * ) USE_X_TOOLKIT=maybe ;;
9472 esac
9473 ;;
9474 mac | none )
9475 HAVE_X_WINDOWS=no
9476 HAVE_X11=no
9477 USE_X_TOOLKIT=none
9478 ;;
9479 esac
9480
9481 ### If we're using X11, we should use the X menu package.
9482 HAVE_MENUS=no
9483 case ${HAVE_X11} in
9484 yes ) HAVE_MENUS=yes ;;
9485 esac
9486
9487 if test "${opsys}" = "hpux9"; then
9488 case "${x_libraries}" in
9489 *X11R4* )
9490 opsysfile="s/hpux9-x11r4.h"
9491 ;;
9492 esac
9493 fi
9494
9495 if test "${opsys}" = "hpux9shr"; then
9496 case "${x_libraries}" in
9497 *X11R4* )
9498 opsysfile="s/hpux9shxr4.h"
9499 ;;
9500 esac
9501 fi
9502
9503 ### Compute the unexec source name from the object name.
9504 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9505
9506 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9507 # Assume not, until told otherwise.
9508 GNU_MALLOC=yes
9509 doug_lea_malloc=yes
9510 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9511 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9512 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515 cat >conftest.$ac_ext <<_ACEOF
9516 /* confdefs.h. */
9517 _ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9523 #define malloc_get_state innocuous_malloc_get_state
9524
9525 /* System header to define __stub macros and hopefully few prototypes,
9526 which can conflict with char malloc_get_state (); below.
9527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9528 <limits.h> exists even on freestanding compilers. */
9529
9530 #ifdef __STDC__
9531 # include <limits.h>
9532 #else
9533 # include <assert.h>
9534 #endif
9535
9536 #undef malloc_get_state
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char malloc_get_state ();
9545 /* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9549 choke me
9550 #endif
9551
9552 int
9553 main ()
9554 {
9555 return malloc_get_state ();
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
9578 ac_cv_func_malloc_get_state=yes
9579 else
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_cv_func_malloc_get_state=no
9584 fi
9585
9586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9587 conftest$ac_exeext conftest.$ac_ext
9588 fi
9589 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9590 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9591 if test $ac_cv_func_malloc_get_state = yes; then
9592 :
9593 else
9594 doug_lea_malloc=no
9595 fi
9596
9597 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9598 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9599 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610 #define malloc_set_state innocuous_malloc_set_state
9611
9612 /* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char malloc_set_state (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9616
9617 #ifdef __STDC__
9618 # include <limits.h>
9619 #else
9620 # include <assert.h>
9621 #endif
9622
9623 #undef malloc_set_state
9624
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 char malloc_set_state ();
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9636 choke me
9637 #endif
9638
9639 int
9640 main ()
9641 {
9642 return malloc_set_state ();
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
9665 ac_cv_func_malloc_set_state=yes
9666 else
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_cv_func_malloc_set_state=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9677 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9678 if test $ac_cv_func_malloc_set_state = yes; then
9679 :
9680 else
9681 doug_lea_malloc=no
9682 fi
9683
9684 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9685 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9686 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 extern void (* __after_morecore_hook)();
9696 int
9697 main ()
9698 {
9699 __after_morecore_hook = 0
9700 ;
9701 return 0;
9702 }
9703 _ACEOF
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (ac_try="$ac_link"
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_link") 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); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest$ac_exeext &&
9721 $as_test_x conftest$ac_exeext; then
9722 emacs_cv_var___after_morecore_hook=yes
9723 else
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 emacs_cv_var___after_morecore_hook=no
9728 fi
9729
9730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9731 conftest$ac_exeext conftest.$ac_ext
9732 fi
9733 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9734 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9735 if test $emacs_cv_var___after_morecore_hook = no; then
9736 doug_lea_malloc=no
9737 fi
9738 if test "${system_malloc}" = "yes"; then
9739 GNU_MALLOC=no
9740 GNU_MALLOC_reason="
9741 (The GNU allocators don't work with this system configuration.)"
9742 fi
9743 if test "$doug_lea_malloc" = "yes" ; then
9744 if test "$GNU_MALLOC" = yes ; then
9745 GNU_MALLOC_reason="
9746 (Using Doug Lea's new malloc from the GNU C Library.)"
9747 fi
9748
9749 cat >>confdefs.h <<\_ACEOF
9750 #define DOUG_LEA_MALLOC 1
9751 _ACEOF
9752
9753 fi
9754
9755 if test x"${REL_ALLOC}" = x; then
9756 REL_ALLOC=${GNU_MALLOC}
9757 fi
9758
9759
9760
9761
9762 for ac_header in stdlib.h unistd.h
9763 do
9764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 fi
9771 ac_res=`eval echo '${'$as_ac_Header'}'`
9772 { echo "$as_me:$LINENO: result: $ac_res" >&5
9773 echo "${ECHO_T}$ac_res" >&6; }
9774 else
9775 # Is the header compilable?
9776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9778 cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h. */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 $ac_includes_default
9785 #include <$ac_header>
9786 _ACEOF
9787 rm -f conftest.$ac_objext
9788 if { (ac_try="$ac_compile"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_compile") 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest.$ac_objext; then
9804 ac_header_compiler=yes
9805 else
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_header_compiler=no
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9814 echo "${ECHO_T}$ac_header_compiler" >&6; }
9815
9816 # Is the header present?
9817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 #include <$ac_header>
9826 _ACEOF
9827 if { (ac_try="$ac_cpp conftest.$ac_ext"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev/null && {
9840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 }; then
9843 ac_header_preproc=yes
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_header_preproc=no
9849 fi
9850
9851 rm -f conftest.err conftest.$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9853 echo "${ECHO_T}$ac_header_preproc" >&6; }
9854
9855 # So? What about this header?
9856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9857 yes:no: )
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9862 ac_header_preproc=yes
9863 ;;
9864 no:yes:* )
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9877
9878 ;;
9879 esac
9880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 eval "$as_ac_Header=\$ac_header_preproc"
9886 fi
9887 ac_res=`eval echo '${'$as_ac_Header'}'`
9888 { echo "$as_me:$LINENO: result: $ac_res" >&5
9889 echo "${ECHO_T}$ac_res" >&6; }
9890
9891 fi
9892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895 _ACEOF
9896
9897 fi
9898
9899 done
9900
9901
9902 for ac_func in getpagesize
9903 do
9904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918 #define $ac_func innocuous_$ac_func
9919
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9924
9925 #ifdef __STDC__
9926 # include <limits.h>
9927 #else
9928 # include <assert.h>
9929 #endif
9930
9931 #undef $ac_func
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char $ac_func ();
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined __stub_$ac_func || defined __stub___$ac_func
9944 choke me
9945 #endif
9946
9947 int
9948 main ()
9949 {
9950 return $ac_func ();
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9957 case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 eval "$as_ac_var=yes"
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 eval "$as_ac_var=no"
9979 fi
9980
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9983 fi
9984 ac_res=`eval echo '${'$as_ac_var'}'`
9985 { echo "$as_me:$LINENO: result: $ac_res" >&5
9986 echo "${ECHO_T}$ac_res" >&6; }
9987 if test `eval echo '${'$as_ac_var'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9990 _ACEOF
9991
9992 fi
9993 done
9994
9995 { echo "$as_me:$LINENO: checking for working mmap" >&5
9996 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9997 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 if test "$cross_compiling" = yes; then
10001 ac_cv_func_mmap_fixed_mapped=no
10002 else
10003 cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h. */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 /* malloc might have been renamed as rpl_malloc. */
10011 #undef malloc
10012
10013 /* Thanks to Mike Haertel and Jim Avera for this test.
10014 Here is a matrix of mmap possibilities:
10015 mmap private not fixed
10016 mmap private fixed at somewhere currently unmapped
10017 mmap private fixed at somewhere already mapped
10018 mmap shared not fixed
10019 mmap shared fixed at somewhere currently unmapped
10020 mmap shared fixed at somewhere already mapped
10021 For private mappings, we should verify that changes cannot be read()
10022 back from the file, nor mmap's back from the file at a different
10023 address. (There have been systems where private was not correctly
10024 implemented like the infamous i386 svr4.0, and systems where the
10025 VM page cache was not coherent with the file system buffer cache
10026 like early versions of FreeBSD and possibly contemporary NetBSD.)
10027 For shared mappings, we should conversely verify that changes get
10028 propagated back to all the places they're supposed to be.
10029
10030 Grep wants private fixed already mapped.
10031 The main things grep needs to know about mmap are:
10032 * does it exist and is it safe to write into the mmap'd area
10033 * how to use it (BSD variants) */
10034
10035 #include <fcntl.h>
10036 #include <sys/mman.h>
10037
10038 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10039 char *malloc ();
10040 #endif
10041
10042 /* This mess was copied from the GNU getpagesize.h. */
10043 #ifndef HAVE_GETPAGESIZE
10044 /* Assume that all systems that can run configure have sys/param.h. */
10045 # ifndef HAVE_SYS_PARAM_H
10046 # define HAVE_SYS_PARAM_H 1
10047 # endif
10048
10049 # ifdef _SC_PAGESIZE
10050 # define getpagesize() sysconf(_SC_PAGESIZE)
10051 # else /* no _SC_PAGESIZE */
10052 # ifdef HAVE_SYS_PARAM_H
10053 # include <sys/param.h>
10054 # ifdef EXEC_PAGESIZE
10055 # define getpagesize() EXEC_PAGESIZE
10056 # else /* no EXEC_PAGESIZE */
10057 # ifdef NBPG
10058 # define getpagesize() NBPG * CLSIZE
10059 # ifndef CLSIZE
10060 # define CLSIZE 1
10061 # endif /* no CLSIZE */
10062 # else /* no NBPG */
10063 # ifdef NBPC
10064 # define getpagesize() NBPC
10065 # else /* no NBPC */
10066 # ifdef PAGESIZE
10067 # define getpagesize() PAGESIZE
10068 # endif /* PAGESIZE */
10069 # endif /* no NBPC */
10070 # endif /* no NBPG */
10071 # endif /* no EXEC_PAGESIZE */
10072 # else /* no HAVE_SYS_PARAM_H */
10073 # define getpagesize() 8192 /* punt totally */
10074 # endif /* no HAVE_SYS_PARAM_H */
10075 # endif /* no _SC_PAGESIZE */
10076
10077 #endif /* no HAVE_GETPAGESIZE */
10078
10079 int
10080 main ()
10081 {
10082 char *data, *data2, *data3;
10083 int i, pagesize;
10084 int fd;
10085
10086 pagesize = getpagesize ();
10087
10088 /* First, make a file with some known garbage in it. */
10089 data = (char *) malloc (pagesize);
10090 if (!data)
10091 return 1;
10092 for (i = 0; i < pagesize; ++i)
10093 *(data + i) = rand ();
10094 umask (0);
10095 fd = creat ("conftest.mmap", 0600);
10096 if (fd < 0)
10097 return 1;
10098 if (write (fd, data, pagesize) != pagesize)
10099 return 1;
10100 close (fd);
10101
10102 /* Next, try to mmap the file at a fixed address which already has
10103 something else allocated at it. If we can, also make sure that
10104 we see the same garbage. */
10105 fd = open ("conftest.mmap", O_RDWR);
10106 if (fd < 0)
10107 return 1;
10108 data2 = (char *) malloc (2 * pagesize);
10109 if (!data2)
10110 return 1;
10111 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10112 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10113 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10114 return 1;
10115 for (i = 0; i < pagesize; ++i)
10116 if (*(data + i) != *(data2 + i))
10117 return 1;
10118
10119 /* Finally, make sure that changes to the mapped area do not
10120 percolate back to the file as seen by read(). (This is a bug on
10121 some variants of i386 svr4.0.) */
10122 for (i = 0; i < pagesize; ++i)
10123 *(data2 + i) = *(data2 + i) + 1;
10124 data3 = (char *) malloc (pagesize);
10125 if (!data3)
10126 return 1;
10127 if (read (fd, data3, pagesize) != pagesize)
10128 return 1;
10129 for (i = 0; i < pagesize; ++i)
10130 if (*(data + i) != *(data3 + i))
10131 return 1;
10132 close (fd);
10133 return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_link") 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10147 { (case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_try") 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_func_mmap_fixed_mapped=yes
10157 else
10158 echo "$as_me: program exited with status $ac_status" >&5
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ( exit $ac_status )
10163 ac_cv_func_mmap_fixed_mapped=no
10164 fi
10165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10166 fi
10167
10168
10169 fi
10170 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10171 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10172 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_MMAP 1
10176 _ACEOF
10177
10178 fi
10179 rm -f conftest.mmap
10180
10181 if test $use_mmap_for_buffers = yes; then
10182 REL_ALLOC=no
10183 fi
10184
10185 LIBS="$libsrc_libs $LIBS"
10186
10187
10188 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10189 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10190 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-ldnet $LIBS"
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10205 #ifdef __cplusplus
10206 extern "C"
10207 #endif
10208 char dnet_ntoa ();
10209 int
10210 main ()
10211 {
10212 return dnet_ntoa ();
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && {
10231 test -z "$ac_c_werror_flag" ||
10232 test ! -s conftest.err
10233 } && test -s conftest$ac_exeext &&
10234 $as_test_x conftest$ac_exeext; then
10235 ac_cv_lib_dnet_dnet_ntoa=yes
10236 else
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_cv_lib_dnet_dnet_ntoa=no
10241 fi
10242
10243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10244 conftest$ac_exeext conftest.$ac_ext
10245 LIBS=$ac_check_lib_save_LIBS
10246 fi
10247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10249 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_LIBDNET 1
10252 _ACEOF
10253
10254 LIBS="-ldnet $LIBS"
10255
10256 fi
10257
10258
10259 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10260 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lXbsd $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272
10273
10274 int
10275 main ()
10276 {
10277 return main ();
10278 ;
10279 return 0;
10280 }
10281 _ACEOF
10282 rm -f conftest.$ac_objext conftest$ac_exeext
10283 if { (ac_try="$ac_link"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_link") 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest$ac_exeext &&
10299 $as_test_x conftest$ac_exeext; then
10300 ac_cv_lib_Xbsd_main=yes
10301 else
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_cv_lib_Xbsd_main=no
10306 fi
10307
10308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309 conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10311 fi
10312 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10313 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10314 if test $ac_cv_lib_Xbsd_main = yes; then
10315 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10316 fi
10317
10318
10319
10320 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10321 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10322 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325 ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lpthreads $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10328 /* confdefs.h. */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333
10334 /* Override any GCC internal prototype to avoid an error.
10335 Use char because int might match the return type of a GCC
10336 builtin and then its argument prototype would still apply. */
10337 #ifdef __cplusplus
10338 extern "C"
10339 #endif
10340 char cma_open ();
10341 int
10342 main ()
10343 {
10344 return cma_open ();
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest$ac_exeext &&
10366 $as_test_x conftest$ac_exeext; then
10367 ac_cv_lib_pthreads_cma_open=yes
10368 else
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ac_cv_lib_pthreads_cma_open=no
10373 fi
10374
10375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10376 conftest$ac_exeext conftest.$ac_ext
10377 LIBS=$ac_check_lib_save_LIBS
10378 fi
10379 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10380 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10381 if test $ac_cv_lib_pthreads_cma_open = yes; then
10382 cat >>confdefs.h <<_ACEOF
10383 #define HAVE_LIBPTHREADS 1
10384 _ACEOF
10385
10386 LIBS="-lpthreads $LIBS"
10387
10388 fi
10389
10390
10391 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10392 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10393 if test -d /usr/X386/include; then
10394 HAVE_XFREE386=yes
10395 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10396 else
10397 HAVE_XFREE386=no
10398 fi
10399 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10400 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10401
10402
10403 case ${host_os} in
10404 aix*)
10405 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10406 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10407 if test "${gdb_cv_bigtoc+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410
10411 case $GCC in
10412 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10413 *) gdb_cv_bigtoc=-bbigtoc ;;
10414 esac
10415
10416 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423
10424 int
10425 main ()
10426 {
10427 int i;
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (ac_try="$ac_link"
10434 case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437 esac
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_link") 2>conftest.er1
10440 ac_status=$?
10441 grep -v '^ *+' conftest.er1 >conftest.err
10442 rm -f conftest.er1
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } && {
10446 test -z "$ac_c_werror_flag" ||
10447 test ! -s conftest.err
10448 } && test -s conftest$ac_exeext &&
10449 $as_test_x conftest$ac_exeext; then
10450 :
10451 else
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455 gdb_cv_bigtoc=
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10459 conftest$ac_exeext conftest.$ac_ext
10460
10461 fi
10462 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10463 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10464 ;;
10465 esac
10466
10467 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10468 # used for the tests that follow. We set them back to REAL_CFLAGS and
10469 # REAL_CPPFLAGS later on.
10470
10471 REAL_CPPFLAGS="$CPPFLAGS"
10472
10473 if test "${HAVE_X11}" = "yes"; then
10474 DEFS="$C_SWITCH_X_SITE $DEFS"
10475 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10476 LIBS="$LIBX $LIBS"
10477 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10478 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10479
10480 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10481 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10482 # but it's more convenient here to set LD_RUN_PATH
10483 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10484 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10485 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10486 export LD_RUN_PATH
10487 fi
10488
10489 if test "${opsys}" = "gnu-linux"; then
10490 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10491 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498
10499 int
10500 main ()
10501 {
10502 XOpenDisplay ("foo");
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512 esac
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && {
10521 test -z "$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10523 } && test -s conftest$ac_exeext &&
10524 $as_test_x conftest$ac_exeext; then
10525 xlinux_first_failure=no
10526 else
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530 xlinux_first_failure=yes
10531 fi
10532
10533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10534 conftest$ac_exeext conftest.$ac_ext
10535 if test "${xlinux_first_failure}" = "yes"; then
10536 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10537 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10538 OLD_CPPFLAGS="$CPPFLAGS"
10539 OLD_LIBS="$LIBS"
10540 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10541 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10542 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10543 LIBS="$LIBS -b i486-linuxaout"
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550
10551 int
10552 main ()
10553 {
10554 XOpenDisplay ("foo");
10555 ;
10556 return 0;
10557 }
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (ac_try="$ac_link"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest$ac_exeext &&
10576 $as_test_x conftest$ac_exeext; then
10577 xlinux_second_failure=no
10578 else
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 xlinux_second_failure=yes
10583 fi
10584
10585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10586 conftest$ac_exeext conftest.$ac_ext
10587 if test "${xlinux_second_failure}" = "yes"; then
10588 # If we get the same failure with -b, there is no use adding -b.
10589 # So take it out. This plays safe.
10590 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10591 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10592 CPPFLAGS="$OLD_CPPFLAGS"
10593 LIBS="$OLD_LIBS"
10594 { echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6; }
10596 else
10597 { echo "$as_me:$LINENO: result: yes" >&5
10598 echo "${ECHO_T}yes" >&6; }
10599 fi
10600 else
10601 { echo "$as_me:$LINENO: result: no" >&5
10602 echo "${ECHO_T}no" >&6; }
10603 fi
10604 fi
10605
10606 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10607 # header files included from there.
10608 { echo "$as_me:$LINENO: checking for Xkb" >&5
10609 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 #include <X11/Xlib.h>
10617 #include <X11/XKBlib.h>
10618 int
10619 main ()
10620 {
10621 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (ac_try="$ac_link"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_link") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest$ac_exeext &&
10643 $as_test_x conftest$ac_exeext; then
10644 emacs_xkb=yes
10645 else
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 emacs_xkb=no
10650 fi
10651
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10654 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10655 echo "${ECHO_T}$emacs_xkb" >&6; }
10656 if test $emacs_xkb = yes; then
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_XKBGETKEYBOARD 1
10660 _ACEOF
10661
10662 fi
10663
10664
10665
10666
10667
10668 for ac_func in XrmSetDatabase XScreenResourceString \
10669 XScreenNumberOfScreen XSetWMProtocols
10670 do
10671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h. */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10685 #define $ac_func innocuous_$ac_func
10686
10687 /* System header to define __stub macros and hopefully few prototypes,
10688 which can conflict with char $ac_func (); below.
10689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10690 <limits.h> exists even on freestanding compilers. */
10691
10692 #ifdef __STDC__
10693 # include <limits.h>
10694 #else
10695 # include <assert.h>
10696 #endif
10697
10698 #undef $ac_func
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char $ac_func ();
10707 /* The GNU C library defines this for functions which it implements
10708 to always fail with ENOSYS. Some functions are actually named
10709 something starting with __ and the normal name is an alias. */
10710 #if defined __stub_$ac_func || defined __stub___$ac_func
10711 choke me
10712 #endif
10713
10714 int
10715 main ()
10716 {
10717 return $ac_func ();
10718 ;
10719 return 0;
10720 }
10721 _ACEOF
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (ac_try="$ac_link"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_link") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext &&
10739 $as_test_x conftest$ac_exeext; then
10740 eval "$as_ac_var=yes"
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 eval "$as_ac_var=no"
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10749 conftest$ac_exeext conftest.$ac_ext
10750 fi
10751 ac_res=`eval echo '${'$as_ac_var'}'`
10752 { echo "$as_me:$LINENO: result: $ac_res" >&5
10753 echo "${ECHO_T}$ac_res" >&6; }
10754 if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10757 _ACEOF
10758
10759 fi
10760 done
10761
10762 fi
10763
10764 if test "${window_system}" = "x11"; then
10765 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10766 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10767 if test "${emacs_cv_x11_version_6+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 else
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <X11/Xlib.h>
10777 int
10778 main ()
10779 {
10780 #if XlibSpecificationRelease < 6
10781 fail;
10782 #endif
10783
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
10806 emacs_cv_x11_version_6=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 emacs_cv_x11_version_6=no
10812 fi
10813
10814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815 conftest$ac_exeext conftest.$ac_ext
10816 fi
10817
10818 if test $emacs_cv_x11_version_6 = yes; then
10819 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10820 echo "${ECHO_T}6 or newer" >&6; }
10821
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_X11R6 1
10824 _ACEOF
10825
10826 else
10827 { echo "$as_me:$LINENO: result: before 6" >&5
10828 echo "${ECHO_T}before 6" >&6; }
10829 fi
10830 fi
10831
10832 if test "${window_system}" = "x11"; then
10833 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10834 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10835 if test "${emacs_cv_x11_version_5+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838 cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h. */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 #include <X11/Xlib.h>
10845 int
10846 main ()
10847 {
10848 #if XlibSpecificationRelease < 5
10849 fail;
10850 #endif
10851
10852 ;
10853 return 0;
10854 }
10855 _ACEOF
10856 rm -f conftest.$ac_objext conftest$ac_exeext
10857 if { (ac_try="$ac_link"
10858 case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10861 esac
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_link") 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && {
10870 test -z "$ac_c_werror_flag" ||
10871 test ! -s conftest.err
10872 } && test -s conftest$ac_exeext &&
10873 $as_test_x conftest$ac_exeext; then
10874 emacs_cv_x11_version_5=yes
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 emacs_cv_x11_version_5=no
10880 fi
10881
10882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10883 conftest$ac_exeext conftest.$ac_ext
10884 fi
10885
10886 if test $emacs_cv_x11_version_5 = yes; then
10887 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10888 echo "${ECHO_T}5 or newer" >&6; }
10889 HAVE_X11R5=yes
10890
10891 cat >>confdefs.h <<\_ACEOF
10892 #define HAVE_X11R5 1
10893 _ACEOF
10894
10895 else
10896 HAVE_X11R5=no
10897 { echo "$as_me:$LINENO: result: before 5" >&5
10898 echo "${ECHO_T}before 5" >&6; }
10899 fi
10900 fi
10901
10902 HAVE_GTK=no
10903 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10904 USE_X_TOOLKIT=none
10905 fi
10906 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10907 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10908 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10909 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10910 { (exit 1); exit 1; }; };
10911 fi
10912 GLIB_REQUIRED=2.4
10913 GTK_REQUIRED=2.4
10914 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10915
10916 if test "X${with_pkg_config_prog}" != X; then
10917 PKG_CONFIG="${with_pkg_config_prog}"
10918 fi
10919
10920 succeeded=no
10921
10922 if test -z "$PKG_CONFIG"; then
10923 # Extract the first word of "pkg-config", so it can be a program name with args.
10924 set dummy pkg-config; ac_word=$2
10925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930 case $PKG_CONFIG in
10931 [\\/]* | ?:[\\/]*)
10932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10933 ;;
10934 *)
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10945 fi
10946 done
10947 done
10948 IFS=$as_save_IFS
10949
10950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10951 ;;
10952 esac
10953 fi
10954 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10955 if test -n "$PKG_CONFIG"; then
10956 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10957 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10958 else
10959 { echo "$as_me:$LINENO: result: no" >&5
10960 echo "${ECHO_T}no" >&6; }
10961 fi
10962
10963
10964 fi
10965
10966 if test "$PKG_CONFIG" = "no" ; then
10967 { { echo "$as_me:$LINENO: error:
10968 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10969 echo "$as_me: error:
10970 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10971 { (exit 1); exit 1; }; }
10972 else
10973 PKG_CONFIG_MIN_VERSION=0.9.0
10974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10975 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10976 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10977
10978 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10979 { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10981 succeeded=yes
10982
10983 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10984 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10985 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10986 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10987 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10988
10989 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10990 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10991 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10992 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10993 echo "${ECHO_T}$GTK_LIBS" >&6; }
10994 else
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
10997 GTK_CFLAGS=""
10998 GTK_LIBS=""
10999 ## If we have a custom action on failure, don't print errors, but
11000 ## do set a variable so people can do so.
11001 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11002 echo $GTK_PKG_ERRORS
11003 fi
11004
11005
11006
11007 else
11008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11010 fi
11011 fi
11012
11013 if test $succeeded = yes; then
11014 :
11015 else
11016 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11017 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11018 { (exit 1); exit 1; }; }
11019 fi
11020
11021
11022
11023 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11024 CFLAGS="$CFLAGS $GTK_CFLAGS"
11025 LIBS="$GTK_LIBS $LIBS"
11026 GTK_COMPILES=no
11027
11028 for ac_func in gtk_main
11029 do
11030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11044 #define $ac_func innocuous_$ac_func
11045
11046 /* System header to define __stub macros and hopefully few prototypes,
11047 which can conflict with char $ac_func (); below.
11048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11049 <limits.h> exists even on freestanding compilers. */
11050
11051 #ifdef __STDC__
11052 # include <limits.h>
11053 #else
11054 # include <assert.h>
11055 #endif
11056
11057 #undef $ac_func
11058
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11062 #ifdef __cplusplus
11063 extern "C"
11064 #endif
11065 char $ac_func ();
11066 /* The GNU C library defines this for functions which it implements
11067 to always fail with ENOSYS. Some functions are actually named
11068 something starting with __ and the normal name is an alias. */
11069 #if defined __stub_$ac_func || defined __stub___$ac_func
11070 choke me
11071 #endif
11072
11073 int
11074 main ()
11075 {
11076 return $ac_func ();
11077 ;
11078 return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext conftest$ac_exeext
11082 if { (ac_try="$ac_link"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_link") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && {
11095 test -z "$ac_c_werror_flag" ||
11096 test ! -s conftest.err
11097 } && test -s conftest$ac_exeext &&
11098 $as_test_x conftest$ac_exeext; then
11099 eval "$as_ac_var=yes"
11100 else
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 eval "$as_ac_var=no"
11105 fi
11106
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 fi
11110 ac_res=`eval echo '${'$as_ac_var'}'`
11111 { echo "$as_me:$LINENO: result: $ac_res" >&5
11112 echo "${ECHO_T}$ac_res" >&6; }
11113 if test `eval echo '${'$as_ac_var'}'` = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11116 _ACEOF
11117 GTK_COMPILES=yes
11118 fi
11119 done
11120
11121 if test "${GTK_COMPILES}" != "yes"; then
11122 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11123 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11124 { (exit 1); exit 1; }; };
11125 fi
11126
11127 HAVE_GTK=yes
11128
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_GTK 1
11131 _ACEOF
11132
11133 USE_X_TOOLKIT=none
11134
11135 if test "$with_toolkit_scroll_bars" != no; then
11136 with_toolkit_scroll_bars=yes
11137 fi
11138
11139 HAVE_GTK_MULTIDISPLAY=no
11140
11141 for ac_func in gdk_display_open
11142 do
11143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11157 #define $ac_func innocuous_$ac_func
11158
11159 /* System header to define __stub macros and hopefully few prototypes,
11160 which can conflict with char $ac_func (); below.
11161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11162 <limits.h> exists even on freestanding compilers. */
11163
11164 #ifdef __STDC__
11165 # include <limits.h>
11166 #else
11167 # include <assert.h>
11168 #endif
11169
11170 #undef $ac_func
11171
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 char $ac_func ();
11179 /* The GNU C library defines this for functions which it implements
11180 to always fail with ENOSYS. Some functions are actually named
11181 something starting with __ and the normal name is an alias. */
11182 #if defined __stub_$ac_func || defined __stub___$ac_func
11183 choke me
11184 #endif
11185
11186 int
11187 main ()
11188 {
11189 return $ac_func ();
11190 ;
11191 return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (ac_try="$ac_link"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_link") 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest$ac_exeext &&
11211 $as_test_x conftest$ac_exeext; then
11212 eval "$as_ac_var=yes"
11213 else
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 eval "$as_ac_var=no"
11218 fi
11219
11220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11221 conftest$ac_exeext conftest.$ac_ext
11222 fi
11223 ac_res=`eval echo '${'$as_ac_var'}'`
11224 { echo "$as_me:$LINENO: result: $ac_res" >&5
11225 echo "${ECHO_T}$ac_res" >&6; }
11226 if test `eval echo '${'$as_ac_var'}'` = yes; then
11227 cat >>confdefs.h <<_ACEOF
11228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11229 _ACEOF
11230 HAVE_GTK_MULTIDISPLAY=yes
11231 fi
11232 done
11233
11234 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11235
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_GTK_MULTIDISPLAY 1
11238 _ACEOF
11239
11240 fi
11241 HAVE_GTK_FILE_SELECTION=no
11242
11243 for ac_func in gtk_file_selection_new
11244 do
11245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h. */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11259 #define $ac_func innocuous_$ac_func
11260
11261 /* System header to define __stub macros and hopefully few prototypes,
11262 which can conflict with char $ac_func (); below.
11263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11264 <limits.h> exists even on freestanding compilers. */
11265
11266 #ifdef __STDC__
11267 # include <limits.h>
11268 #else
11269 # include <assert.h>
11270 #endif
11271
11272 #undef $ac_func
11273
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char $ac_func ();
11281 /* The GNU C library defines this for functions which it implements
11282 to always fail with ENOSYS. Some functions are actually named
11283 something starting with __ and the normal name is an alias. */
11284 #if defined __stub_$ac_func || defined __stub___$ac_func
11285 choke me
11286 #endif
11287
11288 int
11289 main ()
11290 {
11291 return $ac_func ();
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11301 esac
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_link") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest$ac_exeext &&
11313 $as_test_x conftest$ac_exeext; then
11314 eval "$as_ac_var=yes"
11315 else
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 eval "$as_ac_var=no"
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11323 conftest$ac_exeext conftest.$ac_ext
11324 fi
11325 ac_res=`eval echo '${'$as_ac_var'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11328 if test `eval echo '${'$as_ac_var'}'` = yes; then
11329 cat >>confdefs.h <<_ACEOF
11330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11331 _ACEOF
11332 HAVE_GTK_FILE_SELECTION=yes
11333 fi
11334 done
11335
11336
11337 HAVE_GTK_FILE_CHOOSER=no
11338
11339 for ac_func in gtk_file_chooser_dialog_new
11340 do
11341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11344 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h. */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11355 #define $ac_func innocuous_$ac_func
11356
11357 /* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func (); below.
11359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360 <limits.h> exists even on freestanding compilers. */
11361
11362 #ifdef __STDC__
11363 # include <limits.h>
11364 #else
11365 # include <assert.h>
11366 #endif
11367
11368 #undef $ac_func
11369
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char $ac_func ();
11377 /* The GNU C library defines this for functions which it implements
11378 to always fail with ENOSYS. Some functions are actually named
11379 something starting with __ and the normal name is an alias. */
11380 #if defined __stub_$ac_func || defined __stub___$ac_func
11381 choke me
11382 #endif
11383
11384 int
11385 main ()
11386 {
11387 return $ac_func ();
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (ac_try="$ac_link"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest$ac_exeext &&
11409 $as_test_x conftest$ac_exeext; then
11410 eval "$as_ac_var=yes"
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 eval "$as_ac_var=no"
11416 fi
11417
11418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11419 conftest$ac_exeext conftest.$ac_ext
11420 fi
11421 ac_res=`eval echo '${'$as_ac_var'}'`
11422 { echo "$as_me:$LINENO: result: $ac_res" >&5
11423 echo "${ECHO_T}$ac_res" >&6; }
11424 if test `eval echo '${'$as_ac_var'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11427 _ACEOF
11428 HAVE_GTK_FILE_CHOOSER=yes
11429 fi
11430 done
11431
11432
11433 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11434 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11435
11436 cat >>confdefs.h <<\_ACEOF
11437 #define HAVE_GTK_FILE_BOTH 1
11438 _ACEOF
11439
11440 fi
11441
11442 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11443 HAVE_GTK_AND_PTHREAD=no
11444
11445 for ac_header in pthread.h
11446 do
11447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 fi
11454 ac_res=`eval echo '${'$as_ac_Header'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11457 else
11458 # Is the header compilable?
11459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 $ac_includes_default
11468 #include <$ac_header>
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (ac_try="$ac_compile"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11475 esac
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_compile") 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest.$ac_objext; then
11487 ac_header_compiler=yes
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11491
11492 ac_header_compiler=no
11493 fi
11494
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11497 echo "${ECHO_T}$ac_header_compiler" >&6; }
11498
11499 # Is the header present?
11500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include <$ac_header>
11509 _ACEOF
11510 if { (ac_try="$ac_cpp conftest.$ac_ext"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } >/dev/null && {
11523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 }; then
11526 ac_header_preproc=yes
11527 else
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531 ac_header_preproc=no
11532 fi
11533
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11537
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11540 yes:no: )
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11546 ;;
11547 no:yes:* )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11560
11561 ;;
11562 esac
11563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 eval "$as_ac_Header=\$ac_header_preproc"
11569 fi
11570 ac_res=`eval echo '${'$as_ac_Header'}'`
11571 { echo "$as_me:$LINENO: result: $ac_res" >&5
11572 echo "${ECHO_T}$ac_res" >&6; }
11573
11574 fi
11575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11578 _ACEOF
11579
11580 fi
11581
11582 done
11583
11584 if test "$ac_cv_header_pthread_h"; then
11585 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11586 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11587 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-lpthread $LIBS"
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char pthread_self ();
11606 int
11607 main ()
11608 {
11609 return pthread_self ();
11610 ;
11611 return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } && {
11628 test -z "$ac_c_werror_flag" ||
11629 test ! -s conftest.err
11630 } && test -s conftest$ac_exeext &&
11631 $as_test_x conftest$ac_exeext; then
11632 ac_cv_lib_pthread_pthread_self=yes
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 ac_cv_lib_pthread_pthread_self=no
11638 fi
11639
11640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11643 fi
11644 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11645 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11646 if test $ac_cv_lib_pthread_pthread_self = yes; then
11647 HAVE_GTK_AND_PTHREAD=yes
11648 fi
11649
11650 fi
11651 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11652 GTK_LIBS="$GTK_LIBS -lpthread"
11653
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_GTK_AND_PTHREAD 1
11656 _ACEOF
11657
11658 fi
11659 fi
11660 fi
11661
11662 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11663 if test x"${HAVE_X11R5}" = xyes; then
11664 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11665 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11666 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675
11676 #include <X11/Intrinsic.h>
11677 #include <X11/Xaw/Simple.h>
11678 int
11679 main ()
11680 {
11681
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest$ac_exeext &&
11703 $as_test_x conftest$ac_exeext; then
11704 emacs_cv_x11_version_5_with_xaw=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 emacs_cv_x11_version_5_with_xaw=no
11710 fi
11711
11712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11713 conftest$ac_exeext conftest.$ac_ext
11714 fi
11715
11716 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11717 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11718 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11719 USE_X_TOOLKIT=LUCID
11720 else
11721 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11722 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11723 USE_X_TOOLKIT=none
11724 fi
11725 else
11726 USE_X_TOOLKIT=none
11727 fi
11728 fi
11729
11730 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11731
11732 if test "${USE_X_TOOLKIT}" != "none"; then
11733 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11734 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11735 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <X11/Intrinsic.h>
11745 int
11746 main ()
11747 {
11748 #if XtSpecificationRelease < 6
11749 fail;
11750 #endif
11751
11752 ;
11753 return 0;
11754 }
11755 _ACEOF
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest$ac_exeext &&
11773 $as_test_x conftest$ac_exeext; then
11774 emacs_cv_x11_toolkit_version_6=yes
11775 else
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 emacs_cv_x11_toolkit_version_6=no
11780 fi
11781
11782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11783 conftest$ac_exeext conftest.$ac_ext
11784 fi
11785
11786 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11787 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11788 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11789 echo "${ECHO_T}6 or newer" >&6; }
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_X11XTR6 1
11793 _ACEOF
11794
11795 else
11796 { echo "$as_me:$LINENO: result: before 6" >&5
11797 echo "${ECHO_T}before 6" >&6; }
11798 fi
11799
11800 OLDLIBS="$LIBS"
11801 if test x$HAVE_X11XTR6 = xyes; then
11802 LIBS="-lXt -lSM -lICE $LIBS"
11803 else
11804 LIBS="-lXt $LIBS"
11805 fi
11806
11807 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11808 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11809 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 else
11812 ac_check_lib_save_LIBS=$LIBS
11813 LIBS="-lXmu $LIBS"
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char XmuConvertStandardSelection ();
11828 int
11829 main ()
11830 {
11831 return XmuConvertStandardSelection ();
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest$ac_exeext &&
11853 $as_test_x conftest$ac_exeext; then
11854 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11860 fi
11861
11862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11863 conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11865 fi
11866 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11867 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11868 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define HAVE_LIBXMU 1
11871 _ACEOF
11872
11873 LIBS="-lXmu $LIBS"
11874
11875 fi
11876
11877 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11878 fi
11879
11880 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11881 if test "${HAVE_X11}" = "yes"; then
11882 if test "${USE_X_TOOLKIT}" != "none"; then
11883
11884 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11885 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lXext $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char XShapeQueryExtension ();
11905 int
11906 main ()
11907 {
11908 return XShapeQueryExtension ();
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext &&
11930 $as_test_x conftest$ac_exeext; then
11931 ac_cv_lib_Xext_XShapeQueryExtension=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_lib_Xext_XShapeQueryExtension=no
11937 fi
11938
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11945 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_LIBXEXT 1
11948 _ACEOF
11949
11950 LIBS="-lXext $LIBS"
11951
11952 fi
11953
11954 fi
11955 fi
11956
11957 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11958 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11959 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11960 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 #include <Xm/Xm.h>
11970 int
11971 main ()
11972 {
11973 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11974 int x = 5;
11975 #else
11976 Motif version prior to 2.1.
11977 #endif
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (ac_try="$ac_compile"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
11999 emacs_cv_motif_version_2_1=yes
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 emacs_cv_motif_version_2_1=no
12005 fi
12006
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008 fi
12009 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12010 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12011 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12012 if test $emacs_cv_motif_version_2_1 = yes; then
12013 HAVE_LIBXP=no
12014
12015 cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_MOTIF_2_1 1
12017 _ACEOF
12018
12019 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12020 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12021 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-lXp $LIBS"
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char XpCreateContext ();
12040 int
12041 main ()
12042 {
12043 return XpCreateContext ();
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext &&
12065 $as_test_x conftest$ac_exeext; then
12066 ac_cv_lib_Xp_XpCreateContext=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_cv_lib_Xp_XpCreateContext=no
12072 fi
12073
12074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12079 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12080 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12081 HAVE_LIBXP=yes
12082 fi
12083
12084 if test ${HAVE_LIBXP} = yes; then
12085
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_LIBXP 1
12088 _ACEOF
12089
12090 fi
12091 else
12092 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12093 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12094 if test "${emacs_cv_lesstif+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097 # We put this in CFLAGS temporarily to precede other -I options
12098 # that might be in CFLAGS temporarily.
12099 # We put this in CPPFLAGS where it precedes the other -I options.
12100 OLD_CPPFLAGS=$CPPFLAGS
12101 OLD_CFLAGS=$CFLAGS
12102 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12103 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h. */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12111 int
12112 main ()
12113 {
12114 int x = 5;
12115 ;
12116 return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext
12120 if { (ac_try="$ac_compile"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_compile") 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest.$ac_objext; then
12136 emacs_cv_lesstif=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141 emacs_cv_lesstif=no
12142 fi
12143
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12147 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12148 if test $emacs_cv_lesstif = yes; then
12149 # Make sure this -I option remains in CPPFLAGS after it is set
12150 # back to REAL_CPPFLAGS.
12151 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12152 # have those other -I options anyway. Ultimately, having this
12153 # directory ultimately in CPPFLAGS will be enough.
12154 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12155 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12156 else
12157 CFLAGS=$OLD_CFLAGS
12158 CPPFLAGS=$OLD_CPPFLAGS
12159 fi
12160 fi
12161 fi
12162
12163 ### Is -lXaw3d available?
12164 HAVE_XAW3D=no
12165 if test "${HAVE_X11}" = "yes"; then
12166 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12167 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12168 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12169 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <X11/Xaw3d/Scrollbar.h>
12179 _ACEOF
12180 if { (ac_try="$ac_cpp conftest.$ac_ext"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } >/dev/null && {
12193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 }; then
12196 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12202 fi
12203
12204 rm -f conftest.err conftest.$ac_ext
12205 fi
12206 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12207 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12208 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12209 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12210 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12211 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-lXaw3d $LIBS"
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12226 #ifdef __cplusplus
12227 extern "C"
12228 #endif
12229 char XawScrollbarSetThumb ();
12230 int
12231 main ()
12232 {
12233 return XawScrollbarSetThumb ();
12234 ;
12235 return 0;
12236 }
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest$ac_exeext &&
12255 $as_test_x conftest$ac_exeext; then
12256 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12257 else
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12262 fi
12263
12264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12267 fi
12268 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12269 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12270 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12271 HAVE_XAW3D=yes
12272 fi
12273
12274 fi
12275
12276
12277 if test "${HAVE_XAW3D}" = "yes"; then
12278
12279 cat >>confdefs.h <<\_ACEOF
12280 #define HAVE_XAW3D 1
12281 _ACEOF
12282
12283 fi
12284 fi
12285 fi
12286
12287
12288
12289 USE_TOOLKIT_SCROLL_BARS=no
12290 if test "${with_toolkit_scroll_bars}" != "no"; then
12291 if test "${USE_X_TOOLKIT}" != "none"; then
12292 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12293 cat >>confdefs.h <<\_ACEOF
12294 #define USE_TOOLKIT_SCROLL_BARS 1
12295 _ACEOF
12296
12297 HAVE_XAW3D=no
12298 USE_TOOLKIT_SCROLL_BARS=yes
12299 elif test "${HAVE_XAW3D}" = "yes"; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define USE_TOOLKIT_SCROLL_BARS 1
12302 _ACEOF
12303
12304 USE_TOOLKIT_SCROLL_BARS=yes
12305 fi
12306 elif test "${HAVE_GTK}" = "yes"; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define USE_TOOLKIT_SCROLL_BARS 1
12309 _ACEOF
12310
12311 USE_TOOLKIT_SCROLL_BARS=yes
12312 elif test "${HAVE_CARBON}" = "yes"; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define USE_TOOLKIT_SCROLL_BARS 1
12315 _ACEOF
12316
12317 USE_TOOLKIT_SCROLL_BARS=yes
12318 fi
12319 fi
12320
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327
12328 #include <X11/Xlib.h>
12329 #include <X11/Xresource.h>
12330 int
12331 main ()
12332 {
12333 XIMProc callback;
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 HAVE_XIM=yes
12356
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_XIM 1
12359 _ACEOF
12360
12361 else
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365 HAVE_XIM=no
12366 fi
12367
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369
12370
12371 if test "${with_xim}" != "no"; then
12372
12373 cat >>confdefs.h <<\_ACEOF
12374 #define USE_XIM 1
12375 _ACEOF
12376
12377 fi
12378
12379
12380 if test "${HAVE_XIM}" != "no"; then
12381 late_CFLAGS=$CFLAGS
12382 if test "$GCC" = yes; then
12383 CFLAGS="$CFLAGS --pedantic-errors"
12384 fi
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391
12392 #include <X11/Xlib.h>
12393 #include <X11/Xresource.h>
12394 int
12395 main ()
12396 {
12397 Display *display;
12398 XrmDatabase db;
12399 char *res_name;
12400 char *res_class;
12401 XIMProc callback;
12402 XPointer *client_data;
12403 #ifndef __GNUC__
12404 /* If we're not using GCC, it's probably not XFree86, and this is
12405 probably right, but we can't use something like --pedantic-errors. */
12406 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12407 char*, XIMProc, XPointer*);
12408 #endif
12409 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12410 client_data);
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (ac_try="$ac_compile"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_compile") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest.$ac_objext; then
12432 emacs_cv_arg6_star=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441
12442 if test "$emacs_cv_arg6_star" = yes; then
12443 cat >>confdefs.h <<\_ACEOF
12444 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12445 _ACEOF
12446
12447 else
12448 cat >>confdefs.h <<\_ACEOF
12449 #define XRegisterIMInstantiateCallback_arg6 XPointer
12450 _ACEOF
12451
12452 fi
12453 CFLAGS=$late_CFLAGS
12454 fi
12455
12456 ### For font-backend
12457 if test "${USE_FONT_BACKEND}" = "yes"; then
12458
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define USE_FONT_BACKEND 1
12462 _ACEOF
12463
12464
12465 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12466 HAVE_XFT=maybe
12467 if test "${HAVE_X11}" = "yes"; then
12468 if test "x${with_freetype}" = "xno"; then
12469 with_xft="no";
12470 fi
12471 if test "x${with_xft}" != "xno"; then
12472
12473 if test "X${with_pkg_config_prog}" != X; then
12474 PKG_CONFIG="${with_pkg_config_prog}"
12475 fi
12476
12477
12478 succeeded=no
12479
12480 if test -z "$PKG_CONFIG"; then
12481 # Extract the first word of "pkg-config", so it can be a program name with args.
12482 set dummy pkg-config; ac_word=$2
12483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12485 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 case $PKG_CONFIG in
12489 [\\/]* | ?:[\\/]*)
12490 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12491 ;;
12492 *)
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504 done
12505 done
12506 IFS=$as_save_IFS
12507
12508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12509 ;;
12510 esac
12511 fi
12512 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12513 if test -n "$PKG_CONFIG"; then
12514 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12515 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12516 else
12517 { echo "$as_me:$LINENO: result: no" >&5
12518 echo "${ECHO_T}no" >&6; }
12519 fi
12520
12521
12522 fi
12523
12524 if test "$PKG_CONFIG" = "no" ; then
12525 HAVE_XFT=no
12526 else
12527 PKG_CONFIG_MIN_VERSION=0.9.0
12528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12529 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12530 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12531
12532 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12533 { echo "$as_me:$LINENO: result: yes" >&5
12534 echo "${ECHO_T}yes" >&6; }
12535 succeeded=yes
12536
12537 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12538 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12539 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
12540 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12541 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12542
12543 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12544 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12545 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
12546 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12547 echo "${ECHO_T}$XFT_LIBS" >&6; }
12548 else
12549 { echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6; }
12551 XFT_CFLAGS=""
12552 XFT_LIBS=""
12553 ## If we have a custom action on failure, don't print errors, but
12554 ## do set a variable so people can do so.
12555 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12556
12557 fi
12558
12559
12560
12561 else
12562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12564 fi
12565 fi
12566
12567 if test $succeeded = yes; then
12568 :
12569 else
12570 HAVE_XFT=no
12571 fi
12572
12573 if test "$HAVE_XFT" != no; then
12574 OLD_CPPFLAGS="$CPPFLAGS"
12575 OLD_CFLAGS="$CFLAGS"
12576 OLD_LIBS="$LIBS"
12577 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12578 CFLAGS="$CFLAGS $XFT_CFLAGS"
12579 LIBS="$XFT_LIBS $LIBS"
12580 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12581 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12582 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12583 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 fi
12586 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12587 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12588 else
12589 # Is the header compilable?
12590 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12591 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12599 #include <X11/Xft/Xft.h>
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (ac_try="$ac_compile"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606 esac
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_compile") 2>conftest.er1
12609 ac_status=$?
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && {
12615 test -z "$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12617 } && test -s conftest.$ac_objext; then
12618 ac_header_compiler=yes
12619 else
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623 ac_header_compiler=no
12624 fi
12625
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12628 echo "${ECHO_T}$ac_header_compiler" >&6; }
12629
12630 # Is the header present?
12631 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12632 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 #include <X11/Xft/Xft.h>
12640 _ACEOF
12641 if { (ac_try="$ac_cpp conftest.$ac_ext"
12642 case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } >/dev/null && {
12654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12655 test ! -s conftest.err
12656 }; then
12657 ac_header_preproc=yes
12658 else
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_header_preproc=no
12663 fi
12664
12665 rm -f conftest.err conftest.$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12667 echo "${ECHO_T}$ac_header_preproc" >&6; }
12668
12669 # So? What about this header?
12670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12671 yes:no: )
12672 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12673 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12675 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12676 ac_header_preproc=yes
12677 ;;
12678 no:yes:* )
12679 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12680 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12682 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12684 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12686 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12688 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12690 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12691
12692 ;;
12693 esac
12694 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12695 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12696 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12700 fi
12701 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12702 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12703
12704 fi
12705 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12706 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12707 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12708 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711 ac_check_lib_save_LIBS=$LIBS
12712 LIBS="-lXft $XFT_LIBS $LIBS"
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h. */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12723 #ifdef __cplusplus
12724 extern "C"
12725 #endif
12726 char XftFontOpen ();
12727 int
12728 main ()
12729 {
12730 return XftFontOpen ();
12731 ;
12732 return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (ac_try="$ac_link"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12753 ac_cv_lib_Xft_XftFontOpen=yes
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758 ac_cv_lib_Xft_XftFontOpen=no
12759 fi
12760
12761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12762 conftest$ac_exeext conftest.$ac_ext
12763 LIBS=$ac_check_lib_save_LIBS
12764 fi
12765 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12766 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12767 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12768 HAVE_XFT=yes
12769 fi
12770
12771 fi
12772
12773
12774
12775 if test "${HAVE_XFT}" = "yes"; then
12776
12777 cat >>confdefs.h <<\_ACEOF
12778 #define HAVE_XFT 1
12779 _ACEOF
12780
12781
12782 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12783 else
12784 CFLAGS="$OLD_CPPFLAGS"
12785 CFLAGS="$OLD_CFLAGS"
12786 LIBS="$OLD_LIBS"
12787 fi
12788 fi
12789 fi
12790 fi
12791
12792 HAVE_FREETYPE=no
12793 ### Use -lfreetype if available, unless `--with-freetype=no'.
12794 if test "${HAVE_XFT}" = "yes"; then
12795 HAVE_FREETYPE=yes
12796 elif test "x${with_freetype}" != "xno"; then
12797 if test "X${with_pkg_config_prog}" != X; then
12798 PKG_CONFIG="${with_pkg_config_prog}"
12799 fi
12800
12801
12802 succeeded=no
12803
12804 if test -z "$PKG_CONFIG"; then
12805 # Extract the first word of "pkg-config", so it can be a program name with args.
12806 set dummy pkg-config; ac_word=$2
12807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812 case $PKG_CONFIG in
12813 [\\/]* | ?:[\\/]*)
12814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12815 ;;
12816 *)
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828 done
12829 done
12830 IFS=$as_save_IFS
12831
12832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12833 ;;
12834 esac
12835 fi
12836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12837 if test -n "$PKG_CONFIG"; then
12838 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12839 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12840 else
12841 { echo "$as_me:$LINENO: result: no" >&5
12842 echo "${ECHO_T}no" >&6; }
12843 fi
12844
12845
12846 fi
12847
12848 if test "$PKG_CONFIG" = "no" ; then
12849 HAVE_FREETYPE=no
12850 else
12851 PKG_CONFIG_MIN_VERSION=0.9.0
12852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12853 { echo "$as_me:$LINENO: checking for freetype2" >&5
12854 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12855
12856 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12857 { echo "$as_me:$LINENO: result: yes" >&5
12858 echo "${ECHO_T}yes" >&6; }
12859 succeeded=yes
12860
12861 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12862 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12863 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12864 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12865 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12866
12867 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12868 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12869 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12870 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12871 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12872 else
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12875 FREETYPE_CFLAGS=""
12876 FREETYPE_LIBS=""
12877 ## If we have a custom action on failure, don't print errors, but
12878 ## do set a variable so people can do so.
12879 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12880
12881 fi
12882
12883
12884
12885 else
12886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12888 fi
12889 fi
12890
12891 if test $succeeded = yes; then
12892 HAVE_FREETYPE=yes
12893 else
12894 HAVE_FREETYPE=no
12895 fi
12896
12897 if test "${HAVE_FREETYPE}" = "yes"; then
12898
12899 succeeded=no
12900
12901 if test -z "$PKG_CONFIG"; then
12902 # Extract the first word of "pkg-config", so it can be a program name with args.
12903 set dummy pkg-config; ac_word=$2
12904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909 case $PKG_CONFIG in
12910 [\\/]* | ?:[\\/]*)
12911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12912 ;;
12913 *)
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12916 do
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12924 fi
12925 done
12926 done
12927 IFS=$as_save_IFS
12928
12929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12930 ;;
12931 esac
12932 fi
12933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12934 if test -n "$PKG_CONFIG"; then
12935 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12936 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12937 else
12938 { echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6; }
12940 fi
12941
12942
12943 fi
12944
12945 if test "$PKG_CONFIG" = "no" ; then
12946 HAVE_FC=no
12947 else
12948 PKG_CONFIG_MIN_VERSION=0.9.0
12949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12950 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12951 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12952
12953 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12954 { echo "$as_me:$LINENO: result: yes" >&5
12955 echo "${ECHO_T}yes" >&6; }
12956 succeeded=yes
12957
12958 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12959 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12960 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12961 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12962 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12963
12964 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12965 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12966 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12967 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12968 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12969 else
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12972 FONTCONFIG_CFLAGS=""
12973 FONTCONFIG_LIBS=""
12974 ## If we have a custom action on failure, don't print errors, but
12975 ## do set a variable so people can do so.
12976 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12977
12978 fi
12979
12980
12981
12982 else
12983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12985 fi
12986 fi
12987
12988 if test $succeeded = yes; then
12989 HAVE_FC=yes
12990 else
12991 HAVE_FC=no
12992 fi
12993
12994 if test "${HAVE_FC}" = "no"; then
12995 HAVE_FREETYPE=no
12996 fi
12997 fi
12998 fi
12999 if test "${HAVE_FREETYPE}" = "yes"; then
13000
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_FREETYPE 1
13003 _ACEOF
13004
13005 # Extract the first word of "libotf-config", so it can be a program name with args.
13006 set dummy libotf-config; ac_word=$2
13007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13009 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012 if test -n "$HAVE_LIBOTF"; then
13013 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13014 else
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_prog_HAVE_LIBOTF="yes"
13023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026 done
13027 done
13028 IFS=$as_save_IFS
13029
13030 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13031 fi
13032 fi
13033 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13034 if test -n "$HAVE_LIBOTF"; then
13035 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13036 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13037 else
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13040 fi
13041
13042
13043 if test "${HAVE_LIBOTF}" = "yes"; then
13044
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_LIBOTF 1
13047 _ACEOF
13048
13049 LIBOTF_CFLAGS=`libotf-config --cflags`
13050 LIBOTF_LIBS=`libotf-config --libs`
13051 fi
13052 fi
13053
13054
13055
13056
13057
13058
13059
13060 fi
13061
13062 ### Use -lXpm if available, unless `--with-xpm=no'.
13063 HAVE_XPM=no
13064 if test "${HAVE_X11}" = "yes"; then
13065 if test "${with_xpm}" != "no"; then
13066 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13067 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13068 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 fi
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13074 else
13075 # Is the header compilable?
13076 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13077 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13078 cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h. */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 $ac_includes_default
13085 #include <X11/xpm.h>
13086 _ACEOF
13087 rm -f conftest.$ac_objext
13088 if { (ac_try="$ac_compile"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_compile") 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } && {
13101 test -z "$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13103 } && test -s conftest.$ac_objext; then
13104 ac_header_compiler=yes
13105 else
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 ac_header_compiler=no
13110 fi
13111
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114 echo "${ECHO_T}$ac_header_compiler" >&6; }
13115
13116 # Is the header present?
13117 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13118 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <X11/xpm.h>
13126 _ACEOF
13127 if { (ac_try="$ac_cpp conftest.$ac_ext"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev/null && {
13140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 }; then
13143 ac_header_preproc=yes
13144 else
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 ac_header_preproc=no
13149 fi
13150
13151 rm -f conftest.err conftest.$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13153 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154
13155 # So? What about this header?
13156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 yes:no: )
13158 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13159 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13161 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13162 ac_header_preproc=yes
13163 ;;
13164 no:yes:* )
13165 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13170 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13172 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13174 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13176 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13177
13178 ;;
13179 esac
13180 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13181 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13182 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 ac_cv_header_X11_xpm_h=$ac_header_preproc
13186 fi
13187 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13188 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13189
13190 fi
13191 if test $ac_cv_header_X11_xpm_h = yes; then
13192 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13193 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13194 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 else
13197 ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lXpm -lX11 $LIBS"
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13209 #ifdef __cplusplus
13210 extern "C"
13211 #endif
13212 char XpmReadFileToPixmap ();
13213 int
13214 main ()
13215 {
13216 return XpmReadFileToPixmap ();
13217 ;
13218 return 0;
13219 }
13220 _ACEOF
13221 rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (ac_try="$ac_link"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226 esac
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_link") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest$ac_exeext &&
13238 $as_test_x conftest$ac_exeext; then
13239 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13240 else
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13245 fi
13246
13247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13250 fi
13251 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13252 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13253 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13254 HAVE_XPM=yes
13255 fi
13256
13257 fi
13258
13259
13260 if test "${HAVE_XPM}" = "yes"; then
13261 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13262 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 #include "X11/xpm.h"
13270 #ifndef XpmReturnAllocPixels
13271 no_return_alloc_pixels
13272 #endif
13273
13274 _ACEOF
13275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13276 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13277 HAVE_XPM=no
13278 else
13279 HAVE_XPM=yes
13280 fi
13281 rm -f conftest*
13282
13283
13284 if test "${HAVE_XPM}" = "yes"; then
13285 { echo "$as_me:$LINENO: result: yes" >&5
13286 echo "${ECHO_T}yes" >&6; }
13287 else
13288 { echo "$as_me:$LINENO: result: no" >&5
13289 echo "${ECHO_T}no" >&6; }
13290 fi
13291 fi
13292 fi
13293
13294 if test "${HAVE_XPM}" = "yes"; then
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_XPM 1
13298 _ACEOF
13299
13300 fi
13301 fi
13302
13303 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13304 HAVE_JPEG=no
13305 if test "${HAVE_X11}" = "yes"; then
13306 if test "${with_jpeg}" != "no"; then
13307 if test "${ac_cv_header_jerror_h+set}" = set; then
13308 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13309 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13310 if test "${ac_cv_header_jerror_h+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 fi
13313 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13314 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13315 else
13316 # Is the header compilable?
13317 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13318 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h. */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 $ac_includes_default
13326 #include <jerror.h>
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_compile") 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest.$ac_objext; then
13345 ac_header_compiler=yes
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350 ac_header_compiler=no
13351 fi
13352
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13355 echo "${ECHO_T}$ac_header_compiler" >&6; }
13356
13357 # Is the header present?
13358 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13359 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
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 #include <jerror.h>
13367 _ACEOF
13368 if { (ac_try="$ac_cpp conftest.$ac_ext"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } >/dev/null && {
13381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13382 test ! -s conftest.err
13383 }; then
13384 ac_header_preproc=yes
13385 else
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 ac_header_preproc=no
13390 fi
13391
13392 rm -f conftest.err conftest.$ac_ext
13393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13394 echo "${ECHO_T}$ac_header_preproc" >&6; }
13395
13396 # So? What about this header?
13397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13398 yes:no: )
13399 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13400 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13401 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13402 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13403 ac_header_preproc=yes
13404 ;;
13405 no:yes:* )
13406 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13407 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13409 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13411 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13413 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13415 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13417 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13418
13419 ;;
13420 esac
13421 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13422 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13423 if test "${ac_cv_header_jerror_h+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 ac_cv_header_jerror_h=$ac_header_preproc
13427 fi
13428 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13429 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13430
13431 fi
13432 if test $ac_cv_header_jerror_h = yes; then
13433 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13434 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13435 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438 ac_check_lib_save_LIBS=$LIBS
13439 LIBS="-ljpeg $LIBS"
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h. */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446
13447 /* Override any GCC internal prototype to avoid an error.
13448 Use char because int might match the return type of a GCC
13449 builtin and then its argument prototype would still apply. */
13450 #ifdef __cplusplus
13451 extern "C"
13452 #endif
13453 char jpeg_destroy_compress ();
13454 int
13455 main ()
13456 {
13457 return jpeg_destroy_compress ();
13458 ;
13459 return 0;
13460 }
13461 _ACEOF
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>conftest.er1
13470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && {
13476 test -z "$ac_c_werror_flag" ||
13477 test ! -s conftest.err
13478 } && test -s conftest$ac_exeext &&
13479 $as_test_x conftest$ac_exeext; then
13480 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13481 else
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13486 fi
13487
13488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13489 conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13491 fi
13492 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13493 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13494 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13495 HAVE_JPEG=yes
13496 fi
13497
13498 fi
13499
13500
13501 fi
13502
13503
13504 if test "${HAVE_JPEG}" = "yes"; then
13505 cat >>confdefs.h <<\_ACEOF
13506 #define HAVE_JPEG 1
13507 _ACEOF
13508
13509 cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <jpeglib.h>
13516 version=JPEG_LIB_VERSION
13517
13518 _ACEOF
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_JPEG 1
13523 _ACEOF
13524
13525 else
13526 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13527 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13528 HAVE_JPEG=no
13529 fi
13530 rm -f conftest*
13531
13532 fi
13533 fi
13534
13535 ### Use -lpng if available, unless `--with-png=no'.
13536 HAVE_PNG=no
13537 if test "${HAVE_X11}" = "yes"; then
13538 if test "${with_png}" != "no"; then
13539 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13540 # in /usr/include/libpng.
13541
13542
13543 for ac_header in png.h libpng/png.h
13544 do
13545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 fi
13552 ac_res=`eval echo '${'$as_ac_Header'}'`
13553 { echo "$as_me:$LINENO: result: $ac_res" >&5
13554 echo "${ECHO_T}$ac_res" >&6; }
13555 else
13556 # Is the header compilable?
13557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 #include <$ac_header>
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.$ac_objext; then
13585 ac_header_compiler=yes
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13589
13590 ac_header_compiler=no
13591 fi
13592
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13595 echo "${ECHO_T}$ac_header_compiler" >&6; }
13596
13597 # Is the header present?
13598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h. */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 #include <$ac_header>
13607 _ACEOF
13608 if { (ac_try="$ac_cpp conftest.$ac_ext"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612 esac
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } >/dev/null && {
13621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 }; then
13624 ac_header_preproc=yes
13625 else
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_header_preproc=no
13630 fi
13631
13632 rm -f conftest.err conftest.$ac_ext
13633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13634 echo "${ECHO_T}$ac_header_preproc" >&6; }
13635
13636 # So? What about this header?
13637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13638 yes:no: )
13639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13643 ac_header_preproc=yes
13644 ;;
13645 no:yes:* )
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13658
13659 ;;
13660 esac
13661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 else
13666 eval "$as_ac_Header=\$ac_header_preproc"
13667 fi
13668 ac_res=`eval echo '${'$as_ac_Header'}'`
13669 { echo "$as_me:$LINENO: result: $ac_res" >&5
13670 echo "${ECHO_T}$ac_res" >&6; }
13671
13672 fi
13673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13674 cat >>confdefs.h <<_ACEOF
13675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13676 _ACEOF
13677
13678 fi
13679
13680 done
13681
13682 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13683 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13684 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13685 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lpng -lz -lm $LIBS"
13690 cat >conftest.$ac_ext <<_ACEOF
13691 /* confdefs.h. */
13692 _ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char png_get_channels ();
13704 int
13705 main ()
13706 {
13707 return png_get_channels ();
13708 ;
13709 return 0;
13710 }
13711 _ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (ac_try="$ac_link"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717 esac
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest$ac_exeext &&
13729 $as_test_x conftest$ac_exeext; then
13730 ac_cv_lib_png_png_get_channels=yes
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_cv_lib_png_png_get_channels=no
13736 fi
13737
13738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13739 conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13741 fi
13742 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13743 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13744 if test $ac_cv_lib_png_png_get_channels = yes; then
13745 HAVE_PNG=yes
13746 fi
13747
13748 fi
13749 fi
13750
13751 if test "${HAVE_PNG}" = "yes"; then
13752
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_PNG 1
13755 _ACEOF
13756
13757 fi
13758 fi
13759
13760 ### Use -ltiff if available, unless `--with-tiff=no'.
13761 HAVE_TIFF=no
13762 if test "${HAVE_X11}" = "yes"; then
13763 if test "${with_tiff}" != "no"; then
13764 if test "${ac_cv_header_tiffio_h+set}" = set; then
13765 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13766 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13767 if test "${ac_cv_header_tiffio_h+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 fi
13770 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13771 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13772 else
13773 # Is the header compilable?
13774 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13775 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13783 #include <tiffio.h>
13784 _ACEOF
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_compile") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest.$ac_objext; then
13802 ac_header_compiler=yes
13803 else
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_header_compiler=no
13808 fi
13809
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13812 echo "${ECHO_T}$ac_header_compiler" >&6; }
13813
13814 # Is the header present?
13815 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13816 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 #include <tiffio.h>
13824 _ACEOF
13825 if { (ac_try="$ac_cpp conftest.$ac_ext"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null && {
13838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 }; then
13841 ac_header_preproc=yes
13842 else
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_header_preproc=no
13847 fi
13848
13849 rm -f conftest.err conftest.$ac_ext
13850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13851 echo "${ECHO_T}$ac_header_preproc" >&6; }
13852
13853 # So? What about this header?
13854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13855 yes:no: )
13856 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13857 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13859 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13860 ac_header_preproc=yes
13861 ;;
13862 no:yes:* )
13863 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13864 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13866 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13868 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13870 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13872 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13874 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13875
13876 ;;
13877 esac
13878 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13879 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13880 if test "${ac_cv_header_tiffio_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883 ac_cv_header_tiffio_h=$ac_header_preproc
13884 fi
13885 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13886 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13887
13888 fi
13889 if test $ac_cv_header_tiffio_h = yes; then
13890 tifflibs="-lz -lm"
13891 # At least one tiff package requires the jpeg library.
13892 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13893 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13894 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13895 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 ac_check_lib_save_LIBS=$LIBS
13899 LIBS="-ltiff $tifflibs $LIBS"
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char TIFFGetVersion ();
13914 int
13915 main ()
13916 {
13917 return TIFFGetVersion ();
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest$ac_exeext &&
13939 $as_test_x conftest$ac_exeext; then
13940 ac_cv_lib_tiff_TIFFGetVersion=yes
13941 else
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945 ac_cv_lib_tiff_TIFFGetVersion=no
13946 fi
13947
13948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13951 fi
13952 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13953 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13954 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13955 HAVE_TIFF=yes
13956 fi
13957
13958 fi
13959
13960
13961 fi
13962
13963 if test "${HAVE_TIFF}" = "yes"; then
13964
13965 cat >>confdefs.h <<\_ACEOF
13966 #define HAVE_TIFF 1
13967 _ACEOF
13968
13969 fi
13970 fi
13971
13972 ### Use -lgif if available, unless `--with-gif=no'.
13973 HAVE_GIF=no
13974 if test "${HAVE_X11}" = "yes"; then
13975 if test "${with_gif}" != "no"; then
13976 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13977 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13978 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13979 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 fi
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13984 else
13985 # Is the header compilable?
13986 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13987 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13988 cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h. */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 $ac_includes_default
13995 #include <gif_lib.h>
13996 _ACEOF
13997 rm -f conftest.$ac_objext
13998 if { (ac_try="$ac_compile"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002 esac
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_compile") 2>conftest.er1
14005 ac_status=$?
14006 grep -v '^ *+' conftest.er1 >conftest.err
14007 rm -f conftest.er1
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest.$ac_objext; then
14014 ac_header_compiler=yes
14015 else
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019 ac_header_compiler=no
14020 fi
14021
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14024 echo "${ECHO_T}$ac_header_compiler" >&6; }
14025
14026 # Is the header present?
14027 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14028 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h. */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 #include <gif_lib.h>
14036 _ACEOF
14037 if { (ac_try="$ac_cpp conftest.$ac_ext"
14038 case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14044 ac_status=$?
14045 grep -v '^ *+' conftest.er1 >conftest.err
14046 rm -f conftest.er1
14047 cat conftest.err >&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } >/dev/null && {
14050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14052 }; then
14053 ac_header_preproc=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058 ac_header_preproc=no
14059 fi
14060
14061 rm -f conftest.err conftest.$ac_ext
14062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6; }
14064
14065 # So? What about this header?
14066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14067 yes:no: )
14068 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14071 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14072 ac_header_preproc=yes
14073 ;;
14074 no:yes:* )
14075 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14076 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14078 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14080 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14082 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14084 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14086 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14087
14088 ;;
14089 esac
14090 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14091 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14092 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095 ac_cv_header_gif_lib_h=$ac_header_preproc
14096 fi
14097 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14098 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14099
14100 fi
14101 if test $ac_cv_header_gif_lib_h = yes; then
14102 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14103 # Earlier versions can crash Emacs.
14104 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14105 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14106 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109 ac_check_lib_save_LIBS=$LIBS
14110 LIBS="-lungif $LIBS"
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117
14118 /* Override any GCC internal prototype to avoid an error.
14119 Use char because int might match the return type of a GCC
14120 builtin and then its argument prototype would still apply. */
14121 #ifdef __cplusplus
14122 extern "C"
14123 #endif
14124 char EGifPutExtensionLast ();
14125 int
14126 main ()
14127 {
14128 return EGifPutExtensionLast ();
14129 ;
14130 return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext conftest$ac_exeext
14134 if { (ac_try="$ac_link"
14135 case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_link") 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest$ac_exeext &&
14150 $as_test_x conftest$ac_exeext; then
14151 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14152 else
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_cv_lib_ungif_EGifPutExtensionLast=no
14157 fi
14158
14159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14160 conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14162 fi
14163 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14164 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14165 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14166 HAVE_GIF=yes
14167 fi
14168
14169 fi
14170
14171
14172 fi
14173
14174 if test "${HAVE_GIF}" = "yes"; then
14175
14176 cat >>confdefs.h <<\_ACEOF
14177 #define HAVE_GIF 1
14178 _ACEOF
14179
14180 fi
14181 fi
14182
14183 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14184 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14185 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14186 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 fi
14189 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14190 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14191 else
14192 # Is the header compilable?
14193 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14194 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14202 #include <malloc/malloc.h>
14203 _ACEOF
14204 rm -f conftest.$ac_objext
14205 if { (ac_try="$ac_compile"
14206 case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_compile") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest.$ac_objext; then
14221 ac_header_compiler=yes
14222 else
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 ac_header_compiler=no
14227 fi
14228
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14231 echo "${ECHO_T}$ac_header_compiler" >&6; }
14232
14233 # Is the header present?
14234 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14235 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h. */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 #include <malloc/malloc.h>
14243 _ACEOF
14244 if { (ac_try="$ac_cpp conftest.$ac_ext"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248 esac
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } >/dev/null && {
14257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 }; then
14260 ac_header_preproc=yes
14261 else
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 ac_header_preproc=no
14266 fi
14267
14268 rm -f conftest.err conftest.$ac_ext
14269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14270 echo "${ECHO_T}$ac_header_preproc" >&6; }
14271
14272 # So? What about this header?
14273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14274 yes:no: )
14275 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14276 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14278 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14279 ac_header_preproc=yes
14280 ;;
14281 no:yes:* )
14282 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14283 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14285 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14287 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14289 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14291 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14293 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14294
14295 ;;
14296 esac
14297 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14298 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14299 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14303 fi
14304 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14305 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14306
14307 fi
14308 if test $ac_cv_header_malloc_malloc_h = yes; then
14309
14310 cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_MALLOC_MALLOC_H 1
14312 _ACEOF
14313
14314 fi
14315
14316
14317
14318 ### Use Mac OS X Carbon API to implement GUI.
14319 if test "${HAVE_CARBON}" = "yes"; then
14320
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_CARBON 1
14323 _ACEOF
14324
14325 ## Specify the install directory
14326 carbon_appdir=
14327 if test "${carbon_appdir_x}" != ""; then
14328 case ${carbon_appdir_x} in
14329 y | ye | yes) carbon_appdir=/Applications ;;
14330 * ) carbon_appdir=${carbon_appdir_x} ;;
14331 esac
14332 fi
14333 # We also have mouse menus.
14334 HAVE_MENUS=yes
14335 fi
14336
14337 ### Use session management (-lSM -lICE) if available
14338 HAVE_X_SM=no
14339 if test "${HAVE_X11}" = "yes"; then
14340 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14341 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14342 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14343 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 fi
14346 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14347 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14348 else
14349 # Is the header compilable?
14350 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14351 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14359 #include <X11/SM/SMlib.h>
14360 _ACEOF
14361 rm -f conftest.$ac_objext
14362 if { (ac_try="$ac_compile"
14363 case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366 esac
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_compile") 2>conftest.er1
14369 ac_status=$?
14370 grep -v '^ *+' conftest.er1 >conftest.err
14371 rm -f conftest.er1
14372 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && {
14375 test -z "$ac_c_werror_flag" ||
14376 test ! -s conftest.err
14377 } && test -s conftest.$ac_objext; then
14378 ac_header_compiler=yes
14379 else
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 ac_header_compiler=no
14384 fi
14385
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14388 echo "${ECHO_T}$ac_header_compiler" >&6; }
14389
14390 # Is the header present?
14391 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14392 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14393 cat >conftest.$ac_ext <<_ACEOF
14394 /* confdefs.h. */
14395 _ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <X11/SM/SMlib.h>
14400 _ACEOF
14401 if { (ac_try="$ac_cpp conftest.$ac_ext"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14408 ac_status=$?
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } >/dev/null && {
14414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 }; then
14417 ac_header_preproc=yes
14418 else
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422 ac_header_preproc=no
14423 fi
14424
14425 rm -f conftest.err conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427 echo "${ECHO_T}$ac_header_preproc" >&6; }
14428
14429 # So? What about this header?
14430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431 yes:no: )
14432 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14433 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14435 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14437 ;;
14438 no:yes:* )
14439 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14440 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14442 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14444 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14446 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14448 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14450 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14451
14452 ;;
14453 esac
14454 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14455 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14456 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14460 fi
14461 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14462 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14463
14464 fi
14465 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14466 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14467 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14468 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471 ac_check_lib_save_LIBS=$LIBS
14472 LIBS="-lSM -lICE $LIBS"
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479
14480 /* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14483 #ifdef __cplusplus
14484 extern "C"
14485 #endif
14486 char SmcOpenConnection ();
14487 int
14488 main ()
14489 {
14490 return SmcOpenConnection ();
14491 ;
14492 return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } && {
14509 test -z "$ac_c_werror_flag" ||
14510 test ! -s conftest.err
14511 } && test -s conftest$ac_exeext &&
14512 $as_test_x conftest$ac_exeext; then
14513 ac_cv_lib_SM_SmcOpenConnection=yes
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_cv_lib_SM_SmcOpenConnection=no
14519 fi
14520
14521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14522 conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14524 fi
14525 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14526 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14527 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14528 HAVE_X_SM=yes
14529 fi
14530
14531 fi
14532
14533
14534
14535 if test "${HAVE_X_SM}" = "yes"; then
14536
14537 cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_X_SM 1
14539 _ACEOF
14540
14541 case "$LIBS" in
14542 *-lSM*) ;;
14543 *) LIBS="-lSM -lICE $LIBS" ;;
14544 esac
14545 fi
14546 fi
14547
14548 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14549 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14550 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14551 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h. */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 #include <netdb.h>
14561 int
14562 main ()
14563 {
14564 return h_errno;
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_link") 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest$ac_exeext &&
14586 $as_test_x conftest$ac_exeext; then
14587 emacs_cv_netdb_declares_h_errno=yes
14588 else
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 emacs_cv_netdb_declares_h_errno=no
14593 fi
14594
14595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14596 conftest$ac_exeext conftest.$ac_ext
14597 fi
14598 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14599 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14600 if test $emacs_cv_netdb_declares_h_errno = yes; then
14601
14602 cat >>confdefs.h <<\_ACEOF
14603 #define HAVE_H_ERRNO 1
14604 _ACEOF
14605
14606 fi
14607
14608 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14609 # for constant arguments. Useless!
14610 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14611 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_working_alloca_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <alloca.h>
14622 int
14623 main ()
14624 {
14625 char *p = (char *) alloca (2 * sizeof (int));
14626 if (p) return 0;
14627 ;
14628 return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext conftest$ac_exeext
14632 if { (ac_try="$ac_link"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_link") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest$ac_exeext &&
14648 $as_test_x conftest$ac_exeext; then
14649 ac_cv_working_alloca_h=yes
14650 else
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_cv_working_alloca_h=no
14655 fi
14656
14657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14658 conftest$ac_exeext conftest.$ac_ext
14659 fi
14660 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14661 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14662 if test $ac_cv_working_alloca_h = yes; then
14663
14664 cat >>confdefs.h <<\_ACEOF
14665 #define HAVE_ALLOCA_H 1
14666 _ACEOF
14667
14668 fi
14669
14670 { echo "$as_me:$LINENO: checking for alloca" >&5
14671 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14672 if test "${ac_cv_func_alloca_works+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #ifdef __GNUC__
14682 # define alloca __builtin_alloca
14683 #else
14684 # ifdef _MSC_VER
14685 # include <malloc.h>
14686 # define alloca _alloca
14687 # else
14688 # ifdef HAVE_ALLOCA_H
14689 # include <alloca.h>
14690 # else
14691 # ifdef _AIX
14692 #pragma alloca
14693 # else
14694 # ifndef alloca /* predefined by HP cc +Olibcalls */
14695 char *alloca ();
14696 # endif
14697 # endif
14698 # endif
14699 # endif
14700 #endif
14701
14702 int
14703 main ()
14704 {
14705 char *p = (char *) alloca (1);
14706 if (p) return 0;
14707 ;
14708 return 0;
14709 }
14710 _ACEOF
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (ac_try="$ac_link"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_link") 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest$ac_exeext &&
14728 $as_test_x conftest$ac_exeext; then
14729 ac_cv_func_alloca_works=yes
14730 else
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 ac_cv_func_alloca_works=no
14735 fi
14736
14737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14738 conftest$ac_exeext conftest.$ac_ext
14739 fi
14740 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14741 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14742
14743 if test $ac_cv_func_alloca_works = yes; then
14744
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_ALLOCA 1
14747 _ACEOF
14748
14749 else
14750 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14751 # that cause trouble. Some versions do not even contain alloca or
14752 # contain a buggy version. If you still want to use their alloca,
14753 # use ar to extract alloca.o from them instead of compiling alloca.c.
14754
14755 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define C_ALLOCA 1
14759 _ACEOF
14760
14761
14762 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14763 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14764 if test "${ac_cv_os_cray+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767 cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h. */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 #if defined CRAY && ! defined CRAY2
14774 webecray
14775 #else
14776 wenotbecray
14777 #endif
14778
14779 _ACEOF
14780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14781 $EGREP "webecray" >/dev/null 2>&1; then
14782 ac_cv_os_cray=yes
14783 else
14784 ac_cv_os_cray=no
14785 fi
14786 rm -f conftest*
14787
14788 fi
14789 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14790 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14791 if test $ac_cv_os_cray = yes; then
14792 for ac_func in _getb67 GETB67 getb67; do
14793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h. */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807 #define $ac_func innocuous_$ac_func
14808
14809 /* System header to define __stub macros and hopefully few prototypes,
14810 which can conflict with char $ac_func (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14813
14814 #ifdef __STDC__
14815 # include <limits.h>
14816 #else
14817 # include <assert.h>
14818 #endif
14819
14820 #undef $ac_func
14821
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char $ac_func ();
14829 /* The GNU C library defines this for functions which it implements
14830 to always fail with ENOSYS. Some functions are actually named
14831 something starting with __ and the normal name is an alias. */
14832 #if defined __stub_$ac_func || defined __stub___$ac_func
14833 choke me
14834 #endif
14835
14836 int
14837 main ()
14838 {
14839 return $ac_func ();
14840 ;
14841 return 0;
14842 }
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_link") 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest$ac_exeext &&
14861 $as_test_x conftest$ac_exeext; then
14862 eval "$as_ac_var=yes"
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14866
14867 eval "$as_ac_var=no"
14868 fi
14869
14870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14871 conftest$ac_exeext conftest.$ac_ext
14872 fi
14873 ac_res=`eval echo '${'$as_ac_var'}'`
14874 { echo "$as_me:$LINENO: result: $ac_res" >&5
14875 echo "${ECHO_T}$ac_res" >&6; }
14876 if test `eval echo '${'$as_ac_var'}'` = yes; then
14877
14878 cat >>confdefs.h <<_ACEOF
14879 #define CRAY_STACKSEG_END $ac_func
14880 _ACEOF
14881
14882 break
14883 fi
14884
14885 done
14886 fi
14887
14888 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14889 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14890 if test "${ac_cv_c_stack_direction+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893 if test "$cross_compiling" = yes; then
14894 ac_cv_c_stack_direction=0
14895 else
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h. */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 int
14904 find_stack_direction ()
14905 {
14906 static char *addr = 0;
14907 auto char dummy;
14908 if (addr == 0)
14909 {
14910 addr = &dummy;
14911 return find_stack_direction ();
14912 }
14913 else
14914 return (&dummy > addr) ? 1 : -1;
14915 }
14916
14917 int
14918 main ()
14919 {
14920 return find_stack_direction () < 0;
14921 }
14922 _ACEOF
14923 rm -f conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928 esac
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_link") 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_c_stack_direction=1
14944 else
14945 echo "$as_me: program exited with status $ac_status" >&5
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 ( exit $ac_status )
14950 ac_cv_c_stack_direction=-1
14951 fi
14952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14953 fi
14954
14955
14956 fi
14957 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14958 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14959
14960 cat >>confdefs.h <<_ACEOF
14961 #define STACK_DIRECTION $ac_cv_c_stack_direction
14962 _ACEOF
14963
14964
14965 fi
14966
14967
14968 # fmod, logb, and frexp are found in -lm on most systems.
14969 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14970
14971 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14972 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14973 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976 ac_check_lib_save_LIBS=$LIBS
14977 LIBS="-lm $LIBS"
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h. */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14984
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
14988 #ifdef __cplusplus
14989 extern "C"
14990 #endif
14991 char sqrt ();
14992 int
14993 main ()
14994 {
14995 return sqrt ();
14996 ;
14997 return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_link") 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest$ac_exeext &&
15017 $as_test_x conftest$ac_exeext; then
15018 ac_cv_lib_m_sqrt=yes
15019 else
15020 echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023 ac_cv_lib_m_sqrt=no
15024 fi
15025
15026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15027 conftest$ac_exeext conftest.$ac_ext
15028 LIBS=$ac_check_lib_save_LIBS
15029 fi
15030 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15031 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15032 if test $ac_cv_lib_m_sqrt = yes; then
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_LIBM 1
15035 _ACEOF
15036
15037 LIBS="-lm $LIBS"
15038
15039 fi
15040
15041
15042 # Check for mail-locking functions in a "mail" library. Probably this should
15043 # have the same check as for liblockfile below.
15044
15045 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15046 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15047 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050 ac_check_lib_save_LIBS=$LIBS
15051 LIBS="-lmail $LIBS"
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058
15059 /* Override any GCC internal prototype to avoid an error.
15060 Use char because int might match the return type of a GCC
15061 builtin and then its argument prototype would still apply. */
15062 #ifdef __cplusplus
15063 extern "C"
15064 #endif
15065 char maillock ();
15066 int
15067 main ()
15068 {
15069 return maillock ();
15070 ;
15071 return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext &&
15091 $as_test_x conftest$ac_exeext; then
15092 ac_cv_lib_mail_maillock=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 ac_cv_lib_mail_maillock=no
15098 fi
15099
15100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15103 fi
15104 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15105 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15106 if test $ac_cv_lib_mail_maillock = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_LIBMAIL 1
15109 _ACEOF
15110
15111 LIBS="-lmail $LIBS"
15112
15113 fi
15114
15115
15116 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15117 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15118 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-llockfile $LIBS"
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char maillock ();
15137 int
15138 main ()
15139 {
15140 return maillock ();
15141 ;
15142 return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_link") 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } && {
15159 test -z "$ac_c_werror_flag" ||
15160 test ! -s conftest.err
15161 } && test -s conftest$ac_exeext &&
15162 $as_test_x conftest$ac_exeext; then
15163 ac_cv_lib_lockfile_maillock=yes
15164 else
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 ac_cv_lib_lockfile_maillock=no
15169 fi
15170
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172 conftest$ac_exeext conftest.$ac_ext
15173 LIBS=$ac_check_lib_save_LIBS
15174 fi
15175 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15176 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15177 if test $ac_cv_lib_lockfile_maillock = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_LIBLOCKFILE 1
15180 _ACEOF
15181
15182 LIBS="-llockfile $LIBS"
15183
15184 fi
15185
15186 # If we have the shared liblockfile, assume we must use it for mail
15187 # locking (e.g. Debian). If we couldn't link against liblockfile
15188 # (no liblockfile.a installed), ensure that we don't need to.
15189 if test "$ac_cv_lib_lockfile_maillock" = no; then
15190 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15191 set dummy liblockfile.so; ac_word=$2
15192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15194 if test "${ac_cv_prog_liblockfile+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 if test -n "$liblockfile"; then
15198 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15199 else
15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15202 for as_dir in $as_dummy
15203 do
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15208 ac_cv_prog_liblockfile="yes"
15209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 break 2
15211 fi
15212 done
15213 done
15214 IFS=$as_save_IFS
15215
15216 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15217 fi
15218 fi
15219 liblockfile=$ac_cv_prog_liblockfile
15220 if test -n "$liblockfile"; then
15221 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15222 echo "${ECHO_T}$liblockfile" >&6; }
15223 else
15224 { echo "$as_me:$LINENO: result: no" >&5
15225 echo "${ECHO_T}no" >&6; }
15226 fi
15227
15228
15229 if test $ac_cv_prog_liblockfile = yes; then
15230 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15231 This probably means that movemail could lose mail.
15232 There may be a \`development' package to install containing liblockfile." >&5
15233 echo "$as_me: error: Shared liblockfile found but can't link against it.
15234 This probably means that movemail could lose mail.
15235 There may be a \`development' package to install containing liblockfile." >&2;}
15236 { (exit 1); exit 1; }; }
15237 else :
15238 fi
15239 fi
15240
15241 for ac_func in touchlock
15242 do
15243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15257 #define $ac_func innocuous_$ac_func
15258
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func (); below.
15261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 <limits.h> exists even on freestanding compilers. */
15263
15264 #ifdef __STDC__
15265 # include <limits.h>
15266 #else
15267 # include <assert.h>
15268 #endif
15269
15270 #undef $ac_func
15271
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char $ac_func ();
15279 /* The GNU C library defines this for functions which it implements
15280 to always fail with ENOSYS. Some functions are actually named
15281 something starting with __ and the normal name is an alias. */
15282 #if defined __stub_$ac_func || defined __stub___$ac_func
15283 choke me
15284 #endif
15285
15286 int
15287 main ()
15288 {
15289 return $ac_func ();
15290 ;
15291 return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } && {
15308 test -z "$ac_c_werror_flag" ||
15309 test ! -s conftest.err
15310 } && test -s conftest$ac_exeext &&
15311 $as_test_x conftest$ac_exeext; then
15312 eval "$as_ac_var=yes"
15313 else
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 eval "$as_ac_var=no"
15318 fi
15319
15320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15321 conftest$ac_exeext conftest.$ac_ext
15322 fi
15323 ac_res=`eval echo '${'$as_ac_var'}'`
15324 { echo "$as_me:$LINENO: result: $ac_res" >&5
15325 echo "${ECHO_T}$ac_res" >&6; }
15326 if test `eval echo '${'$as_ac_var'}'` = yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15329 _ACEOF
15330
15331 fi
15332 done
15333
15334
15335 for ac_header in maillock.h
15336 do
15337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 fi
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15347 else
15348 # Is the header compilable?
15349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 $ac_includes_default
15358 #include <$ac_header>
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (ac_try="$ac_compile"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365 esac
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_compile") 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && {
15374 test -z "$ac_c_werror_flag" ||
15375 test ! -s conftest.err
15376 } && test -s conftest.$ac_objext; then
15377 ac_header_compiler=yes
15378 else
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382 ac_header_compiler=no
15383 fi
15384
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15387 echo "${ECHO_T}$ac_header_compiler" >&6; }
15388
15389 # Is the header present?
15390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <$ac_header>
15399 _ACEOF
15400 if { (ac_try="$ac_cpp conftest.$ac_ext"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15407 ac_status=$?
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } >/dev/null && {
15413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15414 test ! -s conftest.err
15415 }; then
15416 ac_header_preproc=yes
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15420
15421 ac_header_preproc=no
15422 fi
15423
15424 rm -f conftest.err conftest.$ac_ext
15425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15426 echo "${ECHO_T}$ac_header_preproc" >&6; }
15427
15428 # So? What about this header?
15429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15430 yes:no: )
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15435 ac_header_preproc=yes
15436 ;;
15437 no:yes:* )
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15450
15451 ;;
15452 esac
15453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 eval "$as_ac_Header=\$ac_header_preproc"
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463
15464 fi
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15468 _ACEOF
15469
15470 fi
15471
15472 done
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544 for ac_func in gethostname getdomainname dup2 \
15545 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15546 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15547 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15548 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15549 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15550 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15551 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15552 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15553 do
15554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15568 #define $ac_func innocuous_$ac_func
15569
15570 /* System header to define __stub macros and hopefully few prototypes,
15571 which can conflict with char $ac_func (); below.
15572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15573 <limits.h> exists even on freestanding compilers. */
15574
15575 #ifdef __STDC__
15576 # include <limits.h>
15577 #else
15578 # include <assert.h>
15579 #endif
15580
15581 #undef $ac_func
15582
15583 /* Override any GCC internal prototype to avoid an error.
15584 Use char because int might match the return type of a GCC
15585 builtin and then its argument prototype would still apply. */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 char $ac_func ();
15590 /* The GNU C library defines this for functions which it implements
15591 to always fail with ENOSYS. Some functions are actually named
15592 something starting with __ and the normal name is an alias. */
15593 #if defined __stub_$ac_func || defined __stub___$ac_func
15594 choke me
15595 #endif
15596
15597 int
15598 main ()
15599 {
15600 return $ac_func ();
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 rm -f conftest.$ac_objext conftest$ac_exeext
15606 if { (ac_try="$ac_link"
15607 case "(($ac_try" in
15608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609 *) ac_try_echo=$ac_try;;
15610 esac
15611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15612 (eval "$ac_link") 2>conftest.er1
15613 ac_status=$?
15614 grep -v '^ *+' conftest.er1 >conftest.err
15615 rm -f conftest.er1
15616 cat conftest.err >&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } && {
15619 test -z "$ac_c_werror_flag" ||
15620 test ! -s conftest.err
15621 } && test -s conftest$ac_exeext &&
15622 $as_test_x conftest$ac_exeext; then
15623 eval "$as_ac_var=yes"
15624 else
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15627
15628 eval "$as_ac_var=no"
15629 fi
15630
15631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15632 conftest$ac_exeext conftest.$ac_ext
15633 fi
15634 ac_res=`eval echo '${'$as_ac_var'}'`
15635 { echo "$as_me:$LINENO: result: $ac_res" >&5
15636 echo "${ECHO_T}$ac_res" >&6; }
15637 if test `eval echo '${'$as_ac_var'}'` = yes; then
15638 cat >>confdefs.h <<_ACEOF
15639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15640 _ACEOF
15641
15642 fi
15643 done
15644
15645
15646
15647 for ac_header in sys/un.h
15648 do
15649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15654 echo $ECHO_N "(cached) $ECHO_C" >&6
15655 fi
15656 ac_res=`eval echo '${'$as_ac_Header'}'`
15657 { echo "$as_me:$LINENO: result: $ac_res" >&5
15658 echo "${ECHO_T}$ac_res" >&6; }
15659 else
15660 # Is the header compilable?
15661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 $ac_includes_default
15670 #include <$ac_header>
15671 _ACEOF
15672 rm -f conftest.$ac_objext
15673 if { (ac_try="$ac_compile"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15677 esac
15678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_compile") 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } && {
15686 test -z "$ac_c_werror_flag" ||
15687 test ! -s conftest.err
15688 } && test -s conftest.$ac_objext; then
15689 ac_header_compiler=yes
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 ac_header_compiler=no
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15699 echo "${ECHO_T}$ac_header_compiler" >&6; }
15700
15701 # Is the header present?
15702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h. */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 #include <$ac_header>
15711 _ACEOF
15712 if { (ac_try="$ac_cpp conftest.$ac_ext"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15719 ac_status=$?
15720 grep -v '^ *+' conftest.er1 >conftest.err
15721 rm -f conftest.er1
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } >/dev/null && {
15725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 }; then
15728 ac_header_preproc=yes
15729 else
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 ac_header_preproc=no
15734 fi
15735
15736 rm -f conftest.err conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15738 echo "${ECHO_T}$ac_header_preproc" >&6; }
15739
15740 # So? What about this header?
15741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15742 yes:no: )
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15747 ac_header_preproc=yes
15748 ;;
15749 no:yes:* )
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15762
15763 ;;
15764 esac
15765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770 eval "$as_ac_Header=\$ac_header_preproc"
15771 fi
15772 ac_res=`eval echo '${'$as_ac_Header'}'`
15773 { echo "$as_me:$LINENO: result: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15775
15776 fi
15777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15780 _ACEOF
15781
15782 fi
15783
15784 done
15785
15786
15787
15788
15789
15790
15791 for ac_header in $ac_header_list
15792 do
15793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 fi
15800 ac_res=`eval echo '${'$as_ac_Header'}'`
15801 { echo "$as_me:$LINENO: result: $ac_res" >&5
15802 echo "${ECHO_T}$ac_res" >&6; }
15803 else
15804 # Is the header compilable?
15805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h. */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 $ac_includes_default
15814 #include <$ac_header>
15815 _ACEOF
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_compile") 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest.$ac_objext; then
15833 ac_header_compiler=yes
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15837
15838 ac_header_compiler=no
15839 fi
15840
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15843 echo "${ECHO_T}$ac_header_compiler" >&6; }
15844
15845 # Is the header present?
15846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <$ac_header>
15855 _ACEOF
15856 if { (ac_try="$ac_cpp conftest.$ac_ext"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15860 esac
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } >/dev/null && {
15869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15870 test ! -s conftest.err
15871 }; then
15872 ac_header_preproc=yes
15873 else
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877 ac_header_preproc=no
15878 fi
15879
15880 rm -f conftest.err conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15882 echo "${ECHO_T}$ac_header_preproc" >&6; }
15883
15884 # So? What about this header?
15885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15886 yes:no: )
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15891 ac_header_preproc=yes
15892 ;;
15893 no:yes:* )
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15906
15907 ;;
15908 esac
15909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 eval "$as_ac_Header=\$ac_header_preproc"
15915 fi
15916 ac_res=`eval echo '${'$as_ac_Header'}'`
15917 { echo "$as_me:$LINENO: result: $ac_res" >&5
15918 echo "${ECHO_T}$ac_res" >&6; }
15919
15920 fi
15921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15922 cat >>confdefs.h <<_ACEOF
15923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15924 _ACEOF
15925
15926 fi
15927
15928 done
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938 for ac_func in $ac_func_list
15939 do
15940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15954 #define $ac_func innocuous_$ac_func
15955
15956 /* System header to define __stub macros and hopefully few prototypes,
15957 which can conflict with char $ac_func (); below.
15958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15959 <limits.h> exists even on freestanding compilers. */
15960
15961 #ifdef __STDC__
15962 # include <limits.h>
15963 #else
15964 # include <assert.h>
15965 #endif
15966
15967 #undef $ac_func
15968
15969 /* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 char $ac_func ();
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined __stub_$ac_func || defined __stub___$ac_func
15980 choke me
15981 #endif
15982
15983 int
15984 main ()
15985 {
15986 return $ac_func ();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_link") 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest$ac_exeext &&
16008 $as_test_x conftest$ac_exeext; then
16009 eval "$as_ac_var=yes"
16010 else
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 eval "$as_ac_var=no"
16015 fi
16016
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018 conftest$ac_exeext conftest.$ac_ext
16019 fi
16020 ac_res=`eval echo '${'$as_ac_var'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_var'}'` = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16026 _ACEOF
16027
16028 fi
16029 done
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047 { echo "$as_me:$LINENO: checking for working mktime" >&5
16048 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16049 if test "${ac_cv_func_working_mktime+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052 if test "$cross_compiling" = yes; then
16053 ac_cv_func_working_mktime=no
16054 else
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 /* Test program from Paul Eggert and Tony Leneis. */
16062 #ifdef TIME_WITH_SYS_TIME
16063 # include <sys/time.h>
16064 # include <time.h>
16065 #else
16066 # ifdef HAVE_SYS_TIME_H
16067 # include <sys/time.h>
16068 # else
16069 # include <time.h>
16070 # endif
16071 #endif
16072
16073 #include <stdlib.h>
16074
16075 #ifdef HAVE_UNISTD_H
16076 # include <unistd.h>
16077 #endif
16078
16079 #ifndef HAVE_ALARM
16080 # define alarm(X) /* empty */
16081 #endif
16082
16083 /* Work around redefinition to rpl_putenv by other config tests. */
16084 #undef putenv
16085
16086 static time_t time_t_max;
16087 static time_t time_t_min;
16088
16089 /* Values we'll use to set the TZ environment variable. */
16090 static char *tz_strings[] = {
16091 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16092 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16093 };
16094 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16095
16096 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16097 Based on a problem report from Andreas Jaeger. */
16098 static int
16099 spring_forward_gap ()
16100 {
16101 /* glibc (up to about 1998-10-07) failed this test. */
16102 struct tm tm;
16103
16104 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16105 instead of "TZ=America/Vancouver" in order to detect the bug even
16106 on systems that don't support the Olson extension, or don't have the
16107 full zoneinfo tables installed. */
16108 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16109
16110 tm.tm_year = 98;
16111 tm.tm_mon = 3;
16112 tm.tm_mday = 5;
16113 tm.tm_hour = 2;
16114 tm.tm_min = 0;
16115 tm.tm_sec = 0;
16116 tm.tm_isdst = -1;
16117 return mktime (&tm) != (time_t) -1;
16118 }
16119
16120 static int
16121 mktime_test1 (now)
16122 time_t now;
16123 {
16124 struct tm *lt;
16125 return ! (lt = localtime (&now)) || mktime (lt) == now;
16126 }
16127
16128 static int
16129 mktime_test (now)
16130 time_t now;
16131 {
16132 return (mktime_test1 (now)
16133 && mktime_test1 ((time_t) (time_t_max - now))
16134 && mktime_test1 ((time_t) (time_t_min + now)));
16135 }
16136
16137 static int
16138 irix_6_4_bug ()
16139 {
16140 /* Based on code from Ariel Faigon. */
16141 struct tm tm;
16142 tm.tm_year = 96;
16143 tm.tm_mon = 3;
16144 tm.tm_mday = 0;
16145 tm.tm_hour = 0;
16146 tm.tm_min = 0;
16147 tm.tm_sec = 0;
16148 tm.tm_isdst = -1;
16149 mktime (&tm);
16150 return tm.tm_mon == 2 && tm.tm_mday == 31;
16151 }
16152
16153 static int
16154 bigtime_test (j)
16155 int j;
16156 {
16157 struct tm tm;
16158 time_t now;
16159 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16160 now = mktime (&tm);
16161 if (now != (time_t) -1)
16162 {
16163 struct tm *lt = localtime (&now);
16164 if (! (lt
16165 && lt->tm_year == tm.tm_year
16166 && lt->tm_mon == tm.tm_mon
16167 && lt->tm_mday == tm.tm_mday
16168 && lt->tm_hour == tm.tm_hour
16169 && lt->tm_min == tm.tm_min
16170 && lt->tm_sec == tm.tm_sec
16171 && lt->tm_yday == tm.tm_yday
16172 && lt->tm_wday == tm.tm_wday
16173 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16174 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16175 return 0;
16176 }
16177 return 1;
16178 }
16179
16180 static int
16181 year_2050_test ()
16182 {
16183 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16184 ignoring leap seconds. */
16185 unsigned long int answer = 2527315200UL;
16186
16187 struct tm tm;
16188 time_t t;
16189 tm.tm_year = 2050 - 1900;
16190 tm.tm_mon = 2 - 1;
16191 tm.tm_mday = 1;
16192 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16193 tm.tm_isdst = -1;
16194
16195 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16196 instead of "TZ=America/Vancouver" in order to detect the bug even
16197 on systems that don't support the Olson extension, or don't have the
16198 full zoneinfo tables installed. */
16199 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16200
16201 t = mktime (&tm);
16202
16203 /* Check that the result is either a failure, or close enough
16204 to the correct answer that we can assume the discrepancy is
16205 due to leap seconds. */
16206 return (t == (time_t) -1
16207 || (0 < t && answer - 120 <= t && t <= answer + 120));
16208 }
16209
16210 int
16211 main ()
16212 {
16213 time_t t, delta;
16214 int i, j;
16215
16216 /* This test makes some buggy mktime implementations loop.
16217 Give up after 60 seconds; a mktime slower than that
16218 isn't worth using anyway. */
16219 alarm (60);
16220
16221 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16222 continue;
16223 time_t_max--;
16224 if ((time_t) -1 < 0)
16225 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16226 continue;
16227 delta = time_t_max / 997; /* a suitable prime number */
16228 for (i = 0; i < N_STRINGS; i++)
16229 {
16230 if (tz_strings[i])
16231 putenv (tz_strings[i]);
16232
16233 for (t = 0; t <= time_t_max - delta; t += delta)
16234 if (! mktime_test (t))
16235 return 1;
16236 if (! (mktime_test ((time_t) 1)
16237 && mktime_test ((time_t) (60 * 60))
16238 && mktime_test ((time_t) (60 * 60 * 24))))
16239 return 1;
16240
16241 for (j = 1; 0 < j; j *= 2)
16242 if (! bigtime_test (j))
16243 return 1;
16244 if (! bigtime_test (j - 1))
16245 return 1;
16246 }
16247 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16248 }
16249 _ACEOF
16250 rm -f conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_link") 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_func_working_mktime=yes
16271 else
16272 echo "$as_me: program exited with status $ac_status" >&5
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 ( exit $ac_status )
16277 ac_cv_func_working_mktime=no
16278 fi
16279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16280 fi
16281
16282
16283 fi
16284 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16285 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16286 if test $ac_cv_func_working_mktime = no; then
16287 case " $LIBOBJS " in
16288 *" mktime.$ac_objext "* ) ;;
16289 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16290 ;;
16291 esac
16292
16293 fi
16294
16295 if test "$ac_cv_func_working_mktime" = no; then
16296
16297 cat >>confdefs.h <<\_ACEOF
16298 #define BROKEN_MKTIME 1
16299 _ACEOF
16300
16301 fi
16302
16303 ac_have_func=no # yes means we've found a way to get the load average.
16304
16305 # Make sure getloadavg.c is where it belongs, at configure-time.
16306 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16307 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16308 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16309 { (exit 1); exit 1; }; }
16310
16311 ac_save_LIBS=$LIBS
16312
16313 # Check for getloadavg, but be sure not to touch the cache variable.
16314 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16315 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16316 if test "${ac_cv_func_getloadavg+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16327 #define getloadavg innocuous_getloadavg
16328
16329 /* System header to define __stub macros and hopefully few prototypes,
16330 which can conflict with char getloadavg (); below.
16331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16332 <limits.h> exists even on freestanding compilers. */
16333
16334 #ifdef __STDC__
16335 # include <limits.h>
16336 #else
16337 # include <assert.h>
16338 #endif
16339
16340 #undef getloadavg
16341
16342 /* Override any GCC internal prototype to avoid an error.
16343 Use char because int might match the return type of a GCC
16344 builtin and then its argument prototype would still apply. */
16345 #ifdef __cplusplus
16346 extern "C"
16347 #endif
16348 char getloadavg ();
16349 /* The GNU C library defines this for functions which it implements
16350 to always fail with ENOSYS. Some functions are actually named
16351 something starting with __ and the normal name is an alias. */
16352 #if defined __stub_getloadavg || defined __stub___getloadavg
16353 choke me
16354 #endif
16355
16356 int
16357 main ()
16358 {
16359 return getloadavg ();
16360 ;
16361 return 0;
16362 }
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_link") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext &&
16381 $as_test_x conftest$ac_exeext; then
16382 ac_cv_func_getloadavg=yes
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 ac_cv_func_getloadavg=no
16388 fi
16389
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391 conftest$ac_exeext conftest.$ac_ext
16392 fi
16393 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16394 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16395 if test $ac_cv_func_getloadavg = yes; then
16396 exit 0
16397 else
16398 exit 1
16399 fi
16400 ) && ac_have_func=yes
16401
16402 # On HPUX9, an unprivileged user can get load averages through this function.
16403
16404 for ac_func in pstat_getdynamic
16405 do
16406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h. */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16421
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16426
16427 #ifdef __STDC__
16428 # include <limits.h>
16429 #else
16430 # include <assert.h>
16431 #endif
16432
16433 #undef $ac_func
16434
16435 /* Override any GCC internal prototype to avoid an error.
16436 Use char because int might match the return type of a GCC
16437 builtin and then its argument prototype would still apply. */
16438 #ifdef __cplusplus
16439 extern "C"
16440 #endif
16441 char $ac_func ();
16442 /* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445 #if defined __stub_$ac_func || defined __stub___$ac_func
16446 choke me
16447 #endif
16448
16449 int
16450 main ()
16451 {
16452 return $ac_func ();
16453 ;
16454 return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16465 ac_status=$?
16466 grep -v '^ *+' conftest.er1 >conftest.err
16467 rm -f conftest.er1
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest$ac_exeext &&
16474 $as_test_x conftest$ac_exeext; then
16475 eval "$as_ac_var=yes"
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 eval "$as_ac_var=no"
16481 fi
16482
16483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16484 conftest$ac_exeext conftest.$ac_ext
16485 fi
16486 ac_res=`eval echo '${'$as_ac_var'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492 _ACEOF
16493
16494 fi
16495 done
16496
16497
16498 # Solaris has libkstat which does not require root.
16499
16500 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16501 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16502 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lkstat $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16517 #ifdef __cplusplus
16518 extern "C"
16519 #endif
16520 char kstat_open ();
16521 int
16522 main ()
16523 {
16524 return kstat_open ();
16525 ;
16526 return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext &&
16546 $as_test_x conftest$ac_exeext; then
16547 ac_cv_lib_kstat_kstat_open=yes
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552 ac_cv_lib_kstat_kstat_open=no
16553 fi
16554
16555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16556 conftest$ac_exeext conftest.$ac_ext
16557 LIBS=$ac_check_lib_save_LIBS
16558 fi
16559 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16560 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16561 if test $ac_cv_lib_kstat_kstat_open = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define HAVE_LIBKSTAT 1
16564 _ACEOF
16565
16566 LIBS="-lkstat $LIBS"
16567
16568 fi
16569
16570 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16571
16572 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16573 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16574 # to get the right answer into the cache.
16575 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16576 if test $ac_have_func = no; then
16577 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16578 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16579 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582 ac_check_lib_save_LIBS=$LIBS
16583 LIBS="-lelf $LIBS"
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16594 #ifdef __cplusplus
16595 extern "C"
16596 #endif
16597 char elf_begin ();
16598 int
16599 main ()
16600 {
16601 return elf_begin ();
16602 ;
16603 return 0;
16604 }
16605 _ACEOF
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (ac_try="$ac_link"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } && {
16620 test -z "$ac_c_werror_flag" ||
16621 test ! -s conftest.err
16622 } && test -s conftest$ac_exeext &&
16623 $as_test_x conftest$ac_exeext; then
16624 ac_cv_lib_elf_elf_begin=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 ac_cv_lib_elf_elf_begin=no
16630 fi
16631
16632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16633 conftest$ac_exeext conftest.$ac_ext
16634 LIBS=$ac_check_lib_save_LIBS
16635 fi
16636 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16637 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16638 if test $ac_cv_lib_elf_elf_begin = yes; then
16639 LIBS="-lelf $LIBS"
16640 fi
16641
16642 fi
16643 if test $ac_have_func = no; then
16644 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16645 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16646 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649 ac_check_lib_save_LIBS=$LIBS
16650 LIBS="-lkvm $LIBS"
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16661 #ifdef __cplusplus
16662 extern "C"
16663 #endif
16664 char kvm_open ();
16665 int
16666 main ()
16667 {
16668 return kvm_open ();
16669 ;
16670 return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_link") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest$ac_exeext &&
16690 $as_test_x conftest$ac_exeext; then
16691 ac_cv_lib_kvm_kvm_open=yes
16692 else
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696 ac_cv_lib_kvm_kvm_open=no
16697 fi
16698
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS=$ac_check_lib_save_LIBS
16702 fi
16703 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16704 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16705 if test $ac_cv_lib_kvm_kvm_open = yes; then
16706 LIBS="-lkvm $LIBS"
16707 fi
16708
16709 # Check for the 4.4BSD definition of getloadavg.
16710 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16711 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16712 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715 ac_check_lib_save_LIBS=$LIBS
16716 LIBS="-lutil $LIBS"
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16727 #ifdef __cplusplus
16728 extern "C"
16729 #endif
16730 char getloadavg ();
16731 int
16732 main ()
16733 {
16734 return getloadavg ();
16735 ;
16736 return 0;
16737 }
16738 _ACEOF
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (ac_try="$ac_link"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_link") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } && {
16753 test -z "$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 } && test -s conftest$ac_exeext &&
16756 $as_test_x conftest$ac_exeext; then
16757 ac_cv_lib_util_getloadavg=yes
16758 else
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ac_cv_lib_util_getloadavg=no
16763 fi
16764
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766 conftest$ac_exeext conftest.$ac_ext
16767 LIBS=$ac_check_lib_save_LIBS
16768 fi
16769 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16770 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16771 if test $ac_cv_lib_util_getloadavg = yes; then
16772 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16773 fi
16774
16775 fi
16776
16777 if test $ac_have_func = no; then
16778 # There is a commonly available library for RS/6000 AIX.
16779 # Since it is not a standard part of AIX, it might be installed locally.
16780 ac_getloadavg_LIBS=$LIBS
16781 LIBS="-L/usr/local/lib $LIBS"
16782 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16783 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16784 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-lgetloadavg $LIBS"
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 char getloadavg ();
16803 int
16804 main ()
16805 {
16806 return getloadavg ();
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest$ac_exeext &&
16828 $as_test_x conftest$ac_exeext; then
16829 ac_cv_lib_getloadavg_getloadavg=yes
16830 else
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_cv_lib_getloadavg_getloadavg=no
16835 fi
16836
16837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LIBS=$ac_check_lib_save_LIBS
16840 fi
16841 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16842 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16843 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16844 LIBS="-lgetloadavg $LIBS"
16845 else
16846 LIBS=$ac_getloadavg_LIBS
16847 fi
16848
16849 fi
16850
16851 # Make sure it is really in the library, if we think we found it,
16852 # otherwise set up the replacement function.
16853
16854 for ac_func in getloadavg
16855 do
16856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862 cat >conftest.$ac_ext <<_ACEOF
16863 /* confdefs.h. */
16864 _ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16870 #define $ac_func innocuous_$ac_func
16871
16872 /* System header to define __stub macros and hopefully few prototypes,
16873 which can conflict with char $ac_func (); below.
16874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16875 <limits.h> exists even on freestanding compilers. */
16876
16877 #ifdef __STDC__
16878 # include <limits.h>
16879 #else
16880 # include <assert.h>
16881 #endif
16882
16883 #undef $ac_func
16884
16885 /* Override any GCC internal prototype to avoid an error.
16886 Use char because int might match the return type of a GCC
16887 builtin and then its argument prototype would still apply. */
16888 #ifdef __cplusplus
16889 extern "C"
16890 #endif
16891 char $ac_func ();
16892 /* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895 #if defined __stub_$ac_func || defined __stub___$ac_func
16896 choke me
16897 #endif
16898
16899 int
16900 main ()
16901 {
16902 return $ac_func ();
16903 ;
16904 return 0;
16905 }
16906 _ACEOF
16907 rm -f conftest.$ac_objext conftest$ac_exeext
16908 if { (ac_try="$ac_link"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_link") 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } && {
16921 test -z "$ac_c_werror_flag" ||
16922 test ! -s conftest.err
16923 } && test -s conftest$ac_exeext &&
16924 $as_test_x conftest$ac_exeext; then
16925 eval "$as_ac_var=yes"
16926 else
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 eval "$as_ac_var=no"
16931 fi
16932
16933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16934 conftest$ac_exeext conftest.$ac_ext
16935 fi
16936 ac_res=`eval echo '${'$as_ac_var'}'`
16937 { echo "$as_me:$LINENO: result: $ac_res" >&5
16938 echo "${ECHO_T}$ac_res" >&6; }
16939 if test `eval echo '${'$as_ac_var'}'` = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16942 _ACEOF
16943
16944 else
16945 case " $LIBOBJS " in
16946 *" getloadavg.$ac_objext "* ) ;;
16947 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16948 ;;
16949 esac
16950
16951
16952 cat >>confdefs.h <<\_ACEOF
16953 #define C_GETLOADAVG 1
16954 _ACEOF
16955
16956 # Figure out what our getloadavg.c needs.
16957 ac_have_func=no
16958 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16959 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16960 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16961 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 fi
16964 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16965 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16966 else
16967 # Is the header compilable?
16968 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16969 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h. */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 $ac_includes_default
16977 #include <sys/dg_sys_info.h>
16978 _ACEOF
16979 rm -f conftest.$ac_objext
16980 if { (ac_try="$ac_compile"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_compile") 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && {
16993 test -z "$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16995 } && test -s conftest.$ac_objext; then
16996 ac_header_compiler=yes
16997 else
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_header_compiler=no
17002 fi
17003
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17006 echo "${ECHO_T}$ac_header_compiler" >&6; }
17007
17008 # Is the header present?
17009 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17010 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17011 cat >conftest.$ac_ext <<_ACEOF
17012 /* confdefs.h. */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 #include <sys/dg_sys_info.h>
17018 _ACEOF
17019 if { (ac_try="$ac_cpp conftest.$ac_ext"
17020 case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } >/dev/null && {
17032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17034 }; then
17035 ac_header_preproc=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 ac_header_preproc=no
17041 fi
17042
17043 rm -f conftest.err conftest.$ac_ext
17044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17045 echo "${ECHO_T}$ac_header_preproc" >&6; }
17046
17047 # So? What about this header?
17048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17049 yes:no: )
17050 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17051 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17052 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17053 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17054 ac_header_preproc=yes
17055 ;;
17056 no:yes:* )
17057 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17058 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17059 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17060 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17061 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17062 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17064 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17066 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17068 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17069
17070 ;;
17071 esac
17072 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17073 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17074 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17078 fi
17079 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17080 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17081
17082 fi
17083 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17084 ac_have_func=yes
17085
17086 cat >>confdefs.h <<\_ACEOF
17087 #define DGUX 1
17088 _ACEOF
17089
17090
17091 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17092 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17093 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096 ac_check_lib_save_LIBS=$LIBS
17097 LIBS="-ldgc $LIBS"
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104
17105 /* Override any GCC internal prototype to avoid an error.
17106 Use char because int might match the return type of a GCC
17107 builtin and then its argument prototype would still apply. */
17108 #ifdef __cplusplus
17109 extern "C"
17110 #endif
17111 char dg_sys_info ();
17112 int
17113 main ()
17114 {
17115 return dg_sys_info ();
17116 ;
17117 return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext &&
17137 $as_test_x conftest$ac_exeext; then
17138 ac_cv_lib_dgc_dg_sys_info=yes
17139 else
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 ac_cv_lib_dgc_dg_sys_info=no
17144 fi
17145
17146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17147 conftest$ac_exeext conftest.$ac_ext
17148 LIBS=$ac_check_lib_save_LIBS
17149 fi
17150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17151 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17152 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_LIBDGC 1
17155 _ACEOF
17156
17157 LIBS="-ldgc $LIBS"
17158
17159 fi
17160
17161 fi
17162
17163
17164
17165 if test "${ac_cv_header_locale_h+set}" = set; then
17166 { echo "$as_me:$LINENO: checking for locale.h" >&5
17167 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17168 if test "${ac_cv_header_locale_h+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 fi
17171 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17172 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17173 else
17174 # Is the header compilable?
17175 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17176 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h. */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 $ac_includes_default
17184 #include <locale.h>
17185 _ACEOF
17186 rm -f conftest.$ac_objext
17187 if { (ac_try="$ac_compile"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17191 esac
17192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } && {
17200 test -z "$ac_c_werror_flag" ||
17201 test ! -s conftest.err
17202 } && test -s conftest.$ac_objext; then
17203 ac_header_compiler=yes
17204 else
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17207
17208 ac_header_compiler=no
17209 fi
17210
17211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17213 echo "${ECHO_T}$ac_header_compiler" >&6; }
17214
17215 # Is the header present?
17216 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17217 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h. */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #include <locale.h>
17225 _ACEOF
17226 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
17239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 }; then
17242 ac_header_preproc=yes
17243 else
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ac_header_preproc=no
17248 fi
17249
17250 rm -f conftest.err conftest.$ac_ext
17251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17252 echo "${ECHO_T}$ac_header_preproc" >&6; }
17253
17254 # So? What about this header?
17255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17256 yes:no: )
17257 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17258 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17260 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17261 ac_header_preproc=yes
17262 ;;
17263 no:yes:* )
17264 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17265 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17267 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17269 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17271 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17272 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17273 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17274 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17275 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17276
17277 ;;
17278 esac
17279 { echo "$as_me:$LINENO: checking for locale.h" >&5
17280 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17281 if test "${ac_cv_header_locale_h+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284 ac_cv_header_locale_h=$ac_header_preproc
17285 fi
17286 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17287 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17288
17289 fi
17290
17291
17292
17293 for ac_func in setlocale
17294 do
17295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 else
17301 cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h. */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309 #define $ac_func innocuous_$ac_func
17310
17311 /* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char $ac_func (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
17315
17316 #ifdef __STDC__
17317 # include <limits.h>
17318 #else
17319 # include <assert.h>
17320 #endif
17321
17322 #undef $ac_func
17323
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17327 #ifdef __cplusplus
17328 extern "C"
17329 #endif
17330 char $ac_func ();
17331 /* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334 #if defined __stub_$ac_func || defined __stub___$ac_func
17335 choke me
17336 #endif
17337
17338 int
17339 main ()
17340 {
17341 return $ac_func ();
17342 ;
17343 return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351 esac
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } && {
17360 test -z "$ac_c_werror_flag" ||
17361 test ! -s conftest.err
17362 } && test -s conftest$ac_exeext &&
17363 $as_test_x conftest$ac_exeext; then
17364 eval "$as_ac_var=yes"
17365 else
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369 eval "$as_ac_var=no"
17370 fi
17371
17372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17373 conftest$ac_exeext conftest.$ac_ext
17374 fi
17375 ac_res=`eval echo '${'$as_ac_var'}'`
17376 { echo "$as_me:$LINENO: result: $ac_res" >&5
17377 echo "${ECHO_T}$ac_res" >&6; }
17378 if test `eval echo '${'$as_ac_var'}'` = yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17381 _ACEOF
17382
17383 fi
17384 done
17385
17386
17387 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17388 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17389 # Irix 4.0.5F has the header but not the library.
17390 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17391 ac_have_func=yes
17392
17393 cat >>confdefs.h <<\_ACEOF
17394 #define SVR4 1
17395 _ACEOF
17396
17397 fi
17398
17399 if test $ac_have_func = no; then
17400 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17401 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17402 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17403 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 fi
17406 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17407 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17408 else
17409 # Is the header compilable?
17410 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17411 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17419 #include <inq_stats/cpustats.h>
17420 _ACEOF
17421 rm -f conftest.$ac_objext
17422 if { (ac_try="$ac_compile"
17423 case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_compile") 2>conftest.er1
17429 ac_status=$?
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest.$ac_objext; then
17438 ac_header_compiler=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ac_header_compiler=no
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17448 echo "${ECHO_T}$ac_header_compiler" >&6; }
17449
17450 # Is the header present?
17451 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17452 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 #include <inq_stats/cpustats.h>
17460 _ACEOF
17461 if { (ac_try="$ac_cpp conftest.$ac_ext"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } >/dev/null && {
17474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 }; then
17477 ac_header_preproc=yes
17478 else
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482 ac_header_preproc=no
17483 fi
17484
17485 rm -f conftest.err conftest.$ac_ext
17486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17487 echo "${ECHO_T}$ac_header_preproc" >&6; }
17488
17489 # So? What about this header?
17490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17491 yes:no: )
17492 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17493 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17495 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17496 ac_header_preproc=yes
17497 ;;
17498 no:yes:* )
17499 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17500 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17501 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17502 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17503 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17504 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17506 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17507 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17508 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17509 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17510 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17511
17512 ;;
17513 esac
17514 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17515 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17516 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17520 fi
17521 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17522 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17523
17524 fi
17525 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17526 ac_have_func=yes
17527
17528 cat >>confdefs.h <<\_ACEOF
17529 #define UMAX 1
17530 _ACEOF
17531
17532
17533 cat >>confdefs.h <<\_ACEOF
17534 #define UMAX4_3 1
17535 _ACEOF
17536
17537 fi
17538
17539
17540 fi
17541
17542 if test $ac_have_func = no; then
17543 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17544 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17545 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17546 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 fi
17549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17550 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17551 else
17552 # Is the header compilable?
17553 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17554 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17555 cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h. */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 $ac_includes_default
17562 #include <sys/cpustats.h>
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_compile") 2>conftest.er1
17572 ac_status=$?
17573 grep -v '^ *+' conftest.er1 >conftest.err
17574 rm -f conftest.er1
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } && {
17578 test -z "$ac_c_werror_flag" ||
17579 test ! -s conftest.err
17580 } && test -s conftest.$ac_objext; then
17581 ac_header_compiler=yes
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586 ac_header_compiler=no
17587 fi
17588
17589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17591 echo "${ECHO_T}$ac_header_compiler" >&6; }
17592
17593 # Is the header present?
17594 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17595 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 #include <sys/cpustats.h>
17603 _ACEOF
17604 if { (ac_try="$ac_cpp conftest.$ac_ext"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17611 ac_status=$?
17612 grep -v '^ *+' conftest.er1 >conftest.err
17613 rm -f conftest.er1
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } >/dev/null && {
17617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17619 }; then
17620 ac_header_preproc=yes
17621 else
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 ac_header_preproc=no
17626 fi
17627
17628 rm -f conftest.err conftest.$ac_ext
17629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17630 echo "${ECHO_T}$ac_header_preproc" >&6; }
17631
17632 # So? What about this header?
17633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17634 yes:no: )
17635 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17636 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17637 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17638 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17639 ac_header_preproc=yes
17640 ;;
17641 no:yes:* )
17642 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17643 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17645 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17646 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17647 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17649 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17650 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17651 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17652 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17653 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17654
17655 ;;
17656 esac
17657 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17658 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17659 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17663 fi
17664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17665 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17666
17667 fi
17668 if test $ac_cv_header_sys_cpustats_h = yes; then
17669 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17670 #define UMAX 1
17671 _ACEOF
17672
17673 fi
17674
17675
17676 fi
17677
17678 if test $ac_have_func = no; then
17679
17680 for ac_header in mach/mach.h
17681 do
17682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 fi
17689 ac_res=`eval echo '${'$as_ac_Header'}'`
17690 { echo "$as_me:$LINENO: result: $ac_res" >&5
17691 echo "${ECHO_T}$ac_res" >&6; }
17692 else
17693 # Is the header compilable?
17694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 $ac_includes_default
17703 #include <$ac_header>
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_compile") 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } && {
17719 test -z "$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17721 } && test -s conftest.$ac_objext; then
17722 ac_header_compiler=yes
17723 else
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_header_compiler=no
17728 fi
17729
17730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17732 echo "${ECHO_T}$ac_header_compiler" >&6; }
17733
17734 # Is the header present?
17735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 #include <$ac_header>
17744 _ACEOF
17745 if { (ac_try="$ac_cpp conftest.$ac_ext"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } >/dev/null && {
17758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 }; then
17761 ac_header_preproc=yes
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 ac_header_preproc=no
17767 fi
17768
17769 rm -f conftest.err conftest.$ac_ext
17770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17771 echo "${ECHO_T}$ac_header_preproc" >&6; }
17772
17773 # So? What about this header?
17774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17775 yes:no: )
17776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17780 ac_header_preproc=yes
17781 ;;
17782 no:yes:* )
17783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17795
17796 ;;
17797 esac
17798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 else
17803 eval "$as_ac_Header=\$ac_header_preproc"
17804 fi
17805 ac_res=`eval echo '${'$as_ac_Header'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808
17809 fi
17810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17813 _ACEOF
17814
17815 fi
17816
17817 done
17818
17819 fi
17820
17821
17822 for ac_header in nlist.h
17823 do
17824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 fi
17831 ac_res=`eval echo '${'$as_ac_Header'}'`
17832 { echo "$as_me:$LINENO: result: $ac_res" >&5
17833 echo "${ECHO_T}$ac_res" >&6; }
17834 else
17835 # Is the header compilable?
17836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17838 cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h. */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 $ac_includes_default
17845 #include <$ac_header>
17846 _ACEOF
17847 rm -f conftest.$ac_objext
17848 if { (ac_try="$ac_compile"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_compile") 2>conftest.er1
17855 ac_status=$?
17856 grep -v '^ *+' conftest.er1 >conftest.err
17857 rm -f conftest.er1
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest.$ac_objext; then
17864 ac_header_compiler=yes
17865 else
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869 ac_header_compiler=no
17870 fi
17871
17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17874 echo "${ECHO_T}$ac_header_compiler" >&6; }
17875
17876 # Is the header present?
17877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h. */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 #include <$ac_header>
17886 _ACEOF
17887 if { (ac_try="$ac_cpp conftest.$ac_ext"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } >/dev/null && {
17900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17901 test ! -s conftest.err
17902 }; then
17903 ac_header_preproc=yes
17904 else
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908 ac_header_preproc=no
17909 fi
17910
17911 rm -f conftest.err conftest.$ac_ext
17912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17913 echo "${ECHO_T}$ac_header_preproc" >&6; }
17914
17915 # So? What about this header?
17916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17917 yes:no: )
17918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17922 ac_header_preproc=yes
17923 ;;
17924 no:yes:* )
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17937
17938 ;;
17939 esac
17940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 else
17945 eval "$as_ac_Header=\$ac_header_preproc"
17946 fi
17947 ac_res=`eval echo '${'$as_ac_Header'}'`
17948 { echo "$as_me:$LINENO: result: $ac_res" >&5
17949 echo "${ECHO_T}$ac_res" >&6; }
17950
17951 fi
17952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17953 cat >>confdefs.h <<_ACEOF
17954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17955 _ACEOF
17956 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17957 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17958 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 else
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 #include <nlist.h>
17968
17969 int
17970 main ()
17971 {
17972 static struct nlist ac_aggr;
17973 if (ac_aggr.n_un.n_name)
17974 return 0;
17975 ;
17976 return 0;
17977 }
17978 _ACEOF
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest.$ac_objext; then
17996 ac_cv_member_struct_nlist_n_un_n_name=yes
17997 else
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18000
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 #include <nlist.h>
18008
18009 int
18010 main ()
18011 {
18012 static struct nlist ac_aggr;
18013 if (sizeof ac_aggr.n_un.n_name)
18014 return 0;
18015 ;
18016 return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest.$ac_objext; then
18036 ac_cv_member_struct_nlist_n_un_n_name=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_member_struct_nlist_n_un_n_name=no
18042 fi
18043
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 fi
18046
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18048 fi
18049 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18050 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18051 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18052
18053 cat >>confdefs.h <<_ACEOF
18054 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18055 _ACEOF
18056
18057
18058 cat >>confdefs.h <<\_ACEOF
18059 #define NLIST_NAME_UNION 1
18060 _ACEOF
18061
18062 fi
18063
18064
18065 fi
18066
18067 done
18068
18069 fi
18070 done
18071
18072
18073 # Some definitions of getloadavg require that the program be installed setgid.
18074 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18075 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18076 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079 cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h. */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18085 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18086 #ifdef LDAV_PRIVILEGED
18087 Yowza Am I SETGID yet
18088 #endif
18089 _ACEOF
18090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18091 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18092 ac_cv_func_getloadavg_setgid=yes
18093 else
18094 ac_cv_func_getloadavg_setgid=no
18095 fi
18096 rm -f conftest*
18097
18098 fi
18099 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18100 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18101 if test $ac_cv_func_getloadavg_setgid = yes; then
18102 NEED_SETGID=true
18103
18104 cat >>confdefs.h <<\_ACEOF
18105 #define GETLOADAVG_PRIVILEGED 1
18106 _ACEOF
18107
18108 else
18109 NEED_SETGID=false
18110 fi
18111
18112 if test $ac_cv_func_getloadavg_setgid = yes; then
18113 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18114 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18115 if test "${ac_cv_group_kmem+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18117 else
18118 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18119 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18120 # If we got an error (system does not support symlinks), try without -L.
18121 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18122 ac_cv_group_kmem=`echo $ac_ls_output \
18123 | sed -ne 's/[ ][ ]*/ /g;
18124 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18125 / /s/.* //;p;'`
18126
18127 fi
18128 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18129 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18130 KMEM_GROUP=$ac_cv_group_kmem
18131 fi
18132 if test "x$ac_save_LIBS" = x; then
18133 GETLOADAVG_LIBS=$LIBS
18134 else
18135 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18136 fi
18137 LIBS=$ac_save_LIBS
18138
18139
18140
18141 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18142 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18143 if test "${ac_cv_sys_largefile_source+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 while :; do
18147 cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h. */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 #include <stdio.h>
18154 int
18155 main ()
18156 {
18157 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18158 ;
18159 return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest$ac_exeext &&
18179 $as_test_x conftest$ac_exeext; then
18180 ac_cv_sys_largefile_source=no; break
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185
18186 fi
18187
18188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18189 conftest$ac_exeext conftest.$ac_ext
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h. */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 #define _LARGEFILE_SOURCE 1
18197 #include <stdio.h>
18198 int
18199 main ()
18200 {
18201 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_link") 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest$ac_exeext &&
18223 $as_test_x conftest$ac_exeext; then
18224 ac_cv_sys_largefile_source=1; break
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229
18230 fi
18231
18232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233 conftest$ac_exeext conftest.$ac_ext
18234 ac_cv_sys_largefile_source=unknown
18235 break
18236 done
18237 fi
18238 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18239 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18240 case $ac_cv_sys_largefile_source in #(
18241 no | unknown) ;;
18242 *)
18243 cat >>confdefs.h <<_ACEOF
18244 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18245 _ACEOF
18246 ;;
18247 esac
18248 rm -f conftest*
18249
18250 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18251 # in glibc 2.1.3, but that breaks too many other things.
18252 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18253 if test $ac_cv_sys_largefile_source != unknown; then
18254
18255 cat >>confdefs.h <<\_ACEOF
18256 #define HAVE_FSEEKO 1
18257 _ACEOF
18258
18259 fi
18260
18261
18262 # Configure getopt.
18263 # getopt.m4 serial 10
18264
18265 # The getopt module assume you want GNU getopt, with getopt_long etc,
18266 # rather than vanilla POSIX getopt. This means your your code should
18267 # always include <getopt.h> for the getopt prototypes.
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279 # Prerequisites of lib/getopt*.
18280
18281
18282
18283
18284 GETOPT_H=
18285
18286 for ac_header in getopt.h
18287 do
18288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294 fi
18295 ac_res=`eval echo '${'$as_ac_Header'}'`
18296 { echo "$as_me:$LINENO: result: $ac_res" >&5
18297 echo "${ECHO_T}$ac_res" >&6; }
18298 else
18299 # Is the header compilable?
18300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h. */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 $ac_includes_default
18309 #include <$ac_header>
18310 _ACEOF
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18328 ac_header_compiler=yes
18329 else
18330 echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333 ac_header_compiler=no
18334 fi
18335
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18338 echo "${ECHO_T}$ac_header_compiler" >&6; }
18339
18340 # Is the header present?
18341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18343 cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h. */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349 #include <$ac_header>
18350 _ACEOF
18351 if { (ac_try="$ac_cpp conftest.$ac_ext"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } >/dev/null && {
18364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 }; then
18367 ac_header_preproc=yes
18368 else
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372 ac_header_preproc=no
18373 fi
18374
18375 rm -f conftest.err conftest.$ac_ext
18376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18377 echo "${ECHO_T}$ac_header_preproc" >&6; }
18378
18379 # So? What about this header?
18380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18381 yes:no: )
18382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18386 ac_header_preproc=yes
18387 ;;
18388 no:yes:* )
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18401
18402 ;;
18403 esac
18404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409 eval "$as_ac_Header=\$ac_header_preproc"
18410 fi
18411 ac_res=`eval echo '${'$as_ac_Header'}'`
18412 { echo "$as_me:$LINENO: result: $ac_res" >&5
18413 echo "${ECHO_T}$ac_res" >&6; }
18414
18415 fi
18416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18417 cat >>confdefs.h <<_ACEOF
18418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18419 _ACEOF
18420
18421 else
18422 GETOPT_H=getopt.h
18423 fi
18424
18425 done
18426
18427 if test -z "$GETOPT_H"; then
18428
18429 for ac_func in getopt_long_only
18430 do
18431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h. */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18445 #define $ac_func innocuous_$ac_func
18446
18447 /* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char $ac_func (); below.
18449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 <limits.h> exists even on freestanding compilers. */
18451
18452 #ifdef __STDC__
18453 # include <limits.h>
18454 #else
18455 # include <assert.h>
18456 #endif
18457
18458 #undef $ac_func
18459
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char $ac_func ();
18467 /* The GNU C library defines this for functions which it implements
18468 to always fail with ENOSYS. Some functions are actually named
18469 something starting with __ and the normal name is an alias. */
18470 #if defined __stub_$ac_func || defined __stub___$ac_func
18471 choke me
18472 #endif
18473
18474 int
18475 main ()
18476 {
18477 return $ac_func ();
18478 ;
18479 return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18490 ac_status=$?
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_c_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest$ac_exeext &&
18499 $as_test_x conftest$ac_exeext; then
18500 eval "$as_ac_var=yes"
18501 else
18502 echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18504
18505 eval "$as_ac_var=no"
18506 fi
18507
18508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18509 conftest$ac_exeext conftest.$ac_ext
18510 fi
18511 ac_res=`eval echo '${'$as_ac_var'}'`
18512 { echo "$as_me:$LINENO: result: $ac_res" >&5
18513 echo "${ECHO_T}$ac_res" >&6; }
18514 if test `eval echo '${'$as_ac_var'}'` = yes; then
18515 cat >>confdefs.h <<_ACEOF
18516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18517 _ACEOF
18518
18519 else
18520 GETOPT_H=getopt.h
18521 fi
18522 done
18523
18524 fi
18525
18526 if test -z "$GETOPT_H"; then
18527 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18528 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18529 if test "${ac_cv_have_decl_optreset+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 #include <getopt.h>
18539
18540 int
18541 main ()
18542 {
18543 #ifndef optreset
18544 (void) optreset;
18545 #endif
18546
18547 ;
18548 return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext
18552 if { (ac_try="$ac_compile"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556 esac
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_compile") 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } && {
18565 test -z "$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 } && test -s conftest.$ac_objext; then
18568 ac_cv_have_decl_optreset=yes
18569 else
18570 echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18572
18573 ac_cv_have_decl_optreset=no
18574 fi
18575
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577 fi
18578 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18579 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18580 if test $ac_cv_have_decl_optreset = yes; then
18581 GETOPT_H=getopt.h
18582 fi
18583
18584 fi
18585
18586 if test -z "$GETOPT_H"; then
18587 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18588 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18589 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592 if test "$cross_compiling" = yes; then
18593 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18594 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18595 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598 cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h. */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18604 #include <getopt.h>
18605
18606 int
18607 main ()
18608 {
18609 #ifndef getopt_clip
18610 (void) getopt_clip;
18611 #endif
18612
18613 ;
18614 return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18625 ac_status=$?
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest.$ac_objext; then
18634 ac_cv_have_decl_getopt_clip=yes
18635 else
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 ac_cv_have_decl_getopt_clip=no
18640 fi
18641
18642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18643 fi
18644 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18645 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18646 if test $ac_cv_have_decl_getopt_clip = yes; then
18647 gl_cv_func_gnu_getopt=no
18648 else
18649 gl_cv_func_gnu_getopt=yes
18650 fi
18651
18652 else
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h. */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <getopt.h>
18660 int
18661 main ()
18662 {
18663
18664 char *myargv[3];
18665 myargv[0] = "conftest";
18666 myargv[1] = "-+";
18667 myargv[2] = 0;
18668 return getopt (2, myargv, "+a") != '?';
18669
18670 ;
18671 return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>&5
18682 ac_status=$?
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18685 { (case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_try") 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 gl_cv_func_gnu_getopt=yes
18695 else
18696 echo "$as_me: program exited with status $ac_status" >&5
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700 ( exit $ac_status )
18701 gl_cv_func_gnu_getopt=no
18702 fi
18703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18704 fi
18705
18706
18707 fi
18708 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18709 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18710 if test "$gl_cv_func_gnu_getopt" = "no"; then
18711 GETOPT_H=getopt.h
18712 fi
18713 fi
18714
18715
18716
18717 if test -n "$GETOPT_H"; then
18718
18719
18720 GETOPT_H=getopt.h
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define __GETOPT_PREFIX rpl_
18724 _ACEOF
18725
18726
18727
18728 :
18729 GETOPTOBJS='getopt.o getopt1.o'
18730
18731 fi
18732
18733
18734
18735
18736 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18737 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18738 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741 # Use it with a single arg.
18742 cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h. */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 $ac_includes_default
18749 int
18750 main ()
18751 {
18752 getpgrp (0);
18753 ;
18754 return 0;
18755 }
18756 _ACEOF
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_compile") 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest.$ac_objext; then
18774 ac_cv_func_getpgrp_void=no
18775 else
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779 ac_cv_func_getpgrp_void=yes
18780 fi
18781
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783
18784 fi
18785 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18786 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18787 if test $ac_cv_func_getpgrp_void = yes; then
18788
18789 cat >>confdefs.h <<\_ACEOF
18790 #define GETPGRP_VOID 1
18791 _ACEOF
18792
18793 fi
18794
18795
18796
18797 for ac_func in strftime
18798 do
18799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 cat >conftest.$ac_ext <<_ACEOF
18806 /* confdefs.h. */
18807 _ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18814
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18819
18820 #ifdef __STDC__
18821 # include <limits.h>
18822 #else
18823 # include <assert.h>
18824 #endif
18825
18826 #undef $ac_func
18827
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char $ac_func ();
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18839 choke me
18840 #endif
18841
18842 int
18843 main ()
18844 {
18845 return $ac_func ();
18846 ;
18847 return 0;
18848 }
18849 _ACEOF
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18858 ac_status=$?
18859 grep -v '^ *+' conftest.er1 >conftest.err
18860 rm -f conftest.er1
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest$ac_exeext &&
18867 $as_test_x conftest$ac_exeext; then
18868 eval "$as_ac_var=yes"
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 eval "$as_ac_var=no"
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18877 conftest$ac_exeext conftest.$ac_ext
18878 fi
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18885 _ACEOF
18886
18887 else
18888 # strftime is in -lintl on SCO UNIX.
18889 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18890 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18891 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894 ac_check_lib_save_LIBS=$LIBS
18895 LIBS="-lintl $LIBS"
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18906 #ifdef __cplusplus
18907 extern "C"
18908 #endif
18909 char strftime ();
18910 int
18911 main ()
18912 {
18913 return strftime ();
18914 ;
18915 return 0;
18916 }
18917 _ACEOF
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (ac_try="$ac_link"
18920 case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_link") 2>conftest.er1
18926 ac_status=$?
18927 grep -v '^ *+' conftest.er1 >conftest.err
18928 rm -f conftest.er1
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); } && {
18932 test -z "$ac_c_werror_flag" ||
18933 test ! -s conftest.err
18934 } && test -s conftest$ac_exeext &&
18935 $as_test_x conftest$ac_exeext; then
18936 ac_cv_lib_intl_strftime=yes
18937 else
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941 ac_cv_lib_intl_strftime=no
18942 fi
18943
18944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18947 fi
18948 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18949 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18950 if test $ac_cv_lib_intl_strftime = yes; then
18951 cat >>confdefs.h <<\_ACEOF
18952 #define HAVE_STRFTIME 1
18953 _ACEOF
18954
18955 LIBS="-lintl $LIBS"
18956 fi
18957
18958 fi
18959 done
18960
18961
18962 # UNIX98 PTYs.
18963
18964 for ac_func in grantpt
18965 do
18966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18980 #define $ac_func innocuous_$ac_func
18981
18982 /* System header to define __stub macros and hopefully few prototypes,
18983 which can conflict with char $ac_func (); below.
18984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18985 <limits.h> exists even on freestanding compilers. */
18986
18987 #ifdef __STDC__
18988 # include <limits.h>
18989 #else
18990 # include <assert.h>
18991 #endif
18992
18993 #undef $ac_func
18994
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
18998 #ifdef __cplusplus
18999 extern "C"
19000 #endif
19001 char $ac_func ();
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined __stub_$ac_func || defined __stub___$ac_func
19006 choke me
19007 #endif
19008
19009 int
19010 main ()
19011 {
19012 return $ac_func ();
19013 ;
19014 return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 eval "$as_ac_var=yes"
19036 else
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040 eval "$as_ac_var=no"
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19045 fi
19046 ac_res=`eval echo '${'$as_ac_var'}'`
19047 { echo "$as_me:$LINENO: result: $ac_res" >&5
19048 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_var'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19052 _ACEOF
19053
19054 fi
19055 done
19056
19057
19058 # PTY-related GNU extensions.
19059
19060 for ac_func in getpt
19061 do
19062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h. */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19076 #define $ac_func innocuous_$ac_func
19077
19078 /* System header to define __stub macros and hopefully few prototypes,
19079 which can conflict with char $ac_func (); below.
19080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19081 <limits.h> exists even on freestanding compilers. */
19082
19083 #ifdef __STDC__
19084 # include <limits.h>
19085 #else
19086 # include <assert.h>
19087 #endif
19088
19089 #undef $ac_func
19090
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char $ac_func ();
19098 /* The GNU C library defines this for functions which it implements
19099 to always fail with ENOSYS. Some functions are actually named
19100 something starting with __ and the normal name is an alias. */
19101 #if defined __stub_$ac_func || defined __stub___$ac_func
19102 choke me
19103 #endif
19104
19105 int
19106 main ()
19107 {
19108 return $ac_func ();
19109 ;
19110 return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19121 ac_status=$?
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } && {
19127 test -z "$ac_c_werror_flag" ||
19128 test ! -s conftest.err
19129 } && test -s conftest$ac_exeext &&
19130 $as_test_x conftest$ac_exeext; then
19131 eval "$as_ac_var=yes"
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19135
19136 eval "$as_ac_var=no"
19137 fi
19138
19139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19140 conftest$ac_exeext conftest.$ac_ext
19141 fi
19142 ac_res=`eval echo '${'$as_ac_var'}'`
19143 { echo "$as_me:$LINENO: result: $ac_res" >&5
19144 echo "${ECHO_T}$ac_res" >&6; }
19145 if test `eval echo '${'$as_ac_var'}'` = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19148 _ACEOF
19149
19150 fi
19151 done
19152
19153
19154 # Check this now, so that we will NOT find the above functions in ncurses.
19155 # That is because we have not set up to link ncurses in lib-src.
19156 # It's better to believe a function is not available
19157 # than to expect to find it in ncurses.
19158
19159 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19160 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164 ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lncurses $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h. */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19176 #ifdef __cplusplus
19177 extern "C"
19178 #endif
19179 char tparm ();
19180 int
19181 main ()
19182 {
19183 return tparm ();
19184 ;
19185 return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19196 ac_status=$?
19197 grep -v '^ *+' conftest.er1 >conftest.err
19198 rm -f conftest.er1
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest$ac_exeext &&
19205 $as_test_x conftest$ac_exeext; then
19206 ac_cv_lib_ncurses_tparm=yes
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_cv_lib_ncurses_tparm=no
19212 fi
19213
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215 conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19217 fi
19218 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19219 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19220 if test $ac_cv_lib_ncurses_tparm = yes; then
19221 cat >>confdefs.h <<_ACEOF
19222 #define HAVE_LIBNCURSES 1
19223 _ACEOF
19224
19225 LIBS="-lncurses $LIBS"
19226
19227 fi
19228
19229
19230 # Do we need the Hesiod library to provide the support routines?
19231 if test "$with_hesiod" = yes ; then
19232 # Don't set $LIBS here -- see comments above.
19233 resolv=no
19234 { echo "$as_me:$LINENO: checking for res_send" >&5
19235 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19236 if test "${ac_cv_func_res_send+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19247 #define res_send innocuous_res_send
19248
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char res_send (); below.
19251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19252 <limits.h> exists even on freestanding compilers. */
19253
19254 #ifdef __STDC__
19255 # include <limits.h>
19256 #else
19257 # include <assert.h>
19258 #endif
19259
19260 #undef res_send
19261
19262 /* Override any GCC internal prototype to avoid an error.
19263 Use char because int might match the return type of a GCC
19264 builtin and then its argument prototype would still apply. */
19265 #ifdef __cplusplus
19266 extern "C"
19267 #endif
19268 char res_send ();
19269 /* The GNU C library defines this for functions which it implements
19270 to always fail with ENOSYS. Some functions are actually named
19271 something starting with __ and the normal name is an alias. */
19272 #if defined __stub_res_send || defined __stub___res_send
19273 choke me
19274 #endif
19275
19276 int
19277 main ()
19278 {
19279 return res_send ();
19280 ;
19281 return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19289 esac
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_link") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest$ac_exeext &&
19301 $as_test_x conftest$ac_exeext; then
19302 ac_cv_func_res_send=yes
19303 else
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ac_cv_func_res_send=no
19308 fi
19309
19310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19311 conftest$ac_exeext conftest.$ac_ext
19312 fi
19313 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19314 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19315 if test $ac_cv_func_res_send = yes; then
19316 :
19317 else
19318 { echo "$as_me:$LINENO: checking for __res_send" >&5
19319 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19320 if test "${ac_cv_func___res_send+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define __res_send innocuous___res_send
19332
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char __res_send (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19337
19338 #ifdef __STDC__
19339 # include <limits.h>
19340 #else
19341 # include <assert.h>
19342 #endif
19343
19344 #undef __res_send
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char __res_send ();
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub___res_send || defined __stub_____res_send
19357 choke me
19358 #endif
19359
19360 int
19361 main ()
19362 {
19363 return __res_send ();
19364 ;
19365 return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 ac_cv_func___res_send=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_func___res_send=no
19392 fi
19393
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19396 fi
19397 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19398 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19399 if test $ac_cv_func___res_send = yes; then
19400 :
19401 else
19402 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19403 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lresolv $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char res_send ();
19423 int
19424 main ()
19425 {
19426 return res_send ();
19427 ;
19428 return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_resolv_res_send=yes
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 ac_cv_lib_resolv_res_send=no
19455 fi
19456
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19460 fi
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19462 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19463 if test $ac_cv_lib_resolv_res_send = yes; then
19464 resolv=yes
19465 else
19466 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19467 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19468 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lresolv $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19483 #ifdef __cplusplus
19484 extern "C"
19485 #endif
19486 char __res_send ();
19487 int
19488 main ()
19489 {
19490 return __res_send ();
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 ac_cv_lib_resolv___res_send=yes
19514 else
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_cv_lib_resolv___res_send=no
19519 fi
19520
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19524 fi
19525 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19526 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19527 if test $ac_cv_lib_resolv___res_send = yes; then
19528 resolv=yes
19529 fi
19530
19531 fi
19532
19533 fi
19534
19535 fi
19536
19537 if test "$resolv" = yes ; then
19538 RESOLVLIB=-lresolv
19539
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_LIBRESOLV 1
19542 _ACEOF
19543
19544 else
19545 RESOLVLIB=
19546 fi
19547 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19548 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19560 #define hes_getmailhost innocuous_hes_getmailhost
19561
19562 /* System header to define __stub macros and hopefully few prototypes,
19563 which can conflict with char hes_getmailhost (); below.
19564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19565 <limits.h> exists even on freestanding compilers. */
19566
19567 #ifdef __STDC__
19568 # include <limits.h>
19569 #else
19570 # include <assert.h>
19571 #endif
19572
19573 #undef hes_getmailhost
19574
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 char hes_getmailhost ();
19582 /* The GNU C library defines this for functions which it implements
19583 to always fail with ENOSYS. Some functions are actually named
19584 something starting with __ and the normal name is an alias. */
19585 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19586 choke me
19587 #endif
19588
19589 int
19590 main ()
19591 {
19592 return hes_getmailhost ();
19593 ;
19594 return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_link") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest$ac_exeext &&
19614 $as_test_x conftest$ac_exeext; then
19615 ac_cv_func_hes_getmailhost=yes
19616 else
19617 echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 ac_cv_func_hes_getmailhost=no
19621 fi
19622
19623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19624 conftest$ac_exeext conftest.$ac_ext
19625 fi
19626 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19627 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19628 if test $ac_cv_func_hes_getmailhost = yes; then
19629 :
19630 else
19631 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19632 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19633 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636 ac_check_lib_save_LIBS=$LIBS
19637 LIBS="-lhesiod $RESOLVLIB $LIBS"
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h. */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644
19645 /* Override any GCC internal prototype to avoid an error.
19646 Use char because int might match the return type of a GCC
19647 builtin and then its argument prototype would still apply. */
19648 #ifdef __cplusplus
19649 extern "C"
19650 #endif
19651 char hes_getmailhost ();
19652 int
19653 main ()
19654 {
19655 return hes_getmailhost ();
19656 ;
19657 return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (ac_try="$ac_link"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_link") 2>conftest.er1
19668 ac_status=$?
19669 grep -v '^ *+' conftest.er1 >conftest.err
19670 rm -f conftest.er1
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_c_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest$ac_exeext &&
19677 $as_test_x conftest$ac_exeext; then
19678 ac_cv_lib_hesiod_hes_getmailhost=yes
19679 else
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19682
19683 ac_cv_lib_hesiod_hes_getmailhost=no
19684 fi
19685
19686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19687 conftest$ac_exeext conftest.$ac_ext
19688 LIBS=$ac_check_lib_save_LIBS
19689 fi
19690 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19691 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19692 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19693
19694 cat >>confdefs.h <<\_ACEOF
19695 #define HAVE_LIBHESIOD 1
19696 _ACEOF
19697
19698 else
19699 :
19700 fi
19701
19702 fi
19703
19704 fi
19705
19706 # These tell us which Kerberos-related libraries to use.
19707 if test "${with_kerberos+set}" = set; then
19708
19709 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19710 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19711 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lcom_err $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h. */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char com_err ();
19730 int
19731 main ()
19732 {
19733 return com_err ();
19734 ;
19735 return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 ac_cv_lib_com_err_com_err=yes
19757 else
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 ac_cv_lib_com_err_com_err=no
19762 fi
19763
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19767 fi
19768 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19769 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19770 if test $ac_cv_lib_com_err_com_err = yes; then
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_LIBCOM_ERR 1
19773 _ACEOF
19774
19775 LIBS="-lcom_err $LIBS"
19776
19777 fi
19778
19779
19780 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19781 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19782 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785 ac_check_lib_save_LIBS=$LIBS
19786 LIBS="-lk5crypto $LIBS"
19787 cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h. */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19793
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19797 #ifdef __cplusplus
19798 extern "C"
19799 #endif
19800 char mit_des_cbc_encrypt ();
19801 int
19802 main ()
19803 {
19804 return mit_des_cbc_encrypt ();
19805 ;
19806 return 0;
19807 }
19808 _ACEOF
19809 rm -f conftest.$ac_objext conftest$ac_exeext
19810 if { (ac_try="$ac_link"
19811 case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19814 esac
19815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19816 (eval "$ac_link") 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } && {
19823 test -z "$ac_c_werror_flag" ||
19824 test ! -s conftest.err
19825 } && test -s conftest$ac_exeext &&
19826 $as_test_x conftest$ac_exeext; then
19827 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19828 else
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19833 fi
19834
19835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19836 conftest$ac_exeext conftest.$ac_ext
19837 LIBS=$ac_check_lib_save_LIBS
19838 fi
19839 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19840 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19841 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_LIBK5CRYPTO 1
19844 _ACEOF
19845
19846 LIBS="-lk5crypto $LIBS"
19847
19848 fi
19849
19850
19851 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19852 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19853 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 ac_check_lib_save_LIBS=$LIBS
19857 LIBS="-lcrypto $LIBS"
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864
19865 /* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 char mit_des_cbc_encrypt ();
19872 int
19873 main ()
19874 {
19875 return mit_des_cbc_encrypt ();
19876 ;
19877 return 0;
19878 }
19879 _ACEOF
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext &&
19897 $as_test_x conftest$ac_exeext; then
19898 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19899 else
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19904 fi
19905
19906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19907 conftest$ac_exeext conftest.$ac_ext
19908 LIBS=$ac_check_lib_save_LIBS
19909 fi
19910 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19911 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19912 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define HAVE_LIBCRYPTO 1
19915 _ACEOF
19916
19917 LIBS="-lcrypto $LIBS"
19918
19919 fi
19920
19921
19922 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19923 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19924 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927 ac_check_lib_save_LIBS=$LIBS
19928 LIBS="-lkrb5 $LIBS"
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935
19936 /* Override any GCC internal prototype to avoid an error.
19937 Use char because int might match the return type of a GCC
19938 builtin and then its argument prototype would still apply. */
19939 #ifdef __cplusplus
19940 extern "C"
19941 #endif
19942 char krb5_init_context ();
19943 int
19944 main ()
19945 {
19946 return krb5_init_context ();
19947 ;
19948 return 0;
19949 }
19950 _ACEOF
19951 rm -f conftest.$ac_objext conftest$ac_exeext
19952 if { (ac_try="$ac_link"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956 esac
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_link") 2>conftest.er1
19959 ac_status=$?
19960 grep -v '^ *+' conftest.er1 >conftest.err
19961 rm -f conftest.er1
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && {
19965 test -z "$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19967 } && test -s conftest$ac_exeext &&
19968 $as_test_x conftest$ac_exeext; then
19969 ac_cv_lib_krb5_krb5_init_context=yes
19970 else
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 ac_cv_lib_krb5_krb5_init_context=no
19975 fi
19976
19977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19978 conftest$ac_exeext conftest.$ac_ext
19979 LIBS=$ac_check_lib_save_LIBS
19980 fi
19981 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19982 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19983 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19984 cat >>confdefs.h <<_ACEOF
19985 #define HAVE_LIBKRB5 1
19986 _ACEOF
19987
19988 LIBS="-lkrb5 $LIBS"
19989
19990 fi
19991
19992 if test "${with_kerberos5+set}" != set; then
19993
19994 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19995 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-ldes425 $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h. */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char des_cbc_encrypt ();
20015 int
20016 main ()
20017 {
20018 return des_cbc_encrypt ();
20019 ;
20020 return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_des425_des_cbc_encrypt=yes
20042 else
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ac_cv_lib_des425_des_cbc_encrypt=no
20047 fi
20048
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20052 fi
20053 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20054 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20055 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define HAVE_LIBDES425 1
20058 _ACEOF
20059
20060 LIBS="-ldes425 $LIBS"
20061
20062 else
20063
20064 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20065 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20066 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069 ac_check_lib_save_LIBS=$LIBS
20070 LIBS="-ldes $LIBS"
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077
20078 /* Override any GCC internal prototype to avoid an error.
20079 Use char because int might match the return type of a GCC
20080 builtin and then its argument prototype would still apply. */
20081 #ifdef __cplusplus
20082 extern "C"
20083 #endif
20084 char des_cbc_encrypt ();
20085 int
20086 main ()
20087 {
20088 return des_cbc_encrypt ();
20089 ;
20090 return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest$ac_exeext &&
20110 $as_test_x conftest$ac_exeext; then
20111 ac_cv_lib_des_des_cbc_encrypt=yes
20112 else
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 ac_cv_lib_des_des_cbc_encrypt=no
20117 fi
20118
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20121 LIBS=$ac_check_lib_save_LIBS
20122 fi
20123 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20124 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20125 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_LIBDES 1
20128 _ACEOF
20129
20130 LIBS="-ldes $LIBS"
20131
20132 fi
20133
20134 fi
20135
20136
20137 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20138 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20139 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lkrb4 $LIBS"
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char krb_get_cred ();
20158 int
20159 main ()
20160 {
20161 return krb_get_cred ();
20162 ;
20163 return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (ac_try="$ac_link"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_link") 2>conftest.er1
20174 ac_status=$?
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest$ac_exeext &&
20183 $as_test_x conftest$ac_exeext; then
20184 ac_cv_lib_krb4_krb_get_cred=yes
20185 else
20186 echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 ac_cv_lib_krb4_krb_get_cred=no
20190 fi
20191
20192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20193 conftest$ac_exeext conftest.$ac_ext
20194 LIBS=$ac_check_lib_save_LIBS
20195 fi
20196 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20197 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20198 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_LIBKRB4 1
20201 _ACEOF
20202
20203 LIBS="-lkrb4 $LIBS"
20204
20205 else
20206
20207 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20208 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20209 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212 ac_check_lib_save_LIBS=$LIBS
20213 LIBS="-lkrb $LIBS"
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h. */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220
20221 /* Override any GCC internal prototype to avoid an error.
20222 Use char because int might match the return type of a GCC
20223 builtin and then its argument prototype would still apply. */
20224 #ifdef __cplusplus
20225 extern "C"
20226 #endif
20227 char krb_get_cred ();
20228 int
20229 main ()
20230 {
20231 return krb_get_cred ();
20232 ;
20233 return 0;
20234 }
20235 _ACEOF
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20241 esac
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest$ac_exeext &&
20253 $as_test_x conftest$ac_exeext; then
20254 ac_cv_lib_krb_krb_get_cred=yes
20255 else
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 ac_cv_lib_krb_krb_get_cred=no
20260 fi
20261
20262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20265 fi
20266 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20267 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20268 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20269 cat >>confdefs.h <<_ACEOF
20270 #define HAVE_LIBKRB 1
20271 _ACEOF
20272
20273 LIBS="-lkrb $LIBS"
20274
20275 fi
20276
20277 fi
20278
20279 fi
20280
20281 if test "${with_kerberos5+set}" = set; then
20282
20283 for ac_header in krb5.h
20284 do
20285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20291 fi
20292 ac_res=`eval echo '${'$as_ac_Header'}'`
20293 { echo "$as_me:$LINENO: result: $ac_res" >&5
20294 echo "${ECHO_T}$ac_res" >&6; }
20295 else
20296 # Is the header compilable?
20297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20299 cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h. */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 $ac_includes_default
20306 #include <$ac_header>
20307 _ACEOF
20308 rm -f conftest.$ac_objext
20309 if { (ac_try="$ac_compile"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20316 ac_status=$?
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -f conftest.er1
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20325 ac_header_compiler=yes
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20329
20330 ac_header_compiler=no
20331 fi
20332
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20335 echo "${ECHO_T}$ac_header_compiler" >&6; }
20336
20337 # Is the header present?
20338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20340 cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h. */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 #include <$ac_header>
20347 _ACEOF
20348 if { (ac_try="$ac_cpp conftest.$ac_ext"
20349 case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20352 esac
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20355 ac_status=$?
20356 grep -v '^ *+' conftest.er1 >conftest.err
20357 rm -f conftest.er1
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null && {
20361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20362 test ! -s conftest.err
20363 }; then
20364 ac_header_preproc=yes
20365 else
20366 echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ac_header_preproc=no
20370 fi
20371
20372 rm -f conftest.err conftest.$ac_ext
20373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20374 echo "${ECHO_T}$ac_header_preproc" >&6; }
20375
20376 # So? What about this header?
20377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20378 yes:no: )
20379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20383 ac_header_preproc=yes
20384 ;;
20385 no:yes:* )
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20398
20399 ;;
20400 esac
20401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 eval "$as_ac_Header=\$ac_header_preproc"
20407 fi
20408 ac_res=`eval echo '${'$as_ac_Header'}'`
20409 { echo "$as_me:$LINENO: result: $ac_res" >&5
20410 echo "${ECHO_T}$ac_res" >&6; }
20411
20412 fi
20413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20414 cat >>confdefs.h <<_ACEOF
20415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20416 _ACEOF
20417
20418 fi
20419
20420 done
20421
20422 else
20423
20424 for ac_header in des.h
20425 do
20426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 fi
20433 ac_res=`eval echo '${'$as_ac_Header'}'`
20434 { echo "$as_me:$LINENO: result: $ac_res" >&5
20435 echo "${ECHO_T}$ac_res" >&6; }
20436 else
20437 # Is the header compilable?
20438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h. */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 $ac_includes_default
20447 #include <$ac_header>
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (ac_try="$ac_compile"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20454 esac
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_compile") 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest.$ac_objext; then
20466 ac_header_compiler=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_header_compiler=no
20472 fi
20473
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20476 echo "${ECHO_T}$ac_header_compiler" >&6; }
20477
20478 # Is the header present?
20479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20481 cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h. */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 #include <$ac_header>
20488 _ACEOF
20489 if { (ac_try="$ac_cpp conftest.$ac_ext"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } >/dev/null && {
20502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 }; then
20505 ac_header_preproc=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 ac_header_preproc=no
20511 fi
20512
20513 rm -f conftest.err conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20515 echo "${ECHO_T}$ac_header_preproc" >&6; }
20516
20517 # So? What about this header?
20518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20519 yes:no: )
20520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20524 ac_header_preproc=yes
20525 ;;
20526 no:yes:* )
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20539
20540 ;;
20541 esac
20542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547 eval "$as_ac_Header=\$ac_header_preproc"
20548 fi
20549 ac_res=`eval echo '${'$as_ac_Header'}'`
20550 { echo "$as_me:$LINENO: result: $ac_res" >&5
20551 echo "${ECHO_T}$ac_res" >&6; }
20552
20553 fi
20554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20557 _ACEOF
20558
20559 else
20560
20561 for ac_header in kerberosIV/des.h
20562 do
20563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 fi
20570 ac_res=`eval echo '${'$as_ac_Header'}'`
20571 { echo "$as_me:$LINENO: result: $ac_res" >&5
20572 echo "${ECHO_T}$ac_res" >&6; }
20573 else
20574 # Is the header compilable?
20575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 $ac_includes_default
20584 #include <$ac_header>
20585 _ACEOF
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_compile") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest.$ac_objext; then
20603 ac_header_compiler=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_header_compiler=no
20609 fi
20610
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20613 echo "${ECHO_T}$ac_header_compiler" >&6; }
20614
20615 # Is the header present?
20616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <$ac_header>
20625 _ACEOF
20626 if { (ac_try="$ac_cpp conftest.$ac_ext"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } >/dev/null && {
20639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 }; then
20642 ac_header_preproc=yes
20643 else
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 ac_header_preproc=no
20648 fi
20649
20650 rm -f conftest.err conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20652 echo "${ECHO_T}$ac_header_preproc" >&6; }
20653
20654 # So? What about this header?
20655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20656 yes:no: )
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20661 ac_header_preproc=yes
20662 ;;
20663 no:yes:* )
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20676
20677 ;;
20678 esac
20679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684 eval "$as_ac_Header=\$ac_header_preproc"
20685 fi
20686 ac_res=`eval echo '${'$as_ac_Header'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20689
20690 fi
20691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20692 cat >>confdefs.h <<_ACEOF
20693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20694 _ACEOF
20695
20696 else
20697
20698 for ac_header in kerberos/des.h
20699 do
20700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20705 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 fi
20707 ac_res=`eval echo '${'$as_ac_Header'}'`
20708 { echo "$as_me:$LINENO: result: $ac_res" >&5
20709 echo "${ECHO_T}$ac_res" >&6; }
20710 else
20711 # Is the header compilable?
20712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h. */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20721 #include <$ac_header>
20722 _ACEOF
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
20740 ac_header_compiler=yes
20741 else
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745 ac_header_compiler=no
20746 fi
20747
20748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20750 echo "${ECHO_T}$ac_header_compiler" >&6; }
20751
20752 # Is the header present?
20753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20755 cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h. */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <$ac_header>
20762 _ACEOF
20763 if { (ac_try="$ac_cpp conftest.$ac_ext"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20770 ac_status=$?
20771 grep -v '^ *+' conftest.er1 >conftest.err
20772 rm -f conftest.er1
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null && {
20776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 }; then
20779 ac_header_preproc=yes
20780 else
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 ac_header_preproc=no
20785 fi
20786
20787 rm -f conftest.err conftest.$ac_ext
20788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20789 echo "${ECHO_T}$ac_header_preproc" >&6; }
20790
20791 # So? What about this header?
20792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20793 yes:no: )
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20798 ac_header_preproc=yes
20799 ;;
20800 no:yes:* )
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20813
20814 ;;
20815 esac
20816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20819 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821 eval "$as_ac_Header=\$ac_header_preproc"
20822 fi
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20826
20827 fi
20828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20829 cat >>confdefs.h <<_ACEOF
20830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20831 _ACEOF
20832
20833 fi
20834
20835 done
20836
20837 fi
20838
20839 done
20840
20841 fi
20842
20843 done
20844
20845
20846 for ac_header in krb.h
20847 do
20848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 fi
20855 ac_res=`eval echo '${'$as_ac_Header'}'`
20856 { echo "$as_me:$LINENO: result: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20858 else
20859 # Is the header compilable?
20860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 $ac_includes_default
20869 #include <$ac_header>
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest.$ac_objext; then
20888 ac_header_compiler=yes
20889 else
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_header_compiler=no
20894 fi
20895
20896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20898 echo "${ECHO_T}$ac_header_compiler" >&6; }
20899
20900 # Is the header present?
20901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h. */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #include <$ac_header>
20910 _ACEOF
20911 if { (ac_try="$ac_cpp conftest.$ac_ext"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20918 ac_status=$?
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } >/dev/null && {
20924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20926 }; then
20927 ac_header_preproc=yes
20928 else
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20931
20932 ac_header_preproc=no
20933 fi
20934
20935 rm -f conftest.err conftest.$ac_ext
20936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20937 echo "${ECHO_T}$ac_header_preproc" >&6; }
20938
20939 # So? What about this header?
20940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20941 yes:no: )
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20946 ac_header_preproc=yes
20947 ;;
20948 no:yes:* )
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20961
20962 ;;
20963 esac
20964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969 eval "$as_ac_Header=\$ac_header_preproc"
20970 fi
20971 ac_res=`eval echo '${'$as_ac_Header'}'`
20972 { echo "$as_me:$LINENO: result: $ac_res" >&5
20973 echo "${ECHO_T}$ac_res" >&6; }
20974
20975 fi
20976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979 _ACEOF
20980
20981 else
20982
20983 for ac_header in kerberosIV/krb.h
20984 do
20985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20990 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 fi
20992 ac_res=`eval echo '${'$as_ac_Header'}'`
20993 { echo "$as_me:$LINENO: result: $ac_res" >&5
20994 echo "${ECHO_T}$ac_res" >&6; }
20995 else
20996 # Is the header compilable?
20997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20999 cat >conftest.$ac_ext <<_ACEOF
21000 /* confdefs.h. */
21001 _ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 $ac_includes_default
21006 #include <$ac_header>
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 ac_header_compiler=yes
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21029
21030 ac_header_compiler=no
21031 fi
21032
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21036
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <$ac_header>
21047 _ACEOF
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev/null && {
21061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 }; then
21064 ac_header_preproc=yes
21065 else
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069 ac_header_preproc=no
21070 fi
21071
21072 rm -f conftest.err conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21074 echo "${ECHO_T}$ac_header_preproc" >&6; }
21075
21076 # So? What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21078 yes:no: )
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21083 ac_header_preproc=yes
21084 ;;
21085 no:yes:* )
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21098
21099 ;;
21100 esac
21101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 else
21106 eval "$as_ac_Header=\$ac_header_preproc"
21107 fi
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109 { echo "$as_me:$LINENO: result: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21111
21112 fi
21113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21114 cat >>confdefs.h <<_ACEOF
21115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21116 _ACEOF
21117
21118 else
21119
21120 for ac_header in kerberos/krb.h
21121 do
21122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 fi
21129 ac_res=`eval echo '${'$as_ac_Header'}'`
21130 { echo "$as_me:$LINENO: result: $ac_res" >&5
21131 echo "${ECHO_T}$ac_res" >&6; }
21132 else
21133 # Is the header compilable?
21134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21136 cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h. */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 $ac_includes_default
21143 #include <$ac_header>
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21162 ac_header_compiler=yes
21163 else
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 ac_header_compiler=no
21168 fi
21169
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21172 echo "${ECHO_T}$ac_header_compiler" >&6; }
21173
21174 # Is the header present?
21175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h. */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 #include <$ac_header>
21184 _ACEOF
21185 if { (ac_try="$ac_cpp conftest.$ac_ext"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21189 esac
21190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } >/dev/null && {
21198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21200 }; then
21201 ac_header_preproc=yes
21202 else
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21205
21206 ac_header_preproc=no
21207 fi
21208
21209 rm -f conftest.err conftest.$ac_ext
21210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21211 echo "${ECHO_T}$ac_header_preproc" >&6; }
21212
21213 # So? What about this header?
21214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21215 yes:no: )
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21220 ac_header_preproc=yes
21221 ;;
21222 no:yes:* )
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21235
21236 ;;
21237 esac
21238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243 eval "$as_ac_Header=\$ac_header_preproc"
21244 fi
21245 ac_res=`eval echo '${'$as_ac_Header'}'`
21246 { echo "$as_me:$LINENO: result: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21248
21249 fi
21250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21251 cat >>confdefs.h <<_ACEOF
21252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21253 _ACEOF
21254
21255 fi
21256
21257 done
21258
21259 fi
21260
21261 done
21262
21263 fi
21264
21265 done
21266
21267 fi
21268
21269 for ac_header in com_err.h
21270 do
21271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 fi
21278 ac_res=`eval echo '${'$as_ac_Header'}'`
21279 { echo "$as_me:$LINENO: result: $ac_res" >&5
21280 echo "${ECHO_T}$ac_res" >&6; }
21281 else
21282 # Is the header compilable?
21283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 $ac_includes_default
21292 #include <$ac_header>
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_header_compiler=yes
21312 else
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 ac_header_compiler=no
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21321 echo "${ECHO_T}$ac_header_compiler" >&6; }
21322
21323 # Is the header present?
21324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21327 /* confdefs.h. */
21328 _ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 #include <$ac_header>
21333 _ACEOF
21334 if { (ac_try="$ac_cpp conftest.$ac_ext"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } >/dev/null && {
21347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 }; then
21350 ac_header_preproc=yes
21351 else
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355 ac_header_preproc=no
21356 fi
21357
21358 rm -f conftest.err conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6; }
21361
21362 # So? What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21364 yes:no: )
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21369 ac_header_preproc=yes
21370 ;;
21371 no:yes:* )
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21384
21385 ;;
21386 esac
21387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392 eval "$as_ac_Header=\$ac_header_preproc"
21393 fi
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21397
21398 fi
21399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21402 _ACEOF
21403
21404 fi
21405
21406 done
21407
21408 fi
21409
21410 # Solaris requires -lintl if you want strerror (which calls dgettext)
21411 # to return localized messages.
21412
21413 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21414 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21415 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 else
21418 ac_check_lib_save_LIBS=$LIBS
21419 LIBS="-lintl $LIBS"
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426
21427 /* Override any GCC internal prototype to avoid an error.
21428 Use char because int might match the return type of a GCC
21429 builtin and then its argument prototype would still apply. */
21430 #ifdef __cplusplus
21431 extern "C"
21432 #endif
21433 char dgettext ();
21434 int
21435 main ()
21436 {
21437 return dgettext ();
21438 ;
21439 return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_link") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext &&
21459 $as_test_x conftest$ac_exeext; then
21460 ac_cv_lib_intl_dgettext=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 ac_cv_lib_intl_dgettext=no
21466 fi
21467
21468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21469 conftest$ac_exeext conftest.$ac_ext
21470 LIBS=$ac_check_lib_save_LIBS
21471 fi
21472 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21473 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21474 if test $ac_cv_lib_intl_dgettext = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE_LIBINTL 1
21477 _ACEOF
21478
21479 LIBS="-lintl $LIBS"
21480
21481 fi
21482
21483
21484 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21485 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21486 if test "${emacs_cv_localtime_cache+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 else
21489 if test x$ac_cv_func_tzset = xyes; then
21490 if test "$cross_compiling" = yes; then
21491 # If we have tzset, assume the worst when cross-compiling.
21492 emacs_cv_localtime_cache=yes
21493 else
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h. */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 #include <time.h>
21501 extern char **environ;
21502 unset_TZ ()
21503 {
21504 char **from, **to;
21505 for (to = from = environ; (*to = *from); from++)
21506 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21507 to++;
21508 }
21509 char TZ_GMT0[] = "TZ=GMT0";
21510 char TZ_PST8[] = "TZ=PST8";
21511 main()
21512 {
21513 time_t now = time ((time_t *) 0);
21514 int hour_GMT0, hour_unset;
21515 if (putenv (TZ_GMT0) != 0)
21516 exit (1);
21517 hour_GMT0 = localtime (&now)->tm_hour;
21518 unset_TZ ();
21519 hour_unset = localtime (&now)->tm_hour;
21520 if (putenv (TZ_PST8) != 0)
21521 exit (1);
21522 if (localtime (&now)->tm_hour == hour_GMT0)
21523 exit (1);
21524 unset_TZ ();
21525 if (localtime (&now)->tm_hour != hour_unset)
21526 exit (1);
21527 exit (0);
21528 }
21529 _ACEOF
21530 rm -f conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21535 esac
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_link") 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21541 { (case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_try") 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 emacs_cv_localtime_cache=no
21551 else
21552 echo "$as_me: program exited with status $ac_status" >&5
21553 echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 ( exit $ac_status )
21557 emacs_cv_localtime_cache=yes
21558 fi
21559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21560 fi
21561
21562
21563 else
21564 # If we lack tzset, report that localtime does not cache TZ,
21565 # since we can't invalidate the cache if we don't have tzset.
21566 emacs_cv_localtime_cache=no
21567 fi
21568 fi
21569 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21570 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21571 if test $emacs_cv_localtime_cache = yes; then
21572
21573 cat >>confdefs.h <<\_ACEOF
21574 #define LOCALTIME_CACHE 1
21575 _ACEOF
21576
21577 fi
21578
21579 if test "x$HAVE_TIMEVAL" = xyes; then
21580
21581 for ac_func in gettimeofday
21582 do
21583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589 cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h. */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21597 #define $ac_func innocuous_$ac_func
21598
21599 /* System header to define __stub macros and hopefully few prototypes,
21600 which can conflict with char $ac_func (); below.
21601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21602 <limits.h> exists even on freestanding compilers. */
21603
21604 #ifdef __STDC__
21605 # include <limits.h>
21606 #else
21607 # include <assert.h>
21608 #endif
21609
21610 #undef $ac_func
21611
21612 /* Override any GCC internal prototype to avoid an error.
21613 Use char because int might match the return type of a GCC
21614 builtin and then its argument prototype would still apply. */
21615 #ifdef __cplusplus
21616 extern "C"
21617 #endif
21618 char $ac_func ();
21619 /* The GNU C library defines this for functions which it implements
21620 to always fail with ENOSYS. Some functions are actually named
21621 something starting with __ and the normal name is an alias. */
21622 #if defined __stub_$ac_func || defined __stub___$ac_func
21623 choke me
21624 #endif
21625
21626 int
21627 main ()
21628 {
21629 return $ac_func ();
21630 ;
21631 return 0;
21632 }
21633 _ACEOF
21634 rm -f conftest.$ac_objext conftest$ac_exeext
21635 if { (ac_try="$ac_link"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_link") 2>conftest.er1
21642 ac_status=$?
21643 grep -v '^ *+' conftest.er1 >conftest.err
21644 rm -f conftest.er1
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } && {
21648 test -z "$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 } && test -s conftest$ac_exeext &&
21651 $as_test_x conftest$ac_exeext; then
21652 eval "$as_ac_var=yes"
21653 else
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657 eval "$as_ac_var=no"
21658 fi
21659
21660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21661 conftest$ac_exeext conftest.$ac_ext
21662 fi
21663 ac_res=`eval echo '${'$as_ac_var'}'`
21664 { echo "$as_me:$LINENO: result: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21666 if test `eval echo '${'$as_ac_var'}'` = yes; then
21667 cat >>confdefs.h <<_ACEOF
21668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21669 _ACEOF
21670
21671 fi
21672 done
21673
21674 if test $ac_cv_func_gettimeofday = yes; then
21675 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21676 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21677 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680 cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h. */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686
21687 #ifdef TIME_WITH_SYS_TIME
21688 #include <sys/time.h>
21689 #include <time.h>
21690 #else
21691 #ifdef HAVE_SYS_TIME_H
21692 #include <sys/time.h>
21693 #else
21694 #include <time.h>
21695 #endif
21696 #endif
21697 int
21698 main ()
21699 {
21700 struct timeval time;
21701 gettimeofday (&time, 0);
21702 ;
21703 return 0;
21704 }
21705 _ACEOF
21706 rm -f conftest.$ac_objext
21707 if { (ac_try="$ac_compile"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_compile") 2>conftest.er1
21714 ac_status=$?
21715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest.$ac_objext; then
21723 emacs_cv_gettimeofday_two_arguments=yes
21724 else
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728 emacs_cv_gettimeofday_two_arguments=no
21729 fi
21730
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21732 fi
21733 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21734 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21735 if test $emacs_cv_gettimeofday_two_arguments = no; then
21736
21737 cat >>confdefs.h <<\_ACEOF
21738 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21739 _ACEOF
21740
21741 fi
21742 fi
21743 fi
21744
21745 ok_so_far=yes
21746 { echo "$as_me:$LINENO: checking for socket" >&5
21747 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21748 if test "${ac_cv_func_socket+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 else
21751 cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h. */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21759 #define socket innocuous_socket
21760
21761 /* System header to define __stub macros and hopefully few prototypes,
21762 which can conflict with char socket (); below.
21763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21764 <limits.h> exists even on freestanding compilers. */
21765
21766 #ifdef __STDC__
21767 # include <limits.h>
21768 #else
21769 # include <assert.h>
21770 #endif
21771
21772 #undef socket
21773
21774 /* Override any GCC internal prototype to avoid an error.
21775 Use char because int might match the return type of a GCC
21776 builtin and then its argument prototype would still apply. */
21777 #ifdef __cplusplus
21778 extern "C"
21779 #endif
21780 char socket ();
21781 /* The GNU C library defines this for functions which it implements
21782 to always fail with ENOSYS. Some functions are actually named
21783 something starting with __ and the normal name is an alias. */
21784 #if defined __stub_socket || defined __stub___socket
21785 choke me
21786 #endif
21787
21788 int
21789 main ()
21790 {
21791 return socket ();
21792 ;
21793 return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_link") 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest$ac_exeext &&
21813 $as_test_x conftest$ac_exeext; then
21814 ac_cv_func_socket=yes
21815 else
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819 ac_cv_func_socket=no
21820 fi
21821
21822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21823 conftest$ac_exeext conftest.$ac_ext
21824 fi
21825 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21826 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21827 if test $ac_cv_func_socket = yes; then
21828 :
21829 else
21830 ok_so_far=no
21831 fi
21832
21833 if test $ok_so_far = yes; then
21834 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21835 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21836 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21837 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 fi
21840 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21841 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21842 else
21843 # Is the header compilable?
21844 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21845 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21846 cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h. */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 $ac_includes_default
21853 #include <netinet/in.h>
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_compile") 2>conftest.er1
21863 ac_status=$?
21864 grep -v '^ *+' conftest.er1 >conftest.err
21865 rm -f conftest.er1
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest.$ac_objext; then
21872 ac_header_compiler=yes
21873 else
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877 ac_header_compiler=no
21878 fi
21879
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21882 echo "${ECHO_T}$ac_header_compiler" >&6; }
21883
21884 # Is the header present?
21885 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21886 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21887 cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h. */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #include <netinet/in.h>
21894 _ACEOF
21895 if { (ac_try="$ac_cpp conftest.$ac_ext"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21902 ac_status=$?
21903 grep -v '^ *+' conftest.er1 >conftest.err
21904 rm -f conftest.er1
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } >/dev/null && {
21908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 }; then
21911 ac_header_preproc=yes
21912 else
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ac_header_preproc=no
21917 fi
21918
21919 rm -f conftest.err conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21921 echo "${ECHO_T}$ac_header_preproc" >&6; }
21922
21923 # So? What about this header?
21924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21925 yes:no: )
21926 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21927 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21929 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21930 ac_header_preproc=yes
21931 ;;
21932 no:yes:* )
21933 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21934 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21936 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21938 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21940 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21942 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21944 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21945
21946 ;;
21947 esac
21948 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21949 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21950 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953 ac_cv_header_netinet_in_h=$ac_header_preproc
21954 fi
21955 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21956 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21957
21958 fi
21959 if test $ac_cv_header_netinet_in_h = yes; then
21960 :
21961 else
21962 ok_so_far=no
21963 fi
21964
21965
21966 fi
21967 if test $ok_so_far = yes; then
21968 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21969 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21970 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21971 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 fi
21974 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21975 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21976 else
21977 # Is the header compilable?
21978 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21979 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21987 #include <arpa/inet.h>
21988 _ACEOF
21989 rm -f conftest.$ac_objext
21990 if { (ac_try="$ac_compile"
21991 case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_compile") 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest.$ac_objext; then
22006 ac_header_compiler=yes
22007 else
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22010
22011 ac_header_compiler=no
22012 fi
22013
22014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22016 echo "${ECHO_T}$ac_header_compiler" >&6; }
22017
22018 # Is the header present?
22019 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22020 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 #include <arpa/inet.h>
22028 _ACEOF
22029 if { (ac_try="$ac_cpp conftest.$ac_ext"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22036 ac_status=$?
22037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev/null && {
22042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22044 }; then
22045 ac_header_preproc=yes
22046 else
22047 echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22049
22050 ac_header_preproc=no
22051 fi
22052
22053 rm -f conftest.err conftest.$ac_ext
22054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22055 echo "${ECHO_T}$ac_header_preproc" >&6; }
22056
22057 # So? What about this header?
22058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22059 yes:no: )
22060 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22061 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22062 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22063 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22064 ac_header_preproc=yes
22065 ;;
22066 no:yes:* )
22067 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22068 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22070 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22071 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22072 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22073 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22074 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22076 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22077 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22078 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22079
22080 ;;
22081 esac
22082 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22083 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22084 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22085 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 else
22087 ac_cv_header_arpa_inet_h=$ac_header_preproc
22088 fi
22089 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22090 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22091
22092 fi
22093 if test $ac_cv_header_arpa_inet_h = yes; then
22094 :
22095 else
22096 ok_so_far=no
22097 fi
22098
22099
22100 fi
22101 if test $ok_so_far = yes; then
22102
22103 cat >>confdefs.h <<\_ACEOF
22104 #define HAVE_INET_SOCKETS 1
22105 _ACEOF
22106
22107 fi
22108
22109
22110 for ac_header in sys/ioctl.h
22111 do
22112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 fi
22119 ac_res=`eval echo '${'$as_ac_Header'}'`
22120 { echo "$as_me:$LINENO: result: $ac_res" >&5
22121 echo "${ECHO_T}$ac_res" >&6; }
22122 else
22123 # Is the header compilable?
22124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22133 #include <$ac_header>
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_compile") 2>conftest.er1
22143 ac_status=$?
22144 grep -v '^ *+' conftest.er1 >conftest.err
22145 rm -f conftest.er1
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest.$ac_objext; then
22152 ac_header_compiler=yes
22153 else
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ac_header_compiler=no
22158 fi
22159
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22162 echo "${ECHO_T}$ac_header_compiler" >&6; }
22163
22164 # Is the header present?
22165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h. */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #include <$ac_header>
22174 _ACEOF
22175 if { (ac_try="$ac_cpp conftest.$ac_ext"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22182 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } >/dev/null && {
22188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 }; then
22191 ac_header_preproc=yes
22192 else
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196 ac_header_preproc=no
22197 fi
22198
22199 rm -f conftest.err conftest.$ac_ext
22200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22201 echo "${ECHO_T}$ac_header_preproc" >&6; }
22202
22203 # So? What about this header?
22204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22205 yes:no: )
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22210 ac_header_preproc=yes
22211 ;;
22212 no:yes:* )
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22225
22226 ;;
22227 esac
22228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233 eval "$as_ac_Header=\$ac_header_preproc"
22234 fi
22235 ac_res=`eval echo '${'$as_ac_Header'}'`
22236 { echo "$as_me:$LINENO: result: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22238
22239 fi
22240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22241 cat >>confdefs.h <<_ACEOF
22242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22243 _ACEOF
22244
22245 fi
22246
22247 done
22248
22249
22250 if test -f /usr/lpp/X11/bin/smt.exp; then
22251
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_AIX_SMT_EXP 1
22254 _ACEOF
22255
22256 fi
22257
22258 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22259 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22260 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22261 { echo "$as_me:$LINENO: result: yes" >&5
22262 echo "${ECHO_T}yes" >&6; }
22263
22264 cat >>confdefs.h <<\_ACEOF
22265 #define HAVE_DEV_PTMX 1
22266 _ACEOF
22267
22268 else
22269 { echo "$as_me:$LINENO: result: no" >&5
22270 echo "${ECHO_T}no" >&6; }
22271 fi
22272
22273 { echo "$as_me:$LINENO: checking for pid_t" >&5
22274 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22275 if test "${ac_cv_type_pid_t+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278 cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h. */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 $ac_includes_default
22285 typedef pid_t ac__type_new_;
22286 int
22287 main ()
22288 {
22289 if ((ac__type_new_ *) 0)
22290 return 0;
22291 if (sizeof (ac__type_new_))
22292 return 0;
22293 ;
22294 return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_compile") 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest.$ac_objext; then
22314 ac_cv_type_pid_t=yes
22315 else
22316 echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319 ac_cv_type_pid_t=no
22320 fi
22321
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22323 fi
22324 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22325 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22326 if test $ac_cv_type_pid_t = yes; then
22327 :
22328 else
22329
22330 cat >>confdefs.h <<_ACEOF
22331 #define pid_t int
22332 _ACEOF
22333
22334 fi
22335
22336
22337 for ac_header in vfork.h
22338 do
22339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 fi
22346 ac_res=`eval echo '${'$as_ac_Header'}'`
22347 { echo "$as_me:$LINENO: result: $ac_res" >&5
22348 echo "${ECHO_T}$ac_res" >&6; }
22349 else
22350 # Is the header compilable?
22351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h. */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 $ac_includes_default
22360 #include <$ac_header>
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_compile") 2>conftest.er1
22370 ac_status=$?
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest.$ac_objext; then
22379 ac_header_compiler=yes
22380 else
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ac_header_compiler=no
22385 fi
22386
22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22389 echo "${ECHO_T}$ac_header_compiler" >&6; }
22390
22391 # Is the header present?
22392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 #include <$ac_header>
22401 _ACEOF
22402 if { (ac_try="$ac_cpp conftest.$ac_ext"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22409 ac_status=$?
22410 grep -v '^ *+' conftest.er1 >conftest.err
22411 rm -f conftest.er1
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } >/dev/null && {
22415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 }; then
22418 ac_header_preproc=yes
22419 else
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423 ac_header_preproc=no
22424 fi
22425
22426 rm -f conftest.err conftest.$ac_ext
22427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22428 echo "${ECHO_T}$ac_header_preproc" >&6; }
22429
22430 # So? What about this header?
22431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22432 yes:no: )
22433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22437 ac_header_preproc=yes
22438 ;;
22439 no:yes:* )
22440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22452
22453 ;;
22454 esac
22455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460 eval "$as_ac_Header=\$ac_header_preproc"
22461 fi
22462 ac_res=`eval echo '${'$as_ac_Header'}'`
22463 { echo "$as_me:$LINENO: result: $ac_res" >&5
22464 echo "${ECHO_T}$ac_res" >&6; }
22465
22466 fi
22467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22468 cat >>confdefs.h <<_ACEOF
22469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22470 _ACEOF
22471
22472 fi
22473
22474 done
22475
22476
22477
22478 for ac_func in fork vfork
22479 do
22480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486 cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h. */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22494 #define $ac_func innocuous_$ac_func
22495
22496 /* System header to define __stub macros and hopefully few prototypes,
22497 which can conflict with char $ac_func (); below.
22498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22499 <limits.h> exists even on freestanding compilers. */
22500
22501 #ifdef __STDC__
22502 # include <limits.h>
22503 #else
22504 # include <assert.h>
22505 #endif
22506
22507 #undef $ac_func
22508
22509 /* Override any GCC internal prototype to avoid an error.
22510 Use char because int might match the return type of a GCC
22511 builtin and then its argument prototype would still apply. */
22512 #ifdef __cplusplus
22513 extern "C"
22514 #endif
22515 char $ac_func ();
22516 /* The GNU C library defines this for functions which it implements
22517 to always fail with ENOSYS. Some functions are actually named
22518 something starting with __ and the normal name is an alias. */
22519 #if defined __stub_$ac_func || defined __stub___$ac_func
22520 choke me
22521 #endif
22522
22523 int
22524 main ()
22525 {
22526 return $ac_func ();
22527 ;
22528 return 0;
22529 }
22530 _ACEOF
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (ac_try="$ac_link"
22533 case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22536 esac
22537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_link") 2>conftest.er1
22539 ac_status=$?
22540 grep -v '^ *+' conftest.er1 >conftest.err
22541 rm -f conftest.er1
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest$ac_exeext &&
22548 $as_test_x conftest$ac_exeext; then
22549 eval "$as_ac_var=yes"
22550 else
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554 eval "$as_ac_var=no"
22555 fi
22556
22557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22558 conftest$ac_exeext conftest.$ac_ext
22559 fi
22560 ac_res=`eval echo '${'$as_ac_var'}'`
22561 { echo "$as_me:$LINENO: result: $ac_res" >&5
22562 echo "${ECHO_T}$ac_res" >&6; }
22563 if test `eval echo '${'$as_ac_var'}'` = yes; then
22564 cat >>confdefs.h <<_ACEOF
22565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22566 _ACEOF
22567
22568 fi
22569 done
22570
22571 if test "x$ac_cv_func_fork" = xyes; then
22572 { echo "$as_me:$LINENO: checking for working fork" >&5
22573 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22574 if test "${ac_cv_func_fork_works+set}" = set; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 else
22577 if test "$cross_compiling" = yes; then
22578 ac_cv_func_fork_works=cross
22579 else
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22587 int
22588 main ()
22589 {
22590
22591 /* By Ruediger Kuhlmann. */
22592 return fork () < 0;
22593
22594 ;
22595 return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest$ac_exeext
22599 if { (ac_try="$ac_link"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_link") 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22609 { (case "(($ac_try" in
22610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611 *) ac_try_echo=$ac_try;;
22612 esac
22613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22614 (eval "$ac_try") 2>&5
22615 ac_status=$?
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; }; then
22618 ac_cv_func_fork_works=yes
22619 else
22620 echo "$as_me: program exited with status $ac_status" >&5
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624 ( exit $ac_status )
22625 ac_cv_func_fork_works=no
22626 fi
22627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22628 fi
22629
22630
22631 fi
22632 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22633 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22634
22635 else
22636 ac_cv_func_fork_works=$ac_cv_func_fork
22637 fi
22638 if test "x$ac_cv_func_fork_works" = xcross; then
22639 case $host in
22640 *-*-amigaos* | *-*-msdosdjgpp*)
22641 # Override, as these systems have only a dummy fork() stub
22642 ac_cv_func_fork_works=no
22643 ;;
22644 *)
22645 ac_cv_func_fork_works=yes
22646 ;;
22647 esac
22648 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22649 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22650 fi
22651 ac_cv_func_vfork_works=$ac_cv_func_vfork
22652 if test "x$ac_cv_func_vfork" = xyes; then
22653 { echo "$as_me:$LINENO: checking for working vfork" >&5
22654 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22655 if test "${ac_cv_func_vfork_works+set}" = set; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658 if test "$cross_compiling" = yes; then
22659 ac_cv_func_vfork_works=cross
22660 else
22661 cat >conftest.$ac_ext <<_ACEOF
22662 /* confdefs.h. */
22663 _ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 /* Thanks to Paul Eggert for this test. */
22668 $ac_includes_default
22669 #include <sys/wait.h>
22670 #ifdef HAVE_VFORK_H
22671 # include <vfork.h>
22672 #endif
22673 /* On some sparc systems, changes by the child to local and incoming
22674 argument registers are propagated back to the parent. The compiler
22675 is told about this with #include <vfork.h>, but some compilers
22676 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22677 static variable whose address is put into a register that is
22678 clobbered by the vfork. */
22679 static void
22680 #ifdef __cplusplus
22681 sparc_address_test (int arg)
22682 # else
22683 sparc_address_test (arg) int arg;
22684 #endif
22685 {
22686 static pid_t child;
22687 if (!child) {
22688 child = vfork ();
22689 if (child < 0) {
22690 perror ("vfork");
22691 _exit(2);
22692 }
22693 if (!child) {
22694 arg = getpid();
22695 write(-1, "", 0);
22696 _exit (arg);
22697 }
22698 }
22699 }
22700
22701 int
22702 main ()
22703 {
22704 pid_t parent = getpid ();
22705 pid_t child;
22706
22707 sparc_address_test (0);
22708
22709 child = vfork ();
22710
22711 if (child == 0) {
22712 /* Here is another test for sparc vfork register problems. This
22713 test uses lots of local variables, at least as many local
22714 variables as main has allocated so far including compiler
22715 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22716 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22717 reuse the register of parent for one of the local variables,
22718 since it will think that parent can't possibly be used any more
22719 in this routine. Assigning to the local variable will thus
22720 munge parent in the parent process. */
22721 pid_t
22722 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22723 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22724 /* Convince the compiler that p..p7 are live; otherwise, it might
22725 use the same hardware register for all 8 local variables. */
22726 if (p != p1 || p != p2 || p != p3 || p != p4
22727 || p != p5 || p != p6 || p != p7)
22728 _exit(1);
22729
22730 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22731 from child file descriptors. If the child closes a descriptor
22732 before it execs or exits, this munges the parent's descriptor
22733 as well. Test for this by closing stdout in the child. */
22734 _exit(close(fileno(stdout)) != 0);
22735 } else {
22736 int status;
22737 struct stat st;
22738
22739 while (wait(&status) != child)
22740 ;
22741 return (
22742 /* Was there some problem with vforking? */
22743 child < 0
22744
22745 /* Did the child fail? (This shouldn't happen.) */
22746 || status
22747
22748 /* Did the vfork/compiler bug occur? */
22749 || parent != getpid()
22750
22751 /* Did the file descriptor bug occur? */
22752 || fstat(fileno(stdout), &st) != 0
22753 );
22754 }
22755 }
22756 _ACEOF
22757 rm -f conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_link") 2>&5
22765 ac_status=$?
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22768 { (case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_try") 2>&5
22774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_func_vfork_works=yes
22778 else
22779 echo "$as_me: program exited with status $ac_status" >&5
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783 ( exit $ac_status )
22784 ac_cv_func_vfork_works=no
22785 fi
22786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22787 fi
22788
22789
22790 fi
22791 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22792 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22793
22794 fi;
22795 if test "x$ac_cv_func_fork_works" = xcross; then
22796 ac_cv_func_vfork_works=$ac_cv_func_vfork
22797 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22798 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22799 fi
22800
22801 if test "x$ac_cv_func_vfork_works" = xyes; then
22802
22803 cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_WORKING_VFORK 1
22805 _ACEOF
22806
22807 else
22808
22809 cat >>confdefs.h <<\_ACEOF
22810 #define vfork fork
22811 _ACEOF
22812
22813 fi
22814 if test "x$ac_cv_func_fork_works" = xyes; then
22815
22816 cat >>confdefs.h <<\_ACEOF
22817 #define HAVE_WORKING_FORK 1
22818 _ACEOF
22819
22820 fi
22821
22822
22823 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22824 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22825 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22827 else
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <langinfo.h>
22835 int
22836 main ()
22837 {
22838 char* cs = nl_langinfo(CODESET);
22839 ;
22840 return 0;
22841 }
22842 _ACEOF
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22848 esac
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_link") 2>conftest.er1
22851 ac_status=$?
22852 grep -v '^ *+' conftest.er1 >conftest.err
22853 rm -f conftest.er1
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest$ac_exeext &&
22860 $as_test_x conftest$ac_exeext; then
22861 emacs_cv_langinfo_codeset=yes
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 emacs_cv_langinfo_codeset=no
22867 fi
22868
22869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22870 conftest$ac_exeext conftest.$ac_ext
22871
22872 fi
22873 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22874 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22875 if test $emacs_cv_langinfo_codeset = yes; then
22876
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_LANGINFO_CODESET 1
22879 _ACEOF
22880
22881 fi
22882
22883 { echo "$as_me:$LINENO: checking for size_t" >&5
22884 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22885 if test "${ac_cv_type_size_t+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888 cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h. */
22890 _ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 $ac_includes_default
22895 typedef size_t ac__type_new_;
22896 int
22897 main ()
22898 {
22899 if ((ac__type_new_ *) 0)
22900 return 0;
22901 if (sizeof (ac__type_new_))
22902 return 0;
22903 ;
22904 return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_compile") 2>conftest.er1
22915 ac_status=$?
22916 grep -v '^ *+' conftest.er1 >conftest.err
22917 rm -f conftest.er1
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest.$ac_objext; then
22924 ac_cv_type_size_t=yes
22925 else
22926 echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929 ac_cv_type_size_t=no
22930 fi
22931
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 fi
22934 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22935 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22936 if test $ac_cv_type_size_t = yes; then
22937
22938 cat >>confdefs.h <<_ACEOF
22939 #define HAVE_SIZE_T 1
22940 _ACEOF
22941
22942
22943 fi
22944
22945
22946 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22947 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22948 if test "${ac_cv_type_mbstate_t+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951 cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h. */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 $ac_includes_default
22958 # include <wchar.h>
22959 int
22960 main ()
22961 {
22962 mbstate_t x; return sizeof x;
22963 ;
22964 return 0;
22965 }
22966 _ACEOF
22967 rm -f conftest.$ac_objext
22968 if { (ac_try="$ac_compile"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22972 esac
22973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974 (eval "$ac_compile") 2>conftest.er1
22975 ac_status=$?
22976 grep -v '^ *+' conftest.er1 >conftest.err
22977 rm -f conftest.er1
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } && {
22981 test -z "$ac_c_werror_flag" ||
22982 test ! -s conftest.err
22983 } && test -s conftest.$ac_objext; then
22984 ac_cv_type_mbstate_t=yes
22985 else
22986 echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989 ac_cv_type_mbstate_t=no
22990 fi
22991
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993 fi
22994 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22995 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22996 if test $ac_cv_type_mbstate_t = yes; then
22997
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_MBSTATE_T 1
23000 _ACEOF
23001
23002 else
23003
23004 cat >>confdefs.h <<\_ACEOF
23005 #define mbstate_t int
23006 _ACEOF
23007
23008 fi
23009
23010 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23011 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23012 if test "${emacs_cv_c_restrict+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h. */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 void fred (int *restrict x);
23022 int
23023 main ()
23024 {
23025
23026 ;
23027 return 0;
23028 }
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23035 esac
23036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23037 (eval "$ac_compile") 2>conftest.er1
23038 ac_status=$?
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } && {
23044 test -z "$ac_c_werror_flag" ||
23045 test ! -s conftest.err
23046 } && test -s conftest.$ac_objext; then
23047 emacs_cv_c_restrict=yes
23048 else
23049 echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23051
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h. */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 void fred (int *__restrict x);
23059 int
23060 main ()
23061 {
23062
23063 ;
23064 return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_compile") 2>conftest.er1
23075 ac_status=$?
23076 grep -v '^ *+' conftest.er1 >conftest.err
23077 rm -f conftest.er1
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest.$ac_objext; then
23084 emacs_cv_c_restrict=__restrict
23085 else
23086 echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089 emacs_cv_c_restrict=no
23090 fi
23091
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 fi
23094
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 fi
23097 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23098 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23099 case "$emacs_cv_c_restrict" in
23100 yes) emacs_restrict=restrict;;
23101 no) emacs_restrict="";;
23102 *) emacs_restrict="$emacs_cv_c_restrict";;
23103 esac
23104 if test "$emacs_restrict" != __restrict; then
23105
23106 cat >>confdefs.h <<_ACEOF
23107 #define __restrict $emacs_restrict
23108 _ACEOF
23109
23110 fi
23111
23112 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23113 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23114 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 else
23117 cat >conftest.$ac_ext <<_ACEOF
23118 /* confdefs.h. */
23119 _ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23123 void fred (int x[__restrict]);
23124 int
23125 main ()
23126 {
23127
23128 ;
23129 return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23140 ac_status=$?
23141 grep -v '^ *+' conftest.er1 >conftest.err
23142 rm -f conftest.er1
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
23149 emacs_cv_c_restrict_arr=yes
23150 else
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 emacs_cv_c_restrict_arr=no
23155 fi
23156
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158 fi
23159 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23160 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23161 if test "$emacs_cv_c_restrict_arr" = yes; then
23162
23163 cat >>confdefs.h <<\_ACEOF
23164 #define __restrict_arr __restrict
23165 _ACEOF
23166
23167 fi
23168
23169
23170
23171 # Set up the CFLAGS for real compilation, so we can substitute it.
23172 CFLAGS="$REAL_CFLAGS"
23173 CPPFLAGS="$REAL_CPPFLAGS"
23174
23175 #### Find out which version of Emacs this is.
23176 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23177 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23178 if test x"${version}" = x; then
23179 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23180 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23181 { (exit 1); exit 1; }; }
23182 fi
23183
23184 ### Specify what sort of things we'll be editing into Makefile and config.h.
23185 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221 cat >>confdefs.h <<_ACEOF
23222 #define EMACS_CONFIGURATION "${canonical}"
23223 _ACEOF
23224
23225
23226 cat >>confdefs.h <<_ACEOF
23227 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23228 _ACEOF
23229
23230
23231 cat >>confdefs.h <<_ACEOF
23232 #define config_machfile "${machfile}"
23233 _ACEOF
23234
23235
23236 cat >>confdefs.h <<_ACEOF
23237 #define config_opsysfile "${opsysfile}"
23238 _ACEOF
23239
23240
23241 cat >>confdefs.h <<_ACEOF
23242 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23243 _ACEOF
23244
23245
23246 cat >>confdefs.h <<_ACEOF
23247 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23248 _ACEOF
23249
23250
23251 cat >>confdefs.h <<_ACEOF
23252 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23253 _ACEOF
23254
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define UNEXEC_SRC ${UNEXEC_SRC}
23258 _ACEOF
23259
23260
23261 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23262
23263 cat >>confdefs.h <<\_ACEOF
23264 #define HAVE_X_WINDOWS 1
23265 _ACEOF
23266
23267 fi
23268 if test "${USE_X_TOOLKIT}" != "none" ; then
23269
23270 cat >>confdefs.h <<\_ACEOF
23271 #define USE_X_TOOLKIT 1
23272 _ACEOF
23273
23274 fi
23275 if test "${HAVE_X11}" = "yes" ; then
23276
23277 cat >>confdefs.h <<\_ACEOF
23278 #define HAVE_X11 1
23279 _ACEOF
23280
23281 fi
23282 if test "${HAVE_XFREE386}" = "yes" ; then
23283
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_XFREE386 1
23286 _ACEOF
23287
23288 fi
23289 if test "${HAVE_MENUS}" = "yes" ; then
23290
23291 cat >>confdefs.h <<\_ACEOF
23292 #define HAVE_MENUS 1
23293 _ACEOF
23294
23295 fi
23296 if test "${GNU_MALLOC}" = "yes" ; then
23297
23298 cat >>confdefs.h <<\_ACEOF
23299 #define GNU_MALLOC 1
23300 _ACEOF
23301
23302 fi
23303 if test "${REL_ALLOC}" = "yes" ; then
23304
23305 cat >>confdefs.h <<\_ACEOF
23306 #define REL_ALLOC 1
23307 _ACEOF
23308
23309 fi
23310
23311
23312
23313
23314
23315 #### Report on what we decided to do.
23316 #### Report GTK as a toolkit, even if it doesn't use Xt.
23317 #### It makes printing result more understandable as using GTK sets
23318 #### toolkit_scroll_bars to yes by default.
23319 if test "${HAVE_GTK}" = "yes"; then
23320 USE_X_TOOLKIT=GTK
23321 fi
23322
23323 echo "
23324 Configured for \`${canonical}'.
23325
23326 Where should the build process find the source code? ${srcdir}
23327 What operating system and machine description files should Emacs use?
23328 \`${opsysfile}' and \`${machfile}'
23329 What compiler should emacs be built with? ${CC} ${CFLAGS}
23330 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23331 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23332 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23333 What window system should Emacs use? ${window_system}
23334 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23335
23336 if test -n "${x_includes}"; then
23337 echo " Where do we find X Windows header files? ${x_includes}"
23338 else
23339 echo " Where do we find X Windows header files? Standard dirs"
23340 fi
23341 if test -n "${x_libraries}"; then
23342 echo " Where do we find X Windows libraries? ${x_libraries}"
23343 else
23344 echo " Where do we find X Windows libraries? Standard dirs"
23345 fi
23346
23347 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23348 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23349 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23350 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23351 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23352 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23353 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23354 echo
23355
23356 if test $USE_XASSERTS = yes; then
23357 echo " Compiling with asserts turned on."
23358 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23359 echo
23360 fi
23361
23362
23363
23364 # Remove any trailing slashes in these variables.
23365 test "${prefix}" != NONE &&
23366 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23367 test "${exec_prefix}" != NONE &&
23368 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23369
23370 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23371 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23372 ## from Makefile.c can correctly provide the arg `-traditional' to the
23373 ## C preprocessor.
23374
23375 cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h. */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 yes..yes
23382 _ACEOF
23383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23384 $EGREP "yes..yes" >/dev/null 2>&1; then
23385 CPP_NEED_TRADITIONAL=no
23386 else
23387 CPP_NEED_TRADITIONAL=yes
23388 fi
23389 rm -f conftest*
23390
23391
23392 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23393
23394 ac_config_commands="$ac_config_commands default"
23395
23396 cat >confcache <<\_ACEOF
23397 # This file is a shell script that caches the results of configure
23398 # tests run on this system so they can be shared between configure
23399 # scripts and configure runs, see configure's option --config-cache.
23400 # It is not useful on other systems. If it contains results you don't
23401 # want to keep, you may remove or edit it.
23402 #
23403 # config.status only pays attention to the cache file if you give it
23404 # the --recheck option to rerun configure.
23405 #
23406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23408 # following values.
23409
23410 _ACEOF
23411
23412 # The following way of writing the cache mishandles newlines in values,
23413 # but we know of no workaround that is simple, portable, and efficient.
23414 # So, we kill variables containing newlines.
23415 # Ultrix sh set writes to stderr and can't be redirected directly,
23416 # and sets the high bit in the cache file unless we assign to the vars.
23417 (
23418 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23419 eval ac_val=\$$ac_var
23420 case $ac_val in #(
23421 *${as_nl}*)
23422 case $ac_var in #(
23423 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23424 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23425 esac
23426 case $ac_var in #(
23427 _ | IFS | as_nl) ;; #(
23428 *) $as_unset $ac_var ;;
23429 esac ;;
23430 esac
23431 done
23432
23433 (set) 2>&1 |
23434 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23435 *${as_nl}ac_space=\ *)
23436 # `set' does not quote correctly, so add quotes (double-quote
23437 # substitution turns \\\\ into \\, and sed turns \\ into \).
23438 sed -n \
23439 "s/'/'\\\\''/g;
23440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23441 ;; #(
23442 *)
23443 # `set' quotes correctly as required by POSIX, so do not add quotes.
23444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23445 ;;
23446 esac |
23447 sort
23448 ) |
23449 sed '
23450 /^ac_cv_env_/b end
23451 t clear
23452 :clear
23453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23454 t end
23455 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23456 :end' >>confcache
23457 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23458 if test -w "$cache_file"; then
23459 test "x$cache_file" != "x/dev/null" &&
23460 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23461 echo "$as_me: updating cache $cache_file" >&6;}
23462 cat confcache >$cache_file
23463 else
23464 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23465 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23466 fi
23467 fi
23468 rm -f confcache
23469
23470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23471 # Let make expand exec_prefix.
23472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23473
23474 DEFS=-DHAVE_CONFIG_H
23475
23476 ac_libobjs=
23477 ac_ltlibobjs=
23478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23479 # 1. Remove the extension, and $U if already installed.
23480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23481 ac_i=`echo "$ac_i" | sed "$ac_script"`
23482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23483 # will be set to the directory where LIBOBJS objects are built.
23484 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23485 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23486 done
23487 LIBOBJS=$ac_libobjs
23488
23489 LTLIBOBJS=$ac_ltlibobjs
23490
23491
23492
23493 : ${CONFIG_STATUS=./config.status}
23494 ac_clean_files_save=$ac_clean_files
23495 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23496 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23497 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23498 cat >$CONFIG_STATUS <<_ACEOF
23499 #! $SHELL
23500 # Generated by $as_me.
23501 # Run this file to recreate the current configuration.
23502 # Compiler output produced by configure, useful for debugging
23503 # configure, is in config.log if it exists.
23504
23505 debug=false
23506 ac_cs_recheck=false
23507 ac_cs_silent=false
23508 SHELL=\${CONFIG_SHELL-$SHELL}
23509 _ACEOF
23510
23511 cat >>$CONFIG_STATUS <<\_ACEOF
23512 ## --------------------- ##
23513 ## M4sh Initialization. ##
23514 ## --------------------- ##
23515
23516 # Be more Bourne compatible
23517 DUALCASE=1; export DUALCASE # for MKS sh
23518 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23519 emulate sh
23520 NULLCMD=:
23521 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23522 # is contrary to our usage. Disable this feature.
23523 alias -g '${1+"$@"}'='"$@"'
23524 setopt NO_GLOB_SUBST
23525 else
23526 case `(set -o) 2>/dev/null` in
23527 *posix*) set -o posix ;;
23528 esac
23529
23530 fi
23531
23532
23533
23534
23535 # PATH needs CR
23536 # Avoid depending upon Character Ranges.
23537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23540 as_cr_digits='0123456789'
23541 as_cr_alnum=$as_cr_Letters$as_cr_digits
23542
23543 # The user is always right.
23544 if test "${PATH_SEPARATOR+set}" != set; then
23545 echo "#! /bin/sh" >conf$$.sh
23546 echo "exit 0" >>conf$$.sh
23547 chmod +x conf$$.sh
23548 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23549 PATH_SEPARATOR=';'
23550 else
23551 PATH_SEPARATOR=:
23552 fi
23553 rm -f conf$$.sh
23554 fi
23555
23556 # Support unset when possible.
23557 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23558 as_unset=unset
23559 else
23560 as_unset=false
23561 fi
23562
23563
23564 # IFS
23565 # We need space, tab and new line, in precisely that order. Quoting is
23566 # there to prevent editors from complaining about space-tab.
23567 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23568 # splitting by setting IFS to empty value.)
23569 as_nl='
23570 '
23571 IFS=" "" $as_nl"
23572
23573 # Find who we are. Look in the path if we contain no directory separator.
23574 case $0 in
23575 *[\\/]* ) as_myself=$0 ;;
23576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23577 for as_dir in $PATH
23578 do
23579 IFS=$as_save_IFS
23580 test -z "$as_dir" && as_dir=.
23581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23582 done
23583 IFS=$as_save_IFS
23584
23585 ;;
23586 esac
23587 # We did not find ourselves, most probably we were run as `sh COMMAND'
23588 # in which case we are not to be found in the path.
23589 if test "x$as_myself" = x; then
23590 as_myself=$0
23591 fi
23592 if test ! -f "$as_myself"; then
23593 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23594 { (exit 1); exit 1; }
23595 fi
23596
23597 # Work around bugs in pre-3.0 UWIN ksh.
23598 for as_var in ENV MAIL MAILPATH
23599 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23600 done
23601 PS1='$ '
23602 PS2='> '
23603 PS4='+ '
23604
23605 # NLS nuisances.
23606 for as_var in \
23607 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23608 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23609 LC_TELEPHONE LC_TIME
23610 do
23611 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23612 eval $as_var=C; export $as_var
23613 else
23614 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23615 fi
23616 done
23617
23618 # Required to use basename.
23619 if expr a : '\(a\)' >/dev/null 2>&1 &&
23620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23621 as_expr=expr
23622 else
23623 as_expr=false
23624 fi
23625
23626 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23627 as_basename=basename
23628 else
23629 as_basename=false
23630 fi
23631
23632
23633 # Name of the executable.
23634 as_me=`$as_basename -- "$0" ||
23635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23636 X"$0" : 'X\(//\)$' \| \
23637 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23638 echo X/"$0" |
23639 sed '/^.*\/\([^/][^/]*\)\/*$/{
23640 s//\1/
23641 q
23642 }
23643 /^X\/\(\/\/\)$/{
23644 s//\1/
23645 q
23646 }
23647 /^X\/\(\/\).*/{
23648 s//\1/
23649 q
23650 }
23651 s/.*/./; q'`
23652
23653 # CDPATH.
23654 $as_unset CDPATH
23655
23656
23657
23658 as_lineno_1=$LINENO
23659 as_lineno_2=$LINENO
23660 test "x$as_lineno_1" != "x$as_lineno_2" &&
23661 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23662
23663 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23664 # uniformly replaced by the line number. The first 'sed' inserts a
23665 # line-number line after each line using $LINENO; the second 'sed'
23666 # does the real work. The second script uses 'N' to pair each
23667 # line-number line with the line containing $LINENO, and appends
23668 # trailing '-' during substitution so that $LINENO is not a special
23669 # case at line end.
23670 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23671 # scripts with optimization help from Paolo Bonzini. Blame Lee
23672 # E. McMahon (1931-1989) for sed's syntax. :-)
23673 sed -n '
23674 p
23675 /[$]LINENO/=
23676 ' <$as_myself |
23677 sed '
23678 s/[$]LINENO.*/&-/
23679 t lineno
23680 b
23681 :lineno
23682 N
23683 :loop
23684 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23685 t loop
23686 s/-\n.*//
23687 ' >$as_me.lineno &&
23688 chmod +x "$as_me.lineno" ||
23689 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23690 { (exit 1); exit 1; }; }
23691
23692 # Don't try to exec as it changes $[0], causing all sort of problems
23693 # (the dirname of $[0] is not the place where we might find the
23694 # original and so on. Autoconf is especially sensitive to this).
23695 . "./$as_me.lineno"
23696 # Exit status is that of the last command.
23697 exit
23698 }
23699
23700
23701 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23702 as_dirname=dirname
23703 else
23704 as_dirname=false
23705 fi
23706
23707 ECHO_C= ECHO_N= ECHO_T=
23708 case `echo -n x` in
23709 -n*)
23710 case `echo 'x\c'` in
23711 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23712 *) ECHO_C='\c';;
23713 esac;;
23714 *)
23715 ECHO_N='-n';;
23716 esac
23717
23718 if expr a : '\(a\)' >/dev/null 2>&1 &&
23719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23720 as_expr=expr
23721 else
23722 as_expr=false
23723 fi
23724
23725 rm -f conf$$ conf$$.exe conf$$.file
23726 if test -d conf$$.dir; then
23727 rm -f conf$$.dir/conf$$.file
23728 else
23729 rm -f conf$$.dir
23730 mkdir conf$$.dir
23731 fi
23732 echo >conf$$.file
23733 if ln -s conf$$.file conf$$ 2>/dev/null; then
23734 as_ln_s='ln -s'
23735 # ... but there are two gotchas:
23736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23738 # In both cases, we have to default to `cp -p'.
23739 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23740 as_ln_s='cp -p'
23741 elif ln conf$$.file conf$$ 2>/dev/null; then
23742 as_ln_s=ln
23743 else
23744 as_ln_s='cp -p'
23745 fi
23746 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23747 rmdir conf$$.dir 2>/dev/null
23748
23749 if mkdir -p . 2>/dev/null; then
23750 as_mkdir_p=:
23751 else
23752 test -d ./-p && rmdir ./-p
23753 as_mkdir_p=false
23754 fi
23755
23756 if test -x / >/dev/null 2>&1; then
23757 as_test_x='test -x'
23758 else
23759 if ls -dL / >/dev/null 2>&1; then
23760 as_ls_L_option=L
23761 else
23762 as_ls_L_option=
23763 fi
23764 as_test_x='
23765 eval sh -c '\''
23766 if test -d "$1"; then
23767 test -d "$1/.";
23768 else
23769 case $1 in
23770 -*)set "./$1";;
23771 esac;
23772 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23773 ???[sx]*):;;*)false;;esac;fi
23774 '\'' sh
23775 '
23776 fi
23777 as_executable_p=$as_test_x
23778
23779 # Sed expression to map a string onto a valid CPP name.
23780 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23781
23782 # Sed expression to map a string onto a valid variable name.
23783 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23784
23785
23786 exec 6>&1
23787
23788 # Save the log message, to keep $[0] and so on meaningful, and to
23789 # report actual input values of CONFIG_FILES etc. instead of their
23790 # values after options handling.
23791 ac_log="
23792 This file was extended by $as_me, which was
23793 generated by GNU Autoconf 2.61. Invocation command line was
23794
23795 CONFIG_FILES = $CONFIG_FILES
23796 CONFIG_HEADERS = $CONFIG_HEADERS
23797 CONFIG_LINKS = $CONFIG_LINKS
23798 CONFIG_COMMANDS = $CONFIG_COMMANDS
23799 $ $0 $@
23800
23801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23802 "
23803
23804 _ACEOF
23805
23806 cat >>$CONFIG_STATUS <<_ACEOF
23807 # Files that config.status was made for.
23808 config_files="$ac_config_files"
23809 config_headers="$ac_config_headers"
23810 config_commands="$ac_config_commands"
23811
23812 _ACEOF
23813
23814 cat >>$CONFIG_STATUS <<\_ACEOF
23815 ac_cs_usage="\
23816 \`$as_me' instantiates files from templates according to the
23817 current configuration.
23818
23819 Usage: $0 [OPTIONS] [FILE]...
23820
23821 -h, --help print this help, then exit
23822 -V, --version print version number and configuration settings, then exit
23823 -q, --quiet do not print progress messages
23824 -d, --debug don't remove temporary files
23825 --recheck update $as_me by reconfiguring in the same conditions
23826 --file=FILE[:TEMPLATE]
23827 instantiate the configuration file FILE
23828 --header=FILE[:TEMPLATE]
23829 instantiate the configuration header FILE
23830
23831 Configuration files:
23832 $config_files
23833
23834 Configuration headers:
23835 $config_headers
23836
23837 Configuration commands:
23838 $config_commands
23839
23840 Report bugs to <bug-autoconf@gnu.org>."
23841
23842 _ACEOF
23843 cat >>$CONFIG_STATUS <<_ACEOF
23844 ac_cs_version="\\
23845 config.status
23846 configured by $0, generated by GNU Autoconf 2.61,
23847 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23848
23849 Copyright (C) 2006 Free Software Foundation, Inc.
23850 This config.status script is free software; the Free Software Foundation
23851 gives unlimited permission to copy, distribute and modify it."
23852
23853 ac_pwd='$ac_pwd'
23854 srcdir='$srcdir'
23855 INSTALL='$INSTALL'
23856 _ACEOF
23857
23858 cat >>$CONFIG_STATUS <<\_ACEOF
23859 # If no file are specified by the user, then we need to provide default
23860 # value. By we need to know if files were specified by the user.
23861 ac_need_defaults=:
23862 while test $# != 0
23863 do
23864 case $1 in
23865 --*=*)
23866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23868 ac_shift=:
23869 ;;
23870 *)
23871 ac_option=$1
23872 ac_optarg=$2
23873 ac_shift=shift
23874 ;;
23875 esac
23876
23877 case $ac_option in
23878 # Handling of the options.
23879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23880 ac_cs_recheck=: ;;
23881 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23882 echo "$ac_cs_version"; exit ;;
23883 --debug | --debu | --deb | --de | --d | -d )
23884 debug=: ;;
23885 --file | --fil | --fi | --f )
23886 $ac_shift
23887 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23888 ac_need_defaults=false;;
23889 --header | --heade | --head | --hea )
23890 $ac_shift
23891 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23892 ac_need_defaults=false;;
23893 --he | --h)
23894 # Conflict between --help and --header
23895 { echo "$as_me: error: ambiguous option: $1
23896 Try \`$0 --help' for more information." >&2
23897 { (exit 1); exit 1; }; };;
23898 --help | --hel | -h )
23899 echo "$ac_cs_usage"; exit ;;
23900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23901 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23902 ac_cs_silent=: ;;
23903
23904 # This is an error.
23905 -*) { echo "$as_me: error: unrecognized option: $1
23906 Try \`$0 --help' for more information." >&2
23907 { (exit 1); exit 1; }; } ;;
23908
23909 *) ac_config_targets="$ac_config_targets $1"
23910 ac_need_defaults=false ;;
23911
23912 esac
23913 shift
23914 done
23915
23916 ac_configure_extra_args=
23917
23918 if $ac_cs_silent; then
23919 exec 6>/dev/null
23920 ac_configure_extra_args="$ac_configure_extra_args --silent"
23921 fi
23922
23923 _ACEOF
23924 cat >>$CONFIG_STATUS <<_ACEOF
23925 if \$ac_cs_recheck; then
23926 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23927 CONFIG_SHELL=$SHELL
23928 export CONFIG_SHELL
23929 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23930 fi
23931
23932 _ACEOF
23933 cat >>$CONFIG_STATUS <<\_ACEOF
23934 exec 5>>config.log
23935 {
23936 echo
23937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23938 ## Running $as_me. ##
23939 _ASBOX
23940 echo "$ac_log"
23941 } >&5
23942
23943 _ACEOF
23944 cat >>$CONFIG_STATUS <<_ACEOF
23945 #
23946 # INIT-COMMANDS
23947 #
23948 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23949
23950 _ACEOF
23951
23952 cat >>$CONFIG_STATUS <<\_ACEOF
23953
23954 # Handling of arguments.
23955 for ac_config_target in $ac_config_targets
23956 do
23957 case $ac_config_target in
23958 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23959 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23960 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23961 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23962 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23963 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23964 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23965 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23966 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23967 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23968 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23969 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23970
23971 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23972 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23973 { (exit 1); exit 1; }; };;
23974 esac
23975 done
23976
23977
23978 # If the user did not use the arguments to specify the items to instantiate,
23979 # then the envvar interface is used. Set only those that are not.
23980 # We use the long form for the default assignment because of an extremely
23981 # bizarre bug on SunOS 4.1.3.
23982 if $ac_need_defaults; then
23983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23986 fi
23987
23988 # Have a temporary directory for convenience. Make it in the build tree
23989 # simply because there is no reason against having it here, and in addition,
23990 # creating and moving files from /tmp can sometimes cause problems.
23991 # Hook for its removal unless debugging.
23992 # Note that there is a small window in which the directory will not be cleaned:
23993 # after its creation but before its name has been assigned to `$tmp'.
23994 $debug ||
23995 {
23996 tmp=
23997 trap 'exit_status=$?
23998 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23999 ' 0
24000 trap '{ (exit 1); exit 1; }' 1 2 13 15
24001 }
24002 # Create a (secure) tmp directory for tmp files.
24003
24004 {
24005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24006 test -n "$tmp" && test -d "$tmp"
24007 } ||
24008 {
24009 tmp=./conf$$-$RANDOM
24010 (umask 077 && mkdir "$tmp")
24011 } ||
24012 {
24013 echo "$me: cannot create a temporary directory in ." >&2
24014 { (exit 1); exit 1; }
24015 }
24016
24017 #
24018 # Set up the sed scripts for CONFIG_FILES section.
24019 #
24020
24021 # No need to generate the scripts if there are no CONFIG_FILES.
24022 # This happens for instance when ./config.status config.h
24023 if test -n "$CONFIG_FILES"; then
24024
24025 _ACEOF
24026
24027
24028
24029 ac_delim='%!_!# '
24030 for ac_last_try in false false false false false :; do
24031 cat >conf$$subs.sed <<_ACEOF
24032 SHELL!$SHELL$ac_delim
24033 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24034 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24035 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24036 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24037 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24038 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24039 exec_prefix!$exec_prefix$ac_delim
24040 prefix!$prefix$ac_delim
24041 program_transform_name!$program_transform_name$ac_delim
24042 bindir!$bindir$ac_delim
24043 sbindir!$sbindir$ac_delim
24044 libexecdir!$libexecdir$ac_delim
24045 datarootdir!$datarootdir$ac_delim
24046 datadir!$datadir$ac_delim
24047 sysconfdir!$sysconfdir$ac_delim
24048 sharedstatedir!$sharedstatedir$ac_delim
24049 localstatedir!$localstatedir$ac_delim
24050 includedir!$includedir$ac_delim
24051 oldincludedir!$oldincludedir$ac_delim
24052 docdir!$docdir$ac_delim
24053 infodir!$infodir$ac_delim
24054 htmldir!$htmldir$ac_delim
24055 dvidir!$dvidir$ac_delim
24056 pdfdir!$pdfdir$ac_delim
24057 psdir!$psdir$ac_delim
24058 libdir!$libdir$ac_delim
24059 localedir!$localedir$ac_delim
24060 mandir!$mandir$ac_delim
24061 DEFS!$DEFS$ac_delim
24062 ECHO_C!$ECHO_C$ac_delim
24063 ECHO_N!$ECHO_N$ac_delim
24064 ECHO_T!$ECHO_T$ac_delim
24065 LIBS!$LIBS$ac_delim
24066 build_alias!$build_alias$ac_delim
24067 host_alias!$host_alias$ac_delim
24068 target_alias!$target_alias$ac_delim
24069 MAINT!$MAINT$ac_delim
24070 build!$build$ac_delim
24071 build_cpu!$build_cpu$ac_delim
24072 build_vendor!$build_vendor$ac_delim
24073 build_os!$build_os$ac_delim
24074 host!$host$ac_delim
24075 host_cpu!$host_cpu$ac_delim
24076 host_vendor!$host_vendor$ac_delim
24077 host_os!$host_os$ac_delim
24078 CC!$CC$ac_delim
24079 CFLAGS!$CFLAGS$ac_delim
24080 LDFLAGS!$LDFLAGS$ac_delim
24081 CPPFLAGS!$CPPFLAGS$ac_delim
24082 ac_ct_CC!$ac_ct_CC$ac_delim
24083 EXEEXT!$EXEEXT$ac_delim
24084 OBJEXT!$OBJEXT$ac_delim
24085 CPP!$CPP$ac_delim
24086 GREP!$GREP$ac_delim
24087 EGREP!$EGREP$ac_delim
24088 LN_S!$LN_S$ac_delim
24089 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24090 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24091 INSTALL_DATA!$INSTALL_DATA$ac_delim
24092 RANLIB!$RANLIB$ac_delim
24093 INSTALL_INFO!$INSTALL_INFO$ac_delim
24094 GZIP_PROG!$GZIP_PROG$ac_delim
24095 LIBSOUND!$LIBSOUND$ac_delim
24096 PKG_CONFIG!$PKG_CONFIG$ac_delim
24097 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24098 ALSA_LIBS!$ALSA_LIBS$ac_delim
24099 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24100 SET_MAKE!$SET_MAKE$ac_delim
24101 XMKMF!$XMKMF$ac_delim
24102 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24103 GTK_LIBS!$GTK_LIBS$ac_delim
24104 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24105 XFT_LIBS!$XFT_LIBS$ac_delim
24106 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24107 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24108 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24109 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24110 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24111 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24112 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24113 ALLOCA!$ALLOCA$ac_delim
24114 liblockfile!$liblockfile$ac_delim
24115 LIBOBJS!$LIBOBJS$ac_delim
24116 NEED_SETGID!$NEED_SETGID$ac_delim
24117 KMEM_GROUP!$KMEM_GROUP$ac_delim
24118 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24119 GETOPT_H!$GETOPT_H$ac_delim
24120 GETOPTOBJS!$GETOPTOBJS$ac_delim
24121 version!$version$ac_delim
24122 configuration!$configuration$ac_delim
24123 canonical!$canonical$ac_delim
24124 srcdir!$srcdir$ac_delim
24125 lispdir!$lispdir$ac_delim
24126 locallisppath!$locallisppath$ac_delim
24127 lisppath!$lisppath$ac_delim
24128 x_default_search_path!$x_default_search_path$ac_delim
24129 _ACEOF
24130
24131 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24132 break
24133 elif $ac_last_try; then
24134 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24135 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24136 { (exit 1); exit 1; }; }
24137 else
24138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24139 fi
24140 done
24141
24142 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24143 if test -n "$ac_eof"; then
24144 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24145 ac_eof=`expr $ac_eof + 1`
24146 fi
24147
24148 cat >>$CONFIG_STATUS <<_ACEOF
24149 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24151 _ACEOF
24152 sed '
24153 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24154 s/^/s,@/; s/!/@,|#_!!_#|/
24155 :n
24156 t n
24157 s/'"$ac_delim"'$/,g/; t
24158 s/$/\\/; p
24159 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24160 ' >>$CONFIG_STATUS <conf$$subs.sed
24161 rm -f conf$$subs.sed
24162 cat >>$CONFIG_STATUS <<_ACEOF
24163 CEOF$ac_eof
24164 _ACEOF
24165
24166
24167 ac_delim='%!_!# '
24168 for ac_last_try in false false false false false :; do
24169 cat >conf$$subs.sed <<_ACEOF
24170 etcdir!$etcdir$ac_delim
24171 archlibdir!$archlibdir$ac_delim
24172 bitmapdir!$bitmapdir$ac_delim
24173 gamedir!$gamedir$ac_delim
24174 gameuser!$gameuser$ac_delim
24175 c_switch_system!$c_switch_system$ac_delim
24176 c_switch_machine!$c_switch_machine$ac_delim
24177 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24178 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24179 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24180 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24181 machfile!$machfile$ac_delim
24182 opsysfile!$opsysfile$ac_delim
24183 carbon_appdir!$carbon_appdir$ac_delim
24184 LTLIBOBJS!$LTLIBOBJS$ac_delim
24185 _ACEOF
24186
24187 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24188 break
24189 elif $ac_last_try; then
24190 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24191 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24192 { (exit 1); exit 1; }; }
24193 else
24194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24195 fi
24196 done
24197
24198 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24199 if test -n "$ac_eof"; then
24200 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24201 ac_eof=`expr $ac_eof + 1`
24202 fi
24203
24204 cat >>$CONFIG_STATUS <<_ACEOF
24205 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24207 _ACEOF
24208 sed '
24209 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24210 s/^/s,@/; s/!/@,|#_!!_#|/
24211 :n
24212 t n
24213 s/'"$ac_delim"'$/,g/; t
24214 s/$/\\/; p
24215 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24216 ' >>$CONFIG_STATUS <conf$$subs.sed
24217 rm -f conf$$subs.sed
24218 cat >>$CONFIG_STATUS <<_ACEOF
24219 :end
24220 s/|#_!!_#|//g
24221 CEOF$ac_eof
24222 _ACEOF
24223
24224
24225 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24226 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24227 # trailing colons and then remove the whole line if VPATH becomes empty
24228 # (actually we leave an empty line to preserve line numbers).
24229 if test "x$srcdir" = x.; then
24230 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24231 s/:*\$(srcdir):*/:/
24232 s/:*\${srcdir}:*/:/
24233 s/:*@srcdir@:*/:/
24234 s/^\([^=]*=[ ]*\):*/\1/
24235 s/:*$//
24236 s/^[^=]*=[ ]*$//
24237 }'
24238 fi
24239
24240 cat >>$CONFIG_STATUS <<\_ACEOF
24241 fi # test -n "$CONFIG_FILES"
24242
24243
24244 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24245 do
24246 case $ac_tag in
24247 :[FHLC]) ac_mode=$ac_tag; continue;;
24248 esac
24249 case $ac_mode$ac_tag in
24250 :[FHL]*:*);;
24251 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24252 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24253 { (exit 1); exit 1; }; };;
24254 :[FH]-) ac_tag=-:-;;
24255 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24256 esac
24257 ac_save_IFS=$IFS
24258 IFS=:
24259 set x $ac_tag
24260 IFS=$ac_save_IFS
24261 shift
24262 ac_file=$1
24263 shift
24264
24265 case $ac_mode in
24266 :L) ac_source=$1;;
24267 :[FH])
24268 ac_file_inputs=
24269 for ac_f
24270 do
24271 case $ac_f in
24272 -) ac_f="$tmp/stdin";;
24273 *) # Look for the file first in the build tree, then in the source tree
24274 # (if the path is not absolute). The absolute path cannot be DOS-style,
24275 # because $ac_f cannot contain `:'.
24276 test -f "$ac_f" ||
24277 case $ac_f in
24278 [\\/$]*) false;;
24279 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24280 esac ||
24281 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24282 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24283 { (exit 1); exit 1; }; };;
24284 esac
24285 ac_file_inputs="$ac_file_inputs $ac_f"
24286 done
24287
24288 # Let's still pretend it is `configure' which instantiates (i.e., don't
24289 # use $as_me), people would be surprised to read:
24290 # /* config.h. Generated by config.status. */
24291 configure_input="Generated from "`IFS=:
24292 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24293 if test x"$ac_file" != x-; then
24294 configure_input="$ac_file. $configure_input"
24295 { echo "$as_me:$LINENO: creating $ac_file" >&5
24296 echo "$as_me: creating $ac_file" >&6;}
24297 fi
24298
24299 case $ac_tag in
24300 *:-:* | *:-) cat >"$tmp/stdin";;
24301 esac
24302 ;;
24303 esac
24304
24305 ac_dir=`$as_dirname -- "$ac_file" ||
24306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24307 X"$ac_file" : 'X\(//\)[^/]' \| \
24308 X"$ac_file" : 'X\(//\)$' \| \
24309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24310 echo X"$ac_file" |
24311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24312 s//\1/
24313 q
24314 }
24315 /^X\(\/\/\)[^/].*/{
24316 s//\1/
24317 q
24318 }
24319 /^X\(\/\/\)$/{
24320 s//\1/
24321 q
24322 }
24323 /^X\(\/\).*/{
24324 s//\1/
24325 q
24326 }
24327 s/.*/./; q'`
24328 { as_dir="$ac_dir"
24329 case $as_dir in #(
24330 -*) as_dir=./$as_dir;;
24331 esac
24332 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24333 as_dirs=
24334 while :; do
24335 case $as_dir in #(
24336 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24337 *) as_qdir=$as_dir;;
24338 esac
24339 as_dirs="'$as_qdir' $as_dirs"
24340 as_dir=`$as_dirname -- "$as_dir" ||
24341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24342 X"$as_dir" : 'X\(//\)[^/]' \| \
24343 X"$as_dir" : 'X\(//\)$' \| \
24344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24345 echo X"$as_dir" |
24346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24347 s//\1/
24348 q
24349 }
24350 /^X\(\/\/\)[^/].*/{
24351 s//\1/
24352 q
24353 }
24354 /^X\(\/\/\)$/{
24355 s//\1/
24356 q
24357 }
24358 /^X\(\/\).*/{
24359 s//\1/
24360 q
24361 }
24362 s/.*/./; q'`
24363 test -d "$as_dir" && break
24364 done
24365 test -z "$as_dirs" || eval "mkdir $as_dirs"
24366 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24367 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24368 { (exit 1); exit 1; }; }; }
24369 ac_builddir=.
24370
24371 case "$ac_dir" in
24372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24373 *)
24374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24375 # A ".." for each directory in $ac_dir_suffix.
24376 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24377 case $ac_top_builddir_sub in
24378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24380 esac ;;
24381 esac
24382 ac_abs_top_builddir=$ac_pwd
24383 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24384 # for backward compatibility:
24385 ac_top_builddir=$ac_top_build_prefix
24386
24387 case $srcdir in
24388 .) # We are building in place.
24389 ac_srcdir=.
24390 ac_top_srcdir=$ac_top_builddir_sub
24391 ac_abs_top_srcdir=$ac_pwd ;;
24392 [\\/]* | ?:[\\/]* ) # Absolute name.
24393 ac_srcdir=$srcdir$ac_dir_suffix;
24394 ac_top_srcdir=$srcdir
24395 ac_abs_top_srcdir=$srcdir ;;
24396 *) # Relative name.
24397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24398 ac_top_srcdir=$ac_top_build_prefix$srcdir
24399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24400 esac
24401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24402
24403
24404 case $ac_mode in
24405 :F)
24406 #
24407 # CONFIG_FILE
24408 #
24409
24410 case $INSTALL in
24411 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24412 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24413 esac
24414 _ACEOF
24415
24416 cat >>$CONFIG_STATUS <<\_ACEOF
24417 # If the template does not know about datarootdir, expand it.
24418 # FIXME: This hack should be removed a few years after 2.60.
24419 ac_datarootdir_hack=; ac_datarootdir_seen=
24420
24421 case `sed -n '/datarootdir/ {
24422 p
24423 q
24424 }
24425 /@datadir@/p
24426 /@docdir@/p
24427 /@infodir@/p
24428 /@localedir@/p
24429 /@mandir@/p
24430 ' $ac_file_inputs` in
24431 *datarootdir*) ac_datarootdir_seen=yes;;
24432 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24433 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24434 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24435 _ACEOF
24436 cat >>$CONFIG_STATUS <<_ACEOF
24437 ac_datarootdir_hack='
24438 s&@datadir@&$datadir&g
24439 s&@docdir@&$docdir&g
24440 s&@infodir@&$infodir&g
24441 s&@localedir@&$localedir&g
24442 s&@mandir@&$mandir&g
24443 s&\\\${datarootdir}&$datarootdir&g' ;;
24444 esac
24445 _ACEOF
24446
24447 # Neutralize VPATH when `$srcdir' = `.'.
24448 # Shell code in configure.ac might set extrasub.
24449 # FIXME: do we really want to maintain this feature?
24450 cat >>$CONFIG_STATUS <<_ACEOF
24451 sed "$ac_vpsub
24452 $extrasub
24453 _ACEOF
24454 cat >>$CONFIG_STATUS <<\_ACEOF
24455 :t
24456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24457 s&@configure_input@&$configure_input&;t t
24458 s&@top_builddir@&$ac_top_builddir_sub&;t t
24459 s&@srcdir@&$ac_srcdir&;t t
24460 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24461 s&@top_srcdir@&$ac_top_srcdir&;t t
24462 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24463 s&@builddir@&$ac_builddir&;t t
24464 s&@abs_builddir@&$ac_abs_builddir&;t t
24465 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24466 s&@INSTALL@&$ac_INSTALL&;t t
24467 $ac_datarootdir_hack
24468 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24469
24470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24473 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24474 which seems to be undefined. Please make sure it is defined." >&5
24475 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24476 which seems to be undefined. Please make sure it is defined." >&2;}
24477
24478 rm -f "$tmp/stdin"
24479 case $ac_file in
24480 -) cat "$tmp/out"; rm -f "$tmp/out";;
24481 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24482 esac
24483 ;;
24484 :H)
24485 #
24486 # CONFIG_HEADER
24487 #
24488 _ACEOF
24489
24490 # Transform confdefs.h into a sed script `conftest.defines', that
24491 # substitutes the proper values into config.h.in to produce config.h.
24492 rm -f conftest.defines conftest.tail
24493 # First, append a space to every undef/define line, to ease matching.
24494 echo 's/$/ /' >conftest.defines
24495 # Then, protect against being on the right side of a sed subst, or in
24496 # an unquoted here document, in config.status. If some macros were
24497 # called several times there might be several #defines for the same
24498 # symbol, which is useless. But do not sort them, since the last
24499 # AC_DEFINE must be honored.
24500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24501 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24502 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24503 # PARAMS is the parameter list in the macro definition--in most cases, it's
24504 # just an empty string.
24505 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24506 ac_dB='\\)[ (].*,\\1define\\2'
24507 ac_dC=' '
24508 ac_dD=' ,'
24509
24510 uniq confdefs.h |
24511 sed -n '
24512 t rset
24513 :rset
24514 s/^[ ]*#[ ]*define[ ][ ]*//
24515 t ok
24516 d
24517 :ok
24518 s/[\\&,]/\\&/g
24519 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24520 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24521 ' >>conftest.defines
24522
24523 # Remove the space that was appended to ease matching.
24524 # Then replace #undef with comments. This is necessary, for
24525 # example, in the case of _POSIX_SOURCE, which is predefined and required
24526 # on some systems where configure will not decide to define it.
24527 # (The regexp can be short, since the line contains either #define or #undef.)
24528 echo 's/ $//
24529 s,^[ #]*u.*,/* & */,' >>conftest.defines
24530
24531 # Break up conftest.defines:
24532 ac_max_sed_lines=50
24533
24534 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24535 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24536 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24537 # et cetera.
24538 ac_in='$ac_file_inputs'
24539 ac_out='"$tmp/out1"'
24540 ac_nxt='"$tmp/out2"'
24541
24542 while :
24543 do
24544 # Write a here document:
24545 cat >>$CONFIG_STATUS <<_ACEOF
24546 # First, check the format of the line:
24547 cat >"\$tmp/defines.sed" <<\\CEOF
24548 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24549 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24550 b
24551 :def
24552 _ACEOF
24553 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24554 echo 'CEOF
24555 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24556 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24557 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24558 grep . conftest.tail >/dev/null || break
24559 rm -f conftest.defines
24560 mv conftest.tail conftest.defines
24561 done
24562 rm -f conftest.defines conftest.tail
24563
24564 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24565 cat >>$CONFIG_STATUS <<\_ACEOF
24566 if test x"$ac_file" != x-; then
24567 echo "/* $configure_input */" >"$tmp/config.h"
24568 cat "$ac_result" >>"$tmp/config.h"
24569 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24570 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24571 echo "$as_me: $ac_file is unchanged" >&6;}
24572 else
24573 rm -f $ac_file
24574 mv "$tmp/config.h" $ac_file
24575 fi
24576 else
24577 echo "/* $configure_input */"
24578 cat "$ac_result"
24579 fi
24580 rm -f "$tmp/out12"
24581 ;;
24582
24583 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24584 echo "$as_me: executing $ac_file commands" >&6;}
24585 ;;
24586 esac
24587
24588
24589 case $ac_file$ac_mode in
24590 "default":C)
24591
24592 ### Make the necessary directories, if they don't exist.
24593 for dir in etc lisp ; do
24594 test -d ${dir} || mkdir ${dir}
24595 done
24596
24597 # Build src/Makefile from ${srcdir}/src/Makefile.c
24598 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24599 # This must be done after src/config.h is built, since we rely on that file.
24600
24601 # Now get this: Some word that is part of the ${srcdir} directory name
24602 # or the ${configuration} value might, just might, happen to be an
24603 # identifier like `sun4' or `i386' or something, and be predefined by
24604 # the C preprocessor to some helpful value like 1, or maybe the empty
24605 # string. Needless to say consequent macro substitutions are less
24606 # than conducive to the makefile finding the correct directory.
24607 undefs="`echo $top_srcdir $configuration $canonical |
24608 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24609 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24610 `"
24611
24612 echo creating src/epaths.h
24613 ${MAKE-make} epaths-force
24614
24615 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24616 # `..' to `. .' unless invoked with -traditional
24617
24618 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24619 CPPFLAGS="$CPPFLAGS -traditional"
24620 fi
24621
24622 echo creating lib-src/Makefile
24623 ( cd lib-src
24624 rm -f junk.c junk1.c junk2.c
24625 sed -e '/start of cpp stuff/q' \
24626 < Makefile.c > junk1.c
24627 sed -e '1,/start of cpp stuff/d'\
24628 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24629 < Makefile.c > junk.c
24630 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24631 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24632 cat junk1.c junk2.c > Makefile.new
24633 rm -f junk.c junk1.c junk2.c
24634 chmod 444 Makefile.new
24635 mv -f Makefile.new Makefile
24636 )
24637
24638 echo creating src/Makefile
24639 ( cd src
24640 rm -f junk.c junk1.c junk2.c
24641 sed -e '/start of cpp stuff/q' \
24642 < Makefile.c > junk1.c
24643 sed -e '1,/start of cpp stuff/d'\
24644 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24645 < Makefile.c > junk.c
24646 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24647 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24648 fi
24649 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24650 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24651 cat junk1.c junk2.c > Makefile.new
24652 rm -f junk.c junk1.c junk2.c
24653 chmod 444 Makefile.new
24654 mv -f Makefile.new Makefile
24655 )
24656
24657 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24658 echo creating src/.gdbinit
24659 echo source $srcdir/src/.gdbinit > src/.gdbinit
24660 fi
24661
24662 # This is how we know whether to re-run configure in certain cases.
24663 touch src/config.stamp
24664
24665 ;;
24666
24667 esac
24668 done # for ac_tag
24669
24670
24671 { (exit 0); exit 0; }
24672 _ACEOF
24673 chmod +x $CONFIG_STATUS
24674 ac_clean_files=$ac_clean_files_save
24675
24676
24677 # configure is writing to config.log, and then calls config.status.
24678 # config.status does its own redirection, appending to config.log.
24679 # Unfortunately, on DOS this fails, as config.log is still kept open
24680 # by configure, so config.status won't be able to write to it; its
24681 # output is simply discarded. So we exec the FD to /dev/null,
24682 # effectively closing config.log, so it can be properly (re)opened and
24683 # appended to by config.status. When coming back to configure, we
24684 # need to make the FD available again.
24685 if test "$no_create" != yes; then
24686 ac_cs_success=:
24687 ac_config_status_args=
24688 test "$silent" = yes &&
24689 ac_config_status_args="$ac_config_status_args --quiet"
24690 exec 5>/dev/null
24691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24692 exec 5>>config.log
24693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24694 # would make configure fail if this is the last instruction.
24695 $ac_cs_success || { (exit 1); exit 1; }
24696 fi
24697
24698