Use singular
[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 Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
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; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1854 #define KERBEROS 1
1855 _ACEOF
1856
1857 fi
1858 fi
1859
1860
1861
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1866 with_kerberos=yes
1867 cat >>confdefs.h <<\_ACEOF
1868 #define KERBEROS 1
1869 _ACEOF
1870
1871 fi
1872
1873 cat >>confdefs.h <<\_ACEOF
1874 #define KERBEROS5 1
1875 _ACEOF
1876
1877 fi
1878 fi
1879
1880
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1884
1885 cat >>confdefs.h <<\_ACEOF
1886 #define HESIOD 1
1887 _ACEOF
1888
1889 fi
1890 fi
1891
1892
1893
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1897 fi
1898
1899
1900
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1905 n | no ) val=no ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1910 * )
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1912 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1913 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1918 ;;
1919 esac
1920 with_x_toolkit=$val
1921
1922 fi
1923
1924
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1927 withval=$with_xpm;
1928 fi
1929
1930
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1933 withval=$with_jpeg;
1934 fi
1935
1936
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1939 withval=$with_tiff;
1940 fi
1941
1942
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1945 withval=$with_gif;
1946 fi
1947
1948
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1951 withval=$with_png;
1952 fi
1953
1954
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1958 fi
1959
1960
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1963 withval=$with_xft;
1964 fi
1965
1966
1967 # Check whether --with-gtk was given.
1968 if test "${with_gtk+set}" = set; then
1969 withval=$with_gtk;
1970 fi
1971
1972
1973 # Check whether --with-pkg-config-prog was given.
1974 if test "${with_pkg_config_prog+set}" = set; then
1975 withval=$with_pkg_config_prog;
1976 fi
1977
1978
1979 # Check whether --with-toolkit-scroll-bars was given.
1980 if test "${with_toolkit_scroll_bars+set}" = set; then
1981 withval=$with_toolkit_scroll_bars;
1982 fi
1983
1984
1985 # Check whether --with-xim was given.
1986 if test "${with_xim+set}" = set; then
1987 withval=$with_xim;
1988 fi
1989
1990
1991 # Check whether --with-carbon was given.
1992 if test "${with_carbon+set}" = set; then
1993 withval=$with_carbon;
1994 fi
1995
1996 # Check whether --enable-carbon-app was given.
1997 if test "${enable_carbon_app+set}" = set; then
1998 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1999 fi
2000
2001
2002 # Check whether --enable-font-backend was given.
2003 if test "${enable_font_backend+set}" = set; then
2004 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2005 else
2006 USE_FONT_BACKEND=no
2007 fi
2008
2009
2010 # Check whether --enable-asserts was given.
2011 if test "${enable_asserts+set}" = set; then
2012 enableval=$enable_asserts; USE_XASSERTS=$enableval
2013 else
2014 USE_XASSERTS=no
2015 fi
2016
2017
2018 # Check whether --enable-maintainer-mode was given.
2019 if test "${enable_maintainer_mode+set}" = set; then
2020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2021 else
2022 USE_MAINTAINER_MODE=no
2023 fi
2024
2025 if test $USE_MAINTAINER_MODE = yes; then
2026 MAINT=
2027 else
2028 MAINT=#
2029 fi
2030
2031
2032 # Check whether --enable-locallisppath was given.
2033 if test "${enable_locallisppath+set}" = set; then
2034 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2035 locallisppath=
2036 elif test "${enableval}" != "yes"; then
2037 locallisppath=${enableval}
2038 fi
2039 fi
2040
2041
2042 #### Make srcdir absolute, if it isn't already. It's important to
2043 #### avoid running the path through pwd unnecessarily, since pwd can
2044 #### give you automounter prefixes, which can go away. We do all this
2045 #### so Emacs can find its files when run uninstalled.
2046 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2047 unset CDPATH
2048 case "${srcdir}" in
2049 /* ) ;;
2050 . )
2051 ## We may be able to use the $PWD environment variable to make this
2052 ## absolute. But sometimes PWD is inaccurate.
2053 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2054 ## but that tested only for a well-formed and valid PWD,
2055 ## it did not object when PWD was well-formed and valid but just wrong.
2056 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2057 then
2058 srcdir="$PWD"
2059 else
2060 srcdir="`(cd ${srcdir}; pwd)`"
2061 fi
2062 ;;
2063 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2064 esac
2065
2066 #### Check if the source directory already has a configured system in it.
2067 if test `pwd` != `(cd ${srcdir} && pwd)` \
2068 && test -f "${srcdir}/src/config.h" ; then
2069 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&5
2075 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&2;}
2081 fi
2082
2083 #### Given the configuration name, set machfile and opsysfile to the
2084 #### names of the m/*.h and s/*.h files we should use.
2085
2086 ### Canonicalize the configuration name.
2087
2088 ac_aux_dir=
2089 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if 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/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2106 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119 # Make sure we can run config.sub.
2120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2122 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125 { echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 ac_build_alias=$build_alias
2131 test "x$ac_build_alias" = x &&
2132 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2133 test "x$ac_build_alias" = x &&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6; }
2145 case $ac_cv_build in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2148 echo "$as_me: error: invalid value of canonical build" >&2;}
2149 { (exit 1); exit 1; }; };;
2150 esac
2151 build=$ac_cv_build
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_build
2154 shift
2155 build_cpu=$1
2156 build_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 build_os=$*
2161 IFS=$ac_save_IFS
2162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 { echo "$as_me:$LINENO: checking host system type" >&5
2166 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2167 if test "${ac_cv_host+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test "x$host_alias" = x; then
2171 ac_cv_host=$ac_cv_build
2172 else
2173 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2177 fi
2178
2179 fi
2180 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 case $ac_cv_host in
2183 *-*-*) ;;
2184 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2185 echo "$as_me: error: invalid value of canonical host" >&2;}
2186 { (exit 1); exit 1; }; };;
2187 esac
2188 host=$ac_cv_host
2189 ac_save_IFS=$IFS; IFS='-'
2190 set x $ac_cv_host
2191 shift
2192 host_cpu=$1
2193 host_vendor=$2
2194 shift; shift
2195 # Remember, the first character of IFS is used to create $*,
2196 # except with old shells:
2197 host_os=$*
2198 IFS=$ac_save_IFS
2199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200
2201
2202 canonical=$host
2203 configuration=${host_alias-$host}
2204
2205
2206
2207 ### If you add support for a new configuration, add code to this
2208 ### switch statement to recognize your configuration name and select
2209 ### the appropriate operating system and machine description files.
2210
2211 ### You would hope that you could choose an m/*.h file pretty much
2212 ### based on the machine portion of the configuration name, and an s-
2213 ### file based on the operating system portion. However, it turns out
2214 ### that each m/*.h file is pretty manufacturer-specific - for
2215 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2216 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2217 ### machines. So we basically have to have a special case for each
2218 ### configuration name.
2219 ###
2220 ### As far as handling version numbers on operating systems is
2221 ### concerned, make sure things will fail in a fixable way. If
2222 ### /etc/MACHINES doesn't say anything about version numbers, be
2223 ### prepared to handle anything reasonably. If version numbers
2224 ### matter, be sure /etc/MACHINES says something about it.
2225 ###
2226 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2227 ### "System V Release 4"; he writes, "The old convention encouraged
2228 ### confusion between `system' and `release' levels'."
2229
2230 machine='' opsys='' unported=no
2231 case "${canonical}" in
2232
2233 ## FreeBSD ports
2234 *-*-freebsd* )
2235 opsys=freebsd
2236 case "${canonical}" in
2237 alpha*-*-freebsd*) machine=alpha ;;
2238 ia64-*-freebsd*) machine=ia64 ;;
2239 sparc64-*-freebsd*) machine=sparc ;;
2240 powerpc-*-freebsd*) machine=macppc ;;
2241 i[3456]86-*-freebsd*) machine=intel386 ;;
2242 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2243 esac
2244 ;;
2245
2246 ## NetBSD ports
2247 *-*-netbsd* )
2248 opsys=netbsd
2249 if test -f /usr/lib/crti.o; then
2250
2251 cat >>confdefs.h <<\_ACEOF
2252 #define HAVE_CRTIN
2253 _ACEOF
2254
2255 fi
2256
2257 case "${canonical}" in
2258 alpha*-*-netbsd*) machine=alpha ;;
2259 i[3456]86-*-netbsd*) machine=intel386 ;;
2260 m68k-*-netbsd*)
2261 # This is somewhat bogus.
2262 machine=hp9000s300 ;;
2263 mips-*-netbsd*) machine=pmax ;;
2264 mipsel-*-netbsd*) machine=pmax ;;
2265 mipseb-*-netbsd*) machine=pmax ;;
2266 ns32k-*-netbsd*) machine=ns32000 ;;
2267 powerpc-*-netbsd*) machine=macppc ;;
2268 sparc*-*-netbsd*) machine=sparc ;;
2269 vax-*-netbsd*) machine=vax ;;
2270 arm-*-netbsd*) machine=arm ;;
2271 x86_64-*-netbsd*) machine=amdx86-64 ;;
2272 hppa-*-netbsd*) machine=hp800 ;;
2273 shle-*-netbsd*) machine=sh3el ;;
2274 esac
2275 ;;
2276
2277 ## OpenBSD ports
2278 *-*-openbsd* )
2279 opsys=openbsd
2280 case "${canonical}" in
2281 alpha*-*-openbsd*) machine=alpha ;;
2282 arm-*-openbsd*) machine=arm ;;
2283 hppa-*-openbsd*) machine=hp9000s300 ;;
2284 i386-*-openbsd*) machine=intel386 ;;
2285 m68k-*-openbsd*) machine=hp9000s300 ;;
2286 m88k-*-openbsd*) machine=aviion ;;
2287 mips64-*-openbsd*) machine=mips64 ;;
2288 powerpc-*-openbsd*) machine=macppc ;;
2289 sh-*-openbsd*) machine=sh3el ;;
2290 sparc*-*-openbsd*) machine=sparc ;;
2291 vax-*-openbsd*) machine=vax ;;
2292 x86_64-*-openbsd*) machine=amdx86-64 ;;
2293 esac
2294 ;;
2295
2296 ## LynxOS ports
2297 *-*-lynxos* )
2298 opsys=lynxos
2299 case "${canonical}" in
2300 i[3456]86-*-lynxos*) machine=intel386 ;;
2301 powerpc-*-lynxos*) machine=powerpc ;;
2302 esac
2303 ;;
2304
2305 ## Acorn RISCiX:
2306 arm-acorn-riscix1.1* )
2307 machine=acorn opsys=riscix1-1
2308 ;;
2309 arm-acorn-riscix1.2* | arm-acorn-riscix )
2310 ## This name is riscix12 instead of riscix1.2
2311 ## to avoid a file name conflict on MSDOS.
2312 machine=acorn opsys=riscix12
2313 ;;
2314
2315 ## BSDI ports
2316 *-*-bsdi* )
2317 opsys=bsdi
2318 case "${canonical}" in
2319 i[345]86-*-bsdi*) machine=intel386 ;;
2320 sparc-*-bsdi*) machine=sparc ;;
2321 powerpc-*-bsdi*) machine=macppc ;;
2322 esac
2323 case "${canonical}" in
2324 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2325 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2326 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2327 *-*-bsdi3* ) opsys=bsdos3 ;;
2328 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2329 esac
2330 ;;
2331
2332 ## Alliant machines
2333 ## Strictly speaking, we need the version of the alliant operating
2334 ## system to choose the right machine file, but currently the
2335 ## configuration name doesn't tell us enough to choose the right
2336 ## one; we need to give alliants their own operating system name to
2337 ## do this right. When someone cares, they can help us.
2338 fx80-alliant-* )
2339 machine=alliant4 opsys=bsd4-2
2340 ;;
2341 i860-alliant-* )
2342 machine=alliant-2800 opsys=bsd4-3
2343 ;;
2344
2345 ## Alpha (DEC) machines.
2346 alpha*-dec-osf* )
2347 machine=alpha opsys=osf1
2348 # This is needed to find X11R6.1 libraries for certain tests.
2349 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2350 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2351 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2352 # due to non-traditional preprocessing with the current compiler
2353 # defaults. OSF 4 can also have that compiler version, and there
2354 # seems always to have been a usable /usr/bin/cpp.
2355 NON_GNU_CPP=/usr/bin/cpp
2356 case "${canonical}" in
2357 alpha*-dec-osf[5-9]*)
2358 opsys=osf5-0 ;;
2359 esac
2360 ;;
2361
2362 alpha*-*-linux-gnu* )
2363 machine=alpha opsys=gnu-linux
2364 ;;
2365
2366 arm*-*-linux-gnu* )
2367 machine=arm opsys=gnu-linux
2368 ;;
2369
2370 ## Altos 3068
2371 m68*-altos-sysv* )
2372 machine=altos opsys=usg5-2
2373 ;;
2374
2375 ## Amdahl UTS
2376 580-amdahl-sysv* )
2377 machine=amdahl opsys=usg5-2-2
2378 ;;
2379
2380 ## Apollo, Domain/OS
2381 m68*-apollo-* )
2382 machine=apollo opsys=bsd4-3
2383 ;;
2384
2385 ## Apple Darwin / Mac OS X
2386 *-apple-darwin* )
2387 case "${canonical}" in
2388 i[3456]86-* ) machine=intel386 ;;
2389 powerpc-* ) machine=powermac ;;
2390 * ) unported=yes ;;
2391 esac
2392 opsys=darwin
2393 # Define CPP as follows to make autoconf work correctly.
2394 CPP="${CC-cc} -E -no-cpp-precomp"
2395 # Use fink packages if available.
2396 if test -d /sw/include && test -d /sw/lib; then
2397 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2398 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2399 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2400 fi
2401 ;;
2402
2403 ## AT&T 3b2, 3b5, 3b15, 3b20
2404 we32k-att-sysv* )
2405 machine=att3b opsys=usg5-2-2
2406 ;;
2407
2408 ## AT&T 3b1 - The Mighty Unix PC!
2409 m68*-att-sysv* )
2410 machine=7300 opsys=usg5-2-2
2411 ;;
2412
2413 ## Bull dpx20
2414 rs6000-bull-bosx* )
2415 machine=ibmrs6000 opsys=aix3-2
2416 ;;
2417
2418 ## Bull dpx2
2419 m68*-bull-sysv3* )
2420 machine=dpx2 opsys=usg5-3
2421 ;;
2422
2423 ## Bull sps7
2424 m68*-bull-sysv2* )
2425 machine=sps7 opsys=usg5-2
2426 ;;
2427
2428 ## CCI 5/32, 6/32 -- see "Tahoe".
2429
2430 ## Celerity
2431 ## I don't know what configuration name to use for this; config.sub
2432 ## doesn't seem to know anything about it. Hey, Celerity users, get
2433 ## in touch with us!
2434 celerity-celerity-bsd* )
2435 machine=celerity opsys=bsd4-2
2436 ;;
2437
2438 ## Clipper
2439 ## What operating systems does this chip run that Emacs has been
2440 ## tested on?
2441 clipper-* )
2442 machine=clipper
2443 ## We'll use the catch-all code at the bottom to guess the
2444 ## operating system.
2445 ;;
2446
2447 ## Compaq Nonstop
2448 mips-compaq-nonstopux* )
2449 machine=nonstopux opsys=nonstopux
2450 ;;
2451
2452 ## Convex
2453 *-convex-bsd* | *-convex-convexos* )
2454 machine=convex opsys=bsd4-3
2455 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2456 NON_GNU_CPP="cc -E -P"
2457 ;;
2458
2459 ## Cubix QBx/386
2460 i[3456]86-cubix-sysv* )
2461 machine=intel386 opsys=usg5-3
2462 ;;
2463
2464 ## Cydra 5
2465 cydra*-cydrome-sysv* )
2466 machine=cydra5 opsys=usg5-3
2467 ;;
2468
2469 ## Data General AViiON Machines
2470 ## DG changed naming conventions with the release of 5.4.4.10, they
2471 ## dropped the initial 5.4 but left the intervening R. Because of the
2472 ## R this shouldn't conflict with older versions of the OS (which I
2473 ## think were named like dgux4.*). In addition, DG new AViiONs series
2474 ## uses either Motorola M88k or Intel Pentium CPUs.
2475 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2476 machine=aviion opsys=dgux4
2477 ;;
2478 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2479 ## This name is dgux5-4-3 instead of dgux5-4r3
2480 ## to avoid a file name conflict on MSDOS.
2481 machine=aviion opsys=dgux5-4-3
2482 ;;
2483 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2484 machine=aviion opsys=dgux5-4r2
2485 ;;
2486 m88k-dg-dgux* )
2487 machine=aviion opsys=dgux
2488 ;;
2489
2490 ## Data General AViiON Intel (x86) Machines
2491 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2492 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2493 i[345]86-dg-dguxR4* )
2494 machine=aviion-intel opsys=dgux4
2495 ;;
2496
2497 ## DECstations
2498 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2499 machine=pmax opsys=bsd4-2
2500 ;;
2501 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2502 machine=pmax opsys=bsd4-3
2503 ;;
2504 mips-dec-ultrix* )
2505 machine=pmax opsys=ultrix4-3
2506 ;;
2507 mips-dec-osf* )
2508 machine=pmax opsys=osf1
2509 ;;
2510 mips-dec-mach_bsd4.3* )
2511 machine=pmax opsys=mach-bsd4-3
2512 ;;
2513
2514 ## Motorola Delta machines
2515 m68k-motorola-sysv* | m68000-motorola-sysv* )
2516 machine=delta opsys=usg5-3
2517 if test -z "`type gnucc | grep 'not found'`"
2518 then
2519 if test -s /etc/167config
2520 then CC="gnucc -m68040"
2521 else CC="gnucc -m68881"
2522 fi
2523 else
2524 if test -z "`type gcc | grep 'not found'`"
2525 then CC=gcc
2526 else CC=cc
2527 fi
2528 fi
2529 ;;
2530 m88k-motorola-sysv4* )
2531 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2532 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2533 # I hope there are not other 4.0 versions for this machine
2534 # which really need usg5-4 instead.
2535 machine=delta88k opsys=usg5-4-2
2536 ;;
2537 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2538 machine=delta88k opsys=usg5-3
2539 ;;
2540
2541 ## Dual machines
2542 m68*-dual-sysv* )
2543 machine=dual opsys=usg5-2
2544 ;;
2545 m68*-dual-uniplus* )
2546 machine=dual opsys=unipl5-2
2547 ;;
2548
2549 ## Elxsi 6400
2550 elxsi-elxsi-sysv* )
2551 machine=elxsi opsys=usg5-2
2552 ;;
2553
2554 ## Encore machines
2555 ns16k-encore-bsd* )
2556 machine=ns16000 opsys=umax
2557 ;;
2558
2559 ## The GEC 63 - apparently, this port isn't really finished yet.
2560 # I'm sure we finished off the last of the machines, though. -- fx
2561
2562 ## Gould Power Node and NP1
2563 pn-gould-bsd4.2* )
2564 machine=gould opsys=bsd4-2
2565 ;;
2566 pn-gould-bsd4.3* )
2567 machine=gould opsys=bsd4-3
2568 ;;
2569 np1-gould-bsd* )
2570 machine=gould-np1 opsys=bsd4-3
2571 ;;
2572
2573 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2574 ## as far as Emacs is concerned).
2575 m88k-harris-cxux* )
2576 # Build needs to be different on 7.0 and later releases
2577 case "`uname -r`" in
2578 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2579 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2580 esac
2581 NON_GNU_CPP="/lib/cpp"
2582 ;;
2583 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2584 m68k-harris-cxux* )
2585 machine=nh3000 opsys=cxux
2586 ;;
2587 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2588 powerpc-harris-powerunix )
2589 machine=nh6000 opsys=powerunix
2590 NON_GNU_CPP="cc -Xo -E -P"
2591 ;;
2592 ## SR2001/SR2201 running HI-UX/MPP
2593 hppa1.1-hitachi-hiuxmpp* )
2594 machine=sr2k opsys=hiuxmpp
2595 ;;
2596 hppa1.1-hitachi-hiuxwe2* )
2597 machine=sr2k opsys=hiuxwe2
2598 ;;
2599 ## Honeywell XPS100
2600 xps*-honeywell-sysv* )
2601 machine=xps100 opsys=usg5-2
2602 ;;
2603
2604 ## HP 9000 series 200 or 300
2605 m68*-hp-bsd* )
2606 machine=hp9000s300 opsys=bsd4-3
2607 ;;
2608 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2609 m68*-hp-hpux* )
2610 case "`uname -r`" in
2611 ## Someone's system reports A.B8.05 for this.
2612 ## I wonder what other possibilities there are.
2613 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2614 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2615 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2616 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2617 *) machine=hp9000s300 opsys=hpux ;;
2618 esac
2619 ;;
2620
2621 ## HP 9000 series 700 and 800, running HP/UX
2622 hppa*-hp-hpux7* )
2623 machine=hp800 opsys=hpux
2624 ;;
2625 hppa*-hp-hpux8* )
2626 machine=hp800 opsys=hpux8
2627 ;;
2628 hppa*-hp-hpux9shr* )
2629 machine=hp800 opsys=hpux9shr
2630 ;;
2631 hppa*-hp-hpux9* )
2632 machine=hp800 opsys=hpux9
2633 ;;
2634 hppa*-hp-hpux10.2* )
2635 machine=hp800 opsys=hpux10-20
2636 ;;
2637 hppa*-hp-hpux10* )
2638 machine=hp800 opsys=hpux10
2639 ;;
2640 hppa*-hp-hpux1[1-9]* )
2641 machine=hp800 opsys=hpux11
2642 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2643 ;;
2644
2645 hppa*-*-linux-gnu* )
2646 machine=hp800 opsys=gnu-linux
2647 ;;
2648
2649 ## HP 9000 series 700 and 800, running HP/UX
2650 hppa*-hp-hpux* )
2651 ## Cross-compilation? Nah!
2652 case "`uname -r`" in
2653 ## Someone's system reports A.B8.05 for this.
2654 ## I wonder what other possibilities there are.
2655 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2656 *.08.* ) machine=hp800 opsys=hpux8 ;;
2657 *.09.* ) machine=hp800 opsys=hpux9 ;;
2658 *) machine=hp800 opsys=hpux10 ;;
2659 esac
2660 ;;
2661 hppa*-*-nextstep* )
2662 machine=hp800 opsys=nextstep
2663 ;;
2664
2665 ## Orion machines
2666 orion-orion-bsd* )
2667 machine=orion opsys=bsd4-2
2668 ;;
2669 clipper-orion-bsd* )
2670 machine=orion105 opsys=bsd4-2
2671 ;;
2672
2673 ## IBM machines
2674 i[3456]86-ibm-aix1.1* )
2675 machine=ibmps2-aix opsys=usg5-2-2
2676 ;;
2677 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2678 machine=ibmps2-aix opsys=usg5-3
2679 ;;
2680 i370-ibm-aix*)
2681 machine=ibm370aix opsys=usg5-3
2682 ;;
2683 s390-*-linux-gnu* )
2684 machine=ibms390 opsys=gnu-linux
2685 ;;
2686 s390x-*-linux-gnu* )
2687 machine=ibms390x opsys=gnu-linux
2688 ;;
2689 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2690 machine=ibmrs6000 opsys=aix3-1
2691 ;;
2692 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2693 machine=ibmrs6000 opsys=aix3-2-5
2694 ;;
2695 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2696 machine=ibmrs6000 opsys=aix4-1
2697 ;;
2698 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2699 machine=ibmrs6000 opsys=aix4-2
2700 ;;
2701 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2702 machine=ibmrs6000 opsys=aix4-2
2703 ;;
2704 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2705 machine=ibmrs6000 opsys=aix4-2
2706 ;;
2707 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2708 machine=ibmrs6000 opsys=aix4
2709 ;;
2710 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2711 machine=ibmrs6000 opsys=aix4-1
2712 ;;
2713 rs6000-ibm-aix* | powerpc-ibm-aix* )
2714 machine=ibmrs6000 opsys=aix3-2
2715 ;;
2716 romp-ibm-bsd4.3* )
2717 machine=ibmrt opsys=bsd4-3
2718 ;;
2719 romp-ibm-bsd4.2* )
2720 machine=ibmrt opsys=bsd4-2
2721 ;;
2722 romp-ibm-aos4.3* )
2723 machine=ibmrt opsys=bsd4-3
2724 ;;
2725 romp-ibm-aos4.2* )
2726 machine=ibmrt opsys=bsd4-2
2727 ;;
2728 romp-ibm-aos* )
2729 machine=ibmrt opsys=bsd4-3
2730 ;;
2731 romp-ibm-bsd* )
2732 machine=ibmrt opsys=bsd4-3
2733 ;;
2734 romp-ibm-aix* )
2735 machine=ibmrt-aix opsys=usg5-2-2
2736 ;;
2737
2738 ## Integrated Solutions `Optimum V'
2739 m68*-isi-bsd4.2* )
2740 machine=isi-ov opsys=bsd4-2
2741 ;;
2742 m68*-isi-bsd4.3* )
2743 machine=isi-ov opsys=bsd4-3
2744 ;;
2745
2746 ## Intel 386 machines where we do care about the manufacturer
2747 i[3456]86-intsys-sysv* )
2748 machine=is386 opsys=usg5-2-2
2749 ;;
2750
2751 ## Prime EXL
2752 i[3456]86-prime-sysv* )
2753 machine=i386 opsys=usg5-3
2754 ;;
2755
2756 ## Sequent Symmetry running Dynix
2757 i[3456]86-sequent-bsd* )
2758 machine=symmetry opsys=bsd4-3
2759 ;;
2760
2761 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2762 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2763 machine=sequent-ptx opsys=ptx4
2764 NON_GNU_CPP=/lib/cpp
2765 ;;
2766
2767 ## Sequent Symmetry running DYNIX/ptx
2768 ## Use the old cpp rather than the newer ANSI one.
2769 i[3456]86-sequent-ptx* )
2770 machine=sequent-ptx opsys=ptx
2771 NON_GNU_CPP="/lib/cpp"
2772 ;;
2773
2774 ## ncr machine running svr4.3.
2775 i[3456]86-ncr-sysv4.3 )
2776 machine=ncr386 opsys=usg5-4-3
2777 ;;
2778
2779 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2780 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2781 i[3456]86-ncr-sysv* )
2782 machine=ncr386 opsys=usg5-4-2
2783 ;;
2784
2785 ## Intel Paragon OSF/1
2786 i860-intel-osf1* )
2787 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2788 ;;
2789
2790 ## Intel 860
2791 i860-*-sysv4* )
2792 machine=i860 opsys=usg5-4
2793 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2794 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2795 ;;
2796
2797 ## Macintosh PowerPC
2798 powerpc*-*-linux-gnu* )
2799 machine=macppc opsys=gnu-linux
2800 ;;
2801
2802 ## Masscomp machines
2803 m68*-masscomp-rtu* )
2804 machine=masscomp opsys=rtu
2805 ;;
2806
2807 ## Megatest machines
2808 m68*-megatest-bsd* )
2809 machine=mega68 opsys=bsd4-2
2810 ;;
2811
2812 ## Workstations sold by MIPS
2813 ## This is not necessarily all workstations using the MIPS processor -
2814 ## Irises are produced by SGI, and DECstations by DEC.
2815
2816 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2817 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2818 ## it gives for choosing between the alternatives seems to be "Use
2819 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2820 ## the BSD world." I'll assume that these are instructions for
2821 ## handling two odd situations, and that every other situation
2822 ## should use mips.h and usg5-2-2, they being listed first.
2823 mips-mips-usg* )
2824 machine=mips4
2825 ## Fall through to the general code at the bottom to decide on the OS.
2826 ;;
2827 mips-mips-riscos4* )
2828 machine=mips4 opsys=bsd4-3
2829 NON_GNU_CC="cc -systype bsd43"
2830 NON_GNU_CPP="cc -systype bsd43 -E"
2831 ;;
2832 mips-mips-riscos5* )
2833 machine=mips4 opsys=riscos5
2834 NON_GNU_CC="cc -systype bsd43"
2835 NON_GNU_CPP="cc -systype bsd43 -E"
2836 ;;
2837 mips-mips-bsd* )
2838 machine=mips opsys=bsd4-3
2839 ;;
2840 mips-mips-* )
2841 machine=mips opsys=usg5-2-2
2842 ;;
2843
2844 ## NeXT
2845 m68*-next-* | m68k-*-nextstep* )
2846 machine=m68k opsys=nextstep
2847 ;;
2848
2849 ## The complete machine from National Semiconductor
2850 ns32k-ns-genix* )
2851 machine=ns32000 opsys=usg5-2
2852 ;;
2853
2854 ## NCR machines
2855 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2856 machine=tower32 opsys=usg5-2-2
2857 ;;
2858 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2859 machine=tower32v3 opsys=usg5-3
2860 ;;
2861
2862 ## NEC EWS4800
2863 mips-nec-sysv4*)
2864 machine=ews4800 opsys=ux4800
2865 ;;
2866
2867 ## Nixdorf Targon 31
2868 m68*-nixdorf-sysv* )
2869 machine=targon31 opsys=usg5-2-2
2870 ;;
2871
2872 ## Nu (TI or LMI)
2873 m68*-nu-sysv* )
2874 machine=nu opsys=usg5-2
2875 ;;
2876
2877 ## Plexus
2878 m68*-plexus-sysv* )
2879 machine=plexus opsys=usg5-2
2880 ;;
2881
2882 ## Pyramid machines
2883 ## I don't really have any idea what sort of processor the Pyramid has,
2884 ## so I'm assuming it is its own architecture.
2885 pyramid-pyramid-bsd* )
2886 machine=pyramid opsys=bsd4-2
2887 ;;
2888
2889 ## Sequent Balance
2890 ns32k-sequent-bsd4.2* )
2891 machine=sequent opsys=bsd4-2
2892 ;;
2893 ns32k-sequent-bsd4.3* )
2894 machine=sequent opsys=bsd4-3
2895 ;;
2896
2897 ## Siemens Nixdorf
2898 mips-siemens-sysv* | mips-sni-sysv*)
2899 machine=mips-siemens opsys=usg5-4
2900 NON_GNU_CC=/usr/ccs/bin/cc
2901 NON_GNU_CPP=/usr/ccs/lib/cpp
2902 ;;
2903
2904 ## Silicon Graphics machines
2905 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2906 m68*-sgi-iris3.5* )
2907 machine=irist opsys=iris3-5
2908 ;;
2909 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2910 machine=irist opsys=iris3-6
2911 ;;
2912 ## Iris 4D
2913 mips-sgi-irix3* )
2914 machine=iris4d opsys=irix3-3
2915 ;;
2916 mips-sgi-irix4* )
2917 machine=iris4d opsys=irix4-0
2918 ;;
2919 mips-sgi-irix6.5 )
2920 machine=iris4d opsys=irix6-5
2921 # Without defining _LANGUAGE_C, things get masked out in the headers
2922 # so that, for instance, grepping for `free' in stdlib.h fails and
2923 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2924 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2925 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2926 ;;
2927 mips-sgi-irix6* )
2928 machine=iris4d opsys=irix6-0
2929 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2930 # but presumably it does no harm.
2931 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2932 # -32 probably isn't necessary in later v.6s -- anyone know which?
2933 NON_GCC_TEST_OPTIONS=-32
2934 ;;
2935 mips-sgi-irix5.[01]* )
2936 machine=iris4d opsys=irix5-0
2937 ;;
2938 mips-sgi-irix5* | mips-sgi-irix* )
2939 machine=iris4d opsys=irix5-2
2940 ;;
2941
2942 ## SONY machines
2943 m68*-sony-bsd4.2* )
2944 machine=news opsys=bsd4-2
2945 ;;
2946 m68*-sony-bsd4.3* )
2947 machine=news opsys=bsd4-3
2948 ;;
2949 m68*-sony-newsos3* | m68*-sony-news3*)
2950 machine=news opsys=bsd4-3
2951 ;;
2952 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2953 machine=news-risc opsys=bsd4-3
2954 ;;
2955 mips-sony-newsos6* )
2956 machine=news-r6 opsys=newsos6
2957 ;;
2958 mips-sony-news* )
2959 machine=news-risc opsys=newsos5
2960 ;;
2961
2962 ## Stride
2963 m68*-stride-sysv* )
2964 machine=stride opsys=usg5-2
2965 ;;
2966
2967 ## Suns
2968 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2969 machine=sparc opsys=gnu-linux
2970 ;;
2971
2972 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2973 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2974 | rs6000-*-solaris2*)
2975 case "${canonical}" in
2976 m68*-sunos1* ) machine=sun1 ;;
2977 m68*-sunos2* ) machine=sun2 ;;
2978 m68* ) machine=sun3 ;;
2979 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2980 i[3456]86-*-* ) machine=intel386 ;;
2981 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2982 powerpcle* ) machine=powerpcle ;;
2983 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2984 sparc* ) machine=sparc ;;
2985 * ) unported=yes ;;
2986 esac
2987 case "${canonical}" in
2988 ## The Sun386 didn't get past 4.0.
2989 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2990 *-sunos4.0* ) opsys=sunos4-0 ;;
2991 *-sunos4.1.[3-9]*noshare )
2992 ## This name is sunos413 instead of sunos4-1-3
2993 ## to avoid a file name conflict on MSDOS.
2994 opsys=sunos413
2995 NON_GNU_CPP=/usr/lib/cpp
2996 NON_GCC_TEST_OPTIONS=-Bstatic
2997 GCC_TEST_OPTIONS=-static
2998 ;;
2999 *-sunos4.1.[3-9]* | *-sunos4shr*)
3000 opsys=sunos4shr
3001 NON_GNU_CPP=/usr/lib/cpp
3002 ;;
3003 *-sunos4* | *-sunos )
3004 opsys=sunos4-1
3005 NON_GCC_TEST_OPTIONS=-Bstatic
3006 GCC_TEST_OPTIONS=-static
3007 ;;
3008 *-sunos5.3* | *-solaris2.3* )
3009 opsys=sol2-3
3010 NON_GNU_CPP=/usr/ccs/lib/cpp
3011 ;;
3012 *-sunos5.4* | *-solaris2.4* )
3013 opsys=sol2-4
3014 NON_GNU_CPP=/usr/ccs/lib/cpp
3015 RANLIB="ar -ts"
3016 ;;
3017 *-sunos5.5* | *-solaris2.5* )
3018 opsys=sol2-5
3019 NON_GNU_CPP=/usr/ccs/lib/cpp
3020 RANLIB="ar -ts"
3021 ;;
3022 *-sunos5.6* | *-solaris2.6* )
3023 opsys=sol2-6
3024 NON_GNU_CPP=/usr/ccs/lib/cpp
3025 RANLIB="ar -ts"
3026 ;;
3027 *-sunos5* | *-solaris* )
3028 opsys=sol2-6
3029 ## FIXME: make this into a proper fix that checks the compiler type,
3030 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3031 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3032 ## -Xs prevents spurious whitespace.
3033 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3034 else
3035 NON_GNU_CPP=/usr/ccs/lib/cpp
3036 fi
3037 ;;
3038 * ) opsys=bsd4-2 ;;
3039 esac
3040 ## Watch out for a compiler that we know will not work.
3041 case "${canonical}" in
3042 *-solaris* | *-sunos5* )
3043 if [ "x$CC" = x/usr/ucb/cc ]; then
3044 ## /usr/ucb/cc doesn't work;
3045 ## we should find some other compiler that does work.
3046 unset CC
3047 fi
3048 ;;
3049 *) ;;
3050 esac
3051 ;;
3052 sparc-*-nextstep* )
3053 machine=sparc opsys=nextstep
3054 ;;
3055
3056 ## Tadpole 68k
3057 m68*-tadpole-sysv* )
3058 machine=tad68k opsys=usg5-3
3059 ;;
3060
3061 ## Tahoe machines
3062 tahoe-tahoe-bsd4.2* )
3063 machine=tahoe opsys=bsd4-2
3064 ;;
3065 tahoe-tahoe-bsd4.3* )
3066 machine=tahoe opsys=bsd4-3
3067 ;;
3068
3069 ## Tandem Integrity S2
3070 mips-tandem-sysv* )
3071 machine=tandem-s2 opsys=usg5-3
3072 ;;
3073
3074 ## Tektronix XD88
3075 m88k-tektronix-sysv3* )
3076 machine=tekxd88 opsys=usg5-3
3077 ;;
3078
3079 ## Tektronix 16000 box (6130?)
3080 ns16k-tektronix-bsd* )
3081 machine=ns16000 opsys=bsd4-2
3082 ;;
3083 ## Tektronix 4300
3084 ## src/m/tek4300.h hints that this is a m68k machine.
3085 m68*-tektronix-bsd* )
3086 machine=tek4300 opsys=bsd4-3
3087 ;;
3088
3089 ## Titan P2 or P3
3090 ## We seem to have lost the machine-description file titan.h!
3091 titan-titan-sysv* )
3092 machine=titan opsys=usg5-3
3093 ;;
3094
3095 ## Ustation E30 (SS5E)
3096 m68*-unisys-uniplus* )
3097 machine=ustation opsystem=unipl5-2
3098 ;;
3099
3100 ## Vaxen.
3101 vax-dec-* )
3102 machine=vax
3103 case "${canonical}" in
3104 *-bsd4.1* ) opsys=bsd4-1 ;;
3105 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3106 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3107 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3108 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3109 *-vms* ) opsys=vms ;;
3110 * ) unported=yes
3111 esac
3112 ;;
3113
3114 ## Whitechapel MG1
3115 ns16k-whitechapel-* )
3116 machine=mg1
3117 ## We don't know what sort of OS runs on these; we'll let the
3118 ## operating system guessing code below try.
3119 ;;
3120
3121 ## Wicat
3122 m68*-wicat-sysv* )
3123 machine=wicat opsys=usg5-2
3124 ;;
3125
3126 ## IA-64
3127 ia64*-*-linux* )
3128 machine=ia64 opsys=gnu-linux
3129 ;;
3130
3131 ## Intel 386 machines where we don't care about the manufacturer
3132 i[3456]86-*-* )
3133 machine=intel386
3134 case "${canonical}" in
3135 *-cygwin ) opsys=cygwin ;;
3136 *-darwin* ) opsys=darwin
3137 CPP="${CC-cc} -E -no-cpp-precomp"
3138 ;;
3139 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3140 *-isc2.2* ) opsys=isc2-2 ;;
3141 *-isc4.0* ) opsys=isc4-0 ;;
3142 *-isc4.* ) opsys=isc4-1
3143 GCC_TEST_OPTIONS=-posix
3144 NON_GCC_TEST_OPTIONS=-Xp
3145 ;;
3146 *-isc* ) opsys=isc3-0 ;;
3147 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3148 *-esix* ) opsys=esix ;;
3149 *-xenix* ) opsys=xenix ;;
3150 *-linux-gnu* ) opsys=gnu-linux ;;
3151 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3152 *-sco3.2v5* ) opsys=sco5
3153 NON_GNU_CPP=/lib/cpp
3154 # Prevent -belf from being passed to $CPP.
3155 # /lib/cpp does not accept it.
3156 OVERRIDE_CPPFLAGS=" "
3157 ;;
3158 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3159 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3160 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3161 *-386bsd* ) opsys=386bsd ;;
3162 *-nextstep* ) opsys=nextstep ;;
3163 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3164 esac
3165 ;;
3166
3167 ## m68k Linux-based GNU system
3168 m68k-*-linux-gnu* )
3169 machine=m68k opsys=gnu-linux
3170 ;;
3171
3172 ## Mips Linux-based GNU system
3173 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3174 machine=mips opsys=gnu-linux
3175 ;;
3176
3177 ## UXP/DS
3178 sparc-fujitsu-sysv4* )
3179 machine=sparc opsys=uxpds
3180 NON_GNU_CPP=/usr/ccs/lib/cpp
3181 RANLIB="ar -ts"
3182 ;;
3183
3184 ## UXP/V
3185 f301-fujitsu-uxpv4.1)
3186 machine=f301 opsys=uxpv
3187 ;;
3188
3189 ## AMD x86-64 Linux-based GNU system
3190 x86_64-*-linux-gnu* )
3191 machine=amdx86-64 opsys=gnu-linux
3192 ;;
3193
3194 ## Tensilica Xtensa Linux-based GNU system
3195 xtensa-*-linux-gnu* )
3196 machine=xtensa opsys=gnu-linux
3197 ;;
3198
3199 * )
3200 unported=yes
3201 ;;
3202 esac
3203
3204 ### If the code above didn't choose an operating system, just choose
3205 ### an operating system based on the configuration name. You really
3206 ### only want to use this when you have no idea what the right
3207 ### operating system is; if you know what operating systems a machine
3208 ### runs, it's cleaner to make it explicit in the case statement
3209 ### above.
3210 if test x"${opsys}" = x; then
3211 case "${canonical}" in
3212 *-gnu* ) opsys=gnu ;;
3213 *-bsd4.[01] ) opsys=bsd4-1 ;;
3214 *-bsd4.2 ) opsys=bsd4-2 ;;
3215 *-bsd4.3 ) opsys=bsd4-3 ;;
3216 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3217 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3218 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3219 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3220 *-sysv4.2uw* ) opsys=unixware ;;
3221 *-sysv5uw* ) opsys=unixware ;;
3222 *-sysv5OpenUNIX* ) opsys=unixware ;;
3223 *-sysv4.1* | *-sysvr4.1* )
3224 NON_GNU_CPP=/usr/lib/cpp
3225 opsys=usg5-4 ;;
3226 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3227 if [ x$NON_GNU_CPP = x ]; then
3228 if [ -f /usr/ccs/lib/cpp ]; then
3229 NON_GNU_CPP=/usr/ccs/lib/cpp
3230 else
3231 NON_GNU_CPP=/lib/cpp
3232 fi
3233 fi
3234 opsys=usg5-4-2 ;;
3235 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3236 * )
3237 unported=yes
3238 ;;
3239 esac
3240 fi
3241
3242
3243
3244 if test $unported = yes; then
3245 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&5
3247 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3248 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3249 { (exit 1); exit 1; }; }
3250 fi
3251
3252 machfile="m/${machine}.h"
3253 opsysfile="s/${opsys}.h"
3254
3255
3256 #### Choose a compiler.
3257 test -n "$CC" && cc_specified=yes
3258
3259 # Save the value of CFLAGS that the user specified.
3260 SPECIFIED_CFLAGS="$CFLAGS"
3261
3262 case ${with_gcc} in
3263 "yes" ) CC="gcc" GCC=yes ;;
3264 "no" ) : ${CC=cc} ;;
3265 * )
3266 esac
3267 ac_ext=c
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6; }
3304 else
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6; }
3344 else
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3347 fi
3348
3349 if test "x$ac_ct_CC" = x; then
3350 CC=""
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&5
3357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3358 whose name does not start with the host triplet. If you think this
3359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3360 ac_tool_warned=yes ;;
3361 esac
3362 CC=$ac_ct_CC
3363 fi
3364 else
3365 CC="$ac_cv_prog_CC"
3366 fi
3367
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}cc; ac_word=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC="${ac_tool_prefix}cc"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3401 else
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3404 fi
3405
3406
3407 fi
3408 fi
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc; ac_word=$2
3412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_CC+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 else
3420 ac_prog_rejected=no
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected=yes
3430 continue
3431 fi
3432 ac_cv_prog_CC="cc"
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy $ac_cv_prog_CC
3443 shift
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3448 shift
3449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3450 fi
3451 fi
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456 { echo "$as_me:$LINENO: result: $CC" >&5
3457 echo "${ECHO_T}$CC" >&6; }
3458 else
3459 { echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6; }
3461 fi
3462
3463
3464 fi
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog in cl.exe
3468 do
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490 done
3491 done
3492 IFS=$as_save_IFS
3493
3494 fi
3495 fi
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { echo "$as_me:$LINENO: result: $CC" >&5
3499 echo "${ECHO_T}$CC" >&6; }
3500 else
3501 { echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6; }
3503 fi
3504
3505
3506 test -n "$CC" && break
3507 done
3508 fi
3509 if test -z "$CC"; then
3510 ac_ct_CC=$CC
3511 for ac_prog in cl.exe
3512 do
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy $ac_prog; ac_word=$2
3515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC="$ac_prog"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi
3539 fi
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3543 echo "${ECHO_T}$ac_ct_CC" >&6; }
3544 else
3545 { echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6; }
3547 fi
3548
3549
3550 test -n "$ac_ct_CC" && break
3551 done
3552
3553 if test "x$ac_ct_CC" = x; then
3554 CC=""
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&5
3561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3562 whose name does not start with the host triplet. If you think this
3563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3564 ac_tool_warned=yes ;;
3565 esac
3566 CC=$ac_ct_CC
3567 fi
3568 fi
3569
3570 fi
3571
3572
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3578
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO: checking for C compiler version" >&5
3581 ac_compiler=`set X $ac_compile; echo $2`
3582 { (ac_try="$ac_compiler --version >&5"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler --version >&5") 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (ac_try="$ac_compiler -v >&5"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler -v >&5") 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try="$ac_compiler -V >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -V >&5") 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619
3620 int
3621 main ()
3622 {
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3632 # of exeext.
3633 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3635 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3636 #
3637 # List of possible output files, starting from the most likely.
3638 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3639 # only as a last resort. b.out is created by i960 compilers.
3640 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3641 #
3642 # The IRIX 6 linker writes into existing files which may not be
3643 # executable, retaining their permissions. Remove them first so a
3644 # subsequent execution test works.
3645 ac_rmfiles=
3646 for ac_file in $ac_files
3647 do
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3651 esac
3652 done
3653 rm -f $ac_rmfiles
3654
3655 if { (ac_try="$ac_link_default"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_link_default") 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; then
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3671 do
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3675 ;;
3676 [ab].out )
3677 # We found the default executable, but exeext='' is most
3678 # certainly right.
3679 break;;
3680 *.* )
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 then :; else
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 fi
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3689 # actually working.
3690 break;;
3691 * )
3692 break;;
3693 esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696
3697 else
3698 ac_file=''
3699 fi
3700
3701 { echo "$as_me:$LINENO: result: $ac_file" >&5
3702 echo "${ECHO_T}$ac_file" >&6; }
3703 if test -z "$ac_file"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&5
3709 echo "$as_me: error: C compiler cannot create executables
3710 See \`config.log' for more details." >&2;}
3711 { (exit 77); exit 77; }; }
3712 fi
3713
3714 ac_exeext=$ac_cv_exeext
3715
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3721 # If not cross compiling, check that we can run a simple program.
3722 if test "$cross_compiling" != yes; then
3723 if { ac_try='./$ac_file'
3724 { (case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 cross_compiling=no
3734 else
3735 if test "$cross_compiling" = maybe; then
3736 cross_compiling=yes
3737 else
3738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details." >&5
3741 echo "$as_me: error: cannot run C compiled programs.
3742 If you meant to cross compile, use \`--host'.
3743 See \`config.log' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3745 fi
3746 fi
3747 fi
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3750
3751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3757 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3758 echo "${ECHO_T}$cross_compiling" >&6; }
3759
3760 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3762 if { (ac_try="$ac_link"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_link") 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; then
3772 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3773 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe'), while it won't with
3775 # `rm'.
3776 for ac_file in conftest.exe conftest conftest.*; do
3777 test -f "$ac_file" || continue
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781 break;;
3782 * ) break;;
3783 esac
3784 done
3785 else
3786 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&5
3788 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }
3791 fi
3792
3793 rm -f conftest$ac_cv_exeext
3794 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3795 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3796
3797 rm -f conftest.$ac_ext
3798 EXEEXT=$ac_cv_exeext
3799 ac_exeext=$EXEEXT
3800 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3802 if test "${ac_cv_objext+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest.o conftest.obj
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; then
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3836 break;;
3837 esac
3838 done
3839 else
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log' for more details." >&5
3845 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3846 See \`config.log' for more details." >&2;}
3847 { (exit 1); exit 1; }; }
3848 fi
3849
3850 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3851 fi
3852 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3853 echo "${ECHO_T}$ac_cv_objext" >&6; }
3854 OBJEXT=$ac_cv_objext
3855 ac_objext=$OBJEXT
3856 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3857 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3858 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867
3868 int
3869 main ()
3870 {
3871 #ifndef __GNUC__
3872 choke me
3873 #endif
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 ac_compiler_gnu=yes
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ac_compiler_gnu=no
3902 fi
3903
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906
3907 fi
3908 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3910 GCC=`test $ac_compiler_gnu = yes && echo yes`
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3914 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3920 ac_cv_prog_cc_g=no
3921 CFLAGS="-g"
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928
3929 int
3930 main ()
3931 {
3932
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3954 ac_cv_prog_cc_g=yes
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 CFLAGS=""
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3992 :
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3998 CFLAGS="-g"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005
4006 int
4007 main ()
4008 {
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4031 ac_cv_prog_cc_g=yes
4032 else
4033 echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036
4037 fi
4038
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4047 fi
4048 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4049 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4054 CFLAGS="-g -O2"
4055 else
4056 CFLAGS="-g"
4057 fi
4058 else
4059 if test "$GCC" = yes; then
4060 CFLAGS="-O2"
4061 else
4062 CFLAGS=
4063 fi
4064 fi
4065 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4066 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 ac_cv_prog_cc_c89=no
4071 ac_save_CC=$CC
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #include <stdarg.h>
4079 #include <stdio.h>
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4086 char **p;
4087 int i;
4088 {
4089 return p[i];
4090 }
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4092 {
4093 char *s;
4094 va_list v;
4095 va_start (v,p);
4096 s = g (p, va_arg (v,int));
4097 va_end (v);
4098 return s;
4099 }
4100
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4109
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4112 #define FOO(x) 'x'
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4114
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 int argc;
4120 char **argv;
4121 int
4122 main ()
4123 {
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4131 do
4132 CC="$ac_save_CC $ac_arg"
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_prog_cc_c89=$ac_arg
4151 else
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4160 done
4161 rm -f conftest.$ac_ext
4162 CC=$ac_save_CC
4163
4164 fi
4165 # AC_CACHE_VAL
4166 case "x$ac_cv_prog_cc_c89" in
4167 x)
4168 { echo "$as_me:$LINENO: result: none needed" >&5
4169 echo "${ECHO_T}none needed" >&6; } ;;
4170 xno)
4171 { echo "$as_me:$LINENO: result: unsupported" >&5
4172 echo "${ECHO_T}unsupported" >&6; } ;;
4173 *)
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4176 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4177 esac
4178
4179
4180 ac_ext=c
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
4186
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4189 CPP=
4190 fi
4191
4192 #### Some systems specify a CPP to use unless we are using GCC.
4193 #### Now that we know whether we are using GCC, we can decide whether
4194 #### to use that one.
4195 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4196 then
4197 CPP="$NON_GNU_CPP"
4198 fi
4199
4200 #### Some systems specify a CC to use unless we are using GCC.
4201 #### Now that we know whether we are using GCC, we can decide whether
4202 #### to use that one.
4203 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4204 test x$cc_specified != xyes
4205 then
4206 CC="$NON_GNU_CC"
4207 fi
4208
4209 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4210 then
4211 CC="$CC $GCC_TEST_OPTIONS"
4212 fi
4213
4214 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4215 then
4216 CC="$CC $NON_GCC_TEST_OPTIONS"
4217 fi
4218
4219
4220 ac_ext=c
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4226 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4227 # On Suns, sometimes $CPP names a directory.
4228 if test -n "$CPP" && test -d "$CPP"; then
4229 CPP=
4230 fi
4231 if test -z "$CPP"; then
4232 if test "${ac_cv_prog_CPP+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 # Double quotes because CPP needs to be expanded
4236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4237 do
4238 ac_preproc_ok=false
4239 for ac_c_preproc_warn_flag in '' yes
4240 do
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #ifdef __STDC__
4254 # include <limits.h>
4255 #else
4256 # include <assert.h>
4257 #endif
4258 Syntax error
4259 _ACEOF
4260 if { (ac_try="$ac_cpp conftest.$ac_ext"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4275 }; then
4276 :
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 # Broken: fails on valid input.
4282 continue
4283 fi
4284
4285 rm -f conftest.err conftest.$ac_ext
4286
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if { (ac_try="$ac_cpp conftest.$ac_ext"
4298 case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4304 ac_status=$?
4305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } >/dev/null && {
4310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4312 }; then
4313 # Broken: success on invalid input.
4314 continue
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 # Passes both tests.
4320 ac_preproc_ok=:
4321 break
4322 fi
4323
4324 rm -f conftest.err conftest.$ac_ext
4325
4326 done
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then
4330 break
4331 fi
4332
4333 done
4334 ac_cv_prog_CPP=$CPP
4335
4336 fi
4337 CPP=$ac_cv_prog_CPP
4338 else
4339 ac_cv_prog_CPP=$CPP
4340 fi
4341 { echo "$as_me:$LINENO: result: $CPP" >&5
4342 echo "${ECHO_T}$CPP" >&6; }
4343 ac_preproc_ok=false
4344 for ac_c_preproc_warn_flag in '' yes
4345 do
4346 # Use a header file that comes with gcc, so configuring glibc
4347 # with a fresh cross-compiler works.
4348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4349 # <limits.h> exists even on freestanding compilers.
4350 # On the NeXT, cc -E runs the code through the compiler's parser,
4351 # not just through cpp. "Syntax error" is here to catch this case.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 #ifdef __STDC__
4359 # include <limits.h>
4360 #else
4361 # include <assert.h>
4362 #endif
4363 Syntax error
4364 _ACEOF
4365 if { (ac_try="$ac_cpp conftest.$ac_ext"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 }; then
4381 :
4382 else
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 # Broken: fails on valid input.
4387 continue
4388 fi
4389
4390 rm -f conftest.err conftest.$ac_ext
4391
4392 # OK, works on sane cases. Now check whether nonexistent headers
4393 # can be detected and how.
4394 cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h. */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <ac_nonexistent.h>
4401 _ACEOF
4402 if { (ac_try="$ac_cpp conftest.$ac_ext"
4403 case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } >/dev/null && {
4415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4416 test ! -s conftest.err
4417 }; then
4418 # Broken: success on invalid input.
4419 continue
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 # Passes both tests.
4425 ac_preproc_ok=:
4426 break
4427 fi
4428
4429 rm -f conftest.err conftest.$ac_ext
4430
4431 done
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then
4435 :
4436 else
4437 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log' for more details." >&5
4439 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4440 See \`config.log' for more details." >&2;}
4441 { (exit 1); exit 1; }; }
4442 fi
4443
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449
4450
4451 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4452 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4453 if test "${ac_cv_path_GREP+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 # Extract the first word of "grep ggrep" to use in msg output
4457 if test -z "$GREP"; then
4458 set dummy grep ggrep; ac_prog_name=$2
4459 if test "${ac_cv_path_GREP+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 ac_path_GREP_found=false
4463 # Loop through the user's path and test for each of PROGNAME-LIST
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4466 do
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_prog in grep ggrep; do
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4473 # Check for GNU ac_path_GREP and select it if it is found.
4474 # Check for GNU $ac_path_GREP
4475 case `"$ac_path_GREP" --version 2>&1` in
4476 *GNU*)
4477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4478 *)
4479 ac_count=0
4480 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4481 while :
4482 do
4483 cat "conftest.in" "conftest.in" >"conftest.tmp"
4484 mv "conftest.tmp" "conftest.in"
4485 cp "conftest.in" "conftest.nl"
4486 echo 'GREP' >> "conftest.nl"
4487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4489 ac_count=`expr $ac_count + 1`
4490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4491 # Best one so far, save it but keep looking for a better one
4492 ac_cv_path_GREP="$ac_path_GREP"
4493 ac_path_GREP_max=$ac_count
4494 fi
4495 # 10*(2^10) chars as input seems more than enough
4496 test $ac_count -gt 10 && break
4497 done
4498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4499 esac
4500
4501
4502 $ac_path_GREP_found && break 3
4503 done
4504 done
4505
4506 done
4507 IFS=$as_save_IFS
4508
4509
4510 fi
4511
4512 GREP="$ac_cv_path_GREP"
4513 if test -z "$GREP"; then
4514 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4515 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4516 { (exit 1); exit 1; }; }
4517 fi
4518
4519 else
4520 ac_cv_path_GREP=$GREP
4521 fi
4522
4523
4524 fi
4525 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4526 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4527 GREP="$ac_cv_path_GREP"
4528
4529
4530 { echo "$as_me:$LINENO: checking for egrep" >&5
4531 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4532 if test "${ac_cv_path_EGREP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4536 then ac_cv_path_EGREP="$GREP -E"
4537 else
4538 # Extract the first word of "egrep" to use in msg output
4539 if test -z "$EGREP"; then
4540 set dummy egrep; ac_prog_name=$2
4541 if test "${ac_cv_path_EGREP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 ac_path_EGREP_found=false
4545 # Loop through the user's path and test for each of PROGNAME-LIST
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_prog in egrep; do
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4554 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4555 # Check for GNU ac_path_EGREP and select it if it is found.
4556 # Check for GNU $ac_path_EGREP
4557 case `"$ac_path_EGREP" --version 2>&1` in
4558 *GNU*)
4559 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4560 *)
4561 ac_count=0
4562 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4563 while :
4564 do
4565 cat "conftest.in" "conftest.in" >"conftest.tmp"
4566 mv "conftest.tmp" "conftest.in"
4567 cp "conftest.in" "conftest.nl"
4568 echo 'EGREP' >> "conftest.nl"
4569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4571 ac_count=`expr $ac_count + 1`
4572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573 # Best one so far, save it but keep looking for a better one
4574 ac_cv_path_EGREP="$ac_path_EGREP"
4575 ac_path_EGREP_max=$ac_count
4576 fi
4577 # 10*(2^10) chars as input seems more than enough
4578 test $ac_count -gt 10 && break
4579 done
4580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581 esac
4582
4583
4584 $ac_path_EGREP_found && break 3
4585 done
4586 done
4587
4588 done
4589 IFS=$as_save_IFS
4590
4591
4592 fi
4593
4594 EGREP="$ac_cv_path_EGREP"
4595 if test -z "$EGREP"; then
4596 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4597 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4598 { (exit 1); exit 1; }; }
4599 fi
4600
4601 else
4602 ac_cv_path_EGREP=$EGREP
4603 fi
4604
4605
4606 fi
4607 fi
4608 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4609 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4610 EGREP="$ac_cv_path_EGREP"
4611
4612
4613
4614 { echo "$as_me:$LINENO: checking for AIX" >&5
4615 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #ifdef _AIX
4623 yes
4624 #endif
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "yes" >/dev/null 2>&1; then
4629 { echo "$as_me:$LINENO: result: yes" >&5
4630 echo "${ECHO_T}yes" >&6; }
4631 cat >>confdefs.h <<\_ACEOF
4632 #define _ALL_SOURCE 1
4633 _ACEOF
4634
4635 else
4636 { echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6; }
4638 fi
4639 rm -f conftest*
4640
4641
4642
4643 cat >>confdefs.h <<\_ACEOF
4644 #define _GNU_SOURCE 1
4645 _ACEOF
4646
4647
4648
4649 ### Use -Wno-pointer-sign if the compiler supports it
4650 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4651 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4652 SAVE_CFLAGS="$CFLAGS"
4653 CFLAGS="$CFLAGS -Wno-pointer-sign"
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660
4661 int
4662 main ()
4663 {
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4686 has_option=yes
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 has_option=no
4692 fi
4693
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 if test $has_option = yes; then
4696 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4697 fi
4698 { echo "$as_me:$LINENO: result: $has_option" >&5
4699 echo "${ECHO_T}$has_option" >&6; }
4700 CFLAGS="$SAVE_CFLAGS"
4701 unset has_option
4702 unset SAVE_CFLAGS
4703
4704 #### Some other nice autoconf tests.
4705
4706 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4708 LN_S=$as_ln_s
4709 if test "$LN_S" = "ln -s"; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4712 else
4713 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714 echo "${ECHO_T}no, using $LN_S" >&6; }
4715 fi
4716
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4723 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4726 CPP=
4727 fi
4728 if test -z "$CPP"; then
4729 if test "${ac_cv_prog_CPP+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 # Double quotes because CPP needs to be expanded
4733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4734 do
4735 ac_preproc_ok=false
4736 for ac_c_preproc_warn_flag in '' yes
4737 do
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755 Syntax error
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 }; then
4773 :
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 # Broken: fails on valid input.
4779 continue
4780 fi
4781
4782 rm -f conftest.err conftest.$ac_ext
4783
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 }; then
4810 # Broken: success on invalid input.
4811 continue
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4819 fi
4820
4821 rm -f conftest.err conftest.$ac_ext
4822
4823 done
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4827 break
4828 fi
4829
4830 done
4831 ac_cv_prog_CPP=$CPP
4832
4833 fi
4834 CPP=$ac_cv_prog_CPP
4835 else
4836 ac_cv_prog_CPP=$CPP
4837 fi
4838 { echo "$as_me:$LINENO: result: $CPP" >&5
4839 echo "${ECHO_T}$CPP" >&6; }
4840 ac_preproc_ok=false
4841 for ac_c_preproc_warn_flag in '' yes
4842 do
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860 Syntax error
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
4878 :
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 # Broken: fails on valid input.
4884 continue
4885 fi
4886
4887 rm -f conftest.err conftest.$ac_ext
4888
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4898 _ACEOF
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev/null && {
4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 }; then
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 # Passes both tests.
4922 ac_preproc_ok=:
4923 break
4924 fi
4925
4926 rm -f conftest.err conftest.$ac_ext
4927
4928 done
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.$ac_ext
4931 if $ac_preproc_ok; then
4932 :
4933 else
4934 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4939 fi
4940
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4953 # AIX /bin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in
4973 ./ | .// | /cC/* | \
4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4976 /usr/ucb/* ) ;;
4977 *)
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4980 # by default.
4981 for ac_prog in ginstall scoinst install; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4987 :
4988 elif test $ac_prog = install &&
4989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4991 :
4992 else
4993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4994 break 3
4995 fi
4996 fi
4997 done
4998 done
4999 ;;
5000 esac
5001 done
5002 IFS=$as_save_IFS
5003
5004
5005 fi
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL=$ac_cv_path_install
5008 else
5009 # As a last resort, use the slow shell script. Don't cache a
5010 # value for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the value is a relative name.
5013 INSTALL=$ac_install_sh
5014 fi
5015 fi
5016 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6; }
5018
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5022
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5024
5025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5026
5027 if test "x$RANLIB" = x; then
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 if test -n "$RANLIB"; then
5037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 RANLIB=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6; }
5060 else
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5063 fi
5064
5065
5066 fi
5067 if test -z "$ac_cv_prog_RANLIB"; then
5068 ac_ct_RANLIB=$RANLIB
5069 # Extract the first word of "ranlib", so it can be a program name with args.
5070 set dummy ranlib; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 if test -n "$ac_ct_RANLIB"; then
5077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_RANLIB="ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090 done
5091 done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5097 if test -n "$ac_ct_RANLIB"; then
5098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5100 else
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105 if test "x$ac_ct_RANLIB" = x; then
5106 RANLIB=":"
5107 else
5108 case $cross_compiling:$ac_tool_warned in
5109 yes:)
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118 RANLIB=$ac_ct_RANLIB
5119 fi
5120 else
5121 RANLIB="$ac_cv_prog_RANLIB"
5122 fi
5123
5124 fi
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info; ac_word=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 case $INSTALL_INFO in
5133 [\\/]* | ?:[\\/]*)
5134 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5135 ;;
5136 *)
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 ;;
5153 esac
5154 fi
5155 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5156 if test -n "$INSTALL_INFO"; then
5157 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5158 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5159 else
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5162 fi
5163
5164
5165 # Extract the first word of "install-info", so it can be a program name with args.
5166 set dummy install-info; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 case $INSTALL_INFO in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in /usr/sbin
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 ;;
5193 esac
5194 fi
5195 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5196 if test -n "$INSTALL_INFO"; then
5197 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5198 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5199 else
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5202 fi
5203
5204
5205 # Extract the first word of "install-info", so it can be a program name with args.
5206 set dummy install-info; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 case $INSTALL_INFO in
5213 [\\/]* | ?:[\\/]*)
5214 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5215 ;;
5216 *)
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in /sbin
5219 do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5233 ;;
5234 esac
5235 fi
5236 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5237 if test -n "$INSTALL_INFO"; then
5238 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5239 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5240 else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5243 fi
5244
5245
5246 # Extract the first word of "gzip", so it can be a program name with args.
5247 set dummy gzip; ac_word=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 case $GZIP_PROG in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5256 ;;
5257 *)
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 ;;
5274 esac
5275 fi
5276 GZIP_PROG=$ac_cv_path_GZIP_PROG
5277 if test -n "$GZIP_PROG"; then
5278 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5279 echo "${ECHO_T}$GZIP_PROG" >&6; }
5280 else
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5283 fi
5284
5285
5286
5287
5288 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5289 then
5290 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5291 fi
5292
5293 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5294 then
5295 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5296 fi
5297
5298
5299 late_LDFLAGS=$LDFLAGS
5300 if test "$GCC" = yes; then
5301 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5302 else
5303 LDFLAGS="$LDFLAGS -znocombreloc"
5304 fi
5305
5306 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5307 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5308 cat >conftest.$ac_ext <<_ACEOF
5309 main(){return 0;}
5310 _ACEOF
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (ac_try="$ac_link"
5313 case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316 esac
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_link") 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest$ac_exeext &&
5328 $as_test_x conftest$ac_exeext; then
5329 { echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6; }
5331 else
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 LDFLAGS=$late_LDFLAGS
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5338 fi
5339
5340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5341 conftest$ac_exeext conftest.$ac_ext
5342
5343 #### Extract some information from the operating system and machine files.
5344
5345 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5346 - which libraries the lib-src programs will want, and
5347 - whether the GNU malloc routines are usable..." >&5
5348 echo "$as_me: checking the machine- and system-dependent files to find out
5349 - which libraries the lib-src programs will want, and
5350 - whether the GNU malloc routines are usable..." >&6;}
5351
5352 ### First figure out CFLAGS (which we use for running the compiler here)
5353 ### and REAL_CFLAGS (which we use for real compilation).
5354 ### The two are the same except on a few systems, where they are made
5355 ### different to work around various lossages. For example,
5356 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5357 ### as implying static linking.
5358
5359 ### If the CFLAGS env var is specified, we use that value
5360 ### instead of the default.
5361
5362 ### It's not important that this name contain the PID; you can't run
5363 ### two configures in the same directory and have anything work
5364 ### anyway.
5365 tempcname="conftest.c"
5366
5367 echo '
5368 #include "'${srcdir}'/src/'${opsysfile}'"
5369 #include "'${srcdir}'/src/'${machfile}'"
5370 #ifndef LIBS_MACHINE
5371 #define LIBS_MACHINE
5372 #endif
5373 #ifndef LIBS_SYSTEM
5374 #define LIBS_SYSTEM
5375 #endif
5376 #ifndef C_SWITCH_SYSTEM
5377 #define C_SWITCH_SYSTEM
5378 #endif
5379 #ifndef C_SWITCH_MACHINE
5380 #define C_SWITCH_MACHINE
5381 #endif
5382 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5383 configure___ c_switch_system=C_SWITCH_SYSTEM
5384 configure___ c_switch_machine=C_SWITCH_MACHINE
5385
5386 #ifndef LIB_X11_LIB
5387 #define LIB_X11_LIB -lX11
5388 #endif
5389
5390 #ifndef LIBX11_MACHINE
5391 #define LIBX11_MACHINE
5392 #endif
5393
5394 #ifndef LIBX11_SYSTEM
5395 #define LIBX11_SYSTEM
5396 #endif
5397 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5398
5399 #ifdef UNEXEC
5400 configure___ unexec=UNEXEC
5401 #else
5402 configure___ unexec=unexec.o
5403 #endif
5404
5405 #ifdef SYSTEM_MALLOC
5406 configure___ system_malloc=yes
5407 #else
5408 configure___ system_malloc=no
5409 #endif
5410
5411 #ifdef USE_MMAP_FOR_BUFFERS
5412 configure___ use_mmap_for_buffers=yes
5413 #else
5414 configure___ use_mmap_for_buffers=no
5415 #endif
5416
5417 #ifndef C_DEBUG_SWITCH
5418 #define C_DEBUG_SWITCH -g
5419 #endif
5420
5421 #ifndef C_OPTIMIZE_SWITCH
5422 #ifdef __GNUC__
5423 #define C_OPTIMIZE_SWITCH -O2
5424 #else
5425 #define C_OPTIMIZE_SWITCH -O
5426 #endif
5427 #endif
5428
5429 #ifndef C_WARNINGS_SWITCH
5430 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5431 #endif
5432
5433 #ifndef LD_SWITCH_MACHINE
5434 #define LD_SWITCH_MACHINE
5435 #endif
5436
5437 #ifndef LD_SWITCH_SYSTEM
5438 #define LD_SWITCH_SYSTEM
5439 #endif
5440
5441 #ifndef LD_SWITCH_X_SITE_AUX
5442 #define LD_SWITCH_X_SITE_AUX
5443 #endif
5444
5445 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5446 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5447
5448 #ifdef THIS_IS_CONFIGURE
5449
5450 /* Get the CFLAGS for tests in configure. */
5451 #ifdef __GNUC__
5452 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5453 #else
5454 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5455 #endif
5456
5457 #else /* not THIS_IS_CONFIGURE */
5458
5459 /* Get the CFLAGS for real compilation. */
5460 #ifdef __GNUC__
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5462 #else
5463 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5464 #endif
5465
5466 #endif /* not THIS_IS_CONFIGURE */
5467 ' > ${tempcname}
5468
5469 # The value of CPP is a quoted variable reference, so we need to do this
5470 # to get its actual value...
5471 CPP=`eval "echo $CPP"`
5472 eval `${CPP} -Isrc ${tempcname} \
5473 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5474 if test "x$SPECIFIED_CFLAGS" = x; then
5475 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5476 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5477 else
5478 REAL_CFLAGS="$CFLAGS"
5479 fi
5480 rm ${tempcname}
5481
5482 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5483
5484 ### Make sure subsequent tests use flags consistent with the build flags.
5485
5486 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5487 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5488 else
5489 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5490 fi
5491
5492
5493
5494 # Check whether --enable-largefile was given.
5495 if test "${enable_largefile+set}" = set; then
5496 enableval=$enable_largefile;
5497 fi
5498
5499 if test "$enable_largefile" != no; then
5500
5501 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5502 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5503 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506 ac_cv_sys_largefile_CC=no
5507 if test "$GCC" != yes; then
5508 ac_save_CC=$CC
5509 while :; do
5510 # IRIX 6.2 and later do not support large files by default,
5511 # so use the C compiler's -n32 option if that helps.
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 /* Check that off_t can represent 2**63 - 1 correctly.
5520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5521 since some C++ compilers masquerading as C compilers
5522 incorrectly reject 9223372036854775807. */
5523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5525 && LARGE_OFF_T % 2147483647 == 1)
5526 ? 1 : -1];
5527 int
5528 main ()
5529 {
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 break
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557
5558 fi
5559
5560 rm -f core conftest.err conftest.$ac_objext
5561 CC="$CC -n32"
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5564 case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 ac_cv_sys_largefile_CC=' -n32'; break
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext
5588 break
5589 done
5590 CC=$ac_save_CC
5591 rm -f conftest.$ac_ext
5592 fi
5593 fi
5594 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5595 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5596 if test "$ac_cv_sys_largefile_CC" != no; then
5597 CC=$CC$ac_cv_sys_largefile_CC
5598 fi
5599
5600 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5601 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5602 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 while :; do
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h. */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5620 ? 1 : -1];
5621 int
5622 main ()
5623 {
5624
5625 ;
5626 return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5631 case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634 esac
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5637 ac_status=$?
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5646 ac_cv_sys_file_offset_bits=no; break
5647 else
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651
5652 fi
5653
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #define _FILE_OFFSET_BITS 64
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_file_offset_bits=64; break
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701
5702 fi
5703
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_sys_file_offset_bits=unknown
5706 break
5707 done
5708 fi
5709 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5711 case $ac_cv_sys_file_offset_bits in #(
5712 no | unknown) ;;
5713 *)
5714 cat >>confdefs.h <<_ACEOF
5715 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5716 _ACEOF
5717 ;;
5718 esac
5719 rm -f conftest*
5720 if test $ac_cv_sys_file_offset_bits = unknown; then
5721 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5722 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5723 if test "${ac_cv_sys_large_files+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 while :; do
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5741 ? 1 : -1];
5742 int
5743 main ()
5744 {
5745
5746 ;
5747 return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5752 case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755 esac
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && {
5764 test -z "$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 } && test -s conftest.$ac_objext; then
5767 ac_cv_sys_large_files=no; break
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772
5773 fi
5774
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #define _LARGE_FILES 1
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5791 ? 1 : -1];
5792 int
5793 main ()
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_cv_sys_large_files=1; break
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_sys_large_files=unknown
5827 break
5828 done
5829 fi
5830 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5831 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5832 case $ac_cv_sys_large_files in #(
5833 no | unknown) ;;
5834 *)
5835 cat >>confdefs.h <<_ACEOF
5836 #define _LARGE_FILES $ac_cv_sys_large_files
5837 _ACEOF
5838 ;;
5839 esac
5840 rm -f conftest*
5841 fi
5842 fi
5843
5844
5845
5846 ### The standard library on x86-64 GNU/Linux distributions can
5847 ### be located in either /usr/lib64 or /usr/lib.
5848 case "${canonical}" in
5849 x86_64-*-linux-gnu* )
5850 if test -d /usr/lib64; then
5851
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_X86_64_LIB64_DIR 1
5854 _ACEOF
5855
5856 fi
5857 esac
5858
5859
5860
5861
5862 if test "${with_sound}" != "no"; then
5863 # Sound support for GNU/Linux and the free BSDs.
5864 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5866 if test "${ac_cv_header_stdc+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h. */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <stdlib.h>
5876 #include <stdarg.h>
5877 #include <string.h>
5878 #include <float.h>
5879
5880 int
5881 main ()
5882 {
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5890 case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5896 ac_status=$?
5897 grep -v '^ *+' conftest.er1 >conftest.err
5898 rm -f conftest.er1
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.$ac_objext; then
5905 ac_cv_header_stdc=yes
5906 else
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_header_stdc=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #include <string.h>
5924
5925 _ACEOF
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev/null 2>&1; then
5928 :
5929 else
5930 ac_cv_header_stdc=no
5931 fi
5932 rm -f conftest*
5933
5934 fi
5935
5936 if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <stdlib.h>
5945
5946 _ACEOF
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev/null 2>&1; then
5949 :
5950 else
5951 ac_cv_header_stdc=no
5952 fi
5953 rm -f conftest*
5954
5955 fi
5956
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5960 :
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <ctype.h>
5969 #include <stdlib.h>
5970 #if ((' ' & 0x0FF) == 0x020)
5971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5973 #else
5974 # define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5979 #endif
5980
5981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5982 int
5983 main ()
5984 {
5985 int i;
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
5989 return 2;
5990 return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 :
6014 else
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 ( exit $ac_status )
6020 ac_cv_header_stdc=no
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 fi
6024
6025
6026 fi
6027 fi
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6031
6032 cat >>confdefs.h <<\_ACEOF
6033 #define STDC_HEADERS 1
6034 _ACEOF
6035
6036 fi
6037
6038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6049 inttypes.h stdint.h unistd.h
6050 do
6051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064
6065 #include <$ac_header>
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6069 case "(($ac_try" in
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6072 esac
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 eval "$as_ac_Header=yes"
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6088
6089 eval "$as_ac_Header=no"
6090 fi
6091
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 fi
6094 ac_res=`eval echo '${'$as_ac_Header'}'`
6095 { echo "$as_me:$LINENO: result: $ac_res" >&5
6096 echo "${ECHO_T}$ac_res" >&6; }
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6101
6102 fi
6103
6104 done
6105
6106
6107
6108
6109
6110 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6111 do
6112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 fi
6119 ac_res=`eval echo '${'$as_ac_Header'}'`
6120 { echo "$as_me:$LINENO: result: $ac_res" >&5
6121 echo "${ECHO_T}$ac_res" >&6; }
6122 else
6123 # Is the header compilable?
6124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6126 cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h. */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 #include <$ac_header>
6134 _ACEOF
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6137 case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_objext; then
6152 ac_header_compiler=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 ac_header_compiler=no
6158 fi
6159
6160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6162 echo "${ECHO_T}$ac_header_compiler" >&6; }
6163
6164 # Is the header present?
6165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <$ac_header>
6174 _ACEOF
6175 if { (ac_try="$ac_cpp conftest.$ac_ext"
6176 case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } >/dev/null && {
6188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6190 }; then
6191 ac_header_preproc=yes
6192 else
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196 ac_header_preproc=no
6197 fi
6198
6199 rm -f conftest.err conftest.$ac_ext
6200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6201 echo "${ECHO_T}$ac_header_preproc" >&6; }
6202
6203 # So? What about this header?
6204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6205 yes:no: )
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6210 ac_header_preproc=yes
6211 ;;
6212 no:yes:* )
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6225
6226 ;;
6227 esac
6228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 eval "$as_ac_Header=\$ac_header_preproc"
6234 fi
6235 ac_res=`eval echo '${'$as_ac_Header'}'`
6236 { echo "$as_me:$LINENO: result: $ac_res" >&5
6237 echo "${ECHO_T}$ac_res" >&6; }
6238
6239 fi
6240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6243 _ACEOF
6244
6245 fi
6246
6247 done
6248
6249 # Emulation library used on NetBSD.
6250 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6251 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6252 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 ac_check_lib_save_LIBS=$LIBS
6256 LIBS="-lossaudio $LIBS"
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply. */
6267 #ifdef __cplusplus
6268 extern "C"
6269 #endif
6270 char _oss_ioctl ();
6271 int
6272 main ()
6273 {
6274 return _oss_ioctl ();
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (ac_try="$ac_link"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
6287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest$ac_exeext &&
6296 $as_test_x conftest$ac_exeext; then
6297 ac_cv_lib_ossaudio__oss_ioctl=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 ac_cv_lib_ossaudio__oss_ioctl=no
6303 fi
6304
6305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6306 conftest$ac_exeext conftest.$ac_ext
6307 LIBS=$ac_check_lib_save_LIBS
6308 fi
6309 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6310 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6311 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6312 LIBSOUND=-lossaudio
6313 else
6314 LIBSOUND=
6315 fi
6316
6317
6318
6319 ALSA_REQUIRED=1.0.0
6320 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6321 if test "X${with_pkg_config_prog}" != X; then
6322 PKG_CONFIG="${with_pkg_config_prog}"
6323 fi
6324
6325 succeeded=no
6326
6327 if test -z "$PKG_CONFIG"; then
6328 # Extract the first word of "pkg-config", so it can be a program name with args.
6329 set dummy pkg-config; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 case $PKG_CONFIG in
6336 [\\/]* | ?:[\\/]*)
6337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6338 ;;
6339 *)
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6350 fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6356 ;;
6357 esac
6358 fi
6359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6360 if test -n "$PKG_CONFIG"; then
6361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 fi
6367
6368
6369 fi
6370
6371 if test "$PKG_CONFIG" = "no" ; then
6372 HAVE_ALSA=no
6373 else
6374 PKG_CONFIG_MIN_VERSION=0.9.0
6375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6376 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6377 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6378
6379 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6380 { echo "$as_me:$LINENO: result: yes" >&5
6381 echo "${ECHO_T}yes" >&6; }
6382 succeeded=yes
6383
6384 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6385 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6386 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6387 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6388 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6389
6390 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6391 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6392 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6393 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6394 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6395 else
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 ALSA_CFLAGS=""
6399 ALSA_LIBS=""
6400 ## If we have a custom action on failure, don't print errors, but
6401 ## do set a variable so people can do so.
6402 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6403
6404 fi
6405
6406
6407
6408 else
6409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6411 fi
6412 fi
6413
6414 if test $succeeded = yes; then
6415 HAVE_ALSA=yes
6416 else
6417 HAVE_ALSA=no
6418 fi
6419
6420 if test $HAVE_ALSA = yes; then
6421 SAVE_CFLAGS="$CFLAGS"
6422 SAVE_LDFLAGS="$LDFLAGS"
6423 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6424 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <asoundlib.h>
6432 int
6433 main ()
6434 {
6435 snd_lib_error_set_handler (0);
6436 ;
6437 return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext
6441 if { (ac_try="$ac_compile"
6442 case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 emacs_alsa_normal=yes
6458 else
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 emacs_alsa_normal=no
6463 fi
6464
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 if test "$emacs_alsa_normal" != yes; then
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <alsa/asoundlib.h>
6474 int
6475 main ()
6476 {
6477 snd_lib_error_set_handler (0);
6478 ;
6479 return 0;
6480 }
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6484 case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compile") 2>conftest.er1
6490 ac_status=$?
6491 grep -v '^ *+' conftest.er1 >conftest.err
6492 rm -f conftest.er1
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && {
6496 test -z "$ac_c_werror_flag" ||
6497 test ! -s conftest.err
6498 } && test -s conftest.$ac_objext; then
6499 emacs_alsa_subdir=yes
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 emacs_alsa_subdir=no
6505 fi
6506
6507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 if test "$emacs_alsa_subdir" != yes; then
6509 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6510 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6511 { (exit 1); exit 1; }; }
6512 fi
6513 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6514 fi
6515
6516 CFLAGS="$SAVE_CFLAGS"
6517 LDFLAGS="$SAVE_LDFLAGS"
6518 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6519 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6520
6521 cat >>confdefs.h <<\_ACEOF
6522 #define HAVE_ALSA 1
6523 _ACEOF
6524
6525
6526 fi
6527
6528 fi
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6556 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6557 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6558 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6559 sys/utsname.h pwd.h
6560 do
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 fi
6568 ac_res=`eval echo '${'$as_ac_Header'}'`
6569 { echo "$as_me:$LINENO: result: $ac_res" >&5
6570 echo "${ECHO_T}$ac_res" >&6; }
6571 else
6572 # Is the header compilable?
6573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 #include <$ac_header>
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_header_compiler=yes
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ac_header_compiler=no
6607 fi
6608
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6611 echo "${ECHO_T}$ac_header_compiler" >&6; }
6612
6613 # Is the header present?
6614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <$ac_header>
6623 _ACEOF
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev/null && {
6637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 }; then
6640 ac_header_preproc=yes
6641 else
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_header_preproc=no
6646 fi
6647
6648 rm -f conftest.err conftest.$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6; }
6651
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654 yes:no: )
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc=yes
6660 ;;
6661 no:yes:* )
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6674
6675 ;;
6676 esac
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 eval "$as_ac_Header=\$ac_header_preproc"
6683 fi
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687
6688 fi
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692 _ACEOF
6693
6694 fi
6695
6696 done
6697
6698
6699 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6700 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <sys/personality.h>
6708 int
6709 main ()
6710 {
6711 personality (PER_LINUX32)
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 emacs_cv_personality_linux32=yes
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 emacs_cv_personality_linux32=no
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6743 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6744
6745 if test $emacs_cv_personality_linux32 = yes; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_PERSONALITY_LINUX32 1
6749 _ACEOF
6750
6751 fi
6752
6753
6754 for ac_header in term.h
6755 do
6756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <$ac_header>
6769 _ACEOF
6770 if { (ac_try="$ac_cpp conftest.$ac_ext"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } >/dev/null && {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 }; then
6786 eval "$as_ac_Header=yes"
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 eval "$as_ac_Header=no"
6792 fi
6793
6794 rm -f conftest.err conftest.$ac_ext
6795 fi
6796 ac_res=`eval echo '${'$as_ac_Header'}'`
6797 { echo "$as_me:$LINENO: result: $ac_res" >&5
6798 echo "${ECHO_T}$ac_res" >&6; }
6799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6800 cat >>confdefs.h <<_ACEOF
6801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6802 _ACEOF
6803
6804 fi
6805
6806 done
6807
6808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6810 if test "${ac_cv_header_stdc+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 cat >conftest.$ac_ext <<_ACEOF
6814 /* confdefs.h. */
6815 _ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <stdlib.h>
6820 #include <stdarg.h>
6821 #include <string.h>
6822 #include <float.h>
6823
6824 int
6825 main ()
6826 {
6827
6828 ;
6829 return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6834 case "(($ac_try" in
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6837 esac
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 ac_cv_header_stdc=yes
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6853
6854 ac_cv_header_stdc=no
6855 fi
6856
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858
6859 if test $ac_cv_header_stdc = yes; then
6860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 #include <string.h>
6868
6869 _ACEOF
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 $EGREP "memchr" >/dev/null 2>&1; then
6872 :
6873 else
6874 ac_cv_header_stdc=no
6875 fi
6876 rm -f conftest*
6877
6878 fi
6879
6880 if test $ac_cv_header_stdc = yes; then
6881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 #include <stdlib.h>
6889
6890 _ACEOF
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "free" >/dev/null 2>&1; then
6893 :
6894 else
6895 ac_cv_header_stdc=no
6896 fi
6897 rm -f conftest*
6898
6899 fi
6900
6901 if test $ac_cv_header_stdc = yes; then
6902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6903 if test "$cross_compiling" = yes; then
6904 :
6905 else
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 #include <ctype.h>
6913 #include <stdlib.h>
6914 #if ((' ' & 0x0FF) == 0x020)
6915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6917 #else
6918 # define ISLOWER(c) \
6919 (('a' <= (c) && (c) <= 'i') \
6920 || ('j' <= (c) && (c) <= 'r') \
6921 || ('s' <= (c) && (c) <= 'z'))
6922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6923 #endif
6924
6925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6926 int
6927 main ()
6928 {
6929 int i;
6930 for (i = 0; i < 256; i++)
6931 if (XOR (islower (i), ISLOWER (i))
6932 || toupper (i) != TOUPPER (i))
6933 return 2;
6934 return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6939 case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_link") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6948 { (case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_try") 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 :
6958 else
6959 echo "$as_me: program exited with status $ac_status" >&5
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ( exit $ac_status )
6964 ac_cv_header_stdc=no
6965 fi
6966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6967 fi
6968
6969
6970 fi
6971 fi
6972 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6973 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6974 if test $ac_cv_header_stdc = yes; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define STDC_HEADERS 1
6978 _ACEOF
6979
6980 fi
6981
6982 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6983 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_time+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/time.h>
6995 #include <time.h>
6996
6997 int
6998 main ()
6999 {
7000 if ((struct tm *) 0)
7001 return 0;
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_cv_header_time=yes
7024 else
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 ac_cv_header_time=no
7029 fi
7030
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 fi
7033 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7034 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7035 if test $ac_cv_header_time = yes; then
7036
7037 cat >>confdefs.h <<\_ACEOF
7038 #define TIME_WITH_SYS_TIME 1
7039 _ACEOF
7040
7041 fi
7042
7043 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7044 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7045 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7055 int
7056 main ()
7057 {
7058 #ifndef sys_siglist
7059 (void) sys_siglist;
7060 #endif
7061
7062 ;
7063 return 0;
7064 }
7065 _ACEOF
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7068 case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071 esac
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_compile") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest.$ac_objext; then
7083 ac_cv_have_decl_sys_siglist=yes
7084 else
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 ac_cv_have_decl_sys_siglist=no
7089 fi
7090
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7092 fi
7093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7094 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7095 if test $ac_cv_have_decl_sys_siglist = yes; then
7096
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_DECL_SYS_SIGLIST 1
7099 _ACEOF
7100
7101
7102 else
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DECL_SYS_SIGLIST 0
7105 _ACEOF
7106
7107
7108 fi
7109
7110
7111 if test $ac_cv_have_decl_sys_siglist != yes; then
7112 # For Tru64, at least:
7113 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7114 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7115 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 $ac_includes_default
7125 int
7126 main ()
7127 {
7128 #ifndef __sys_siglist
7129 (void) __sys_siglist;
7130 #endif
7131
7132 ;
7133 return 0;
7134 }
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7138 case "(($ac_try" in
7139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7141 esac
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7153 ac_cv_have_decl___sys_siglist=yes
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158 ac_cv_have_decl___sys_siglist=no
7159 fi
7160
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 fi
7163 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7164 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7165 if test $ac_cv_have_decl___sys_siglist = yes; then
7166
7167 cat >>confdefs.h <<_ACEOF
7168 #define HAVE_DECL___SYS_SIGLIST 1
7169 _ACEOF
7170
7171
7172 else
7173 cat >>confdefs.h <<_ACEOF
7174 #define HAVE_DECL___SYS_SIGLIST 0
7175 _ACEOF
7176
7177
7178 fi
7179
7180
7181 if test $ac_cv_have_decl___sys_siglist = yes; then
7182
7183 cat >>confdefs.h <<\_ACEOF
7184 #define sys_siglist __sys_siglist
7185 _ACEOF
7186
7187 fi
7188 fi
7189 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7190 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7191 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 cat >conftest.$ac_ext <<_ACEOF
7195 /* confdefs.h. */
7196 _ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 #include <sys/types.h>
7201 #include <sys/wait.h>
7202 #ifndef WEXITSTATUS
7203 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7204 #endif
7205 #ifndef WIFEXITED
7206 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7207 #endif
7208
7209 int
7210 main ()
7211 {
7212 int s;
7213 wait (&s);
7214 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 ac_cv_header_sys_wait_h=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_cv_header_sys_wait_h=no
7242 fi
7243
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 fi
7246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7247 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7248 if test $ac_cv_header_sys_wait_h = yes; then
7249
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_SYS_WAIT_H 1
7252 _ACEOF
7253
7254 fi
7255
7256
7257 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7258 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7259 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 #ifdef TIME_WITH_SYS_TIME
7269 #include <sys/time.h>
7270 #include <time.h>
7271 #else
7272 #ifdef HAVE_SYS_TIME_H
7273 #include <sys/time.h>
7274 #else
7275 #include <time.h>
7276 #endif
7277 #endif
7278 #ifdef HAVE_UTIME_H
7279 #include <utime.h>
7280 #endif
7281 int
7282 main ()
7283 {
7284 static struct utimbuf x; x.actime = x.modtime;
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7291 case "(($ac_try" in
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7297 ac_status=$?
7298 grep -v '^ *+' conftest.er1 >conftest.err
7299 rm -f conftest.er1
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.$ac_objext; then
7306 emacs_cv_struct_utimbuf=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311 emacs_cv_struct_utimbuf=no
7312 fi
7313
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7318 if test $emacs_cv_struct_utimbuf = yes; then
7319
7320 cat >>confdefs.h <<\_ACEOF
7321 #define HAVE_STRUCT_UTIMBUF 1
7322 _ACEOF
7323
7324 fi
7325
7326 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7327 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7328 if test "${ac_cv_type_signal+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <sys/types.h>
7338 #include <signal.h>
7339
7340 int
7341 main ()
7342 {
7343 return *(signal (0, 0)) (0) == 1;
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_type_signal=int
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 ac_cv_type_signal=void
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7376 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7377
7378 cat >>confdefs.h <<_ACEOF
7379 #define RETSIGTYPE $ac_cv_type_signal
7380 _ACEOF
7381
7382
7383
7384 { echo "$as_me:$LINENO: checking for speed_t" >&5
7385 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7386 if test "${emacs_cv_speed_t+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <termios.h>
7396 int
7397 main ()
7398 {
7399 speed_t x = 1;
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_speed_t=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 emacs_cv_speed_t=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_speed_t" >&5
7432 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7433 if test $emacs_cv_speed_t = yes; then
7434
7435 cat >>confdefs.h <<\_ACEOF
7436 #define HAVE_SPEED_T 1
7437 _ACEOF
7438
7439 fi
7440
7441 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7442 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7443 if test "${emacs_cv_struct_timeval+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 else
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h. */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #ifdef TIME_WITH_SYS_TIME
7453 #include <sys/time.h>
7454 #include <time.h>
7455 #else
7456 #ifdef HAVE_SYS_TIME_H
7457 #include <sys/time.h>
7458 #else
7459 #include <time.h>
7460 #endif
7461 #endif
7462 int
7463 main ()
7464 {
7465 static struct timeval x; x.tv_sec = x.tv_usec;
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7472 case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475 esac
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 emacs_cv_struct_timeval=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 emacs_cv_struct_timeval=no
7493 fi
7494
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7498 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7499 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7500 if test $emacs_cv_struct_timeval = yes; then
7501
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_TIMEVAL 1
7504 _ACEOF
7505
7506 fi
7507
7508 { echo "$as_me:$LINENO: checking for struct exception" >&5
7509 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7510 if test "${emacs_cv_struct_exception+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 #include <math.h>
7520 int
7521 main ()
7522 {
7523 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7524 ;
7525 return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7530 case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533 esac
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 emacs_cv_struct_exception=yes
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550 emacs_cv_struct_exception=no
7551 fi
7552
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 fi
7555 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7556 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7557 HAVE_EXCEPTION=$emacs_cv_struct_exception
7558 if test $emacs_cv_struct_exception != yes; then
7559
7560 cat >>confdefs.h <<\_ACEOF
7561 #define NO_MATHERR 1
7562 _ACEOF
7563
7564 fi
7565
7566
7567 for ac_header in sys/socket.h
7568 do
7569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 fi
7576 ac_res=`eval echo '${'$as_ac_Header'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7579 else
7580 # Is the header compilable?
7581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 $ac_includes_default
7590 #include <$ac_header>
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7594 case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7597 esac
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_header_compiler=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_header_compiler=no
7615 fi
7616
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6; }
7620
7621 # Is the header present?
7622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 #include <$ac_header>
7631 _ACEOF
7632 if { (ac_try="$ac_cpp conftest.$ac_ext"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev/null && {
7645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 }; then
7648 ac_header_preproc=yes
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 ac_header_preproc=no
7654 fi
7655
7656 rm -f conftest.err conftest.$ac_ext
7657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7658 echo "${ECHO_T}$ac_header_preproc" >&6; }
7659
7660 # So? What about this header?
7661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7662 yes:no: )
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7667 ac_header_preproc=yes
7668 ;;
7669 no:yes:* )
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7682
7683 ;;
7684 esac
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 eval "$as_ac_Header=\$ac_header_preproc"
7691 fi
7692 ac_res=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7695
7696 fi
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h <<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706
7707 for ac_header in net/if.h
7708 do
7709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 #if HAVE_SYS_SOCKET_H
7723 #include <sys/socket.h>
7724 #endif
7725
7726 #include <$ac_header>
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 eval "$as_ac_Header=yes"
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750 eval "$as_ac_Header=no"
7751 fi
7752
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 ac_res=`eval echo '${'$as_ac_Header'}'`
7756 { echo "$as_me:$LINENO: result: $ac_res" >&5
7757 echo "${ECHO_T}$ac_res" >&6; }
7758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7759 cat >>confdefs.h <<_ACEOF
7760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7761 _ACEOF
7762
7763 fi
7764
7765 done
7766
7767
7768 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7769 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7770 if test "${ac_cv_struct_tm+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <time.h>
7781
7782 int
7783 main ()
7784 {
7785 struct tm tm;
7786 int *p = &tm.tm_sec;
7787 return !p;
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 ac_cv_struct_tm=time.h
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 ac_cv_struct_tm=sys/time.h
7815 fi
7816
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 fi
7819 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7820 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7821 if test $ac_cv_struct_tm = sys/time.h; then
7822
7823 cat >>confdefs.h <<\_ACEOF
7824 #define TM_IN_SYS_TIME 1
7825 _ACEOF
7826
7827 fi
7828
7829 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7830 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7831 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <sys/types.h>
7841 #include <$ac_cv_struct_tm>
7842
7843
7844 int
7845 main ()
7846 {
7847 static struct tm ac_aggr;
7848 if (ac_aggr.tm_zone)
7849 return 0;
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (ac_try="$ac_compile"
7856 case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_compile") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest.$ac_objext; then
7871 ac_cv_member_struct_tm_tm_zone=yes
7872 else
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7875
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h. */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 #include <sys/types.h>
7883 #include <$ac_cv_struct_tm>
7884
7885
7886 int
7887 main ()
7888 {
7889 static struct tm ac_aggr;
7890 if (sizeof ac_aggr.tm_zone)
7891 return 0;
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901 esac
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 ac_cv_member_struct_tm_tm_zone=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ac_cv_member_struct_tm_tm_zone=no
7919 fi
7920
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 fi
7923
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 fi
7926 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7928 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_STRUCT_TM_TM_ZONE 1
7932 _ACEOF
7933
7934
7935 fi
7936
7937 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7938
7939 cat >>confdefs.h <<\_ACEOF
7940 #define HAVE_TM_ZONE 1
7941 _ACEOF
7942
7943 else
7944 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7945 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7946 if test "${ac_cv_have_decl_tzname+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <time.h>
7956
7957 int
7958 main ()
7959 {
7960 #ifndef tzname
7961 (void) tzname;
7962 #endif
7963
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7970 case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_have_decl_tzname=yes
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 ac_cv_have_decl_tzname=no
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7996 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7997 if test $ac_cv_have_decl_tzname = yes; then
7998
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DECL_TZNAME 1
8001 _ACEOF
8002
8003
8004 else
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DECL_TZNAME 0
8007 _ACEOF
8008
8009
8010 fi
8011
8012
8013 { echo "$as_me:$LINENO: checking for tzname" >&5
8014 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8015 if test "${ac_cv_var_tzname+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8024 #include <time.h>
8025 #if !HAVE_DECL_TZNAME
8026 extern char *tzname[];
8027 #endif
8028
8029 int
8030 main ()
8031 {
8032 return tzname[0][0];
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest$ac_exeext &&
8054 $as_test_x conftest$ac_exeext; then
8055 ac_cv_var_tzname=yes
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ac_cv_var_tzname=no
8061 fi
8062
8063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8064 conftest$ac_exeext conftest.$ac_ext
8065 fi
8066 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8067 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8068 if test $ac_cv_var_tzname = yes; then
8069
8070 cat >>confdefs.h <<\_ACEOF
8071 #define HAVE_TZNAME 1
8072 _ACEOF
8073
8074 fi
8075 fi
8076
8077 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8078 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8079 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <time.h>
8089
8090 int
8091 main ()
8092 {
8093 static struct tm ac_aggr;
8094 if (ac_aggr.tm_gmtoff)
8095 return 0;
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_member_struct_tm_tm_gmtoff=yes
8118 else
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include <time.h>
8129
8130 int
8131 main ()
8132 {
8133 static struct tm ac_aggr;
8134 if (sizeof ac_aggr.tm_gmtoff)
8135 return 0;
8136 ;
8137 return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 ac_cv_member_struct_tm_tm_gmtoff=yes
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162 ac_cv_member_struct_tm_tm_gmtoff=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 fi
8170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8171 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8172 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8173
8174 cat >>confdefs.h <<\_ACEOF
8175 #define HAVE_TM_GMTOFF 1
8176 _ACEOF
8177
8178 fi
8179
8180 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8181 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8182 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8192 #if HAVE_SYS_SOCKET_H
8193 #include <sys/socket.h>
8194 #endif
8195 #if HAVE_NET_IF_H
8196 #include <net/if.h>
8197 #endif
8198
8199 int
8200 main ()
8201 {
8202 static struct ifreq ac_aggr;
8203 if (ac_aggr.ifr_flags)
8204 return 0;
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (ac_try="$ac_compile"
8211 case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
8226 ac_cv_member_struct_ifreq_ifr_flags=yes
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 #if HAVE_SYS_SOCKET_H
8239 #include <sys/socket.h>
8240 #endif
8241 #if HAVE_NET_IF_H
8242 #include <net/if.h>
8243 #endif
8244
8245 int
8246 main ()
8247 {
8248 static struct ifreq ac_aggr;
8249 if (sizeof ac_aggr.ifr_flags)
8250 return 0;
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8257 case "(($ac_try" in
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8260 esac
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8272 ac_cv_member_struct_ifreq_ifr_flags=yes
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277 ac_cv_member_struct_ifreq_ifr_flags=no
8278 fi
8279
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8286 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8287 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8288
8289 cat >>confdefs.h <<_ACEOF
8290 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8291 _ACEOF
8292
8293
8294 fi
8295 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8296 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8297 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300 cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h. */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 #if HAVE_SYS_SOCKET_H
8308 #include <sys/socket.h>
8309 #endif
8310 #if HAVE_NET_IF_H
8311 #include <net/if.h>
8312 #endif
8313
8314 int
8315 main ()
8316 {
8317 static struct ifreq ac_aggr;
8318 if (ac_aggr.ifr_hwaddr)
8319 return 0;
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8326 case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8353 #if HAVE_SYS_SOCKET_H
8354 #include <sys/socket.h>
8355 #endif
8356 #if HAVE_NET_IF_H
8357 #include <net/if.h>
8358 #endif
8359
8360 int
8361 main ()
8362 {
8363 static struct ifreq ac_aggr;
8364 if (sizeof ac_aggr.ifr_hwaddr)
8365 return 0;
8366 ;
8367 return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8372 case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.$ac_objext; then
8387 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 fi
8400 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8401 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8402 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8403
8404 cat >>confdefs.h <<_ACEOF
8405 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8406 _ACEOF
8407
8408
8409 fi
8410 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8411 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8412 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #if HAVE_SYS_SOCKET_H
8423 #include <sys/socket.h>
8424 #endif
8425 #if HAVE_NET_IF_H
8426 #include <net/if.h>
8427 #endif
8428
8429 int
8430 main ()
8431 {
8432 static struct ifreq ac_aggr;
8433 if (ac_aggr.ifr_netmask)
8434 return 0;
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext
8440 if { (ac_try="$ac_compile"
8441 case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8456 ac_cv_member_struct_ifreq_ifr_netmask=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 #if HAVE_SYS_SOCKET_H
8469 #include <sys/socket.h>
8470 #endif
8471 #if HAVE_NET_IF_H
8472 #include <net/if.h>
8473 #endif
8474
8475 int
8476 main ()
8477 {
8478 static struct ifreq ac_aggr;
8479 if (sizeof ac_aggr.ifr_netmask)
8480 return 0;
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_cv_member_struct_ifreq_ifr_netmask=yes
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_cv_member_struct_ifreq_ifr_netmask=no
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8516 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8517 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8518
8519 cat >>confdefs.h <<_ACEOF
8520 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8521 _ACEOF
8522
8523
8524 fi
8525 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8526 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8527 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8539 #endif
8540 #if HAVE_NET_IF_H
8541 #include <net/if.h>
8542 #endif
8543
8544 int
8545 main ()
8546 {
8547 static struct ifreq ac_aggr;
8548 if (ac_aggr.ifr_broadaddr)
8549 return 0;
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 #if HAVE_SYS_SOCKET_H
8584 #include <sys/socket.h>
8585 #endif
8586 #if HAVE_NET_IF_H
8587 #include <net/if.h>
8588 #endif
8589
8590 int
8591 main ()
8592 {
8593 static struct ifreq ac_aggr;
8594 if (sizeof ac_aggr.ifr_broadaddr)
8595 return 0;
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8602 case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest.$ac_objext; then
8617 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8623 fi
8624
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 fi
8627
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8631 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8632 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8633
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8636 _ACEOF
8637
8638
8639 fi
8640 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8641 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8642 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 #if HAVE_SYS_SOCKET_H
8653 #include <sys/socket.h>
8654 #endif
8655 #if HAVE_NET_IF_H
8656 #include <net/if.h>
8657 #endif
8658
8659 int
8660 main ()
8661 {
8662 static struct ifreq ac_aggr;
8663 if (ac_aggr.ifr_addr)
8664 return 0;
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8671 case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_cv_member_struct_ifreq_ifr_addr=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8698 #if HAVE_SYS_SOCKET_H
8699 #include <sys/socket.h>
8700 #endif
8701 #if HAVE_NET_IF_H
8702 #include <net/if.h>
8703 #endif
8704
8705 int
8706 main ()
8707 {
8708 static struct ifreq ac_aggr;
8709 if (sizeof ac_aggr.ifr_addr)
8710 return 0;
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 ac_cv_member_struct_ifreq_ifr_addr=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_cv_member_struct_ifreq_ifr_addr=no
8738 fi
8739
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742
8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 fi
8745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8746 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8747 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8748
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8751 _ACEOF
8752
8753
8754 fi
8755
8756
8757
8758 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8759 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8760 if test "$ac_cv_prog_cc_c89" != no; then
8761 { echo "$as_me:$LINENO: result: yes" >&5
8762 echo "${ECHO_T}yes" >&6; }
8763
8764 cat >>confdefs.h <<\_ACEOF
8765 #define PROTOTYPES 1
8766 _ACEOF
8767
8768
8769 cat >>confdefs.h <<\_ACEOF
8770 #define __PROTOTYPES 1
8771 _ACEOF
8772
8773 else
8774 { echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6; }
8776 fi
8777
8778 { echo "$as_me:$LINENO: checking for working volatile" >&5
8779 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8780 if test "${ac_cv_c_volatile+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789
8790 int
8791 main ()
8792 {
8793
8794 volatile int x;
8795 int * volatile y = (int *) 0;
8796 return !x && !y;
8797 ;
8798 return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8803 case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest.$ac_objext; then
8818 ac_cv_c_volatile=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ac_cv_c_volatile=no
8824 fi
8825
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 fi
8828 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8829 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8830 if test $ac_cv_c_volatile = no; then
8831
8832 cat >>confdefs.h <<\_ACEOF
8833 #define volatile
8834 _ACEOF
8835
8836 fi
8837
8838 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8840 if test "${ac_cv_c_const+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849
8850 int
8851 main ()
8852 {
8853 /* FIXME: Include the comments suggested by Paul. */
8854 #ifndef __cplusplus
8855 /* Ultrix mips cc rejects this. */
8856 typedef int charset[2];
8857 const charset cs;
8858 /* SunOS 4.1.1 cc rejects this. */
8859 char const *const *pcpcc;
8860 char **ppc;
8861 /* NEC SVR4.0.2 mips cc rejects this. */
8862 struct point {int x, y;};
8863 static struct point const zero = {0,0};
8864 /* AIX XL C 1.02.0.0 rejects this.
8865 It does not let you subtract one const X* pointer from another in
8866 an arm of an if-expression whose if-part is not a constant
8867 expression */
8868 const char *g = "string";
8869 pcpcc = &g + (g ? g-g : 0);
8870 /* HPUX 7.0 cc rejects these. */
8871 ++pcpcc;
8872 ppc = (char**) pcpcc;
8873 pcpcc = (char const *const *) ppc;
8874 { /* SCO 3.2v4 cc rejects this. */
8875 char *t;
8876 char const *s = 0 ? (char *) 0 : (char const *) 0;
8877
8878 *t++ = 0;
8879 if (s) return 0;
8880 }
8881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8882 int x[] = {25, 17};
8883 const int *foo = &x[0];
8884 ++foo;
8885 }
8886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8887 typedef const int *iptr;
8888 iptr p = 0;
8889 ++p;
8890 }
8891 { /* AIX XL C 1.02.0.0 rejects this saying
8892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8893 struct s { int j; const int *ap[3]; };
8894 struct s *b; b->j = 5;
8895 }
8896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8897 const int foo = 10;
8898 if (!foo) return 0;
8899 }
8900 return !cs[0] && !zero.x;
8901 #endif
8902
8903 ;
8904 return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8909 case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest.$ac_objext; then
8924 ac_cv_c_const=yes
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_cv_c_const=no
8930 fi
8931
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8935 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8936 if test $ac_cv_c_const = no; then
8937
8938 cat >>confdefs.h <<\_ACEOF
8939 #define const
8940 _ACEOF
8941
8942 fi
8943
8944 { echo "$as_me:$LINENO: checking for void * support" >&5
8945 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8946 if test "${emacs_cv_void_star+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955
8956 int
8957 main ()
8958 {
8959 void * foo;
8960 ;
8961 return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8981 emacs_cv_void_star=yes
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 emacs_cv_void_star=no
8987 fi
8988
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 fi
8991 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8992 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8993 if test $emacs_cv_void_star = yes; then
8994 cat >>confdefs.h <<\_ACEOF
8995 #define POINTER_TYPE void
8996 _ACEOF
8997
8998 else
8999 cat >>confdefs.h <<\_ACEOF
9000 #define POINTER_TYPE char
9001 _ACEOF
9002
9003 fi
9004
9005
9006
9007
9008
9009 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9011 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 cat >conftest.make <<\_ACEOF
9016 SHELL = /bin/sh
9017 all:
9018 @echo '@@@%%%=$(MAKE)=@@@%%%'
9019 _ACEOF
9020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9021 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9022 *@@@%%%=?*=@@@%%%*)
9023 eval ac_cv_prog_make_${ac_make}_set=yes;;
9024 *)
9025 eval ac_cv_prog_make_${ac_make}_set=no;;
9026 esac
9027 rm -f conftest.make
9028 fi
9029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9030 { echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6; }
9032 SET_MAKE=
9033 else
9034 { echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6; }
9036 SET_MAKE="MAKE=${MAKE-make}"
9037 fi
9038
9039
9040 { echo "$as_me:$LINENO: checking for long file names" >&5
9041 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9042 if test "${ac_cv_sys_long_file_names+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 ac_cv_sys_long_file_names=yes
9046 # Test for long file names in all the places we know might matter:
9047 # . the current directory, where building will happen
9048 # $prefix/lib where we will be installing things
9049 # $exec_prefix/lib likewise
9050 # $TMPDIR if set, where it might want to write temporary files
9051 # /tmp where it might want to write temporary files
9052 # /var/tmp likewise
9053 # /usr/tmp likewise
9054 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9055 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9056 # in the usual case where exec_prefix is '${prefix}'.
9057 case $ac_dir in #(
9058 . | /* | ?:[\\/]*) ;; #(
9059 *) continue;;
9060 esac
9061 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9062 ac_xdir=$ac_dir/cf$$
9063 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9064 ac_tf1=$ac_xdir/conftest9012345
9065 ac_tf2=$ac_xdir/conftest9012346
9066 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9067 ac_cv_sys_long_file_names=no
9068 rm -f -r "$ac_xdir" 2>/dev/null
9069 test $ac_cv_sys_long_file_names = no && break
9070 done
9071 fi
9072 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9073 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9074 if test $ac_cv_sys_long_file_names = yes; then
9075
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_LONG_FILE_NAMES 1
9078 _ACEOF
9079
9080 fi
9081
9082
9083 #### Choose a window system.
9084
9085 { echo "$as_me:$LINENO: checking for X" >&5
9086 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9087
9088
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then
9091 withval=$with_x;
9092 fi
9093
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096 # The user explicitly disabled X.
9097 have_x=disabled
9098 else
9099 case $x_includes,$x_libraries in #(
9100 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9101 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9102 { (exit 1); exit 1; }; };; #(
9103 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 # One or both of the vars are not set, and there is no cached value.
9107 ac_x_includes=no ac_x_libraries=no
9108 rm -f -r conftest.dir
9109 if mkdir conftest.dir; then
9110 cd conftest.dir
9111 cat >Imakefile <<'_ACEOF'
9112 incroot:
9113 @echo incroot='${INCROOT}'
9114 usrlibdir:
9115 @echo usrlibdir='${USRLIBDIR}'
9116 libdir:
9117 @echo libdir='${LIBDIR}'
9118 _ACEOF
9119 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9121 for ac_var in incroot usrlibdir libdir; do
9122 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9123 done
9124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9125 for ac_extension in a so sl; do
9126 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9127 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9128 ac_im_usrlibdir=$ac_im_libdir; break
9129 fi
9130 done
9131 # Screen out bogus values from the imake configuration. They are
9132 # bogus both because they are the default anyway, and because
9133 # using them would break gcc on systems where it needs fixed includes.
9134 case $ac_im_incroot in
9135 /usr/include) ac_x_includes= ;;
9136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9137 esac
9138 case $ac_im_usrlibdir in
9139 /usr/lib | /lib) ;;
9140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9141 esac
9142 fi
9143 cd ..
9144 rm -f -r conftest.dir
9145 fi
9146
9147 # Standard set of common directories for X headers.
9148 # Check X11 before X11Rn because it is often a symlink to the current release.
9149 ac_x_header_dirs='
9150 /usr/X11/include
9151 /usr/X11R6/include
9152 /usr/X11R5/include
9153 /usr/X11R4/include
9154
9155 /usr/include/X11
9156 /usr/include/X11R6
9157 /usr/include/X11R5
9158 /usr/include/X11R4
9159
9160 /usr/local/X11/include
9161 /usr/local/X11R6/include
9162 /usr/local/X11R5/include
9163 /usr/local/X11R4/include
9164
9165 /usr/local/include/X11
9166 /usr/local/include/X11R6
9167 /usr/local/include/X11R5
9168 /usr/local/include/X11R4
9169
9170 /usr/X386/include
9171 /usr/x386/include
9172 /usr/XFree86/include/X11
9173
9174 /usr/include
9175 /usr/local/include
9176 /usr/unsupported/include
9177 /usr/athena/include
9178 /usr/local/x11r5/include
9179 /usr/lpp/Xamples/include
9180
9181 /usr/openwin/include
9182 /usr/openwin/share/include'
9183
9184 if test "$ac_x_includes" = no; then
9185 # Guess where to find include files, by looking for Xlib.h.
9186 # First, try using that file with no special directory specified.
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9194 _ACEOF
9195 if { (ac_try="$ac_cpp conftest.$ac_ext"
9196 case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev/null && {
9208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 }; then
9211 # We can compile using X headers with no special include directory.
9212 ac_x_includes=
9213 else
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 for ac_dir in $ac_x_header_dirs; do
9218 if test -r "$ac_dir/X11/Xlib.h"; then
9219 ac_x_includes=$ac_dir
9220 break
9221 fi
9222 done
9223 fi
9224
9225 rm -f conftest.err conftest.$ac_ext
9226 fi # $ac_x_includes = no
9227
9228 if test "$ac_x_libraries" = no; then
9229 # Check for the libraries.
9230 # See if we find them without any special options.
9231 # Don't add to $LIBS permanently.
9232 ac_save_LIBS=$LIBS
9233 LIBS="-lX11 $LIBS"
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <X11/Xlib.h>
9241 int
9242 main ()
9243 {
9244 XrmInitialize ()
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (ac_try="$ac_link"
9251 case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9267 LIBS=$ac_save_LIBS
9268 # We can link X programs with no special library path.
9269 ac_x_libraries=
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 LIBS=$ac_save_LIBS
9275 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9276 do
9277 # Don't even attempt the hair of trying to link an X program!
9278 for ac_extension in a so sl; do
9279 if test -r "$ac_dir/libX11.$ac_extension"; then
9280 ac_x_libraries=$ac_dir
9281 break 2
9282 fi
9283 done
9284 done
9285 fi
9286
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288 conftest$ac_exeext conftest.$ac_ext
9289 fi # $ac_x_libraries = no
9290
9291 case $ac_x_includes,$ac_x_libraries in #(
9292 no,* | *,no | *\'*)
9293 # Didn't find X, or a directory has "'" in its name.
9294 ac_cv_have_x="have_x=no";; #(
9295 *)
9296 # Record where we found X for the cache.
9297 ac_cv_have_x="have_x=yes\
9298 ac_x_includes='$ac_x_includes'\
9299 ac_x_libraries='$ac_x_libraries'"
9300 esac
9301 fi
9302 ;; #(
9303 *) have_x=yes;;
9304 esac
9305 eval "$ac_cv_have_x"
9306 fi # $with_x != no
9307
9308 if test "$have_x" != yes; then
9309 { echo "$as_me:$LINENO: result: $have_x" >&5
9310 echo "${ECHO_T}$have_x" >&6; }
9311 no_x=yes
9312 else
9313 # If each of the values was on the command line, it overrides each guess.
9314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9316 # Update the cache value to reflect the command line values.
9317 ac_cv_have_x="have_x=yes\
9318 ac_x_includes='$x_includes'\
9319 ac_x_libraries='$x_libraries'"
9320 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9321 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9322 fi
9323
9324 if test "$no_x" = yes; then
9325 window_system=none
9326 else
9327 window_system=x11
9328 fi
9329
9330 if test "${x_libraries}" != NONE; then
9331 if test -n "${x_libraries}"; then
9332 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9333 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9334 fi
9335 x_default_search_path=""
9336 x_search_path=${x_libraries}
9337 if test -z "${x_search_path}"; then
9338 x_search_path=/usr/lib
9339 fi
9340 for x_library in `echo ${x_search_path}: | \
9341 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9342 x_search_path="\
9343 ${x_library}/X11/%L/%T/%N%C%S:\
9344 ${x_library}/X11/%l/%T/%N%C%S:\
9345 ${x_library}/X11/%T/%N%C%S:\
9346 ${x_library}/X11/%L/%T/%N%S:\
9347 ${x_library}/X11/%l/%T/%N%S:\
9348 ${x_library}/X11/%T/%N%S"
9349 if test x"${x_default_search_path}" = x; then
9350 x_default_search_path=${x_search_path}
9351 else
9352 x_default_search_path="${x_search_path}:${x_default_search_path}"
9353 fi
9354 done
9355 fi
9356 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9357 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9358 fi
9359
9360 if test x"${x_includes}" = x; then
9361 bitmapdir=/usr/include/X11/bitmaps
9362 else
9363 # accumulate include directories that have X11 bitmap subdirectories
9364 bmd_acc="dummyval"
9365 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9366 if test -d "${bmd}/X11/bitmaps"; then
9367 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9368 fi
9369 if test -d "${bmd}/bitmaps"; then
9370 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9371 fi
9372 done
9373 if test ${bmd_acc} != "dummyval"; then
9374 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9375 fi
9376 fi
9377
9378 HAVE_CARBON=no
9379 if test "${with_carbon}" != no; then
9380 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9381 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9382 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9383 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 fi
9386 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9387 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9388 else
9389 # Is the header compilable?
9390 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9391 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9392 cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h. */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 $ac_includes_default
9399 #include <Carbon/Carbon.h>
9400 _ACEOF
9401 rm -f conftest.$ac_objext
9402 if { (ac_try="$ac_compile"
9403 case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_compile") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest.$ac_objext; then
9418 ac_header_compiler=yes
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9422
9423 ac_header_compiler=no
9424 fi
9425
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9428 echo "${ECHO_T}$ac_header_compiler" >&6; }
9429
9430 # Is the header present?
9431 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9432 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 #include <Carbon/Carbon.h>
9440 _ACEOF
9441 if { (ac_try="$ac_cpp conftest.$ac_ext"
9442 case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null && {
9454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 }; then
9457 ac_header_preproc=yes
9458 else
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 ac_header_preproc=no
9463 fi
9464
9465 rm -f conftest.err conftest.$ac_ext
9466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 echo "${ECHO_T}$ac_header_preproc" >&6; }
9468
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9471 yes:no: )
9472 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9473 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9475 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
9477 ;;
9478 no:yes:* )
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9491
9492 ;;
9493 esac
9494 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9495 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9500 fi
9501 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9502 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9503
9504 fi
9505 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9506 HAVE_CARBON=yes
9507 fi
9508
9509
9510 fi
9511 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9512 if test "${with_carbon+set}" != set \
9513 && test "${carbon_appdir_x+set}" != set; then
9514 for var in with_x with_x_toolkit with_gtk with_xim \
9515 with_xpm with_jpeg with_tiff with_gif with_png; do
9516 if eval test \"\${$var+set}\" = set; then
9517 HAVE_CARBON=no
9518 break
9519 fi
9520 done
9521 fi
9522 fi
9523 if test "${HAVE_CARBON}" = yes; then
9524 window_system=mac
9525 fi
9526
9527 case "${window_system}" in
9528 x11 )
9529 HAVE_X_WINDOWS=yes
9530 HAVE_X11=yes
9531 case "${with_x_toolkit}" in
9532 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9533 motif ) USE_X_TOOLKIT=MOTIF ;;
9534 gtk ) with_gtk=yes
9535 USE_X_TOOLKIT=none ;;
9536 no ) USE_X_TOOLKIT=none ;;
9537 * ) USE_X_TOOLKIT=maybe ;;
9538 esac
9539 ;;
9540 mac | none )
9541 HAVE_X_WINDOWS=no
9542 HAVE_X11=no
9543 USE_X_TOOLKIT=none
9544 ;;
9545 esac
9546
9547 ### If we're using X11, we should use the X menu package.
9548 HAVE_MENUS=no
9549 case ${HAVE_X11} in
9550 yes ) HAVE_MENUS=yes ;;
9551 esac
9552
9553 if test "${opsys}" = "hpux9"; then
9554 case "${x_libraries}" in
9555 *X11R4* )
9556 opsysfile="s/hpux9-x11r4.h"
9557 ;;
9558 esac
9559 fi
9560
9561 if test "${opsys}" = "hpux9shr"; then
9562 case "${x_libraries}" in
9563 *X11R4* )
9564 opsysfile="s/hpux9shxr4.h"
9565 ;;
9566 esac
9567 fi
9568
9569 ### Compute the unexec source name from the object name.
9570 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9571
9572 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9573 # Assume not, until told otherwise.
9574 GNU_MALLOC=yes
9575 doug_lea_malloc=yes
9576 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9577 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_get_state innocuous_malloc_get_state
9590
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_get_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9595
9596 #ifdef __STDC__
9597 # include <limits.h>
9598 #else
9599 # include <assert.h>
9600 #endif
9601
9602 #undef malloc_get_state
9603
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char malloc_get_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9615 choke me
9616 #endif
9617
9618 int
9619 main ()
9620 {
9621 return malloc_get_state ();
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9628 case "(($ac_try" in
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext &&
9643 $as_test_x conftest$ac_exeext; then
9644 ac_cv_func_malloc_get_state=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_cv_func_malloc_get_state=no
9650 fi
9651
9652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9653 conftest$ac_exeext conftest.$ac_ext
9654 fi
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9657 if test $ac_cv_func_malloc_get_state = yes; then
9658 :
9659 else
9660 doug_lea_malloc=no
9661 fi
9662
9663 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9664 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9665 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h. */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9676 #define malloc_set_state innocuous_malloc_set_state
9677
9678 /* System header to define __stub macros and hopefully few prototypes,
9679 which can conflict with char malloc_set_state (); below.
9680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 <limits.h> exists even on freestanding compilers. */
9682
9683 #ifdef __STDC__
9684 # include <limits.h>
9685 #else
9686 # include <assert.h>
9687 #endif
9688
9689 #undef malloc_set_state
9690
9691 /* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 char malloc_set_state ();
9698 /* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9702 choke me
9703 #endif
9704
9705 int
9706 main ()
9707 {
9708 return malloc_set_state ();
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 ac_cv_func_malloc_set_state=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736 ac_cv_func_malloc_set_state=no
9737 fi
9738
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9741 fi
9742 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9743 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9744 if test $ac_cv_func_malloc_set_state = yes; then
9745 :
9746 else
9747 doug_lea_malloc=no
9748 fi
9749
9750 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9751 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9752 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 extern void (* __after_morecore_hook)();
9762 int
9763 main ()
9764 {
9765 __after_morecore_hook = 0
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest$ac_exeext &&
9787 $as_test_x conftest$ac_exeext; then
9788 emacs_cv_var___after_morecore_hook=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 emacs_cv_var___after_morecore_hook=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9800 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9801 if test $emacs_cv_var___after_morecore_hook = no; then
9802 doug_lea_malloc=no
9803 fi
9804 if test "${system_malloc}" = "yes"; then
9805 GNU_MALLOC=no
9806 GNU_MALLOC_reason="
9807 (The GNU allocators don't work with this system configuration.)"
9808 fi
9809 if test "$doug_lea_malloc" = "yes" ; then
9810 if test "$GNU_MALLOC" = yes ; then
9811 GNU_MALLOC_reason="
9812 (Using Doug Lea's new malloc from the GNU C Library.)"
9813 fi
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define DOUG_LEA_MALLOC 1
9817 _ACEOF
9818
9819 fi
9820
9821 if test x"${REL_ALLOC}" = x; then
9822 REL_ALLOC=${GNU_MALLOC}
9823 fi
9824
9825
9826
9827
9828 for ac_header in stdlib.h unistd.h
9829 do
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 fi
9837 ac_res=`eval echo '${'$as_ac_Header'}'`
9838 { echo "$as_me:$LINENO: result: $ac_res" >&5
9839 echo "${ECHO_T}$ac_res" >&6; }
9840 else
9841 # Is the header compilable?
9842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #include <$ac_header>
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9855 case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
9870 ac_header_compiler=yes
9871 else
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_header_compiler=no
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881
9882 # Is the header present?
9883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <$ac_header>
9892 _ACEOF
9893 if { (ac_try="$ac_cpp conftest.$ac_ext"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev/null && {
9906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 }; then
9909 ac_header_preproc=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_header_preproc=no
9915 fi
9916
9917 rm -f conftest.err conftest.$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9919 echo "${ECHO_T}$ac_header_preproc" >&6; }
9920
9921 # So? What about this header?
9922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 yes:no: )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9928 ac_header_preproc=yes
9929 ;;
9930 no:yes:* )
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9943
9944 ;;
9945 esac
9946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 eval "$as_ac_Header=\$ac_header_preproc"
9952 fi
9953 ac_res=`eval echo '${'$as_ac_Header'}'`
9954 { echo "$as_me:$LINENO: result: $ac_res" >&5
9955 echo "${ECHO_T}$ac_res" >&6; }
9956
9957 fi
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961 _ACEOF
9962
9963 fi
9964
9965 done
9966
9967
9968 for ac_func in getpagesize
9969 do
9970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define $ac_func innocuous_$ac_func
9985
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char $ac_func (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9990
9991 #ifdef __STDC__
9992 # include <limits.h>
9993 #else
9994 # include <assert.h>
9995 #endif
9996
9997 #undef $ac_func
9998
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 char $ac_func ();
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined __stub_$ac_func || defined __stub___$ac_func
10010 choke me
10011 #endif
10012
10013 int
10014 main ()
10015 {
10016 return $ac_func ();
10017 ;
10018 return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (ac_try="$ac_link"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest$ac_exeext &&
10038 $as_test_x conftest$ac_exeext; then
10039 eval "$as_ac_var=yes"
10040 else
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 eval "$as_ac_var=no"
10045 fi
10046
10047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048 conftest$ac_exeext conftest.$ac_ext
10049 fi
10050 ac_res=`eval echo '${'$as_ac_var'}'`
10051 { echo "$as_me:$LINENO: result: $ac_res" >&5
10052 echo "${ECHO_T}$ac_res" >&6; }
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10056 _ACEOF
10057
10058 fi
10059 done
10060
10061 { echo "$as_me:$LINENO: checking for working mmap" >&5
10062 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10063 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 if test "$cross_compiling" = yes; then
10067 ac_cv_func_mmap_fixed_mapped=no
10068 else
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h. */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 /* malloc might have been renamed as rpl_malloc. */
10077 #undef malloc
10078
10079 /* Thanks to Mike Haertel and Jim Avera for this test.
10080 Here is a matrix of mmap possibilities:
10081 mmap private not fixed
10082 mmap private fixed at somewhere currently unmapped
10083 mmap private fixed at somewhere already mapped
10084 mmap shared not fixed
10085 mmap shared fixed at somewhere currently unmapped
10086 mmap shared fixed at somewhere already mapped
10087 For private mappings, we should verify that changes cannot be read()
10088 back from the file, nor mmap's back from the file at a different
10089 address. (There have been systems where private was not correctly
10090 implemented like the infamous i386 svr4.0, and systems where the
10091 VM page cache was not coherent with the file system buffer cache
10092 like early versions of FreeBSD and possibly contemporary NetBSD.)
10093 For shared mappings, we should conversely verify that changes get
10094 propagated back to all the places they're supposed to be.
10095
10096 Grep wants private fixed already mapped.
10097 The main things grep needs to know about mmap are:
10098 * does it exist and is it safe to write into the mmap'd area
10099 * how to use it (BSD variants) */
10100
10101 #include <fcntl.h>
10102 #include <sys/mman.h>
10103
10104 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10105 char *malloc ();
10106 #endif
10107
10108 /* This mess was copied from the GNU getpagesize.h. */
10109 #ifndef HAVE_GETPAGESIZE
10110 /* Assume that all systems that can run configure have sys/param.h. */
10111 # ifndef HAVE_SYS_PARAM_H
10112 # define HAVE_SYS_PARAM_H 1
10113 # endif
10114
10115 # ifdef _SC_PAGESIZE
10116 # define getpagesize() sysconf(_SC_PAGESIZE)
10117 # else /* no _SC_PAGESIZE */
10118 # ifdef HAVE_SYS_PARAM_H
10119 # include <sys/param.h>
10120 # ifdef EXEC_PAGESIZE
10121 # define getpagesize() EXEC_PAGESIZE
10122 # else /* no EXEC_PAGESIZE */
10123 # ifdef NBPG
10124 # define getpagesize() NBPG * CLSIZE
10125 # ifndef CLSIZE
10126 # define CLSIZE 1
10127 # endif /* no CLSIZE */
10128 # else /* no NBPG */
10129 # ifdef NBPC
10130 # define getpagesize() NBPC
10131 # else /* no NBPC */
10132 # ifdef PAGESIZE
10133 # define getpagesize() PAGESIZE
10134 # endif /* PAGESIZE */
10135 # endif /* no NBPC */
10136 # endif /* no NBPG */
10137 # endif /* no EXEC_PAGESIZE */
10138 # else /* no HAVE_SYS_PARAM_H */
10139 # define getpagesize() 8192 /* punt totally */
10140 # endif /* no HAVE_SYS_PARAM_H */
10141 # endif /* no _SC_PAGESIZE */
10142
10143 #endif /* no HAVE_GETPAGESIZE */
10144
10145 int
10146 main ()
10147 {
10148 char *data, *data2, *data3;
10149 int i, pagesize;
10150 int fd;
10151
10152 pagesize = getpagesize ();
10153
10154 /* First, make a file with some known garbage in it. */
10155 data = (char *) malloc (pagesize);
10156 if (!data)
10157 return 1;
10158 for (i = 0; i < pagesize; ++i)
10159 *(data + i) = rand ();
10160 umask (0);
10161 fd = creat ("conftest.mmap", 0600);
10162 if (fd < 0)
10163 return 1;
10164 if (write (fd, data, pagesize) != pagesize)
10165 return 1;
10166 close (fd);
10167
10168 /* Next, try to mmap the file at a fixed address which already has
10169 something else allocated at it. If we can, also make sure that
10170 we see the same garbage. */
10171 fd = open ("conftest.mmap", O_RDWR);
10172 if (fd < 0)
10173 return 1;
10174 data2 = (char *) malloc (2 * pagesize);
10175 if (!data2)
10176 return 1;
10177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10180 return 1;
10181 for (i = 0; i < pagesize; ++i)
10182 if (*(data + i) != *(data2 + i))
10183 return 1;
10184
10185 /* Finally, make sure that changes to the mapped area do not
10186 percolate back to the file as seen by read(). (This is a bug on
10187 some variants of i386 svr4.0.) */
10188 for (i = 0; i < pagesize; ++i)
10189 *(data2 + i) = *(data2 + i) + 1;
10190 data3 = (char *) malloc (pagesize);
10191 if (!data3)
10192 return 1;
10193 if (read (fd, data3, pagesize) != pagesize)
10194 return 1;
10195 for (i = 0; i < pagesize; ++i)
10196 if (*(data + i) != *(data3 + i))
10197 return 1;
10198 close (fd);
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_func_mmap_fixed_mapped=yes
10223 else
10224 echo "$as_me: program exited with status $ac_status" >&5
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 ( exit $ac_status )
10229 ac_cv_func_mmap_fixed_mapped=no
10230 fi
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10232 fi
10233
10234
10235 fi
10236 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10239
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_MMAP 1
10242 _ACEOF
10243
10244 fi
10245 rm -f conftest.mmap
10246
10247 if test $use_mmap_for_buffers = yes; then
10248 REL_ALLOC=no
10249 fi
10250
10251 LIBS="$libsrc_libs $LIBS"
10252
10253
10254 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10255 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10256 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-ldnet $LIBS"
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 char dnet_ntoa ();
10275 int
10276 main ()
10277 {
10278 return dnet_ntoa ();
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest$ac_exeext &&
10300 $as_test_x conftest$ac_exeext; then
10301 ac_cv_lib_dnet_dnet_ntoa=yes
10302 else
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 ac_cv_lib_dnet_dnet_ntoa=no
10307 fi
10308
10309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10310 conftest$ac_exeext conftest.$ac_ext
10311 LIBS=$ac_check_lib_save_LIBS
10312 fi
10313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10314 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10315 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define HAVE_LIBDNET 1
10318 _ACEOF
10319
10320 LIBS="-ldnet $LIBS"
10321
10322 fi
10323
10324
10325 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10326 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lXbsd $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338
10339
10340 int
10341 main ()
10342 {
10343 return main ();
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (ac_try="$ac_link"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_lib_Xbsd_main=yes
10367 else
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371 ac_cv_lib_Xbsd_main=no
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10377 fi
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10379 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10380 if test $ac_cv_lib_Xbsd_main = yes; then
10381 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10382 fi
10383
10384
10385
10386 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10387 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthreads $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 char cma_open ();
10407 int
10408 main ()
10409 {
10410 return cma_open ();
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420 esac
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext &&
10432 $as_test_x conftest$ac_exeext; then
10433 ac_cv_lib_pthreads_cma_open=yes
10434 else
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_cv_lib_pthreads_cma_open=no
10439 fi
10440
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10446 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10447 if test $ac_cv_lib_pthreads_cma_open = yes; then
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_LIBPTHREADS 1
10450 _ACEOF
10451
10452 LIBS="-lpthreads $LIBS"
10453
10454 fi
10455
10456
10457 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10458 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10459 if test -d /usr/X386/include; then
10460 HAVE_XFREE386=yes
10461 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10462 else
10463 HAVE_XFREE386=no
10464 fi
10465 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10466 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10467
10468
10469 case ${host_os} in
10470 aix*)
10471 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10472 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10473 if test "${gdb_cv_bigtoc+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476
10477 case $GCC in
10478 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10479 *) gdb_cv_bigtoc=-bbigtoc ;;
10480 esac
10481
10482 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h. */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489
10490 int
10491 main ()
10492 {
10493 int i;
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_link") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext &&
10515 $as_test_x conftest$ac_exeext; then
10516 :
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521 gdb_cv_bigtoc=
10522 fi
10523
10524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10525 conftest$ac_exeext conftest.$ac_ext
10526
10527 fi
10528 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10529 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10530 ;;
10531 esac
10532
10533 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10534 # used for the tests that follow. We set them back to REAL_CFLAGS and
10535 # REAL_CPPFLAGS later on.
10536
10537 REAL_CPPFLAGS="$CPPFLAGS"
10538
10539 if test "${HAVE_X11}" = "yes"; then
10540 DEFS="$C_SWITCH_X_SITE $DEFS"
10541 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10542 LIBS="$LIBX $LIBS"
10543 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10544 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10545
10546 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10547 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10548 # but it's more convenient here to set LD_RUN_PATH
10549 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10550 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10551 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10552 export LD_RUN_PATH
10553 fi
10554
10555 if test "${opsys}" = "gnu-linux"; then
10556 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10557 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564
10565 int
10566 main ()
10567 {
10568 XOpenDisplay ("foo");
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext &&
10590 $as_test_x conftest$ac_exeext; then
10591 xlinux_first_failure=no
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 xlinux_first_failure=yes
10597 fi
10598
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 if test "${xlinux_first_failure}" = "yes"; then
10602 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10603 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10604 OLD_CPPFLAGS="$CPPFLAGS"
10605 OLD_LIBS="$LIBS"
10606 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10607 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10608 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10609 LIBS="$LIBS -b i486-linuxaout"
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
10617 int
10618 main ()
10619 {
10620 XOpenDisplay ("foo");
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (ac_try="$ac_link"
10627 case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
10643 xlinux_second_failure=no
10644 else
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648 xlinux_second_failure=yes
10649 fi
10650
10651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10652 conftest$ac_exeext conftest.$ac_ext
10653 if test "${xlinux_second_failure}" = "yes"; then
10654 # If we get the same failure with -b, there is no use adding -b.
10655 # So take it out. This plays safe.
10656 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10657 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10658 CPPFLAGS="$OLD_CPPFLAGS"
10659 LIBS="$OLD_LIBS"
10660 { echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6; }
10662 else
10663 { echo "$as_me:$LINENO: result: yes" >&5
10664 echo "${ECHO_T}yes" >&6; }
10665 fi
10666 else
10667 { echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6; }
10669 fi
10670 fi
10671
10672 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10673 # header files included from there.
10674 { echo "$as_me:$LINENO: checking for Xkb" >&5
10675 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <X11/Xlib.h>
10683 #include <X11/XKBlib.h>
10684 int
10685 main ()
10686 {
10687 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 emacs_xkb=yes
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 emacs_xkb=no
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10721 echo "${ECHO_T}$emacs_xkb" >&6; }
10722 if test $emacs_xkb = yes; then
10723
10724 cat >>confdefs.h <<\_ACEOF
10725 #define HAVE_XKBGETKEYBOARD 1
10726 _ACEOF
10727
10728 fi
10729
10730
10731
10732
10733
10734 for ac_func in XrmSetDatabase XScreenResourceString \
10735 XScreenNumberOfScreen XSetWMProtocols
10736 do
10737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751 #define $ac_func innocuous_$ac_func
10752
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
10757
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10763
10764 #undef $ac_func
10765
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10769 #ifdef __cplusplus
10770 extern "C"
10771 #endif
10772 char $ac_func ();
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined __stub_$ac_func || defined __stub___$ac_func
10777 choke me
10778 #endif
10779
10780 int
10781 main ()
10782 {
10783 return $ac_func ();
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 eval "$as_ac_var=yes"
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 eval "$as_ac_var=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 ac_res=`eval echo '${'$as_ac_var'}'`
10818 { echo "$as_me:$LINENO: result: $ac_res" >&5
10819 echo "${ECHO_T}$ac_res" >&6; }
10820 if test `eval echo '${'$as_ac_var'}'` = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10823 _ACEOF
10824
10825 fi
10826 done
10827
10828 fi
10829
10830 if test "${window_system}" = "x11"; then
10831 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10832 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10833 if test "${emacs_cv_x11_version_6+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 else
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h. */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <X11/Xlib.h>
10843 int
10844 main ()
10845 {
10846 #if XlibSpecificationRelease < 6
10847 fail;
10848 #endif
10849
10850 ;
10851 return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest$ac_exeext &&
10871 $as_test_x conftest$ac_exeext; then
10872 emacs_cv_x11_version_6=yes
10873 else
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 emacs_cv_x11_version_6=no
10878 fi
10879
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10882 fi
10883
10884 if test $emacs_cv_x11_version_6 = yes; then
10885 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10886 echo "${ECHO_T}6 or newer" >&6; }
10887
10888 cat >>confdefs.h <<\_ACEOF
10889 #define HAVE_X11R6 1
10890 _ACEOF
10891
10892 else
10893 { echo "$as_me:$LINENO: result: before 6" >&5
10894 echo "${ECHO_T}before 6" >&6; }
10895 fi
10896 fi
10897
10898 if test "${window_system}" = "x11"; then
10899 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10900 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10901 if test "${emacs_cv_x11_version_5+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 cat >conftest.$ac_ext <<_ACEOF
10905 /* confdefs.h. */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <X11/Xlib.h>
10911 int
10912 main ()
10913 {
10914 #if XlibSpecificationRelease < 5
10915 fail;
10916 #endif
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (ac_try="$ac_link"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_link") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext &&
10939 $as_test_x conftest$ac_exeext; then
10940 emacs_cv_x11_version_5=yes
10941 else
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 emacs_cv_x11_version_5=no
10946 fi
10947
10948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10949 conftest$ac_exeext conftest.$ac_ext
10950 fi
10951
10952 if test $emacs_cv_x11_version_5 = yes; then
10953 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10954 echo "${ECHO_T}5 or newer" >&6; }
10955 HAVE_X11R5=yes
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_X11R5 1
10959 _ACEOF
10960
10961 else
10962 HAVE_X11R5=no
10963 { echo "$as_me:$LINENO: result: before 5" >&5
10964 echo "${ECHO_T}before 5" >&6; }
10965 fi
10966 fi
10967
10968 HAVE_GTK=no
10969 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10970 USE_X_TOOLKIT=none
10971 fi
10972 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10973 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10974 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10975 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10976 { (exit 1); exit 1; }; };
10977 fi
10978 GLIB_REQUIRED=2.4
10979 GTK_REQUIRED=2.4
10980 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10981
10982 if test "X${with_pkg_config_prog}" != X; then
10983 PKG_CONFIG="${with_pkg_config_prog}"
10984 fi
10985
10986 succeeded=no
10987
10988 if test -z "$PKG_CONFIG"; then
10989 # Extract the first word of "pkg-config", so it can be a program name with args.
10990 set dummy pkg-config; ac_word=$2
10991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996 case $PKG_CONFIG in
10997 [\\/]* | ?:[\\/]*)
10998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10999 ;;
11000 *)
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11003 do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012 done
11013 done
11014 IFS=$as_save_IFS
11015
11016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11017 ;;
11018 esac
11019 fi
11020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11021 if test -n "$PKG_CONFIG"; then
11022 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11023 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11024 else
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11027 fi
11028
11029
11030 fi
11031
11032 if test "$PKG_CONFIG" = "no" ; then
11033 { { echo "$as_me:$LINENO: error:
11034 *** 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
11035 echo "$as_me: error:
11036 *** 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;}
11037 { (exit 1); exit 1; }; }
11038 else
11039 PKG_CONFIG_MIN_VERSION=0.9.0
11040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11041 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11042 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11043
11044 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11045 { echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6; }
11047 succeeded=yes
11048
11049 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11050 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11051 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11052 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11053 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11054
11055 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11056 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11057 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11058 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11059 echo "${ECHO_T}$GTK_LIBS" >&6; }
11060 else
11061 { echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6; }
11063 GTK_CFLAGS=""
11064 GTK_LIBS=""
11065 ## If we have a custom action on failure, don't print errors, but
11066 ## do set a variable so people can do so.
11067 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11068 echo $GTK_PKG_ERRORS
11069 fi
11070
11071
11072
11073 else
11074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11076 fi
11077 fi
11078
11079 if test $succeeded = yes; then
11080 :
11081 else
11082 { { 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
11083 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;}
11084 { (exit 1); exit 1; }; }
11085 fi
11086
11087
11088
11089 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11090 CFLAGS="$CFLAGS $GTK_CFLAGS"
11091 LIBS="$GTK_LIBS $LIBS"
11092 GTK_COMPILES=no
11093
11094 for ac_func in gtk_main
11095 do
11096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110 #define $ac_func innocuous_$ac_func
11111
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func (); below.
11114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115 <limits.h> exists even on freestanding compilers. */
11116
11117 #ifdef __STDC__
11118 # include <limits.h>
11119 #else
11120 # include <assert.h>
11121 #endif
11122
11123 #undef $ac_func
11124
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11128 #ifdef __cplusplus
11129 extern "C"
11130 #endif
11131 char $ac_func ();
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined __stub_$ac_func || defined __stub___$ac_func
11136 choke me
11137 #endif
11138
11139 int
11140 main ()
11141 {
11142 return $ac_func ();
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (ac_try="$ac_link"
11149 case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152 esac
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_link") 2>conftest.er1
11155 ac_status=$?
11156 grep -v '^ *+' conftest.er1 >conftest.err
11157 rm -f conftest.er1
11158 cat conftest.err >&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } && {
11161 test -z "$ac_c_werror_flag" ||
11162 test ! -s conftest.err
11163 } && test -s conftest$ac_exeext &&
11164 $as_test_x conftest$ac_exeext; then
11165 eval "$as_ac_var=yes"
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 eval "$as_ac_var=no"
11171 fi
11172
11173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11174 conftest$ac_exeext conftest.$ac_ext
11175 fi
11176 ac_res=`eval echo '${'$as_ac_var'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 if test `eval echo '${'$as_ac_var'}'` = yes; then
11180 cat >>confdefs.h <<_ACEOF
11181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11182 _ACEOF
11183 GTK_COMPILES=yes
11184 fi
11185 done
11186
11187 if test "${GTK_COMPILES}" != "yes"; then
11188 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11189 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11190 { (exit 1); exit 1; }; };
11191 fi
11192
11193 HAVE_GTK=yes
11194
11195 cat >>confdefs.h <<\_ACEOF
11196 #define HAVE_GTK 1
11197 _ACEOF
11198
11199 USE_X_TOOLKIT=none
11200
11201 if test "$with_toolkit_scroll_bars" != no; then
11202 with_toolkit_scroll_bars=yes
11203 fi
11204
11205 HAVE_GTK_MULTIDISPLAY=no
11206
11207 for ac_func in gdk_display_open
11208 do
11209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11224
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11229
11230 #ifdef __STDC__
11231 # include <limits.h>
11232 #else
11233 # include <assert.h>
11234 #endif
11235
11236 #undef $ac_func
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char $ac_func ();
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11249 choke me
11250 #endif
11251
11252 int
11253 main ()
11254 {
11255 return $ac_func ();
11256 ;
11257 return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 eval "$as_ac_var=no"
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11288 fi
11289 ac_res=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11296 HAVE_GTK_MULTIDISPLAY=yes
11297 fi
11298 done
11299
11300 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_GTK_MULTIDISPLAY 1
11304 _ACEOF
11305
11306 fi
11307 HAVE_GTK_FILE_SELECTION=no
11308
11309 for ac_func in gtk_file_selection_new
11310 do
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11326
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11331
11332 #ifdef __STDC__
11333 # include <limits.h>
11334 #else
11335 # include <assert.h>
11336 #endif
11337
11338 #undef $ac_func
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char $ac_func ();
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11351 choke me
11352 #endif
11353
11354 int
11355 main ()
11356 {
11357 return $ac_func ();
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext &&
11379 $as_test_x conftest$ac_exeext; then
11380 eval "$as_ac_var=yes"
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 eval "$as_ac_var=no"
11386 fi
11387
11388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11389 conftest$ac_exeext conftest.$ac_ext
11390 fi
11391 ac_res=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 _ACEOF
11398 HAVE_GTK_FILE_SELECTION=yes
11399 fi
11400 done
11401
11402
11403 HAVE_GTK_FILE_CHOOSER=no
11404
11405 for ac_func in gtk_file_chooser_dialog_new
11406 do
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11422
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11427
11428 #ifdef __STDC__
11429 # include <limits.h>
11430 #else
11431 # include <assert.h>
11432 #endif
11433
11434 #undef $ac_func
11435
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char $ac_func ();
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11447 choke me
11448 #endif
11449
11450 int
11451 main ()
11452 {
11453 return $ac_func ();
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 eval "$as_ac_var=no"
11482 fi
11483
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11486 fi
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11493 _ACEOF
11494 HAVE_GTK_FILE_CHOOSER=yes
11495 fi
11496 done
11497
11498
11499 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11500 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11501
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_GTK_FILE_BOTH 1
11504 _ACEOF
11505
11506 fi
11507
11508 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11509 HAVE_GTK_AND_PTHREAD=no
11510
11511 for ac_header in pthread.h
11512 do
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 fi
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523 else
11524 # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest.$ac_objext; then
11553 ac_header_compiler=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_header_compiler=no
11559 fi
11560
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11564
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11575 _ACEOF
11576 if { (ac_try="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null && {
11589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 }; then
11592 ac_header_preproc=yes
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597 ac_header_preproc=no
11598 fi
11599
11600 rm -f conftest.err conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6; }
11603
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11606 yes:no: )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc=yes
11612 ;;
11613 no:yes:* )
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11626
11627 ;;
11628 esac
11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 eval "$as_ac_Header=\$ac_header_preproc"
11635 fi
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639
11640 fi
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 _ACEOF
11645
11646 fi
11647
11648 done
11649
11650 if test "$ac_cv_header_pthread_h"; then
11651 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11652 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11653 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-lpthread $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char pthread_self ();
11672 int
11673 main ()
11674 {
11675 return pthread_self ();
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest$ac_exeext &&
11697 $as_test_x conftest$ac_exeext; then
11698 ac_cv_lib_pthread_pthread_self=yes
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 ac_cv_lib_pthread_pthread_self=no
11704 fi
11705
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11709 fi
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11712 if test $ac_cv_lib_pthread_pthread_self = yes; then
11713 HAVE_GTK_AND_PTHREAD=yes
11714 fi
11715
11716 fi
11717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11718 GTK_LIBS="$GTK_LIBS -lpthread"
11719
11720 cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_GTK_AND_PTHREAD 1
11722 _ACEOF
11723
11724 fi
11725 fi
11726 fi
11727
11728 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11729 if test x"${HAVE_X11R5}" = xyes; then
11730 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11731 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11732 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741
11742 #include <X11/Intrinsic.h>
11743 #include <X11/Xaw/Simple.h>
11744 int
11745 main ()
11746 {
11747
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (ac_try="$ac_link"
11754 case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_link") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest$ac_exeext &&
11769 $as_test_x conftest$ac_exeext; then
11770 emacs_cv_x11_version_5_with_xaw=yes
11771 else
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775 emacs_cv_x11_version_5_with_xaw=no
11776 fi
11777
11778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779 conftest$ac_exeext conftest.$ac_ext
11780 fi
11781
11782 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11783 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11784 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11785 USE_X_TOOLKIT=LUCID
11786 else
11787 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11788 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11789 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11790 { (exit 1); exit 1; }; }
11791 else
11792 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11793 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11794 USE_X_TOOLKIT=none
11795 fi
11796 fi
11797 else
11798 USE_X_TOOLKIT=none
11799 fi
11800 fi
11801
11802 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11803
11804 if test "${USE_X_TOOLKIT}" != "none"; then
11805 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11806 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11807 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <X11/Intrinsic.h>
11817 int
11818 main ()
11819 {
11820 #if XtSpecificationRelease < 6
11821 fail;
11822 #endif
11823
11824 ;
11825 return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext &&
11845 $as_test_x conftest$ac_exeext; then
11846 emacs_cv_x11_toolkit_version_6=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 emacs_cv_x11_toolkit_version_6=no
11852 fi
11853
11854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11855 conftest$ac_exeext conftest.$ac_ext
11856 fi
11857
11858 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11859 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11860 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11861 echo "${ECHO_T}6 or newer" >&6; }
11862
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_X11XTR6 1
11865 _ACEOF
11866
11867 else
11868 { echo "$as_me:$LINENO: result: before 6" >&5
11869 echo "${ECHO_T}before 6" >&6; }
11870 fi
11871
11872 OLDLIBS="$LIBS"
11873 if test x$HAVE_X11XTR6 = xyes; then
11874 LIBS="-lXt -lSM -lICE $LIBS"
11875 else
11876 LIBS="-lXt $LIBS"
11877 fi
11878
11879 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11880 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11881 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-lXmu $LIBS"
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char XmuConvertStandardSelection ();
11900 int
11901 main ()
11902 {
11903 return XmuConvertStandardSelection ();
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext &&
11925 $as_test_x conftest$ac_exeext; then
11926 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11932 fi
11933
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11937 fi
11938 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11939 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11940 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_LIBXMU 1
11943 _ACEOF
11944
11945 LIBS="-lXmu $LIBS"
11946
11947 fi
11948
11949 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11950 fi
11951
11952 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11953 if test "${HAVE_X11}" = "yes"; then
11954 if test "${USE_X_TOOLKIT}" != "none"; then
11955
11956 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11957 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11958 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lXext $LIBS"
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
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char XShapeQueryExtension ();
11977 int
11978 main ()
11979 {
11980 return XShapeQueryExtension ();
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11993 ac_status=$?
11994 grep -v '^ *+' conftest.er1 >conftest.err
11995 rm -f conftest.er1
11996 cat conftest.err >&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest$ac_exeext &&
12002 $as_test_x conftest$ac_exeext; then
12003 ac_cv_lib_Xext_XShapeQueryExtension=yes
12004 else
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008 ac_cv_lib_Xext_XShapeQueryExtension=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12014 fi
12015 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12016 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12017 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_LIBXEXT 1
12020 _ACEOF
12021
12022 LIBS="-lXext $LIBS"
12023
12024 fi
12025
12026 fi
12027 fi
12028
12029 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12030 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12031 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12032 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <Xm/Xm.h>
12042 int
12043 main ()
12044 {
12045 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12046 int x = 5;
12047 #else
12048 Motif version prior to 2.1.
12049 #endif
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext
12055 if { (ac_try="$ac_compile"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 emacs_cv_motif_version_2_1=yes
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 emacs_cv_motif_version_2_1=no
12077 fi
12078
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 fi
12081 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12082 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12083 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12084 if test $emacs_cv_motif_version_2_1 = yes; then
12085 HAVE_LIBXP=no
12086
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_MOTIF_2_1 1
12089 _ACEOF
12090
12091 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12092 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-lXp $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char XpCreateContext ();
12112 int
12113 main ()
12114 {
12115 return XpCreateContext ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest$ac_exeext &&
12137 $as_test_x conftest$ac_exeext; then
12138 ac_cv_lib_Xp_XpCreateContext=yes
12139 else
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 ac_cv_lib_Xp_XpCreateContext=no
12144 fi
12145
12146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12151 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12152 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12153 HAVE_LIBXP=yes
12154 fi
12155
12156 if test ${HAVE_LIBXP} = yes; then
12157
12158 cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_LIBXP 1
12160 _ACEOF
12161
12162 fi
12163 else
12164 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12165 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12166 if test "${emacs_cv_lesstif+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 # We put this in CFLAGS temporarily to precede other -I options
12170 # that might be in CFLAGS temporarily.
12171 # We put this in CPPFLAGS where it precedes the other -I options.
12172 OLD_CPPFLAGS=$CPPFLAGS
12173 OLD_CFLAGS=$CFLAGS
12174 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12175 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12183 int
12184 main ()
12185 {
12186 int x = 5;
12187 ;
12188 return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext
12192 if { (ac_try="$ac_compile"
12193 case "(($ac_try" in
12194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12196 esac
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_compile") 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest.$ac_objext; then
12208 emacs_cv_lesstif=yes
12209 else
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 emacs_cv_lesstif=no
12214 fi
12215
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 fi
12218 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12219 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12220 if test $emacs_cv_lesstif = yes; then
12221 # Make sure this -I option remains in CPPFLAGS after it is set
12222 # back to REAL_CPPFLAGS.
12223 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12224 # have those other -I options anyway. Ultimately, having this
12225 # directory ultimately in CPPFLAGS will be enough.
12226 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12227 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12228 else
12229 CFLAGS=$OLD_CFLAGS
12230 CPPFLAGS=$OLD_CPPFLAGS
12231 fi
12232 fi
12233 fi
12234
12235 ### Is -lXaw3d available?
12236 HAVE_XAW3D=no
12237 if test "${HAVE_X11}" = "yes"; then
12238 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12239 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12240 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12241 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h. */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <X11/Xaw3d/Scrollbar.h>
12251 _ACEOF
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null && {
12265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 }; then
12268 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12269 else
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12274 fi
12275
12276 rm -f conftest.err conftest.$ac_ext
12277 fi
12278 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12279 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12280 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12281 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12282 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286 ac_check_lib_save_LIBS=$LIBS
12287 LIBS="-lXaw3d $LIBS"
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char XawScrollbarSetThumb ();
12302 int
12303 main ()
12304 {
12305 return XawScrollbarSetThumb ();
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && {
12324 test -z "$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 } && test -s conftest$ac_exeext &&
12327 $as_test_x conftest$ac_exeext; then
12328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12329 else
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12334 fi
12335
12336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12339 fi
12340 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12341 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12342 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12343 HAVE_XAW3D=yes
12344 fi
12345
12346 fi
12347
12348
12349 if test "${HAVE_XAW3D}" = "yes"; then
12350
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_XAW3D 1
12353 _ACEOF
12354
12355 fi
12356 fi
12357 fi
12358
12359
12360
12361 USE_TOOLKIT_SCROLL_BARS=no
12362 if test "${with_toolkit_scroll_bars}" != "no"; then
12363 if test "${USE_X_TOOLKIT}" != "none"; then
12364 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12365 cat >>confdefs.h <<\_ACEOF
12366 #define USE_TOOLKIT_SCROLL_BARS 1
12367 _ACEOF
12368
12369 HAVE_XAW3D=no
12370 USE_TOOLKIT_SCROLL_BARS=yes
12371 elif test "${HAVE_XAW3D}" = "yes"; then
12372 cat >>confdefs.h <<\_ACEOF
12373 #define USE_TOOLKIT_SCROLL_BARS 1
12374 _ACEOF
12375
12376 USE_TOOLKIT_SCROLL_BARS=yes
12377 fi
12378 elif test "${HAVE_GTK}" = "yes"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_TOOLKIT_SCROLL_BARS 1
12381 _ACEOF
12382
12383 USE_TOOLKIT_SCROLL_BARS=yes
12384 elif test "${HAVE_CARBON}" = "yes"; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define USE_TOOLKIT_SCROLL_BARS 1
12387 _ACEOF
12388
12389 USE_TOOLKIT_SCROLL_BARS=yes
12390 fi
12391 fi
12392
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399
12400 #include <X11/Xlib.h>
12401 #include <X11/Xresource.h>
12402 int
12403 main ()
12404 {
12405 XIMProc callback;
12406 ;
12407 return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12415 esac
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.$ac_objext; then
12427 HAVE_XIM=yes
12428
12429 cat >>confdefs.h <<\_ACEOF
12430 #define HAVE_XIM 1
12431 _ACEOF
12432
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 HAVE_XIM=no
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441
12442
12443 if test "${with_xim}" != "no"; then
12444
12445 cat >>confdefs.h <<\_ACEOF
12446 #define USE_XIM 1
12447 _ACEOF
12448
12449 fi
12450
12451
12452 if test "${HAVE_XIM}" != "no"; then
12453 late_CFLAGS=$CFLAGS
12454 if test "$GCC" = yes; then
12455 CFLAGS="$CFLAGS --pedantic-errors"
12456 fi
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h. */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463
12464 #include <X11/Xlib.h>
12465 #include <X11/Xresource.h>
12466 int
12467 main ()
12468 {
12469 Display *display;
12470 XrmDatabase db;
12471 char *res_name;
12472 char *res_class;
12473 XIMProc callback;
12474 XPointer *client_data;
12475 #ifndef __GNUC__
12476 /* If we're not using GCC, it's probably not XFree86, and this is
12477 probably right, but we can't use something like --pedantic-errors. */
12478 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12479 char*, XIMProc, XPointer*);
12480 #endif
12481 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12482 client_data);
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 emacs_cv_arg6_star=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513
12514 if test "$emacs_cv_arg6_star" = yes; then
12515 cat >>confdefs.h <<\_ACEOF
12516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12517 _ACEOF
12518
12519 else
12520 cat >>confdefs.h <<\_ACEOF
12521 #define XRegisterIMInstantiateCallback_arg6 XPointer
12522 _ACEOF
12523
12524 fi
12525 CFLAGS=$late_CFLAGS
12526 fi
12527
12528 ### For font-backend
12529 if test "${USE_FONT_BACKEND}" = "yes"; then
12530
12531
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_FONT_BACKEND 1
12534 _ACEOF
12535
12536
12537 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12538 HAVE_XFT=maybe
12539 if test "${HAVE_X11}" = "yes"; then
12540 if test "x${with_freetype}" = "xno"; then
12541 with_xft="no";
12542 fi
12543 if test "x${with_xft}" != "xno"; then
12544
12545 if test "X${with_pkg_config_prog}" != X; then
12546 PKG_CONFIG="${with_pkg_config_prog}"
12547 fi
12548
12549
12550 succeeded=no
12551
12552 if test -z "$PKG_CONFIG"; then
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config; ac_word=$2
12555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 else
12560 case $PKG_CONFIG in
12561 [\\/]* | ?:[\\/]*)
12562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12563 ;;
12564 *)
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12567 do
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12575 fi
12576 done
12577 done
12578 IFS=$as_save_IFS
12579
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 ;;
12582 esac
12583 fi
12584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12587 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12588 else
12589 { echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6; }
12591 fi
12592
12593
12594 fi
12595
12596 if test "$PKG_CONFIG" = "no" ; then
12597 HAVE_XFT=no
12598 else
12599 PKG_CONFIG_MIN_VERSION=0.9.0
12600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12601 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12602 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12603
12604 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12607 succeeded=yes
12608
12609 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12610 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12611 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12612 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12613 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12614
12615 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12616 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12617 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12618 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12619 echo "${ECHO_T}$XFT_LIBS" >&6; }
12620 else
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12623 XFT_CFLAGS=""
12624 XFT_LIBS=""
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12628
12629 fi
12630
12631
12632
12633 else
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12636 fi
12637 fi
12638
12639 if test $succeeded = yes; then
12640 :
12641 else
12642 HAVE_XFT=no
12643 fi
12644
12645 if test "$HAVE_XFT" != no; then
12646 OLD_CPPFLAGS="$CPPFLAGS"
12647 OLD_CFLAGS="$CFLAGS"
12648 OLD_LIBS="$LIBS"
12649 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12650 CFLAGS="$CFLAGS $XFT_CFLAGS"
12651 LIBS="$XFT_LIBS $LIBS"
12652 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12653 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12654 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 fi
12658 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12659 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12660 else
12661 # Is the header compilable?
12662 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12663 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <X11/Xft/Xft.h>
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ac_header_compiler=no
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6; }
12701
12702 # Is the header present?
12703 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12704 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <X11/Xft/Xft.h>
12712 _ACEOF
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12720 ac_status=$?
12721 grep -v '^ *+' conftest.er1 >conftest.err
12722 rm -f conftest.er1
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } >/dev/null && {
12726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12728 }; then
12729 ac_header_preproc=yes
12730 else
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ac_header_preproc=no
12735 fi
12736
12737 rm -f conftest.err conftest.$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6; }
12740
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12743 yes:no: )
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc=yes
12749 ;;
12750 no:yes:* )
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12763
12764 ;;
12765 esac
12766 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12767 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12768 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12772 fi
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12775
12776 fi
12777 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12778 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12779 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12780 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 ac_check_lib_save_LIBS=$LIBS
12784 LIBS="-lXft $XFT_LIBS $LIBS"
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char XftFontOpen ();
12799 int
12800 main ()
12801 {
12802 return XftFontOpen ();
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest$ac_exeext &&
12824 $as_test_x conftest$ac_exeext; then
12825 ac_cv_lib_Xft_XftFontOpen=yes
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_cv_lib_Xft_XftFontOpen=no
12831 fi
12832
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12836 fi
12837 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12838 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12839 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12840 HAVE_XFT=yes
12841 fi
12842
12843 fi
12844
12845
12846
12847 if test "${HAVE_XFT}" = "yes"; then
12848
12849 cat >>confdefs.h <<\_ACEOF
12850 #define HAVE_XFT 1
12851 _ACEOF
12852
12853
12854 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12855 else
12856 CFLAGS="$OLD_CPPFLAGS"
12857 CFLAGS="$OLD_CFLAGS"
12858 LIBS="$OLD_LIBS"
12859 fi
12860 fi
12861 fi
12862 fi
12863
12864 HAVE_FREETYPE=no
12865 ### Use -lfreetype if available, unless `--with-freetype=no'.
12866 if test "${HAVE_XFT}" = "yes"; then
12867 HAVE_FREETYPE=yes
12868 elif test "x${with_freetype}" != "xno"; then
12869 if test "X${with_pkg_config_prog}" != X; then
12870 PKG_CONFIG="${with_pkg_config_prog}"
12871 fi
12872
12873
12874 succeeded=no
12875
12876 if test -z "$PKG_CONFIG"; then
12877 # Extract the first word of "pkg-config", so it can be a program name with args.
12878 set dummy pkg-config; ac_word=$2
12879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 case $PKG_CONFIG in
12885 [\\/]* | ?:[\\/]*)
12886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12887 ;;
12888 *)
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12899 fi
12900 done
12901 done
12902 IFS=$as_save_IFS
12903
12904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12905 ;;
12906 esac
12907 fi
12908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12909 if test -n "$PKG_CONFIG"; then
12910 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12911 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12912 else
12913 { echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6; }
12915 fi
12916
12917
12918 fi
12919
12920 if test "$PKG_CONFIG" = "no" ; then
12921 HAVE_FREETYPE=no
12922 else
12923 PKG_CONFIG_MIN_VERSION=0.9.0
12924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12925 { echo "$as_me:$LINENO: checking for freetype2" >&5
12926 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12927
12928 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12929 { echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6; }
12931 succeeded=yes
12932
12933 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12934 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12935 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12936 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12937 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12938
12939 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12940 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12941 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12942 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12943 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12944 else
12945 { echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6; }
12947 FREETYPE_CFLAGS=""
12948 FREETYPE_LIBS=""
12949 ## If we have a custom action on failure, don't print errors, but
12950 ## do set a variable so people can do so.
12951 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12952
12953 fi
12954
12955
12956
12957 else
12958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12960 fi
12961 fi
12962
12963 if test $succeeded = yes; then
12964 HAVE_FREETYPE=yes
12965 else
12966 HAVE_FREETYPE=no
12967 fi
12968
12969 if test "${HAVE_FREETYPE}" = "yes"; then
12970
12971 succeeded=no
12972
12973 if test -z "$PKG_CONFIG"; then
12974 # Extract the first word of "pkg-config", so it can be a program name with args.
12975 set dummy pkg-config; ac_word=$2
12976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 case $PKG_CONFIG in
12982 [\\/]* | ?:[\\/]*)
12983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12984 ;;
12985 *)
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13002 ;;
13003 esac
13004 fi
13005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13006 if test -n "$PKG_CONFIG"; then
13007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13009 else
13010 { echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6; }
13012 fi
13013
13014
13015 fi
13016
13017 if test "$PKG_CONFIG" = "no" ; then
13018 HAVE_FC=no
13019 else
13020 PKG_CONFIG_MIN_VERSION=0.9.0
13021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13022 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13023 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13024
13025 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13026 { echo "$as_me:$LINENO: result: yes" >&5
13027 echo "${ECHO_T}yes" >&6; }
13028 succeeded=yes
13029
13030 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13031 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13032 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13033 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13034 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13035
13036 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13037 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13038 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13039 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13040 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13041 else
13042 { echo "$as_me:$LINENO: result: no" >&5
13043 echo "${ECHO_T}no" >&6; }
13044 FONTCONFIG_CFLAGS=""
13045 FONTCONFIG_LIBS=""
13046 ## If we have a custom action on failure, don't print errors, but
13047 ## do set a variable so people can do so.
13048 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13049
13050 fi
13051
13052
13053
13054 else
13055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13057 fi
13058 fi
13059
13060 if test $succeeded = yes; then
13061 HAVE_FC=yes
13062 else
13063 HAVE_FC=no
13064 fi
13065
13066 if test "${HAVE_FC}" = "no"; then
13067 HAVE_FREETYPE=no
13068 fi
13069 fi
13070 fi
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13072
13073 cat >>confdefs.h <<\_ACEOF
13074 #define HAVE_FREETYPE 1
13075 _ACEOF
13076
13077 # Extract the first word of "libotf-config", so it can be a program name with args.
13078 set dummy libotf-config; ac_word=$2
13079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084 if test -n "$HAVE_LIBOTF"; then
13085 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_HAVE_LIBOTF="yes"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13103 fi
13104 fi
13105 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13106 if test -n "$HAVE_LIBOTF"; then
13107 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13108 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13109 else
13110 { echo "$as_me:$LINENO: result: no" >&5
13111 echo "${ECHO_T}no" >&6; }
13112 fi
13113
13114
13115 if test "${HAVE_LIBOTF}" = "yes"; then
13116
13117 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13118 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13119 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lotf $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13134 #ifdef __cplusplus
13135 extern "C"
13136 #endif
13137 char OTF_get_features ();
13138 int
13139 main ()
13140 {
13141 return OTF_get_features ();
13142 ;
13143 return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (ac_try="$ac_link"
13148 case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest$ac_exeext &&
13163 $as_test_x conftest$ac_exeext; then
13164 ac_cv_lib_otf_OTF_get_features=yes
13165 else
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_cv_lib_otf_OTF_get_features=no
13170 fi
13171
13172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13173 conftest$ac_exeext conftest.$ac_ext
13174 LIBS=$ac_check_lib_save_LIBS
13175 fi
13176 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13177 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13178 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_LIBOTF 1
13181 _ACEOF
13182
13183 LIBS="-lotf $LIBS"
13184
13185 else
13186 HAVE_LIBOTF=no
13187 fi
13188
13189 if test "${HAVE_LIBOTF}" = "yes"; then
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_LIBOTF 1
13193 _ACEOF
13194
13195 LIBOTF_CFLAGS=`libotf-config --cflags`
13196 LIBOTF_LIBS=`libotf-config --libs`
13197 fi
13198 fi
13199 fi
13200
13201
13202
13203
13204
13205
13206
13207 fi
13208
13209 ### Use -lXpm if available, unless `--with-xpm=no'.
13210 HAVE_XPM=no
13211 if test "${HAVE_X11}" = "yes"; then
13212 if test "${with_xpm}" != "no"; then
13213 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13214 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13215 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13216 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 fi
13219 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13220 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13221 else
13222 # Is the header compilable?
13223 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13224 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <X11/xpm.h>
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_header_compiler=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ac_header_compiler=no
13257 fi
13258
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13261 echo "${ECHO_T}$ac_header_compiler" >&6; }
13262
13263 # Is the header present?
13264 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13265 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h. */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <X11/xpm.h>
13273 _ACEOF
13274 if { (ac_try="$ac_cpp conftest.$ac_ext"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } >/dev/null && {
13287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 }; then
13290 ac_header_preproc=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 ac_header_preproc=no
13296 fi
13297
13298 rm -f conftest.err conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300 echo "${ECHO_T}$ac_header_preproc" >&6; }
13301
13302 # So? What about this header?
13303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13304 yes:no: )
13305 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13306 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13308 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc=yes
13310 ;;
13311 no:yes:* )
13312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13313 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13315 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13317 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13319 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13323 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13324
13325 ;;
13326 esac
13327 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13328 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13329 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332 ac_cv_header_X11_xpm_h=$ac_header_preproc
13333 fi
13334 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13335 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13336
13337 fi
13338 if test $ac_cv_header_X11_xpm_h = yes; then
13339 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13340 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13341 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-lXpm -lX11 $LIBS"
13346 cat >conftest.$ac_ext <<_ACEOF
13347 /* confdefs.h. */
13348 _ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char XpmReadFileToPixmap ();
13360 int
13361 main ()
13362 {
13363 return XpmReadFileToPixmap ();
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (ac_try="$ac_link"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373 esac
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_link") 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && {
13382 test -z "$ac_c_werror_flag" ||
13383 test ! -s conftest.err
13384 } && test -s conftest$ac_exeext &&
13385 $as_test_x conftest$ac_exeext; then
13386 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13390
13391 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13392 fi
13393
13394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13395 conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13397 fi
13398 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13399 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13400 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13401 HAVE_XPM=yes
13402 fi
13403
13404 fi
13405
13406
13407 if test "${HAVE_XPM}" = "yes"; then
13408 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13409 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include "X11/xpm.h"
13417 #ifndef XpmReturnAllocPixels
13418 no_return_alloc_pixels
13419 #endif
13420
13421 _ACEOF
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13424 HAVE_XPM=no
13425 else
13426 HAVE_XPM=yes
13427 fi
13428 rm -f conftest*
13429
13430
13431 if test "${HAVE_XPM}" = "yes"; then
13432 { echo "$as_me:$LINENO: result: yes" >&5
13433 echo "${ECHO_T}yes" >&6; }
13434 else
13435 { echo "$as_me:$LINENO: result: no" >&5
13436 echo "${ECHO_T}no" >&6; }
13437 fi
13438 fi
13439 fi
13440
13441 if test "${HAVE_XPM}" = "yes"; then
13442
13443 cat >>confdefs.h <<\_ACEOF
13444 #define HAVE_XPM 1
13445 _ACEOF
13446
13447 fi
13448 fi
13449
13450 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13451 HAVE_JPEG=no
13452 if test "${HAVE_X11}" = "yes"; then
13453 if test "${with_jpeg}" != "no"; then
13454 if test "${ac_cv_header_jerror_h+set}" = set; then
13455 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13456 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13457 if test "${ac_cv_header_jerror_h+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 fi
13460 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13461 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13462 else
13463 # Is the header compilable?
13464 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13465 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 $ac_includes_default
13473 #include <jerror.h>
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (ac_try="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13492 ac_header_compiler=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_header_compiler=no
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13502 echo "${ECHO_T}$ac_header_compiler" >&6; }
13503
13504 # Is the header present?
13505 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13506 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include <jerror.h>
13514 _ACEOF
13515 if { (ac_try="$ac_cpp conftest.$ac_ext"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null && {
13528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 }; then
13531 ac_header_preproc=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_header_preproc=no
13537 fi
13538
13539 rm -f conftest.err conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13541 echo "${ECHO_T}$ac_header_preproc" >&6; }
13542
13543 # So? What about this header?
13544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13545 yes:no: )
13546 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13547 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13549 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13550 ac_header_preproc=yes
13551 ;;
13552 no:yes:* )
13553 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13554 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13556 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13558 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13560 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13562 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13564 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13565
13566 ;;
13567 esac
13568 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13569 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13570 if test "${ac_cv_header_jerror_h+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 ac_cv_header_jerror_h=$ac_header_preproc
13574 fi
13575 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13576 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13577
13578 fi
13579 if test $ac_cv_header_jerror_h = yes; then
13580 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13581 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13582 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 else
13585 ac_check_lib_save_LIBS=$LIBS
13586 LIBS="-ljpeg $LIBS"
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13597 #ifdef __cplusplus
13598 extern "C"
13599 #endif
13600 char jpeg_destroy_compress ();
13601 int
13602 main ()
13603 {
13604 return jpeg_destroy_compress ();
13605 ;
13606 return 0;
13607 }
13608 _ACEOF
13609 rm -f conftest.$ac_objext conftest$ac_exeext
13610 if { (ac_try="$ac_link"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_link") 2>conftest.er1
13617 ac_status=$?
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest$ac_exeext &&
13626 $as_test_x conftest$ac_exeext; then
13627 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13628 else
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13631
13632 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13633 fi
13634
13635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13640 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13641 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13642 HAVE_JPEG=yes
13643 fi
13644
13645 fi
13646
13647
13648 fi
13649
13650
13651 if test "${HAVE_JPEG}" = "yes"; then
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_JPEG 1
13654 _ACEOF
13655
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 #include <jpeglib.h>
13663 version=JPEG_LIB_VERSION
13664
13665 _ACEOF
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_JPEG 1
13670 _ACEOF
13671
13672 else
13673 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13674 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13675 HAVE_JPEG=no
13676 fi
13677 rm -f conftest*
13678
13679 fi
13680 fi
13681
13682 ### Use -lpng if available, unless `--with-png=no'.
13683 HAVE_PNG=no
13684 if test "${HAVE_X11}" = "yes"; then
13685 if test "${with_png}" != "no"; then
13686 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13687 # in /usr/include/libpng.
13688
13689
13690 for ac_header in png.h libpng/png.h
13691 do
13692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 fi
13699 ac_res=`eval echo '${'$as_ac_Header'}'`
13700 { echo "$as_me:$LINENO: result: $ac_res" >&5
13701 echo "${ECHO_T}$ac_res" >&6; }
13702 else
13703 # Is the header compilable?
13704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 $ac_includes_default
13713 #include <$ac_header>
13714 _ACEOF
13715 rm -f conftest.$ac_objext
13716 if { (ac_try="$ac_compile"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_compile") 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && {
13729 test -z "$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 } && test -s conftest.$ac_objext; then
13732 ac_header_compiler=yes
13733 else
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_header_compiler=no
13738 fi
13739
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13742 echo "${ECHO_T}$ac_header_compiler" >&6; }
13743
13744 # Is the header present?
13745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13747 cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h. */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <$ac_header>
13754 _ACEOF
13755 if { (ac_try="$ac_cpp conftest.$ac_ext"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } >/dev/null && {
13768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 }; then
13771 ac_header_preproc=yes
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 ac_header_preproc=no
13777 fi
13778
13779 rm -f conftest.err conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13781 echo "${ECHO_T}$ac_header_preproc" >&6; }
13782
13783 # So? What about this header?
13784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13785 yes:no: )
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13790 ac_header_preproc=yes
13791 ;;
13792 no:yes:* )
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13805
13806 ;;
13807 esac
13808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813 eval "$as_ac_Header=\$ac_header_preproc"
13814 fi
13815 ac_res=`eval echo '${'$as_ac_Header'}'`
13816 { echo "$as_me:$LINENO: result: $ac_res" >&5
13817 echo "${ECHO_T}$ac_res" >&6; }
13818
13819 fi
13820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13821 cat >>confdefs.h <<_ACEOF
13822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13823 _ACEOF
13824
13825 fi
13826
13827 done
13828
13829 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13830 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13831 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13832 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 ac_check_lib_save_LIBS=$LIBS
13836 LIBS="-lpng -lz -lm $LIBS"
13837 cat >conftest.$ac_ext <<_ACEOF
13838 /* confdefs.h. */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13847 #ifdef __cplusplus
13848 extern "C"
13849 #endif
13850 char png_get_channels ();
13851 int
13852 main ()
13853 {
13854 return png_get_channels ();
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_link") 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && {
13873 test -z "$ac_c_werror_flag" ||
13874 test ! -s conftest.err
13875 } && test -s conftest$ac_exeext &&
13876 $as_test_x conftest$ac_exeext; then
13877 ac_cv_lib_png_png_get_channels=yes
13878 else
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882 ac_cv_lib_png_png_get_channels=no
13883 fi
13884
13885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886 conftest$ac_exeext conftest.$ac_ext
13887 LIBS=$ac_check_lib_save_LIBS
13888 fi
13889 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13890 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13891 if test $ac_cv_lib_png_png_get_channels = yes; then
13892 HAVE_PNG=yes
13893 fi
13894
13895 fi
13896 fi
13897
13898 if test "${HAVE_PNG}" = "yes"; then
13899
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_PNG 1
13902 _ACEOF
13903
13904 fi
13905 fi
13906
13907 ### Use -ltiff if available, unless `--with-tiff=no'.
13908 HAVE_TIFF=no
13909 if test "${HAVE_X11}" = "yes"; then
13910 if test "${with_tiff}" != "no"; then
13911 if test "${ac_cv_header_tiffio_h+set}" = set; then
13912 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13913 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13914 if test "${ac_cv_header_tiffio_h+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 fi
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13919 else
13920 # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13922 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <tiffio.h>
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13950 else
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954 ac_header_compiler=no
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13960
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13963 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <tiffio.h>
13971 _ACEOF
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null && {
13985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 }; then
13988 ac_header_preproc=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_header_preproc=no
13994 fi
13995
13996 rm -f conftest.err conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
13999
14000 # So? What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14002 yes:no: )
14003 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14004 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14006 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14007 ac_header_preproc=yes
14008 ;;
14009 no:yes:* )
14010 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14011 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14013 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14015 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14017 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14021 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14022
14023 ;;
14024 esac
14025 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14026 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14027 if test "${ac_cv_header_tiffio_h+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030 ac_cv_header_tiffio_h=$ac_header_preproc
14031 fi
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14034
14035 fi
14036 if test $ac_cv_header_tiffio_h = yes; then
14037 tifflibs="-lz -lm"
14038 # At least one tiff package requires the jpeg library.
14039 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14040 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14041 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14042 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-ltiff $tifflibs $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14057 #ifdef __cplusplus
14058 extern "C"
14059 #endif
14060 char TIFFGetVersion ();
14061 int
14062 main ()
14063 {
14064 return TIFFGetVersion ();
14065 ;
14066 return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest$ac_exeext &&
14086 $as_test_x conftest$ac_exeext; then
14087 ac_cv_lib_tiff_TIFFGetVersion=yes
14088 else
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092 ac_cv_lib_tiff_TIFFGetVersion=no
14093 fi
14094
14095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14098 fi
14099 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14100 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14101 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14102 HAVE_TIFF=yes
14103 fi
14104
14105 fi
14106
14107
14108 fi
14109
14110 if test "${HAVE_TIFF}" = "yes"; then
14111
14112 cat >>confdefs.h <<\_ACEOF
14113 #define HAVE_TIFF 1
14114 _ACEOF
14115
14116 fi
14117 fi
14118
14119 ### Use -lgif if available, unless `--with-gif=no'.
14120 HAVE_GIF=no
14121 if test "${HAVE_X11}" = "yes"; then
14122 if test "${with_gif}" != "no"; then
14123 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14124 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14125 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14126 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 fi
14129 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14130 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14131 else
14132 # Is the header compilable?
14133 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14134 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14142 #include <gif_lib.h>
14143 _ACEOF
14144 rm -f conftest.$ac_objext
14145 if { (ac_try="$ac_compile"
14146 case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149 esac
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_compile") 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } && {
14158 test -z "$ac_c_werror_flag" ||
14159 test ! -s conftest.err
14160 } && test -s conftest.$ac_objext; then
14161 ac_header_compiler=yes
14162 else
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_header_compiler=no
14167 fi
14168
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14171 echo "${ECHO_T}$ac_header_compiler" >&6; }
14172
14173 # Is the header present?
14174 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14175 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14176 cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h. */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <gif_lib.h>
14183 _ACEOF
14184 if { (ac_try="$ac_cpp conftest.$ac_ext"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14191 ac_status=$?
14192 grep -v '^ *+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } >/dev/null && {
14197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 }; then
14200 ac_header_preproc=yes
14201 else
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14204
14205 ac_header_preproc=no
14206 fi
14207
14208 rm -f conftest.err conftest.$ac_ext
14209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14210 echo "${ECHO_T}$ac_header_preproc" >&6; }
14211
14212 # So? What about this header?
14213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14214 yes:no: )
14215 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14216 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14218 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14219 ac_header_preproc=yes
14220 ;;
14221 no:yes:* )
14222 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14223 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14225 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14227 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14229 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14231 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14233 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14234
14235 ;;
14236 esac
14237 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14238 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14239 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242 ac_cv_header_gif_lib_h=$ac_header_preproc
14243 fi
14244 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14245 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14246
14247 fi
14248 if test $ac_cv_header_gif_lib_h = yes; then
14249 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14250 # Earlier versions can crash Emacs.
14251 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14252 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14253 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lungif $LIBS"
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 #endif
14271 char EGifPutExtensionLast ();
14272 int
14273 main ()
14274 {
14275 return EGifPutExtensionLast ();
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_link") 2>conftest.er1
14288 ac_status=$?
14289 grep -v '^ *+' conftest.er1 >conftest.err
14290 rm -f conftest.er1
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest$ac_exeext &&
14297 $as_test_x conftest$ac_exeext; then
14298 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 ac_cv_lib_ungif_EGifPutExtensionLast=no
14304 fi
14305
14306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14309 fi
14310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14311 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14312 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14313 HAVE_GIF=yes
14314 fi
14315
14316 fi
14317
14318
14319 fi
14320
14321 if test "${HAVE_GIF}" = "yes"; then
14322
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_GIF 1
14325 _ACEOF
14326
14327 fi
14328 fi
14329
14330 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14331 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14332 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 fi
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14337 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14338 else
14339 # Is the header compilable?
14340 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14341 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h. */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 $ac_includes_default
14349 #include <malloc/malloc.h>
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (ac_try="$ac_compile"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_header_compiler=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_header_compiler=no
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378 echo "${ECHO_T}$ac_header_compiler" >&6; }
14379
14380 # Is the header present?
14381 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14382 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h. */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <malloc/malloc.h>
14390 _ACEOF
14391 if { (ac_try="$ac_cpp conftest.$ac_ext"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } >/dev/null && {
14404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 }; then
14407 ac_header_preproc=yes
14408 else
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 ac_header_preproc=no
14413 fi
14414
14415 rm -f conftest.err conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14418
14419 # So? What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14421 yes:no: )
14422 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14425 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc=yes
14427 ;;
14428 no:yes:* )
14429 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14438 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14441
14442 ;;
14443 esac
14444 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14445 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14450 fi
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14453
14454 fi
14455 if test $ac_cv_header_malloc_malloc_h = yes; then
14456
14457 cat >>confdefs.h <<\_ACEOF
14458 #define HAVE_MALLOC_MALLOC_H 1
14459 _ACEOF
14460
14461 fi
14462
14463
14464
14465 ### Use Mac OS X Carbon API to implement GUI.
14466 if test "${HAVE_CARBON}" = "yes"; then
14467
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_CARBON 1
14470 _ACEOF
14471
14472 ## Specify the install directory
14473 carbon_appdir=
14474 if test "${carbon_appdir_x}" != ""; then
14475 case ${carbon_appdir_x} in
14476 y | ye | yes) carbon_appdir=/Applications ;;
14477 * ) carbon_appdir=${carbon_appdir_x} ;;
14478 esac
14479 fi
14480 # We also have mouse menus.
14481 HAVE_MENUS=yes
14482 fi
14483
14484 ### Use session management (-lSM -lICE) if available
14485 HAVE_X_SM=no
14486 if test "${HAVE_X11}" = "yes"; then
14487 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14488 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14489 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14490 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14495 else
14496 # Is the header compilable?
14497 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14498 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 $ac_includes_default
14506 #include <X11/SM/SMlib.h>
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_compile") 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && {
14522 test -z "$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest.$ac_objext; then
14525 ac_header_compiler=yes
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 ac_header_compiler=no
14531 fi
14532
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535 echo "${ECHO_T}$ac_header_compiler" >&6; }
14536
14537 # Is the header present?
14538 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14539 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <X11/SM/SMlib.h>
14547 _ACEOF
14548 if { (ac_try="$ac_cpp conftest.$ac_ext"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null && {
14561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 }; then
14564 ac_header_preproc=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 ac_header_preproc=no
14570 fi
14571
14572 rm -f conftest.err conftest.$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14574 echo "${ECHO_T}$ac_header_preproc" >&6; }
14575
14576 # So? What about this header?
14577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14578 yes:no: )
14579 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14580 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14582 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14583 ac_header_preproc=yes
14584 ;;
14585 no:yes:* )
14586 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14587 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14589 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14591 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14593 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14595 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14597 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14598
14599 ;;
14600 esac
14601 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14602 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14603 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14607 fi
14608 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14609 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14610
14611 fi
14612 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14613 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14614 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14615 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 ac_check_lib_save_LIBS=$LIBS
14619 LIBS="-lSM -lICE $LIBS"
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626
14627 /* Override any GCC internal prototype to avoid an error.
14628 Use char because int might match the return type of a GCC
14629 builtin and then its argument prototype would still apply. */
14630 #ifdef __cplusplus
14631 extern "C"
14632 #endif
14633 char SmcOpenConnection ();
14634 int
14635 main ()
14636 {
14637 return SmcOpenConnection ();
14638 ;
14639 return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14650 ac_status=$?
14651 grep -v '^ *+' conftest.er1 >conftest.err
14652 rm -f conftest.er1
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14660 ac_cv_lib_SM_SmcOpenConnection=yes
14661 else
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_cv_lib_SM_SmcOpenConnection=no
14666 fi
14667
14668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14670 LIBS=$ac_check_lib_save_LIBS
14671 fi
14672 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14673 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14674 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14675 HAVE_X_SM=yes
14676 fi
14677
14678 fi
14679
14680
14681
14682 if test "${HAVE_X_SM}" = "yes"; then
14683
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_X_SM 1
14686 _ACEOF
14687
14688 case "$LIBS" in
14689 *-lSM*) ;;
14690 *) LIBS="-lSM -lICE $LIBS" ;;
14691 esac
14692 fi
14693 fi
14694
14695 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14696 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14697 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14698 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 #include <netdb.h>
14708 int
14709 main ()
14710 {
14711 return h_errno;
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest$ac_exeext &&
14733 $as_test_x conftest$ac_exeext; then
14734 emacs_cv_netdb_declares_h_errno=yes
14735 else
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739 emacs_cv_netdb_declares_h_errno=no
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743 conftest$ac_exeext conftest.$ac_ext
14744 fi
14745 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14746 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14747 if test $emacs_cv_netdb_declares_h_errno = yes; then
14748
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_H_ERRNO 1
14751 _ACEOF
14752
14753 fi
14754
14755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14756 # for constant arguments. Useless!
14757 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14758 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14759 if test "${ac_cv_working_alloca_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 cat >conftest.$ac_ext <<_ACEOF
14763 /* confdefs.h. */
14764 _ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <alloca.h>
14769 int
14770 main ()
14771 {
14772 char *p = (char *) alloca (2 * sizeof (int));
14773 if (p) return 0;
14774 ;
14775 return 0;
14776 }
14777 _ACEOF
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest$ac_exeext &&
14795 $as_test_x conftest$ac_exeext; then
14796 ac_cv_working_alloca_h=yes
14797 else
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_cv_working_alloca_h=no
14802 fi
14803
14804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14805 conftest$ac_exeext conftest.$ac_ext
14806 fi
14807 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14808 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14809 if test $ac_cv_working_alloca_h = yes; then
14810
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_ALLOCA_H 1
14813 _ACEOF
14814
14815 fi
14816
14817 { echo "$as_me:$LINENO: checking for alloca" >&5
14818 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14819 if test "${ac_cv_func_alloca_works+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 #ifdef __GNUC__
14829 # define alloca __builtin_alloca
14830 #else
14831 # ifdef _MSC_VER
14832 # include <malloc.h>
14833 # define alloca _alloca
14834 # else
14835 # ifdef HAVE_ALLOCA_H
14836 # include <alloca.h>
14837 # else
14838 # ifdef _AIX
14839 #pragma alloca
14840 # else
14841 # ifndef alloca /* predefined by HP cc +Olibcalls */
14842 char *alloca ();
14843 # endif
14844 # endif
14845 # endif
14846 # endif
14847 #endif
14848
14849 int
14850 main ()
14851 {
14852 char *p = (char *) alloca (1);
14853 if (p) return 0;
14854 ;
14855 return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext conftest$ac_exeext
14859 if { (ac_try="$ac_link"
14860 case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14863 esac
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_link") 2>conftest.er1
14866 ac_status=$?
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } && {
14872 test -z "$ac_c_werror_flag" ||
14873 test ! -s conftest.err
14874 } && test -s conftest$ac_exeext &&
14875 $as_test_x conftest$ac_exeext; then
14876 ac_cv_func_alloca_works=yes
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_cv_func_alloca_works=no
14882 fi
14883
14884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14885 conftest$ac_exeext conftest.$ac_ext
14886 fi
14887 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14888 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14889
14890 if test $ac_cv_func_alloca_works = yes; then
14891
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAVE_ALLOCA 1
14894 _ACEOF
14895
14896 else
14897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14898 # that cause trouble. Some versions do not even contain alloca or
14899 # contain a buggy version. If you still want to use their alloca,
14900 # use ar to extract alloca.o from them instead of compiling alloca.c.
14901
14902 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14903
14904 cat >>confdefs.h <<\_ACEOF
14905 #define C_ALLOCA 1
14906 _ACEOF
14907
14908
14909 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14910 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14911 if test "${ac_cv_os_cray+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 #if defined CRAY && ! defined CRAY2
14921 webecray
14922 #else
14923 wenotbecray
14924 #endif
14925
14926 _ACEOF
14927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14928 $EGREP "webecray" >/dev/null 2>&1; then
14929 ac_cv_os_cray=yes
14930 else
14931 ac_cv_os_cray=no
14932 fi
14933 rm -f conftest*
14934
14935 fi
14936 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14937 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14938 if test $ac_cv_os_cray = yes; then
14939 for ac_func in _getb67 GETB67 getb67; do
14940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14954 #define $ac_func innocuous_$ac_func
14955
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char $ac_func (); below.
14958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959 <limits.h> exists even on freestanding compilers. */
14960
14961 #ifdef __STDC__
14962 # include <limits.h>
14963 #else
14964 # include <assert.h>
14965 #endif
14966
14967 #undef $ac_func
14968
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char $ac_func ();
14976 /* The GNU C library defines this for functions which it implements
14977 to always fail with ENOSYS. Some functions are actually named
14978 something starting with __ and the normal name is an alias. */
14979 #if defined __stub_$ac_func || defined __stub___$ac_func
14980 choke me
14981 #endif
14982
14983 int
14984 main ()
14985 {
14986 return $ac_func ();
14987 ;
14988 return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (ac_try="$ac_link"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_link") 2>conftest.er1
14999 ac_status=$?
15000 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } && {
15005 test -z "$ac_c_werror_flag" ||
15006 test ! -s conftest.err
15007 } && test -s conftest$ac_exeext &&
15008 $as_test_x conftest$ac_exeext; then
15009 eval "$as_ac_var=yes"
15010 else
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15013
15014 eval "$as_ac_var=no"
15015 fi
15016
15017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15018 conftest$ac_exeext conftest.$ac_ext
15019 fi
15020 ac_res=`eval echo '${'$as_ac_var'}'`
15021 { echo "$as_me:$LINENO: result: $ac_res" >&5
15022 echo "${ECHO_T}$ac_res" >&6; }
15023 if test `eval echo '${'$as_ac_var'}'` = yes; then
15024
15025 cat >>confdefs.h <<_ACEOF
15026 #define CRAY_STACKSEG_END $ac_func
15027 _ACEOF
15028
15029 break
15030 fi
15031
15032 done
15033 fi
15034
15035 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15036 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15037 if test "${ac_cv_c_stack_direction+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040 if test "$cross_compiling" = yes; then
15041 ac_cv_c_stack_direction=0
15042 else
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 $ac_includes_default
15050 int
15051 find_stack_direction ()
15052 {
15053 static char *addr = 0;
15054 auto char dummy;
15055 if (addr == 0)
15056 {
15057 addr = &dummy;
15058 return find_stack_direction ();
15059 }
15060 else
15061 return (&dummy > addr) ? 1 : -1;
15062 }
15063
15064 int
15065 main ()
15066 {
15067 return find_stack_direction () < 0;
15068 }
15069 _ACEOF
15070 rm -f conftest$ac_exeext
15071 if { (ac_try="$ac_link"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15087 ac_status=$?
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_c_stack_direction=1
15091 else
15092 echo "$as_me: program exited with status $ac_status" >&5
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15095
15096 ( exit $ac_status )
15097 ac_cv_c_stack_direction=-1
15098 fi
15099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15100 fi
15101
15102
15103 fi
15104 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15105 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define STACK_DIRECTION $ac_cv_c_stack_direction
15109 _ACEOF
15110
15111
15112 fi
15113
15114
15115 # fmod, logb, and frexp are found in -lm on most systems.
15116 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15117
15118 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15119 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15120 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123 ac_check_lib_save_LIBS=$LIBS
15124 LIBS="-lm $LIBS"
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h. */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131
15132 /* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
15135 #ifdef __cplusplus
15136 extern "C"
15137 #endif
15138 char sqrt ();
15139 int
15140 main ()
15141 {
15142 return sqrt ();
15143 ;
15144 return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15165 ac_cv_lib_m_sqrt=yes
15166 else
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170 ac_cv_lib_m_sqrt=no
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15178 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15179 if test $ac_cv_lib_m_sqrt = yes; then
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_LIBM 1
15182 _ACEOF
15183
15184 LIBS="-lm $LIBS"
15185
15186 fi
15187
15188
15189 # Check for mail-locking functions in a "mail" library. Probably this should
15190 # have the same check as for liblockfile below.
15191
15192 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15193 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15194 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 ac_check_lib_save_LIBS=$LIBS
15198 LIBS="-lmail $LIBS"
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply. */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 char maillock ();
15213 int
15214 main ()
15215 {
15216 return maillock ();
15217 ;
15218 return 0;
15219 }
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_link") 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest$ac_exeext &&
15238 $as_test_x conftest$ac_exeext; then
15239 ac_cv_lib_mail_maillock=yes
15240 else
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244 ac_cv_lib_mail_maillock=no
15245 fi
15246
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15250 fi
15251 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15252 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15253 if test $ac_cv_lib_mail_maillock = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBMAIL 1
15256 _ACEOF
15257
15258 LIBS="-lmail $LIBS"
15259
15260 fi
15261
15262
15263 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15264 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15265 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268 ac_check_lib_save_LIBS=$LIBS
15269 LIBS="-llockfile $LIBS"
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h. */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15280 #ifdef __cplusplus
15281 extern "C"
15282 #endif
15283 char maillock ();
15284 int
15285 main ()
15286 {
15287 return maillock ();
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (ac_try="$ac_link"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_link") 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && {
15306 test -z "$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 } && test -s conftest$ac_exeext &&
15309 $as_test_x conftest$ac_exeext; then
15310 ac_cv_lib_lockfile_maillock=yes
15311 else
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_cv_lib_lockfile_maillock=no
15316 fi
15317
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15321 fi
15322 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15323 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15324 if test $ac_cv_lib_lockfile_maillock = yes; then
15325 cat >>confdefs.h <<_ACEOF
15326 #define HAVE_LIBLOCKFILE 1
15327 _ACEOF
15328
15329 LIBS="-llockfile $LIBS"
15330
15331 fi
15332
15333 # If we have the shared liblockfile, assume we must use it for mail
15334 # locking (e.g. Debian). If we couldn't link against liblockfile
15335 # (no liblockfile.a installed), ensure that we don't need to.
15336 if test "$ac_cv_lib_lockfile_maillock" = no; then
15337 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15338 set dummy liblockfile.so; ac_word=$2
15339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15341 if test "${ac_cv_prog_liblockfile+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344 if test -n "$liblockfile"; then
15345 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15346 else
15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15349 for as_dir in $as_dummy
15350 do
15351 IFS=$as_save_IFS
15352 test -z "$as_dir" && as_dir=.
15353 for ac_exec_ext in '' $ac_executable_extensions; do
15354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15355 ac_cv_prog_liblockfile="yes"
15356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15357 break 2
15358 fi
15359 done
15360 done
15361 IFS=$as_save_IFS
15362
15363 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15364 fi
15365 fi
15366 liblockfile=$ac_cv_prog_liblockfile
15367 if test -n "$liblockfile"; then
15368 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15369 echo "${ECHO_T}$liblockfile" >&6; }
15370 else
15371 { echo "$as_me:$LINENO: result: no" >&5
15372 echo "${ECHO_T}no" >&6; }
15373 fi
15374
15375
15376 if test $ac_cv_prog_liblockfile = yes; then
15377 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15378 This probably means that movemail could lose mail.
15379 There may be a \`development' package to install containing liblockfile." >&5
15380 echo "$as_me: error: Shared liblockfile found but can't link against it.
15381 This probably means that movemail could lose mail.
15382 There may be a \`development' package to install containing liblockfile." >&2;}
15383 { (exit 1); exit 1; }; }
15384 else :
15385 fi
15386 fi
15387
15388 for ac_func in touchlock
15389 do
15390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15404 #define $ac_func innocuous_$ac_func
15405
15406 /* System header to define __stub macros and hopefully few prototypes,
15407 which can conflict with char $ac_func (); below.
15408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409 <limits.h> exists even on freestanding compilers. */
15410
15411 #ifdef __STDC__
15412 # include <limits.h>
15413 #else
15414 # include <assert.h>
15415 #endif
15416
15417 #undef $ac_func
15418
15419 /* Override any GCC internal prototype to avoid an error.
15420 Use char because int might match the return type of a GCC
15421 builtin and then its argument prototype would still apply. */
15422 #ifdef __cplusplus
15423 extern "C"
15424 #endif
15425 char $ac_func ();
15426 /* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429 #if defined __stub_$ac_func || defined __stub___$ac_func
15430 choke me
15431 #endif
15432
15433 int
15434 main ()
15435 {
15436 return $ac_func ();
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459 eval "$as_ac_var=yes"
15460 else
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 eval "$as_ac_var=no"
15465 fi
15466
15467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468 conftest$ac_exeext conftest.$ac_ext
15469 fi
15470 ac_res=`eval echo '${'$as_ac_var'}'`
15471 { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15473 if test `eval echo '${'$as_ac_var'}'` = yes; then
15474 cat >>confdefs.h <<_ACEOF
15475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15476 _ACEOF
15477
15478 fi
15479 done
15480
15481
15482 for ac_header in maillock.h
15483 do
15484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 fi
15491 ac_res=`eval echo '${'$as_ac_Header'}'`
15492 { echo "$as_me:$LINENO: result: $ac_res" >&5
15493 echo "${ECHO_T}$ac_res" >&6; }
15494 else
15495 # Is the header compilable?
15496 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h. */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 $ac_includes_default
15505 #include <$ac_header>
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (ac_try="$ac_compile"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_compile") 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest.$ac_objext; then
15524 ac_header_compiler=yes
15525 else
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_header_compiler=no
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15534 echo "${ECHO_T}$ac_header_compiler" >&6; }
15535
15536 # Is the header present?
15537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 #include <$ac_header>
15546 _ACEOF
15547 if { (ac_try="$ac_cpp conftest.$ac_ext"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15554 ac_status=$?
15555 grep -v '^ *+' conftest.er1 >conftest.err
15556 rm -f conftest.er1
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } >/dev/null && {
15560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15561 test ! -s conftest.err
15562 }; then
15563 ac_header_preproc=yes
15564 else
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 ac_header_preproc=no
15569 fi
15570
15571 rm -f conftest.err conftest.$ac_ext
15572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15573 echo "${ECHO_T}$ac_header_preproc" >&6; }
15574
15575 # So? What about this header?
15576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15577 yes:no: )
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15582 ac_header_preproc=yes
15583 ;;
15584 no:yes:* )
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15588 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15592 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15597
15598 ;;
15599 esac
15600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 else
15605 eval "$as_ac_Header=\$ac_header_preproc"
15606 fi
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608 { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15610
15611 fi
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15615 _ACEOF
15616
15617 fi
15618
15619 done
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691 for ac_func in gethostname getdomainname dup2 \
15692 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15693 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15694 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15695 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15696 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15697 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15698 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15699 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15700 do
15701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h. */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15715 #define $ac_func innocuous_$ac_func
15716
15717 /* System header to define __stub macros and hopefully few prototypes,
15718 which can conflict with char $ac_func (); below.
15719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15720 <limits.h> exists even on freestanding compilers. */
15721
15722 #ifdef __STDC__
15723 # include <limits.h>
15724 #else
15725 # include <assert.h>
15726 #endif
15727
15728 #undef $ac_func
15729
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15733 #ifdef __cplusplus
15734 extern "C"
15735 #endif
15736 char $ac_func ();
15737 /* The GNU C library defines this for functions which it implements
15738 to always fail with ENOSYS. Some functions are actually named
15739 something starting with __ and the normal name is an alias. */
15740 #if defined __stub_$ac_func || defined __stub___$ac_func
15741 choke me
15742 #endif
15743
15744 int
15745 main ()
15746 {
15747 return $ac_func ();
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (ac_try="$ac_link"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_link") 2>conftest.er1
15760 ac_status=$?
15761 grep -v '^ *+' conftest.er1 >conftest.err
15762 rm -f conftest.er1
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest$ac_exeext &&
15769 $as_test_x conftest$ac_exeext; then
15770 eval "$as_ac_var=yes"
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 eval "$as_ac_var=no"
15776 fi
15777
15778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15779 conftest$ac_exeext conftest.$ac_ext
15780 fi
15781 ac_res=`eval echo '${'$as_ac_var'}'`
15782 { echo "$as_me:$LINENO: result: $ac_res" >&5
15783 echo "${ECHO_T}$ac_res" >&6; }
15784 if test `eval echo '${'$as_ac_var'}'` = yes; then
15785 cat >>confdefs.h <<_ACEOF
15786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15787 _ACEOF
15788
15789 fi
15790 done
15791
15792
15793
15794 for ac_header in sys/un.h
15795 do
15796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 fi
15803 ac_res=`eval echo '${'$as_ac_Header'}'`
15804 { echo "$as_me:$LINENO: result: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15806 else
15807 # Is the header compilable?
15808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 $ac_includes_default
15817 #include <$ac_header>
15818 _ACEOF
15819 rm -f conftest.$ac_objext
15820 if { (ac_try="$ac_compile"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 ac_header_compiler=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_header_compiler=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15846 echo "${ECHO_T}$ac_header_compiler" >&6; }
15847
15848 # Is the header present?
15849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <$ac_header>
15858 _ACEOF
15859 if { (ac_try="$ac_cpp conftest.$ac_ext"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15866 ac_status=$?
15867 grep -v '^ *+' conftest.er1 >conftest.err
15868 rm -f conftest.er1
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } >/dev/null && {
15872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15874 }; then
15875 ac_header_preproc=yes
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15879
15880 ac_header_preproc=no
15881 fi
15882
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15886
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15889 yes:no: )
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15894 ac_header_preproc=yes
15895 ;;
15896 no:yes:* )
15897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15909
15910 ;;
15911 esac
15912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917 eval "$as_ac_Header=\$ac_header_preproc"
15918 fi
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15922
15923 fi
15924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15927 _ACEOF
15928
15929 fi
15930
15931 done
15932
15933
15934
15935
15936
15937
15938 for ac_header in $ac_header_list
15939 do
15940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 fi
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15950 else
15951 # Is the header compilable?
15952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15954 cat >conftest.$ac_ext <<_ACEOF
15955 /* confdefs.h. */
15956 _ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 $ac_includes_default
15961 #include <$ac_header>
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_compile") 2>conftest.er1
15971 ac_status=$?
15972 grep -v '^ *+' conftest.er1 >conftest.err
15973 rm -f conftest.er1
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && {
15977 test -z "$ac_c_werror_flag" ||
15978 test ! -s conftest.err
15979 } && test -s conftest.$ac_objext; then
15980 ac_header_compiler=yes
15981 else
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ac_header_compiler=no
15986 fi
15987
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15990 echo "${ECHO_T}$ac_header_compiler" >&6; }
15991
15992 # Is the header present?
15993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 #include <$ac_header>
16002 _ACEOF
16003 if { (ac_try="$ac_cpp conftest.$ac_ext"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16010 ac_status=$?
16011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } >/dev/null && {
16016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16018 }; then
16019 ac_header_preproc=yes
16020 else
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ac_header_preproc=no
16025 fi
16026
16027 rm -f conftest.err conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6; }
16030
16031 # So? What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033 yes:no: )
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16038 ac_header_preproc=yes
16039 ;;
16040 no:yes:* )
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16053
16054 ;;
16055 esac
16056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061 eval "$as_ac_Header=\$ac_header_preproc"
16062 fi
16063 ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16066
16067 fi
16068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16071 _ACEOF
16072
16073 fi
16074
16075 done
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085 for ac_func in $ac_func_list
16086 do
16087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093 cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h. */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16101 #define $ac_func innocuous_$ac_func
16102
16103 /* System header to define __stub macros and hopefully few prototypes,
16104 which can conflict with char $ac_func (); below.
16105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16106 <limits.h> exists even on freestanding compilers. */
16107
16108 #ifdef __STDC__
16109 # include <limits.h>
16110 #else
16111 # include <assert.h>
16112 #endif
16113
16114 #undef $ac_func
16115
16116 /* Override any GCC internal prototype to avoid an error.
16117 Use char because int might match the return type of a GCC
16118 builtin and then its argument prototype would still apply. */
16119 #ifdef __cplusplus
16120 extern "C"
16121 #endif
16122 char $ac_func ();
16123 /* The GNU C library defines this for functions which it implements
16124 to always fail with ENOSYS. Some functions are actually named
16125 something starting with __ and the normal name is an alias. */
16126 #if defined __stub_$ac_func || defined __stub___$ac_func
16127 choke me
16128 #endif
16129
16130 int
16131 main ()
16132 {
16133 return $ac_func ();
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 eval "$as_ac_var=yes"
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 eval "$as_ac_var=no"
16162 fi
16163
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16166 fi
16167 ac_res=`eval echo '${'$as_ac_var'}'`
16168 { echo "$as_me:$LINENO: result: $ac_res" >&5
16169 echo "${ECHO_T}$ac_res" >&6; }
16170 if test `eval echo '${'$as_ac_var'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16173 _ACEOF
16174
16175 fi
16176 done
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194 { echo "$as_me:$LINENO: checking for working mktime" >&5
16195 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16196 if test "${ac_cv_func_working_mktime+set}" = set; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199 if test "$cross_compiling" = yes; then
16200 ac_cv_func_working_mktime=no
16201 else
16202 cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h. */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 /* Test program from Paul Eggert and Tony Leneis. */
16209 #ifdef TIME_WITH_SYS_TIME
16210 # include <sys/time.h>
16211 # include <time.h>
16212 #else
16213 # ifdef HAVE_SYS_TIME_H
16214 # include <sys/time.h>
16215 # else
16216 # include <time.h>
16217 # endif
16218 #endif
16219
16220 #include <stdlib.h>
16221
16222 #ifdef HAVE_UNISTD_H
16223 # include <unistd.h>
16224 #endif
16225
16226 #ifndef HAVE_ALARM
16227 # define alarm(X) /* empty */
16228 #endif
16229
16230 /* Work around redefinition to rpl_putenv by other config tests. */
16231 #undef putenv
16232
16233 static time_t time_t_max;
16234 static time_t time_t_min;
16235
16236 /* Values we'll use to set the TZ environment variable. */
16237 static char *tz_strings[] = {
16238 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16239 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16240 };
16241 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16242
16243 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16244 Based on a problem report from Andreas Jaeger. */
16245 static int
16246 spring_forward_gap ()
16247 {
16248 /* glibc (up to about 1998-10-07) failed this test. */
16249 struct tm tm;
16250
16251 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16252 instead of "TZ=America/Vancouver" in order to detect the bug even
16253 on systems that don't support the Olson extension, or don't have the
16254 full zoneinfo tables installed. */
16255 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16256
16257 tm.tm_year = 98;
16258 tm.tm_mon = 3;
16259 tm.tm_mday = 5;
16260 tm.tm_hour = 2;
16261 tm.tm_min = 0;
16262 tm.tm_sec = 0;
16263 tm.tm_isdst = -1;
16264 return mktime (&tm) != (time_t) -1;
16265 }
16266
16267 static int
16268 mktime_test1 (now)
16269 time_t now;
16270 {
16271 struct tm *lt;
16272 return ! (lt = localtime (&now)) || mktime (lt) == now;
16273 }
16274
16275 static int
16276 mktime_test (now)
16277 time_t now;
16278 {
16279 return (mktime_test1 (now)
16280 && mktime_test1 ((time_t) (time_t_max - now))
16281 && mktime_test1 ((time_t) (time_t_min + now)));
16282 }
16283
16284 static int
16285 irix_6_4_bug ()
16286 {
16287 /* Based on code from Ariel Faigon. */
16288 struct tm tm;
16289 tm.tm_year = 96;
16290 tm.tm_mon = 3;
16291 tm.tm_mday = 0;
16292 tm.tm_hour = 0;
16293 tm.tm_min = 0;
16294 tm.tm_sec = 0;
16295 tm.tm_isdst = -1;
16296 mktime (&tm);
16297 return tm.tm_mon == 2 && tm.tm_mday == 31;
16298 }
16299
16300 static int
16301 bigtime_test (j)
16302 int j;
16303 {
16304 struct tm tm;
16305 time_t now;
16306 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16307 now = mktime (&tm);
16308 if (now != (time_t) -1)
16309 {
16310 struct tm *lt = localtime (&now);
16311 if (! (lt
16312 && lt->tm_year == tm.tm_year
16313 && lt->tm_mon == tm.tm_mon
16314 && lt->tm_mday == tm.tm_mday
16315 && lt->tm_hour == tm.tm_hour
16316 && lt->tm_min == tm.tm_min
16317 && lt->tm_sec == tm.tm_sec
16318 && lt->tm_yday == tm.tm_yday
16319 && lt->tm_wday == tm.tm_wday
16320 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16321 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16322 return 0;
16323 }
16324 return 1;
16325 }
16326
16327 static int
16328 year_2050_test ()
16329 {
16330 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16331 ignoring leap seconds. */
16332 unsigned long int answer = 2527315200UL;
16333
16334 struct tm tm;
16335 time_t t;
16336 tm.tm_year = 2050 - 1900;
16337 tm.tm_mon = 2 - 1;
16338 tm.tm_mday = 1;
16339 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16340 tm.tm_isdst = -1;
16341
16342 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16343 instead of "TZ=America/Vancouver" in order to detect the bug even
16344 on systems that don't support the Olson extension, or don't have the
16345 full zoneinfo tables installed. */
16346 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16347
16348 t = mktime (&tm);
16349
16350 /* Check that the result is either a failure, or close enough
16351 to the correct answer that we can assume the discrepancy is
16352 due to leap seconds. */
16353 return (t == (time_t) -1
16354 || (0 < t && answer - 120 <= t && t <= answer + 120));
16355 }
16356
16357 int
16358 main ()
16359 {
16360 time_t t, delta;
16361 int i, j;
16362
16363 /* This test makes some buggy mktime implementations loop.
16364 Give up after 60 seconds; a mktime slower than that
16365 isn't worth using anyway. */
16366 alarm (60);
16367
16368 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16369 continue;
16370 time_t_max--;
16371 if ((time_t) -1 < 0)
16372 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16373 continue;
16374 delta = time_t_max / 997; /* a suitable prime number */
16375 for (i = 0; i < N_STRINGS; i++)
16376 {
16377 if (tz_strings[i])
16378 putenv (tz_strings[i]);
16379
16380 for (t = 0; t <= time_t_max - delta; t += delta)
16381 if (! mktime_test (t))
16382 return 1;
16383 if (! (mktime_test ((time_t) 1)
16384 && mktime_test ((time_t) (60 * 60))
16385 && mktime_test ((time_t) (60 * 60 * 24))))
16386 return 1;
16387
16388 for (j = 1; 0 < j; j *= 2)
16389 if (! bigtime_test (j))
16390 return 1;
16391 if (! bigtime_test (j - 1))
16392 return 1;
16393 }
16394 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16395 }
16396 _ACEOF
16397 rm -f conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_link") 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_cv_func_working_mktime=yes
16418 else
16419 echo "$as_me: program exited with status $ac_status" >&5
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 ( exit $ac_status )
16424 ac_cv_func_working_mktime=no
16425 fi
16426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16427 fi
16428
16429
16430 fi
16431 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16432 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16433 if test $ac_cv_func_working_mktime = no; then
16434 case " $LIBOBJS " in
16435 *" mktime.$ac_objext "* ) ;;
16436 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16437 ;;
16438 esac
16439
16440 fi
16441
16442 if test "$ac_cv_func_working_mktime" = no; then
16443
16444 cat >>confdefs.h <<\_ACEOF
16445 #define BROKEN_MKTIME 1
16446 _ACEOF
16447
16448 fi
16449
16450 ac_have_func=no # yes means we've found a way to get the load average.
16451
16452 # Make sure getloadavg.c is where it belongs, at configure-time.
16453 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16454 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16455 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16456 { (exit 1); exit 1; }; }
16457
16458 ac_save_LIBS=$LIBS
16459
16460 # Check for getloadavg, but be sure not to touch the cache variable.
16461 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16462 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16463 if test "${ac_cv_func_getloadavg+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h. */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16474 #define getloadavg innocuous_getloadavg
16475
16476 /* System header to define __stub macros and hopefully few prototypes,
16477 which can conflict with char getloadavg (); below.
16478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16479 <limits.h> exists even on freestanding compilers. */
16480
16481 #ifdef __STDC__
16482 # include <limits.h>
16483 #else
16484 # include <assert.h>
16485 #endif
16486
16487 #undef getloadavg
16488
16489 /* Override any GCC internal prototype to avoid an error.
16490 Use char because int might match the return type of a GCC
16491 builtin and then its argument prototype would still apply. */
16492 #ifdef __cplusplus
16493 extern "C"
16494 #endif
16495 char getloadavg ();
16496 /* The GNU C library defines this for functions which it implements
16497 to always fail with ENOSYS. Some functions are actually named
16498 something starting with __ and the normal name is an alias. */
16499 #if defined __stub_getloadavg || defined __stub___getloadavg
16500 choke me
16501 #endif
16502
16503 int
16504 main ()
16505 {
16506 return getloadavg ();
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_func_getloadavg=yes
16530 else
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 ac_cv_func_getloadavg=no
16535 fi
16536
16537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16538 conftest$ac_exeext conftest.$ac_ext
16539 fi
16540 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16541 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16542 if test $ac_cv_func_getloadavg = yes; then
16543 exit 0
16544 else
16545 exit 1
16546 fi
16547 ) && ac_have_func=yes
16548
16549 # On HPUX9, an unprivileged user can get load averages through this function.
16550
16551 for ac_func in pstat_getdynamic
16552 do
16553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h. */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16567 #define $ac_func innocuous_$ac_func
16568
16569 /* System header to define __stub macros and hopefully few prototypes,
16570 which can conflict with char $ac_func (); below.
16571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16572 <limits.h> exists even on freestanding compilers. */
16573
16574 #ifdef __STDC__
16575 # include <limits.h>
16576 #else
16577 # include <assert.h>
16578 #endif
16579
16580 #undef $ac_func
16581
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16585 #ifdef __cplusplus
16586 extern "C"
16587 #endif
16588 char $ac_func ();
16589 /* The GNU C library defines this for functions which it implements
16590 to always fail with ENOSYS. Some functions are actually named
16591 something starting with __ and the normal name is an alias. */
16592 #if defined __stub_$ac_func || defined __stub___$ac_func
16593 choke me
16594 #endif
16595
16596 int
16597 main ()
16598 {
16599 return $ac_func ();
16600 ;
16601 return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (ac_try="$ac_link"
16606 case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_link") 2>conftest.er1
16612 ac_status=$?
16613 grep -v '^ *+' conftest.er1 >conftest.err
16614 rm -f conftest.er1
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && {
16618 test -z "$ac_c_werror_flag" ||
16619 test ! -s conftest.err
16620 } && test -s conftest$ac_exeext &&
16621 $as_test_x conftest$ac_exeext; then
16622 eval "$as_ac_var=yes"
16623 else
16624 echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16626
16627 eval "$as_ac_var=no"
16628 fi
16629
16630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16631 conftest$ac_exeext conftest.$ac_ext
16632 fi
16633 ac_res=`eval echo '${'$as_ac_var'}'`
16634 { echo "$as_me:$LINENO: result: $ac_res" >&5
16635 echo "${ECHO_T}$ac_res" >&6; }
16636 if test `eval echo '${'$as_ac_var'}'` = yes; then
16637 cat >>confdefs.h <<_ACEOF
16638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16639 _ACEOF
16640
16641 fi
16642 done
16643
16644
16645 # Solaris has libkstat which does not require root.
16646
16647 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16648 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16649 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652 ac_check_lib_save_LIBS=$LIBS
16653 LIBS="-lkstat $LIBS"
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h. */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660
16661 /* Override any GCC internal prototype to avoid an error.
16662 Use char because int might match the return type of a GCC
16663 builtin and then its argument prototype would still apply. */
16664 #ifdef __cplusplus
16665 extern "C"
16666 #endif
16667 char kstat_open ();
16668 int
16669 main ()
16670 {
16671 return kstat_open ();
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (ac_try="$ac_link"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681 esac
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_link") 2>conftest.er1
16684 ac_status=$?
16685 grep -v '^ *+' conftest.er1 >conftest.err
16686 rm -f conftest.er1
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest$ac_exeext &&
16693 $as_test_x conftest$ac_exeext; then
16694 ac_cv_lib_kstat_kstat_open=yes
16695 else
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 ac_cv_lib_kstat_kstat_open=no
16700 fi
16701
16702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16703 conftest$ac_exeext conftest.$ac_ext
16704 LIBS=$ac_check_lib_save_LIBS
16705 fi
16706 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16707 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16708 if test $ac_cv_lib_kstat_kstat_open = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_LIBKSTAT 1
16711 _ACEOF
16712
16713 LIBS="-lkstat $LIBS"
16714
16715 fi
16716
16717 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16718
16719 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16720 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16721 # to get the right answer into the cache.
16722 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16723 if test $ac_have_func = no; then
16724 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16725 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16726 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729 ac_check_lib_save_LIBS=$LIBS
16730 LIBS="-lelf $LIBS"
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h. */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16741 #ifdef __cplusplus
16742 extern "C"
16743 #endif
16744 char elf_begin ();
16745 int
16746 main ()
16747 {
16748 return elf_begin ();
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest$ac_exeext &&
16770 $as_test_x conftest$ac_exeext; then
16771 ac_cv_lib_elf_elf_begin=yes
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776 ac_cv_lib_elf_elf_begin=no
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16780 conftest$ac_exeext conftest.$ac_ext
16781 LIBS=$ac_check_lib_save_LIBS
16782 fi
16783 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16784 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16785 if test $ac_cv_lib_elf_elf_begin = yes; then
16786 LIBS="-lelf $LIBS"
16787 fi
16788
16789 fi
16790 if test $ac_have_func = no; then
16791 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16792 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16793 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796 ac_check_lib_save_LIBS=$LIBS
16797 LIBS="-lkvm $LIBS"
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804
16805 /* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
16808 #ifdef __cplusplus
16809 extern "C"
16810 #endif
16811 char kvm_open ();
16812 int
16813 main ()
16814 {
16815 return kvm_open ();
16816 ;
16817 return 0;
16818 }
16819 _ACEOF
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (ac_try="$ac_link"
16822 case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_link") 2>conftest.er1
16828 ac_status=$?
16829 grep -v '^ *+' conftest.er1 >conftest.err
16830 rm -f conftest.er1
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && {
16834 test -z "$ac_c_werror_flag" ||
16835 test ! -s conftest.err
16836 } && test -s conftest$ac_exeext &&
16837 $as_test_x conftest$ac_exeext; then
16838 ac_cv_lib_kvm_kvm_open=yes
16839 else
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 ac_cv_lib_kvm_kvm_open=no
16844 fi
16845
16846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16847 conftest$ac_exeext conftest.$ac_ext
16848 LIBS=$ac_check_lib_save_LIBS
16849 fi
16850 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16851 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16852 if test $ac_cv_lib_kvm_kvm_open = yes; then
16853 LIBS="-lkvm $LIBS"
16854 fi
16855
16856 # Check for the 4.4BSD definition of getloadavg.
16857 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16858 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16859 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lutil $LIBS"
16864 cat >conftest.$ac_ext <<_ACEOF
16865 /* confdefs.h. */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16874 #ifdef __cplusplus
16875 extern "C"
16876 #endif
16877 char getloadavg ();
16878 int
16879 main ()
16880 {
16881 return getloadavg ();
16882 ;
16883 return 0;
16884 }
16885 _ACEOF
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (ac_try="$ac_link"
16888 case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_link") 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } && {
16900 test -z "$ac_c_werror_flag" ||
16901 test ! -s conftest.err
16902 } && test -s conftest$ac_exeext &&
16903 $as_test_x conftest$ac_exeext; then
16904 ac_cv_lib_util_getloadavg=yes
16905 else
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_cv_lib_util_getloadavg=no
16910 fi
16911
16912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16913 conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_check_lib_save_LIBS
16915 fi
16916 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16917 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16918 if test $ac_cv_lib_util_getloadavg = yes; then
16919 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16920 fi
16921
16922 fi
16923
16924 if test $ac_have_func = no; then
16925 # There is a commonly available library for RS/6000 AIX.
16926 # Since it is not a standard part of AIX, it might be installed locally.
16927 ac_getloadavg_LIBS=$LIBS
16928 LIBS="-L/usr/local/lib $LIBS"
16929 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16930 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16931 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934 ac_check_lib_save_LIBS=$LIBS
16935 LIBS="-lgetloadavg $LIBS"
16936 cat >conftest.$ac_ext <<_ACEOF
16937 /* confdefs.h. */
16938 _ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942
16943 /* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16946 #ifdef __cplusplus
16947 extern "C"
16948 #endif
16949 char getloadavg ();
16950 int
16951 main ()
16952 {
16953 return getloadavg ();
16954 ;
16955 return 0;
16956 }
16957 _ACEOF
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (ac_try="$ac_link"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_link") 2>conftest.er1
16966 ac_status=$?
16967 grep -v '^ *+' conftest.er1 >conftest.err
16968 rm -f conftest.er1
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest$ac_exeext &&
16975 $as_test_x conftest$ac_exeext; then
16976 ac_cv_lib_getloadavg_getloadavg=yes
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16980
16981 ac_cv_lib_getloadavg_getloadavg=no
16982 fi
16983
16984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16985 conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16987 fi
16988 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16989 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16990 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16991 LIBS="-lgetloadavg $LIBS"
16992 else
16993 LIBS=$ac_getloadavg_LIBS
16994 fi
16995
16996 fi
16997
16998 # Make sure it is really in the library, if we think we found it,
16999 # otherwise set up the replacement function.
17000
17001 for ac_func in getloadavg
17002 do
17003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17017 #define $ac_func innocuous_$ac_func
17018
17019 /* System header to define __stub macros and hopefully few prototypes,
17020 which can conflict with char $ac_func (); below.
17021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17022 <limits.h> exists even on freestanding compilers. */
17023
17024 #ifdef __STDC__
17025 # include <limits.h>
17026 #else
17027 # include <assert.h>
17028 #endif
17029
17030 #undef $ac_func
17031
17032 /* Override any GCC internal prototype to avoid an error.
17033 Use char because int might match the return type of a GCC
17034 builtin and then its argument prototype would still apply. */
17035 #ifdef __cplusplus
17036 extern "C"
17037 #endif
17038 char $ac_func ();
17039 /* The GNU C library defines this for functions which it implements
17040 to always fail with ENOSYS. Some functions are actually named
17041 something starting with __ and the normal name is an alias. */
17042 #if defined __stub_$ac_func || defined __stub___$ac_func
17043 choke me
17044 #endif
17045
17046 int
17047 main ()
17048 {
17049 return $ac_func ();
17050 ;
17051 return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (ac_try="$ac_link"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest$ac_exeext &&
17071 $as_test_x conftest$ac_exeext; then
17072 eval "$as_ac_var=yes"
17073 else
17074 echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077 eval "$as_ac_var=no"
17078 fi
17079
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17082 fi
17083 ac_res=`eval echo '${'$as_ac_var'}'`
17084 { echo "$as_me:$LINENO: result: $ac_res" >&5
17085 echo "${ECHO_T}$ac_res" >&6; }
17086 if test `eval echo '${'$as_ac_var'}'` = yes; then
17087 cat >>confdefs.h <<_ACEOF
17088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17089 _ACEOF
17090
17091 else
17092 case " $LIBOBJS " in
17093 *" getloadavg.$ac_objext "* ) ;;
17094 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17095 ;;
17096 esac
17097
17098
17099 cat >>confdefs.h <<\_ACEOF
17100 #define C_GETLOADAVG 1
17101 _ACEOF
17102
17103 # Figure out what our getloadavg.c needs.
17104 ac_have_func=no
17105 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17106 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17107 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17108 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 fi
17111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17112 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17113 else
17114 # Is the header compilable?
17115 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17116 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h. */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 $ac_includes_default
17124 #include <sys/dg_sys_info.h>
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_compile") 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } && {
17140 test -z "$ac_c_werror_flag" ||
17141 test ! -s conftest.err
17142 } && test -s conftest.$ac_objext; then
17143 ac_header_compiler=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ac_header_compiler=no
17149 fi
17150
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17153 echo "${ECHO_T}$ac_header_compiler" >&6; }
17154
17155 # Is the header present?
17156 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17157 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <sys/dg_sys_info.h>
17165 _ACEOF
17166 if { (ac_try="$ac_cpp conftest.$ac_ext"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } >/dev/null && {
17179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 }; then
17182 ac_header_preproc=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 ac_header_preproc=no
17188 fi
17189
17190 rm -f conftest.err conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17192 echo "${ECHO_T}$ac_header_preproc" >&6; }
17193
17194 # So? What about this header?
17195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17196 yes:no: )
17197 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17198 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17200 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17201 ac_header_preproc=yes
17202 ;;
17203 no:yes:* )
17204 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17205 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17207 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17209 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17211 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17212 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17213 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17214 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17215 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17216
17217 ;;
17218 esac
17219 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17220 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17221 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17227 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17228
17229 fi
17230 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17231 ac_have_func=yes
17232
17233 cat >>confdefs.h <<\_ACEOF
17234 #define DGUX 1
17235 _ACEOF
17236
17237
17238 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17239 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17240 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243 ac_check_lib_save_LIBS=$LIBS
17244 LIBS="-ldgc $LIBS"
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h. */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251
17252 /* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
17255 #ifdef __cplusplus
17256 extern "C"
17257 #endif
17258 char dg_sys_info ();
17259 int
17260 main ()
17261 {
17262 return dg_sys_info ();
17263 ;
17264 return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (ac_try="$ac_link"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_link") 2>conftest.er1
17275 ac_status=$?
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest$ac_exeext &&
17284 $as_test_x conftest$ac_exeext; then
17285 ac_cv_lib_dgc_dg_sys_info=yes
17286 else
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290 ac_cv_lib_dgc_dg_sys_info=no
17291 fi
17292
17293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17294 conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_check_lib_save_LIBS
17296 fi
17297 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17298 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17299 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17300 cat >>confdefs.h <<_ACEOF
17301 #define HAVE_LIBDGC 1
17302 _ACEOF
17303
17304 LIBS="-ldgc $LIBS"
17305
17306 fi
17307
17308 fi
17309
17310
17311
17312 if test "${ac_cv_header_locale_h+set}" = set; then
17313 { echo "$as_me:$LINENO: checking for locale.h" >&5
17314 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17315 if test "${ac_cv_header_locale_h+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 fi
17318 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17319 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17320 else
17321 # Is the header compilable?
17322 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17323 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h. */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 $ac_includes_default
17331 #include <locale.h>
17332 _ACEOF
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_compile") 2>conftest.er1
17341 ac_status=$?
17342 grep -v '^ *+' conftest.er1 >conftest.err
17343 rm -f conftest.er1
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } && {
17347 test -z "$ac_c_werror_flag" ||
17348 test ! -s conftest.err
17349 } && test -s conftest.$ac_objext; then
17350 ac_header_compiler=yes
17351 else
17352 echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_header_compiler=no
17356 fi
17357
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17360 echo "${ECHO_T}$ac_header_compiler" >&6; }
17361
17362 # Is the header present?
17363 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17364 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 #include <locale.h>
17372 _ACEOF
17373 if { (ac_try="$ac_cpp conftest.$ac_ext"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } >/dev/null && {
17386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 }; then
17389 ac_header_preproc=yes
17390 else
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394 ac_header_preproc=no
17395 fi
17396
17397 rm -f conftest.err conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17399 echo "${ECHO_T}$ac_header_preproc" >&6; }
17400
17401 # So? What about this header?
17402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17403 yes:no: )
17404 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17405 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17406 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17407 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17408 ac_header_preproc=yes
17409 ;;
17410 no:yes:* )
17411 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17412 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17413 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17414 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17415 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17416 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17417 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17418 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17419 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17420 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17422 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17423
17424 ;;
17425 esac
17426 { echo "$as_me:$LINENO: checking for locale.h" >&5
17427 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17428 if test "${ac_cv_header_locale_h+set}" = set; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 ac_cv_header_locale_h=$ac_header_preproc
17432 fi
17433 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17434 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17435
17436 fi
17437
17438
17439
17440 for ac_func in setlocale
17441 do
17442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17443 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17445 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17456 #define $ac_func innocuous_$ac_func
17457
17458 /* System header to define __stub macros and hopefully few prototypes,
17459 which can conflict with char $ac_func (); below.
17460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17461 <limits.h> exists even on freestanding compilers. */
17462
17463 #ifdef __STDC__
17464 # include <limits.h>
17465 #else
17466 # include <assert.h>
17467 #endif
17468
17469 #undef $ac_func
17470
17471 /* Override any GCC internal prototype to avoid an error.
17472 Use char because int might match the return type of a GCC
17473 builtin and then its argument prototype would still apply. */
17474 #ifdef __cplusplus
17475 extern "C"
17476 #endif
17477 char $ac_func ();
17478 /* The GNU C library defines this for functions which it implements
17479 to always fail with ENOSYS. Some functions are actually named
17480 something starting with __ and the normal name is an alias. */
17481 #if defined __stub_$ac_func || defined __stub___$ac_func
17482 choke me
17483 #endif
17484
17485 int
17486 main ()
17487 {
17488 return $ac_func ();
17489 ;
17490 return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17501 ac_status=$?
17502 grep -v '^ *+' conftest.er1 >conftest.err
17503 rm -f conftest.er1
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest$ac_exeext &&
17510 $as_test_x conftest$ac_exeext; then
17511 eval "$as_ac_var=yes"
17512 else
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516 eval "$as_ac_var=no"
17517 fi
17518
17519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17520 conftest$ac_exeext conftest.$ac_ext
17521 fi
17522 ac_res=`eval echo '${'$as_ac_var'}'`
17523 { echo "$as_me:$LINENO: result: $ac_res" >&5
17524 echo "${ECHO_T}$ac_res" >&6; }
17525 if test `eval echo '${'$as_ac_var'}'` = yes; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17528 _ACEOF
17529
17530 fi
17531 done
17532
17533
17534 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17535 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17536 # Irix 4.0.5F has the header but not the library.
17537 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17538 ac_have_func=yes
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define SVR4 1
17542 _ACEOF
17543
17544 fi
17545
17546 if test $ac_have_func = no; then
17547 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17548 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17549 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17550 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552 fi
17553 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17554 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17555 else
17556 # Is the header compilable?
17557 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17558 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17559 cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h. */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 $ac_includes_default
17566 #include <inq_stats/cpustats.h>
17567 _ACEOF
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 ac_header_compiler=yes
17586 else
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590 ac_header_compiler=no
17591 fi
17592
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17595 echo "${ECHO_T}$ac_header_compiler" >&6; }
17596
17597 # Is the header present?
17598 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17599 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h. */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <inq_stats/cpustats.h>
17607 _ACEOF
17608 if { (ac_try="$ac_cpp conftest.$ac_ext"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } >/dev/null && {
17621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 }; then
17624 ac_header_preproc=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 ac_header_preproc=no
17630 fi
17631
17632 rm -f conftest.err conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17634 echo "${ECHO_T}$ac_header_preproc" >&6; }
17635
17636 # So? What about this header?
17637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17638 yes:no: )
17639 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17640 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17641 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17642 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17643 ac_header_preproc=yes
17644 ;;
17645 no:yes:* )
17646 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17647 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17649 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17650 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17651 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17652 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17653 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17654 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17655 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17656 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17657 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17658
17659 ;;
17660 esac
17661 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17662 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17663 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17667 fi
17668 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17670
17671 fi
17672 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17673 ac_have_func=yes
17674
17675 cat >>confdefs.h <<\_ACEOF
17676 #define UMAX 1
17677 _ACEOF
17678
17679
17680 cat >>confdefs.h <<\_ACEOF
17681 #define UMAX4_3 1
17682 _ACEOF
17683
17684 fi
17685
17686
17687 fi
17688
17689 if test $ac_have_func = no; then
17690 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17691 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17692 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17693 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 fi
17696 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17697 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17698 else
17699 # Is the header compilable?
17700 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17701 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17702 cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h. */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 $ac_includes_default
17709 #include <sys/cpustats.h>
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest.$ac_objext; then
17728 ac_header_compiler=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_header_compiler=no
17734 fi
17735
17736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17738 echo "${ECHO_T}$ac_header_compiler" >&6; }
17739
17740 # Is the header present?
17741 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17742 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h. */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <sys/cpustats.h>
17750 _ACEOF
17751 if { (ac_try="$ac_cpp conftest.$ac_ext"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } >/dev/null && {
17764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 }; then
17767 ac_header_preproc=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772 ac_header_preproc=no
17773 fi
17774
17775 rm -f conftest.err conftest.$ac_ext
17776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17777 echo "${ECHO_T}$ac_header_preproc" >&6; }
17778
17779 # So? What about this header?
17780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17781 yes:no: )
17782 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17783 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17784 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17785 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17786 ac_header_preproc=yes
17787 ;;
17788 no:yes:* )
17789 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17790 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17791 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17792 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17793 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17794 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17796 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17798 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17799 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17800 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17801
17802 ;;
17803 esac
17804 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17805 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17806 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17807 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17810 fi
17811 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17812 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17813
17814 fi
17815 if test $ac_cv_header_sys_cpustats_h = yes; then
17816 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17817 #define UMAX 1
17818 _ACEOF
17819
17820 fi
17821
17822
17823 fi
17824
17825 if test $ac_have_func = no; then
17826
17827 for ac_header in mach/mach.h
17828 do
17829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 fi
17836 ac_res=`eval echo '${'$as_ac_Header'}'`
17837 { echo "$as_me:$LINENO: result: $ac_res" >&5
17838 echo "${ECHO_T}$ac_res" >&6; }
17839 else
17840 # Is the header compilable?
17841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <$ac_header>
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 ac_header_compiler=yes
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874 ac_header_compiler=no
17875 fi
17876
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17879 echo "${ECHO_T}$ac_header_compiler" >&6; }
17880
17881 # Is the header present?
17882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #include <$ac_header>
17891 _ACEOF
17892 if { (ac_try="$ac_cpp conftest.$ac_ext"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 }; then
17908 ac_header_preproc=yes
17909 else
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 ac_header_preproc=no
17914 fi
17915
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17919
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17922 yes:no: )
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17927 ac_header_preproc=yes
17928 ;;
17929 no:yes:* )
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17942
17943 ;;
17944 esac
17945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950 eval "$as_ac_Header=\$ac_header_preproc"
17951 fi
17952 ac_res=`eval echo '${'$as_ac_Header'}'`
17953 { echo "$as_me:$LINENO: result: $ac_res" >&5
17954 echo "${ECHO_T}$ac_res" >&6; }
17955
17956 fi
17957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17960 _ACEOF
17961
17962 fi
17963
17964 done
17965
17966 fi
17967
17968
17969 for ac_header in nlist.h
17970 do
17971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 fi
17978 ac_res=`eval echo '${'$as_ac_Header'}'`
17979 { echo "$as_me:$LINENO: result: $ac_res" >&5
17980 echo "${ECHO_T}$ac_res" >&6; }
17981 else
17982 # Is the header compilable?
17983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 $ac_includes_default
17992 #include <$ac_header>
17993 _ACEOF
17994 rm -f conftest.$ac_objext
17995 if { (ac_try="$ac_compile"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_compile") 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest.$ac_objext; then
18011 ac_header_compiler=yes
18012 else
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18015
18016 ac_header_compiler=no
18017 fi
18018
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18021 echo "${ECHO_T}$ac_header_compiler" >&6; }
18022
18023 # Is the header present?
18024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 #include <$ac_header>
18033 _ACEOF
18034 if { (ac_try="$ac_cpp conftest.$ac_ext"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } >/dev/null && {
18047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 }; then
18050 ac_header_preproc=yes
18051 else
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_header_preproc=no
18056 fi
18057
18058 rm -f conftest.err conftest.$ac_ext
18059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18060 echo "${ECHO_T}$ac_header_preproc" >&6; }
18061
18062 # So? What about this header?
18063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18064 yes:no: )
18065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18069 ac_header_preproc=yes
18070 ;;
18071 no:yes:* )
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18084
18085 ;;
18086 esac
18087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 eval "$as_ac_Header=\$ac_header_preproc"
18093 fi
18094 ac_res=`eval echo '${'$as_ac_Header'}'`
18095 { echo "$as_me:$LINENO: result: $ac_res" >&5
18096 echo "${ECHO_T}$ac_res" >&6; }
18097
18098 fi
18099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18100 cat >>confdefs.h <<_ACEOF
18101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18102 _ACEOF
18103 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18104 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18105 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 cat >conftest.$ac_ext <<_ACEOF
18109 /* confdefs.h. */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 #include <nlist.h>
18115
18116 int
18117 main ()
18118 {
18119 static struct nlist ac_aggr;
18120 if (ac_aggr.n_un.n_name)
18121 return 0;
18122 ;
18123 return 0;
18124 }
18125 _ACEOF
18126 rm -f conftest.$ac_objext
18127 if { (ac_try="$ac_compile"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_compile") 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } && {
18140 test -z "$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18142 } && test -s conftest.$ac_objext; then
18143 ac_cv_member_struct_nlist_n_un_n_name=yes
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 #include <nlist.h>
18155
18156 int
18157 main ()
18158 {
18159 static struct nlist ac_aggr;
18160 if (sizeof ac_aggr.n_un.n_name)
18161 return 0;
18162 ;
18163 return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext
18167 if { (ac_try="$ac_compile"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_compile") 2>conftest.er1
18174 ac_status=$?
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } && {
18180 test -z "$ac_c_werror_flag" ||
18181 test ! -s conftest.err
18182 } && test -s conftest.$ac_objext; then
18183 ac_cv_member_struct_nlist_n_un_n_name=yes
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 ac_cv_member_struct_nlist_n_un_n_name=no
18189 fi
18190
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 fi
18193
18194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195 fi
18196 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18197 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18198 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18199
18200 cat >>confdefs.h <<_ACEOF
18201 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18202 _ACEOF
18203
18204
18205 cat >>confdefs.h <<\_ACEOF
18206 #define NLIST_NAME_UNION 1
18207 _ACEOF
18208
18209 fi
18210
18211
18212 fi
18213
18214 done
18215
18216 fi
18217 done
18218
18219
18220 # Some definitions of getloadavg require that the program be installed setgid.
18221 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18222 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18223 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18233 #ifdef LDAV_PRIVILEGED
18234 Yowza Am I SETGID yet
18235 #endif
18236 _ACEOF
18237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18238 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18239 ac_cv_func_getloadavg_setgid=yes
18240 else
18241 ac_cv_func_getloadavg_setgid=no
18242 fi
18243 rm -f conftest*
18244
18245 fi
18246 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18247 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18248 if test $ac_cv_func_getloadavg_setgid = yes; then
18249 NEED_SETGID=true
18250
18251 cat >>confdefs.h <<\_ACEOF
18252 #define GETLOADAVG_PRIVILEGED 1
18253 _ACEOF
18254
18255 else
18256 NEED_SETGID=false
18257 fi
18258
18259 if test $ac_cv_func_getloadavg_setgid = yes; then
18260 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18261 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18262 if test "${ac_cv_group_kmem+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18266 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18267 # If we got an error (system does not support symlinks), try without -L.
18268 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18269 ac_cv_group_kmem=`echo $ac_ls_output \
18270 | sed -ne 's/[ ][ ]*/ /g;
18271 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18272 / /s/.* //;p;'`
18273
18274 fi
18275 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18276 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18277 KMEM_GROUP=$ac_cv_group_kmem
18278 fi
18279 if test "x$ac_save_LIBS" = x; then
18280 GETLOADAVG_LIBS=$LIBS
18281 else
18282 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18283 fi
18284 LIBS=$ac_save_LIBS
18285
18286
18287
18288 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18289 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18290 if test "${ac_cv_sys_largefile_source+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293 while :; do
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h. */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 #include <sys/types.h> /* for off_t */
18301 #include <stdio.h>
18302 int
18303 main ()
18304 {
18305 int (*fp) (FILE *, off_t, int) = fseeko;
18306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18307 ;
18308 return 0;
18309 }
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18328 $as_test_x conftest$ac_exeext; then
18329 ac_cv_sys_largefile_source=no; break
18330 else
18331 echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334
18335 fi
18336
18337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18338 conftest$ac_exeext conftest.$ac_ext
18339 cat >conftest.$ac_ext <<_ACEOF
18340 /* confdefs.h. */
18341 _ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 #define _LARGEFILE_SOURCE 1
18346 #include <sys/types.h> /* for off_t */
18347 #include <stdio.h>
18348 int
18349 main ()
18350 {
18351 int (*fp) (FILE *, off_t, int) = fseeko;
18352 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18353 ;
18354 return 0;
18355 }
18356 _ACEOF
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (ac_try="$ac_link"
18359 case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18362 esac
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_link") 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && {
18371 test -z "$ac_c_werror_flag" ||
18372 test ! -s conftest.err
18373 } && test -s conftest$ac_exeext &&
18374 $as_test_x conftest$ac_exeext; then
18375 ac_cv_sys_largefile_source=1; break
18376 else
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380
18381 fi
18382
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384 conftest$ac_exeext conftest.$ac_ext
18385 ac_cv_sys_largefile_source=unknown
18386 break
18387 done
18388 fi
18389 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18390 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18391 case $ac_cv_sys_largefile_source in #(
18392 no | unknown) ;;
18393 *)
18394 cat >>confdefs.h <<_ACEOF
18395 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18396 _ACEOF
18397 ;;
18398 esac
18399 rm -f conftest*
18400
18401 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18402 # in glibc 2.1.3, but that breaks too many other things.
18403 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18404 if test $ac_cv_sys_largefile_source != unknown; then
18405
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_FSEEKO 1
18408 _ACEOF
18409
18410 fi
18411
18412
18413 # Configure getopt.
18414 # getopt.m4 serial 10
18415
18416 # The getopt module assume you want GNU getopt, with getopt_long etc,
18417 # rather than vanilla POSIX getopt. This means your your code should
18418 # always include <getopt.h> for the getopt prototypes.
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430 # Prerequisites of lib/getopt*.
18431
18432
18433
18434
18435 GETOPT_H=
18436
18437 for ac_header in getopt.h
18438 do
18439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 fi
18446 ac_res=`eval echo '${'$as_ac_Header'}'`
18447 { echo "$as_me:$LINENO: result: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18449 else
18450 # Is the header compilable?
18451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18453 cat >conftest.$ac_ext <<_ACEOF
18454 /* confdefs.h. */
18455 _ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 $ac_includes_default
18460 #include <$ac_header>
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (ac_try="$ac_compile"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_compile") 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest.$ac_objext; then
18479 ac_header_compiler=yes
18480 else
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_header_compiler=no
18485 fi
18486
18487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18489 echo "${ECHO_T}$ac_header_compiler" >&6; }
18490
18491 # Is the header present?
18492 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18494 cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h. */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 #include <$ac_header>
18501 _ACEOF
18502 if { (ac_try="$ac_cpp conftest.$ac_ext"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } >/dev/null && {
18515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 }; then
18518 ac_header_preproc=yes
18519 else
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523 ac_header_preproc=no
18524 fi
18525
18526 rm -f conftest.err conftest.$ac_ext
18527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18528 echo "${ECHO_T}$ac_header_preproc" >&6; }
18529
18530 # So? What about this header?
18531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18532 yes:no: )
18533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18537 ac_header_preproc=yes
18538 ;;
18539 no:yes:* )
18540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18552
18553 ;;
18554 esac
18555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560 eval "$as_ac_Header=\$ac_header_preproc"
18561 fi
18562 ac_res=`eval echo '${'$as_ac_Header'}'`
18563 { echo "$as_me:$LINENO: result: $ac_res" >&5
18564 echo "${ECHO_T}$ac_res" >&6; }
18565
18566 fi
18567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18570 _ACEOF
18571
18572 else
18573 GETOPT_H=getopt.h
18574 fi
18575
18576 done
18577
18578 if test -z "$GETOPT_H"; then
18579
18580 for ac_func in getopt_long_only
18581 do
18582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h. */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596 #define $ac_func innocuous_$ac_func
18597
18598 /* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char $ac_func (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18602
18603 #ifdef __STDC__
18604 # include <limits.h>
18605 #else
18606 # include <assert.h>
18607 #endif
18608
18609 #undef $ac_func
18610
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char $ac_func ();
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined __stub_$ac_func || defined __stub___$ac_func
18622 choke me
18623 #endif
18624
18625 int
18626 main ()
18627 {
18628 return $ac_func ();
18629 ;
18630 return 0;
18631 }
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && {
18647 test -z "$ac_c_werror_flag" ||
18648 test ! -s conftest.err
18649 } && test -s conftest$ac_exeext &&
18650 $as_test_x conftest$ac_exeext; then
18651 eval "$as_ac_var=yes"
18652 else
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656 eval "$as_ac_var=no"
18657 fi
18658
18659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18660 conftest$ac_exeext conftest.$ac_ext
18661 fi
18662 ac_res=`eval echo '${'$as_ac_var'}'`
18663 { echo "$as_me:$LINENO: result: $ac_res" >&5
18664 echo "${ECHO_T}$ac_res" >&6; }
18665 if test `eval echo '${'$as_ac_var'}'` = yes; then
18666 cat >>confdefs.h <<_ACEOF
18667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18668 _ACEOF
18669
18670 else
18671 GETOPT_H=getopt.h
18672 fi
18673 done
18674
18675 fi
18676
18677 if test -z "$GETOPT_H"; then
18678 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18679 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18680 if test "${ac_cv_have_decl_optreset+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683 cat >conftest.$ac_ext <<_ACEOF
18684 /* confdefs.h. */
18685 _ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 #include <getopt.h>
18690
18691 int
18692 main ()
18693 {
18694 #ifndef optreset
18695 (void) optreset;
18696 #endif
18697
18698 ;
18699 return 0;
18700 }
18701 _ACEOF
18702 rm -f conftest.$ac_objext
18703 if { (ac_try="$ac_compile"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest.$ac_objext; then
18719 ac_cv_have_decl_optreset=yes
18720 else
18721 echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18723
18724 ac_cv_have_decl_optreset=no
18725 fi
18726
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728 fi
18729 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18730 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18731 if test $ac_cv_have_decl_optreset = yes; then
18732 GETOPT_H=getopt.h
18733 fi
18734
18735 fi
18736
18737 if test -z "$GETOPT_H"; then
18738 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18739 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18740 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 if test "$cross_compiling" = yes; then
18744 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18745 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18746 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 else
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h. */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include <getopt.h>
18756
18757 int
18758 main ()
18759 {
18760 #ifndef getopt_clip
18761 (void) getopt_clip;
18762 #endif
18763
18764 ;
18765 return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_compile") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } && {
18782 test -z "$ac_c_werror_flag" ||
18783 test ! -s conftest.err
18784 } && test -s conftest.$ac_objext; then
18785 ac_cv_have_decl_getopt_clip=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ac_cv_have_decl_getopt_clip=no
18791 fi
18792
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18794 fi
18795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18796 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18797 if test $ac_cv_have_decl_getopt_clip = yes; then
18798 gl_cv_func_gnu_getopt=no
18799 else
18800 gl_cv_func_gnu_getopt=yes
18801 fi
18802
18803 else
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h. */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 #include <getopt.h>
18811 int
18812 main ()
18813 {
18814
18815 char *myargv[3];
18816 myargv[0] = "conftest";
18817 myargv[1] = "-+";
18818 myargv[2] = 0;
18819 return getopt (2, myargv, "+a") != '?';
18820
18821 ;
18822 return 0;
18823 }
18824 _ACEOF
18825 rm -f conftest$ac_exeext
18826 if { (ac_try="$ac_link"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 gl_cv_func_gnu_getopt=yes
18846 else
18847 echo "$as_me: program exited with status $ac_status" >&5
18848 echo "$as_me: failed program was:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18850
18851 ( exit $ac_status )
18852 gl_cv_func_gnu_getopt=no
18853 fi
18854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18855 fi
18856
18857
18858 fi
18859 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18860 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18861 if test "$gl_cv_func_gnu_getopt" = "no"; then
18862 GETOPT_H=getopt.h
18863 fi
18864 fi
18865
18866
18867
18868 if test -n "$GETOPT_H"; then
18869
18870
18871 GETOPT_H=getopt.h
18872
18873 cat >>confdefs.h <<\_ACEOF
18874 #define __GETOPT_PREFIX rpl_
18875 _ACEOF
18876
18877
18878
18879 :
18880 GETOPTOBJS='getopt.o getopt1.o'
18881
18882 fi
18883
18884
18885
18886
18887 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18888 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18889 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892 # Use it with a single arg.
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 $ac_includes_default
18900 int
18901 main ()
18902 {
18903 getpgrp (0);
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_compile") 2>conftest.er1
18916 ac_status=$?
18917 grep -v '^ *+' conftest.er1 >conftest.err
18918 rm -f conftest.er1
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest.$ac_objext; then
18925 ac_cv_func_getpgrp_void=no
18926 else
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18929
18930 ac_cv_func_getpgrp_void=yes
18931 fi
18932
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934
18935 fi
18936 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18937 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18938 if test $ac_cv_func_getpgrp_void = yes; then
18939
18940 cat >>confdefs.h <<\_ACEOF
18941 #define GETPGRP_VOID 1
18942 _ACEOF
18943
18944 fi
18945
18946
18947
18948 for ac_func in strftime
18949 do
18950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h. */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18964 #define $ac_func innocuous_$ac_func
18965
18966 /* System header to define __stub macros and hopefully few prototypes,
18967 which can conflict with char $ac_func (); below.
18968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18969 <limits.h> exists even on freestanding compilers. */
18970
18971 #ifdef __STDC__
18972 # include <limits.h>
18973 #else
18974 # include <assert.h>
18975 #endif
18976
18977 #undef $ac_func
18978
18979 /* Override any GCC internal prototype to avoid an error.
18980 Use char because int might match the return type of a GCC
18981 builtin and then its argument prototype would still apply. */
18982 #ifdef __cplusplus
18983 extern "C"
18984 #endif
18985 char $ac_func ();
18986 /* The GNU C library defines this for functions which it implements
18987 to always fail with ENOSYS. Some functions are actually named
18988 something starting with __ and the normal name is an alias. */
18989 #if defined __stub_$ac_func || defined __stub___$ac_func
18990 choke me
18991 #endif
18992
18993 int
18994 main ()
18995 {
18996 return $ac_func ();
18997 ;
18998 return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19009 ac_status=$?
19010 grep -v '^ *+' conftest.er1 >conftest.err
19011 rm -f conftest.er1
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } && {
19015 test -z "$ac_c_werror_flag" ||
19016 test ! -s conftest.err
19017 } && test -s conftest$ac_exeext &&
19018 $as_test_x conftest$ac_exeext; then
19019 eval "$as_ac_var=yes"
19020 else
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 eval "$as_ac_var=no"
19025 fi
19026
19027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19028 conftest$ac_exeext conftest.$ac_ext
19029 fi
19030 ac_res=`eval echo '${'$as_ac_var'}'`
19031 { echo "$as_me:$LINENO: result: $ac_res" >&5
19032 echo "${ECHO_T}$ac_res" >&6; }
19033 if test `eval echo '${'$as_ac_var'}'` = yes; then
19034 cat >>confdefs.h <<_ACEOF
19035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19036 _ACEOF
19037
19038 else
19039 # strftime is in -lintl on SCO UNIX.
19040 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19041 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19042 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045 ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-lintl $LIBS"
19047 cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h. */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19053
19054 /* Override any GCC internal prototype to avoid an error.
19055 Use char because int might match the return type of a GCC
19056 builtin and then its argument prototype would still apply. */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 char strftime ();
19061 int
19062 main ()
19063 {
19064 return strftime ();
19065 ;
19066 return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_link") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext &&
19086 $as_test_x conftest$ac_exeext; then
19087 ac_cv_lib_intl_strftime=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_cv_lib_intl_strftime=no
19093 fi
19094
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19098 fi
19099 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19100 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19101 if test $ac_cv_lib_intl_strftime = yes; then
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_STRFTIME 1
19104 _ACEOF
19105
19106 LIBS="-lintl $LIBS"
19107 fi
19108
19109 fi
19110 done
19111
19112
19113 # UNIX98 PTYs.
19114
19115 for ac_func in grantpt
19116 do
19117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19131 #define $ac_func innocuous_$ac_func
19132
19133 /* System header to define __stub macros and hopefully few prototypes,
19134 which can conflict with char $ac_func (); below.
19135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19136 <limits.h> exists even on freestanding compilers. */
19137
19138 #ifdef __STDC__
19139 # include <limits.h>
19140 #else
19141 # include <assert.h>
19142 #endif
19143
19144 #undef $ac_func
19145
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 char $ac_func ();
19153 /* The GNU C library defines this for functions which it implements
19154 to always fail with ENOSYS. Some functions are actually named
19155 something starting with __ and the normal name is an alias. */
19156 #if defined __stub_$ac_func || defined __stub___$ac_func
19157 choke me
19158 #endif
19159
19160 int
19161 main ()
19162 {
19163 return $ac_func ();
19164 ;
19165 return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (ac_try="$ac_link"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_link") 2>conftest.er1
19176 ac_status=$?
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest$ac_exeext &&
19185 $as_test_x conftest$ac_exeext; then
19186 eval "$as_ac_var=yes"
19187 else
19188 echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19190
19191 eval "$as_ac_var=no"
19192 fi
19193
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19195 conftest$ac_exeext conftest.$ac_ext
19196 fi
19197 ac_res=`eval echo '${'$as_ac_var'}'`
19198 { echo "$as_me:$LINENO: result: $ac_res" >&5
19199 echo "${ECHO_T}$ac_res" >&6; }
19200 if test `eval echo '${'$as_ac_var'}'` = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19203 _ACEOF
19204
19205 fi
19206 done
19207
19208
19209 # PTY-related GNU extensions.
19210
19211 for ac_func in getpt
19212 do
19213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h. */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19227 #define $ac_func innocuous_$ac_func
19228
19229 /* System header to define __stub macros and hopefully few prototypes,
19230 which can conflict with char $ac_func (); below.
19231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19232 <limits.h> exists even on freestanding compilers. */
19233
19234 #ifdef __STDC__
19235 # include <limits.h>
19236 #else
19237 # include <assert.h>
19238 #endif
19239
19240 #undef $ac_func
19241
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19245 #ifdef __cplusplus
19246 extern "C"
19247 #endif
19248 char $ac_func ();
19249 /* The GNU C library defines this for functions which it implements
19250 to always fail with ENOSYS. Some functions are actually named
19251 something starting with __ and the normal name is an alias. */
19252 #if defined __stub_$ac_func || defined __stub___$ac_func
19253 choke me
19254 #endif
19255
19256 int
19257 main ()
19258 {
19259 return $ac_func ();
19260 ;
19261 return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest$ac_exeext &&
19281 $as_test_x conftest$ac_exeext; then
19282 eval "$as_ac_var=yes"
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 eval "$as_ac_var=no"
19288 fi
19289
19290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19291 conftest$ac_exeext conftest.$ac_ext
19292 fi
19293 ac_res=`eval echo '${'$as_ac_var'}'`
19294 { echo "$as_me:$LINENO: result: $ac_res" >&5
19295 echo "${ECHO_T}$ac_res" >&6; }
19296 if test `eval echo '${'$as_ac_var'}'` = yes; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19299 _ACEOF
19300
19301 fi
19302 done
19303
19304
19305 # Check this now, so that we will NOT find the above functions in ncurses.
19306 # That is because we have not set up to link ncurses in lib-src.
19307 # It's better to believe a function is not available
19308 # than to expect to find it in ncurses.
19309
19310 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19311 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19312 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 ac_check_lib_save_LIBS=$LIBS
19316 LIBS="-lncurses $LIBS"
19317 cat >conftest.$ac_ext <<_ACEOF
19318 /* confdefs.h. */
19319 _ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323
19324 /* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19327 #ifdef __cplusplus
19328 extern "C"
19329 #endif
19330 char tparm ();
19331 int
19332 main ()
19333 {
19334 return tparm ();
19335 ;
19336 return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (ac_try="$ac_link"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_link") 2>conftest.er1
19347 ac_status=$?
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest$ac_exeext &&
19356 $as_test_x conftest$ac_exeext; then
19357 ac_cv_lib_ncurses_tparm=yes
19358 else
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362 ac_cv_lib_ncurses_tparm=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19366 conftest$ac_exeext conftest.$ac_ext
19367 LIBS=$ac_check_lib_save_LIBS
19368 fi
19369 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19370 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19371 if test $ac_cv_lib_ncurses_tparm = yes; then
19372 cat >>confdefs.h <<_ACEOF
19373 #define HAVE_LIBNCURSES 1
19374 _ACEOF
19375
19376 LIBS="-lncurses $LIBS"
19377
19378 fi
19379
19380
19381 # Do we need the Hesiod library to provide the support routines?
19382 if test "$with_hesiod" = yes ; then
19383 # Don't set $LIBS here -- see comments above.
19384 resolv=no
19385 { echo "$as_me:$LINENO: checking for res_send" >&5
19386 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19387 if test "${ac_cv_func_res_send+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19398 #define res_send innocuous_res_send
19399
19400 /* System header to define __stub macros and hopefully few prototypes,
19401 which can conflict with char res_send (); below.
19402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19403 <limits.h> exists even on freestanding compilers. */
19404
19405 #ifdef __STDC__
19406 # include <limits.h>
19407 #else
19408 # include <assert.h>
19409 #endif
19410
19411 #undef res_send
19412
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char res_send ();
19420 /* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423 #if defined __stub_res_send || defined __stub___res_send
19424 choke me
19425 #endif
19426
19427 int
19428 main ()
19429 {
19430 return res_send ();
19431 ;
19432 return 0;
19433 }
19434 _ACEOF
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440 esac
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest$ac_exeext &&
19452 $as_test_x conftest$ac_exeext; then
19453 ac_cv_func_res_send=yes
19454 else
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458 ac_cv_func_res_send=no
19459 fi
19460
19461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462 conftest$ac_exeext conftest.$ac_ext
19463 fi
19464 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19465 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19466 if test $ac_cv_func_res_send = yes; then
19467 :
19468 else
19469 { echo "$as_me:$LINENO: checking for __res_send" >&5
19470 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19471 if test "${ac_cv_func___res_send+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19482 #define __res_send innocuous___res_send
19483
19484 /* System header to define __stub macros and hopefully few prototypes,
19485 which can conflict with char __res_send (); below.
19486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19487 <limits.h> exists even on freestanding compilers. */
19488
19489 #ifdef __STDC__
19490 # include <limits.h>
19491 #else
19492 # include <assert.h>
19493 #endif
19494
19495 #undef __res_send
19496
19497 /* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19500 #ifdef __cplusplus
19501 extern "C"
19502 #endif
19503 char __res_send ();
19504 /* The GNU C library defines this for functions which it implements
19505 to always fail with ENOSYS. Some functions are actually named
19506 something starting with __ and the normal name is an alias. */
19507 #if defined __stub___res_send || defined __stub_____res_send
19508 choke me
19509 #endif
19510
19511 int
19512 main ()
19513 {
19514 return __res_send ();
19515 ;
19516 return 0;
19517 }
19518 _ACEOF
19519 rm -f conftest.$ac_objext conftest$ac_exeext
19520 if { (ac_try="$ac_link"
19521 case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524 esac
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_link") 2>conftest.er1
19527 ac_status=$?
19528 grep -v '^ *+' conftest.er1 >conftest.err
19529 rm -f conftest.er1
19530 cat conftest.err >&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest$ac_exeext &&
19536 $as_test_x conftest$ac_exeext; then
19537 ac_cv_func___res_send=yes
19538 else
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 ac_cv_func___res_send=no
19543 fi
19544
19545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19546 conftest$ac_exeext conftest.$ac_ext
19547 fi
19548 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19549 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19550 if test $ac_cv_func___res_send = yes; then
19551 :
19552 else
19553 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19554 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19555 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 else
19558 ac_check_lib_save_LIBS=$LIBS
19559 LIBS="-lresolv $LIBS"
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h. */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19570 #ifdef __cplusplus
19571 extern "C"
19572 #endif
19573 char res_send ();
19574 int
19575 main ()
19576 {
19577 return res_send ();
19578 ;
19579 return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext conftest$ac_exeext
19583 if { (ac_try="$ac_link"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_link") 2>conftest.er1
19590 ac_status=$?
19591 grep -v '^ *+' conftest.er1 >conftest.err
19592 rm -f conftest.er1
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest$ac_exeext &&
19599 $as_test_x conftest$ac_exeext; then
19600 ac_cv_lib_resolv_res_send=yes
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19604
19605 ac_cv_lib_resolv_res_send=no
19606 fi
19607
19608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19609 conftest$ac_exeext conftest.$ac_ext
19610 LIBS=$ac_check_lib_save_LIBS
19611 fi
19612 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19613 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19614 if test $ac_cv_lib_resolv_res_send = yes; then
19615 resolv=yes
19616 else
19617 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19618 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19619 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 ac_check_lib_save_LIBS=$LIBS
19623 LIBS="-lresolv $LIBS"
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h. */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630
19631 /* Override any GCC internal prototype to avoid an error.
19632 Use char because int might match the return type of a GCC
19633 builtin and then its argument prototype would still apply. */
19634 #ifdef __cplusplus
19635 extern "C"
19636 #endif
19637 char __res_send ();
19638 int
19639 main ()
19640 {
19641 return __res_send ();
19642 ;
19643 return 0;
19644 }
19645 _ACEOF
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (ac_try="$ac_link"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19651 esac
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_link") 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest$ac_exeext &&
19663 $as_test_x conftest$ac_exeext; then
19664 ac_cv_lib_resolv___res_send=yes
19665 else
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 ac_cv_lib_resolv___res_send=no
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19677 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19678 if test $ac_cv_lib_resolv___res_send = yes; then
19679 resolv=yes
19680 fi
19681
19682 fi
19683
19684 fi
19685
19686 fi
19687
19688 if test "$resolv" = yes ; then
19689 RESOLVLIB=-lresolv
19690
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE_LIBRESOLV 1
19693 _ACEOF
19694
19695 else
19696 RESOLVLIB=
19697 fi
19698 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19699 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19700 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703 cat >conftest.$ac_ext <<_ACEOF
19704 /* confdefs.h. */
19705 _ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19711 #define hes_getmailhost innocuous_hes_getmailhost
19712
19713 /* System header to define __stub macros and hopefully few prototypes,
19714 which can conflict with char hes_getmailhost (); below.
19715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19716 <limits.h> exists even on freestanding compilers. */
19717
19718 #ifdef __STDC__
19719 # include <limits.h>
19720 #else
19721 # include <assert.h>
19722 #endif
19723
19724 #undef hes_getmailhost
19725
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char hes_getmailhost ();
19733 /* The GNU C library defines this for functions which it implements
19734 to always fail with ENOSYS. Some functions are actually named
19735 something starting with __ and the normal name is an alias. */
19736 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19737 choke me
19738 #endif
19739
19740 int
19741 main ()
19742 {
19743 return hes_getmailhost ();
19744 ;
19745 return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19756 ac_status=$?
19757 grep -v '^ *+' conftest.er1 >conftest.err
19758 rm -f conftest.er1
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } && {
19762 test -z "$ac_c_werror_flag" ||
19763 test ! -s conftest.err
19764 } && test -s conftest$ac_exeext &&
19765 $as_test_x conftest$ac_exeext; then
19766 ac_cv_func_hes_getmailhost=yes
19767 else
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19770
19771 ac_cv_func_hes_getmailhost=no
19772 fi
19773
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19775 conftest$ac_exeext conftest.$ac_ext
19776 fi
19777 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19778 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19779 if test $ac_cv_func_hes_getmailhost = yes; then
19780 :
19781 else
19782 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19783 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19784 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787 ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lhesiod $RESOLVLIB $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795
19796 /* Override any GCC internal prototype to avoid an error.
19797 Use char because int might match the return type of a GCC
19798 builtin and then its argument prototype would still apply. */
19799 #ifdef __cplusplus
19800 extern "C"
19801 #endif
19802 char hes_getmailhost ();
19803 int
19804 main ()
19805 {
19806 return hes_getmailhost ();
19807 ;
19808 return 0;
19809 }
19810 _ACEOF
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816 esac
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>conftest.er1
19819 ac_status=$?
19820 grep -v '^ *+' conftest.er1 >conftest.err
19821 rm -f conftest.er1
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && {
19825 test -z "$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19827 } && test -s conftest$ac_exeext &&
19828 $as_test_x conftest$ac_exeext; then
19829 ac_cv_lib_hesiod_hes_getmailhost=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 ac_cv_lib_hesiod_hes_getmailhost=no
19835 fi
19836
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19840 fi
19841 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19842 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19843 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19844
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_LIBHESIOD 1
19847 _ACEOF
19848
19849 else
19850 :
19851 fi
19852
19853 fi
19854
19855 fi
19856
19857 # These tell us which Kerberos-related libraries to use.
19858 if test "${with_kerberos+set}" = set; then
19859
19860 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19861 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19862 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865 ac_check_lib_save_LIBS=$LIBS
19866 LIBS="-lcom_err $LIBS"
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873
19874 /* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19877 #ifdef __cplusplus
19878 extern "C"
19879 #endif
19880 char com_err ();
19881 int
19882 main ()
19883 {
19884 return com_err ();
19885 ;
19886 return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_link") 2>conftest.er1
19897 ac_status=$?
19898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext &&
19906 $as_test_x conftest$ac_exeext; then
19907 ac_cv_lib_com_err_com_err=yes
19908 else
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_cv_lib_com_err_com_err=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19918 fi
19919 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19920 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19921 if test $ac_cv_lib_com_err_com_err = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define HAVE_LIBCOM_ERR 1
19924 _ACEOF
19925
19926 LIBS="-lcom_err $LIBS"
19927
19928 fi
19929
19930
19931 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19932 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19933 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 else
19936 ac_check_lib_save_LIBS=$LIBS
19937 LIBS="-lk5crypto $LIBS"
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h. */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19948 #ifdef __cplusplus
19949 extern "C"
19950 #endif
19951 char mit_des_cbc_encrypt ();
19952 int
19953 main ()
19954 {
19955 return mit_des_cbc_encrypt ();
19956 ;
19957 return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19979 else
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19984 fi
19985
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19988 LIBS=$ac_check_lib_save_LIBS
19989 fi
19990 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19991 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19992 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19993 cat >>confdefs.h <<_ACEOF
19994 #define HAVE_LIBK5CRYPTO 1
19995 _ACEOF
19996
19997 LIBS="-lk5crypto $LIBS"
19998
19999 fi
20000
20001
20002 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20003 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20004 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lcrypto $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20019 #ifdef __cplusplus
20020 extern "C"
20021 #endif
20022 char mit_des_cbc_encrypt ();
20023 int
20024 main ()
20025 {
20026 return mit_des_cbc_encrypt ();
20027 ;
20028 return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20060 fi
20061 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20062 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20063 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_LIBCRYPTO 1
20066 _ACEOF
20067
20068 LIBS="-lcrypto $LIBS"
20069
20070 fi
20071
20072
20073 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20074 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20075 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078 ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lkrb5 $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 char krb5_init_context ();
20094 int
20095 main ()
20096 {
20097 return krb5_init_context ();
20098 ;
20099 return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_link") 2>conftest.er1
20110 ac_status=$?
20111 grep -v '^ *+' conftest.er1 >conftest.err
20112 rm -f conftest.er1
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 ac_cv_lib_krb5_krb5_init_context=yes
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 ac_cv_lib_krb5_krb5_init_context=no
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20131 fi
20132 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20133 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20134 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_LIBKRB5 1
20137 _ACEOF
20138
20139 LIBS="-lkrb5 $LIBS"
20140
20141 fi
20142
20143 if test "${with_kerberos5+set}" != set; then
20144
20145 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20146 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20147 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150 ac_check_lib_save_LIBS=$LIBS
20151 LIBS="-ldes425 $LIBS"
20152 cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h. */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158
20159 /* Override any GCC internal prototype to avoid an error.
20160 Use char because int might match the return type of a GCC
20161 builtin and then its argument prototype would still apply. */
20162 #ifdef __cplusplus
20163 extern "C"
20164 #endif
20165 char des_cbc_encrypt ();
20166 int
20167 main ()
20168 {
20169 return des_cbc_encrypt ();
20170 ;
20171 return 0;
20172 }
20173 _ACEOF
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179 esac
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_link") 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest$ac_exeext &&
20191 $as_test_x conftest$ac_exeext; then
20192 ac_cv_lib_des425_des_cbc_encrypt=yes
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 ac_cv_lib_des425_des_cbc_encrypt=no
20198 fi
20199
20200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20203 fi
20204 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20205 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20206 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_LIBDES425 1
20209 _ACEOF
20210
20211 LIBS="-ldes425 $LIBS"
20212
20213 else
20214
20215 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20216 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20217 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220 ac_check_lib_save_LIBS=$LIBS
20221 LIBS="-ldes $LIBS"
20222 cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h. */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20228
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20232 #ifdef __cplusplus
20233 extern "C"
20234 #endif
20235 char des_cbc_encrypt ();
20236 int
20237 main ()
20238 {
20239 return des_cbc_encrypt ();
20240 ;
20241 return 0;
20242 }
20243 _ACEOF
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20252 ac_status=$?
20253 grep -v '^ *+' conftest.er1 >conftest.err
20254 rm -f conftest.er1
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_lib_des_des_cbc_encrypt=yes
20263 else
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ac_cv_lib_des_des_cbc_encrypt=no
20268 fi
20269
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20273 fi
20274 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20275 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20276 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_LIBDES 1
20279 _ACEOF
20280
20281 LIBS="-ldes $LIBS"
20282
20283 fi
20284
20285 fi
20286
20287
20288 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20289 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20290 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 ac_check_lib_save_LIBS=$LIBS
20294 LIBS="-lkrb4 $LIBS"
20295 cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h. */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char krb_get_cred ();
20309 int
20310 main ()
20311 {
20312 return krb_get_cred ();
20313 ;
20314 return 0;
20315 }
20316 _ACEOF
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_link") 2>conftest.er1
20325 ac_status=$?
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest$ac_exeext &&
20334 $as_test_x conftest$ac_exeext; then
20335 ac_cv_lib_krb4_krb_get_cred=yes
20336 else
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 ac_cv_lib_krb4_krb_get_cred=no
20341 fi
20342
20343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20344 conftest$ac_exeext conftest.$ac_ext
20345 LIBS=$ac_check_lib_save_LIBS
20346 fi
20347 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20348 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20349 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_LIBKRB4 1
20352 _ACEOF
20353
20354 LIBS="-lkrb4 $LIBS"
20355
20356 else
20357
20358 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20359 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20360 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-lkrb $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char krb_get_cred ();
20379 int
20380 main ()
20381 {
20382 return krb_get_cred ();
20383 ;
20384 return 0;
20385 }
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_krb_krb_get_cred=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_cv_lib_krb_krb_get_cred=no
20411 fi
20412
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20418 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20419 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20420 cat >>confdefs.h <<_ACEOF
20421 #define HAVE_LIBKRB 1
20422 _ACEOF
20423
20424 LIBS="-lkrb $LIBS"
20425
20426 fi
20427
20428 fi
20429
20430 fi
20431
20432 if test "${with_kerberos5+set}" = set; then
20433
20434 for ac_header in krb5.h
20435 do
20436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 fi
20443 ac_res=`eval echo '${'$as_ac_Header'}'`
20444 { echo "$as_me:$LINENO: result: $ac_res" >&5
20445 echo "${ECHO_T}$ac_res" >&6; }
20446 else
20447 # Is the header compilable?
20448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 $ac_includes_default
20457 #include <$ac_header>
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 ac_header_compiler=yes
20477 else
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ac_header_compiler=no
20482 fi
20483
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20486 echo "${ECHO_T}$ac_header_compiler" >&6; }
20487
20488 # Is the header present?
20489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20491 cat >conftest.$ac_ext <<_ACEOF
20492 /* confdefs.h. */
20493 _ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <$ac_header>
20498 _ACEOF
20499 if { (ac_try="$ac_cpp conftest.$ac_ext"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } >/dev/null && {
20512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 }; then
20515 ac_header_preproc=yes
20516 else
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520 ac_header_preproc=no
20521 fi
20522
20523 rm -f conftest.err conftest.$ac_ext
20524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20525 echo "${ECHO_T}$ac_header_preproc" >&6; }
20526
20527 # So? What about this header?
20528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20529 yes:no: )
20530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20534 ac_header_preproc=yes
20535 ;;
20536 no:yes:* )
20537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20549
20550 ;;
20551 esac
20552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 else
20557 eval "$as_ac_Header=\$ac_header_preproc"
20558 fi
20559 ac_res=`eval echo '${'$as_ac_Header'}'`
20560 { echo "$as_me:$LINENO: result: $ac_res" >&5
20561 echo "${ECHO_T}$ac_res" >&6; }
20562
20563 fi
20564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20567 _ACEOF
20568
20569 fi
20570
20571 done
20572
20573 else
20574
20575 for ac_header in des.h
20576 do
20577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 fi
20584 ac_res=`eval echo '${'$as_ac_Header'}'`
20585 { echo "$as_me:$LINENO: result: $ac_res" >&5
20586 echo "${ECHO_T}$ac_res" >&6; }
20587 else
20588 # Is the header compilable?
20589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h. */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 #include <$ac_header>
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_compile") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest.$ac_objext; then
20617 ac_header_compiler=yes
20618 else
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ac_header_compiler=no
20623 fi
20624
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20627 echo "${ECHO_T}$ac_header_compiler" >&6; }
20628
20629 # Is the header present?
20630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20632 cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h. */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 #include <$ac_header>
20639 _ACEOF
20640 if { (ac_try="$ac_cpp conftest.$ac_ext"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20647 ac_status=$?
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } >/dev/null && {
20653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 }; then
20656 ac_header_preproc=yes
20657 else
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20660
20661 ac_header_preproc=no
20662 fi
20663
20664 rm -f conftest.err conftest.$ac_ext
20665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20666 echo "${ECHO_T}$ac_header_preproc" >&6; }
20667
20668 # So? What about this header?
20669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20670 yes:no: )
20671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20675 ac_header_preproc=yes
20676 ;;
20677 no:yes:* )
20678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20690
20691 ;;
20692 esac
20693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698 eval "$as_ac_Header=\$ac_header_preproc"
20699 fi
20700 ac_res=`eval echo '${'$as_ac_Header'}'`
20701 { echo "$as_me:$LINENO: result: $ac_res" >&5
20702 echo "${ECHO_T}$ac_res" >&6; }
20703
20704 fi
20705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20708 _ACEOF
20709
20710 else
20711
20712 for ac_header in kerberosIV/des.h
20713 do
20714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 fi
20721 ac_res=`eval echo '${'$as_ac_Header'}'`
20722 { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20724 else
20725 # Is the header compilable?
20726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h. */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20735 #include <$ac_header>
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_compile") 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } && {
20751 test -z "$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 } && test -s conftest.$ac_objext; then
20754 ac_header_compiler=yes
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_header_compiler=no
20760 fi
20761
20762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20764 echo "${ECHO_T}$ac_header_compiler" >&6; }
20765
20766 # Is the header present?
20767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775 #include <$ac_header>
20776 _ACEOF
20777 if { (ac_try="$ac_cpp conftest.$ac_ext"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20784 ac_status=$?
20785 grep -v '^ *+' conftest.er1 >conftest.err
20786 rm -f conftest.er1
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } >/dev/null && {
20790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20792 }; then
20793 ac_header_preproc=yes
20794 else
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798 ac_header_preproc=no
20799 fi
20800
20801 rm -f conftest.err conftest.$ac_ext
20802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20803 echo "${ECHO_T}$ac_header_preproc" >&6; }
20804
20805 # So? What about this header?
20806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20807 yes:no: )
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20812 ac_header_preproc=yes
20813 ;;
20814 no:yes:* )
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20827
20828 ;;
20829 esac
20830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 else
20835 eval "$as_ac_Header=\$ac_header_preproc"
20836 fi
20837 ac_res=`eval echo '${'$as_ac_Header'}'`
20838 { echo "$as_me:$LINENO: result: $ac_res" >&5
20839 echo "${ECHO_T}$ac_res" >&6; }
20840
20841 fi
20842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20843 cat >>confdefs.h <<_ACEOF
20844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20845 _ACEOF
20846
20847 else
20848
20849 for ac_header in kerberos/des.h
20850 do
20851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 fi
20858 ac_res=`eval echo '${'$as_ac_Header'}'`
20859 { echo "$as_me:$LINENO: result: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20861 else
20862 # Is the header compilable?
20863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h. */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 $ac_includes_default
20872 #include <$ac_header>
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_compile") 2>conftest.er1
20882 ac_status=$?
20883 grep -v '^ *+' conftest.er1 >conftest.err
20884 rm -f conftest.er1
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest.$ac_objext; then
20891 ac_header_compiler=yes
20892 else
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ac_header_compiler=no
20897 fi
20898
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20901 echo "${ECHO_T}$ac_header_compiler" >&6; }
20902
20903 # Is the header present?
20904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <$ac_header>
20913 _ACEOF
20914 if { (ac_try="$ac_cpp conftest.$ac_ext"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918 esac
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } >/dev/null && {
20927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 }; then
20930 ac_header_preproc=yes
20931 else
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935 ac_header_preproc=no
20936 fi
20937
20938 rm -f conftest.err conftest.$ac_ext
20939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20940 echo "${ECHO_T}$ac_header_preproc" >&6; }
20941
20942 # So? What about this header?
20943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20944 yes:no: )
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20949 ac_header_preproc=yes
20950 ;;
20951 no:yes:* )
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20964
20965 ;;
20966 esac
20967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971 else
20972 eval "$as_ac_Header=\$ac_header_preproc"
20973 fi
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975 { echo "$as_me:$LINENO: result: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20977
20978 fi
20979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20980 cat >>confdefs.h <<_ACEOF
20981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20982 _ACEOF
20983
20984 fi
20985
20986 done
20987
20988 fi
20989
20990 done
20991
20992 fi
20993
20994 done
20995
20996
20997 for ac_header in krb.h
20998 do
20999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 fi
21006 ac_res=`eval echo '${'$as_ac_Header'}'`
21007 { echo "$as_me:$LINENO: result: $ac_res" >&5
21008 echo "${ECHO_T}$ac_res" >&6; }
21009 else
21010 # Is the header compilable?
21011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h. */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 #include <$ac_header>
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_compile") 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && {
21036 test -z "$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 } && test -s conftest.$ac_objext; then
21039 ac_header_compiler=yes
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ac_header_compiler=no
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21049 echo "${ECHO_T}$ac_header_compiler" >&6; }
21050
21051 # Is the header present?
21052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <$ac_header>
21061 _ACEOF
21062 if { (ac_try="$ac_cpp conftest.$ac_ext"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } >/dev/null && {
21075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21076 test ! -s conftest.err
21077 }; then
21078 ac_header_preproc=yes
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21082
21083 ac_header_preproc=no
21084 fi
21085
21086 rm -f conftest.err conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6; }
21089
21090 # So? What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21092 yes:no: )
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21097 ac_header_preproc=yes
21098 ;;
21099 no:yes:* )
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21112
21113 ;;
21114 esac
21115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120 eval "$as_ac_Header=\$ac_header_preproc"
21121 fi
21122 ac_res=`eval echo '${'$as_ac_Header'}'`
21123 { echo "$as_me:$LINENO: result: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21125
21126 fi
21127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21130 _ACEOF
21131
21132 else
21133
21134 for ac_header in kerberosIV/krb.h
21135 do
21136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 fi
21143 ac_res=`eval echo '${'$as_ac_Header'}'`
21144 { echo "$as_me:$LINENO: result: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21146 else
21147 # Is the header compilable?
21148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h. */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 $ac_includes_default
21157 #include <$ac_header>
21158 _ACEOF
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21164 esac
21165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21167 ac_status=$?
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21176 ac_header_compiler=yes
21177 else
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 ac_header_compiler=no
21182 fi
21183
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21186 echo "${ECHO_T}$ac_header_compiler" >&6; }
21187
21188 # Is the header present?
21189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <$ac_header>
21198 _ACEOF
21199 if { (ac_try="$ac_cpp conftest.$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203 esac
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21206 ac_status=$?
21207 grep -v '^ *+' conftest.er1 >conftest.err
21208 rm -f conftest.er1
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 }; then
21215 ac_header_preproc=yes
21216 else
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 ac_header_preproc=no
21221 fi
21222
21223 rm -f conftest.err conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6; }
21226
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21229 yes:no: )
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21234 ac_header_preproc=yes
21235 ;;
21236 no:yes:* )
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21249
21250 ;;
21251 esac
21252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257 eval "$as_ac_Header=\$ac_header_preproc"
21258 fi
21259 ac_res=`eval echo '${'$as_ac_Header'}'`
21260 { echo "$as_me:$LINENO: result: $ac_res" >&5
21261 echo "${ECHO_T}$ac_res" >&6; }
21262
21263 fi
21264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21265 cat >>confdefs.h <<_ACEOF
21266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21267 _ACEOF
21268
21269 else
21270
21271 for ac_header in kerberos/krb.h
21272 do
21273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21278 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 fi
21280 ac_res=`eval echo '${'$as_ac_Header'}'`
21281 { echo "$as_me:$LINENO: result: $ac_res" >&5
21282 echo "${ECHO_T}$ac_res" >&6; }
21283 else
21284 # Is the header compilable?
21285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 $ac_includes_default
21294 #include <$ac_header>
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_header_compiler=yes
21314 else
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318 ac_header_compiler=no
21319 fi
21320
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6; }
21324
21325 # Is the header present?
21326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h. */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <$ac_header>
21335 _ACEOF
21336 if { (ac_try="$ac_cpp conftest.$ac_ext"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } >/dev/null && {
21349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 }; then
21352 ac_header_preproc=yes
21353 else
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357 ac_header_preproc=no
21358 fi
21359
21360 rm -f conftest.err conftest.$ac_ext
21361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21362 echo "${ECHO_T}$ac_header_preproc" >&6; }
21363
21364 # So? What about this header?
21365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21366 yes:no: )
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21371 ac_header_preproc=yes
21372 ;;
21373 no:yes:* )
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21386
21387 ;;
21388 esac
21389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394 eval "$as_ac_Header=\$ac_header_preproc"
21395 fi
21396 ac_res=`eval echo '${'$as_ac_Header'}'`
21397 { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21399
21400 fi
21401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21404 _ACEOF
21405
21406 fi
21407
21408 done
21409
21410 fi
21411
21412 done
21413
21414 fi
21415
21416 done
21417
21418 fi
21419
21420 for ac_header in com_err.h
21421 do
21422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 fi
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21432 else
21433 # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 $ac_includes_default
21443 #include <$ac_header>
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_header_compiler=yes
21463 else
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ac_header_compiler=no
21468 fi
21469
21470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21472 echo "${ECHO_T}$ac_header_compiler" >&6; }
21473
21474 # Is the header present?
21475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h. */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 #include <$ac_header>
21484 _ACEOF
21485 if { (ac_try="$ac_cpp conftest.$ac_ext"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } >/dev/null && {
21498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 }; then
21501 ac_header_preproc=yes
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_header_preproc=no
21507 fi
21508
21509 rm -f conftest.err conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6; }
21512
21513 # So? What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515 yes:no: )
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520 ac_header_preproc=yes
21521 ;;
21522 no:yes:* )
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21535
21536 ;;
21537 esac
21538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543 eval "$as_ac_Header=\$ac_header_preproc"
21544 fi
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21548
21549 fi
21550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21551 cat >>confdefs.h <<_ACEOF
21552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21553 _ACEOF
21554
21555 fi
21556
21557 done
21558
21559 fi
21560
21561 # Solaris requires -lintl if you want strerror (which calls dgettext)
21562 # to return localized messages.
21563
21564 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21565 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21566 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569 ac_check_lib_save_LIBS=$LIBS
21570 LIBS="-lintl $LIBS"
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577
21578 /* Override any GCC internal prototype to avoid an error.
21579 Use char because int might match the return type of a GCC
21580 builtin and then its argument prototype would still apply. */
21581 #ifdef __cplusplus
21582 extern "C"
21583 #endif
21584 char dgettext ();
21585 int
21586 main ()
21587 {
21588 return dgettext ();
21589 ;
21590 return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest.$ac_objext conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_link") 2>conftest.er1
21601 ac_status=$?
21602 grep -v '^ *+' conftest.er1 >conftest.err
21603 rm -f conftest.er1
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest$ac_exeext &&
21610 $as_test_x conftest$ac_exeext; then
21611 ac_cv_lib_intl_dgettext=yes
21612 else
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ac_cv_lib_intl_dgettext=no
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21620 conftest$ac_exeext conftest.$ac_ext
21621 LIBS=$ac_check_lib_save_LIBS
21622 fi
21623 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21624 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21625 if test $ac_cv_lib_intl_dgettext = yes; then
21626 cat >>confdefs.h <<_ACEOF
21627 #define HAVE_LIBINTL 1
21628 _ACEOF
21629
21630 LIBS="-lintl $LIBS"
21631
21632 fi
21633
21634
21635 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21636 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21637 if test "${emacs_cv_localtime_cache+set}" = set; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640 if test x$ac_cv_func_tzset = xyes; then
21641 if test "$cross_compiling" = yes; then
21642 # If we have tzset, assume the worst when cross-compiling.
21643 emacs_cv_localtime_cache=yes
21644 else
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 #include <time.h>
21652 extern char **environ;
21653 unset_TZ ()
21654 {
21655 char **from, **to;
21656 for (to = from = environ; (*to = *from); from++)
21657 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21658 to++;
21659 }
21660 char TZ_GMT0[] = "TZ=GMT0";
21661 char TZ_PST8[] = "TZ=PST8";
21662 main()
21663 {
21664 time_t now = time ((time_t *) 0);
21665 int hour_GMT0, hour_unset;
21666 if (putenv (TZ_GMT0) != 0)
21667 exit (1);
21668 hour_GMT0 = localtime (&now)->tm_hour;
21669 unset_TZ ();
21670 hour_unset = localtime (&now)->tm_hour;
21671 if (putenv (TZ_PST8) != 0)
21672 exit (1);
21673 if (localtime (&now)->tm_hour == hour_GMT0)
21674 exit (1);
21675 unset_TZ ();
21676 if (localtime (&now)->tm_hour != hour_unset)
21677 exit (1);
21678 exit (0);
21679 }
21680 _ACEOF
21681 rm -f conftest$ac_exeext
21682 if { (ac_try="$ac_link"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_link") 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21692 { (case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_try") 2>&5
21698 ac_status=$?
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 emacs_cv_localtime_cache=no
21702 else
21703 echo "$as_me: program exited with status $ac_status" >&5
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 ( exit $ac_status )
21708 emacs_cv_localtime_cache=yes
21709 fi
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21711 fi
21712
21713
21714 else
21715 # If we lack tzset, report that localtime does not cache TZ,
21716 # since we can't invalidate the cache if we don't have tzset.
21717 emacs_cv_localtime_cache=no
21718 fi
21719 fi
21720 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21721 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21722 if test $emacs_cv_localtime_cache = yes; then
21723
21724 cat >>confdefs.h <<\_ACEOF
21725 #define LOCALTIME_CACHE 1
21726 _ACEOF
21727
21728 fi
21729
21730 if test "x$HAVE_TIMEVAL" = xyes; then
21731
21732 for ac_func in gettimeofday
21733 do
21734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 else
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21748 #define $ac_func innocuous_$ac_func
21749
21750 /* System header to define __stub macros and hopefully few prototypes,
21751 which can conflict with char $ac_func (); below.
21752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21753 <limits.h> exists even on freestanding compilers. */
21754
21755 #ifdef __STDC__
21756 # include <limits.h>
21757 #else
21758 # include <assert.h>
21759 #endif
21760
21761 #undef $ac_func
21762
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21766 #ifdef __cplusplus
21767 extern "C"
21768 #endif
21769 char $ac_func ();
21770 /* The GNU C library defines this for functions which it implements
21771 to always fail with ENOSYS. Some functions are actually named
21772 something starting with __ and the normal name is an alias. */
21773 #if defined __stub_$ac_func || defined __stub___$ac_func
21774 choke me
21775 #endif
21776
21777 int
21778 main ()
21779 {
21780 return $ac_func ();
21781 ;
21782 return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_link") 2>conftest.er1
21793 ac_status=$?
21794 grep -v '^ *+' conftest.er1 >conftest.err
21795 rm -f conftest.er1
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest$ac_exeext &&
21802 $as_test_x conftest$ac_exeext; then
21803 eval "$as_ac_var=yes"
21804 else
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21807
21808 eval "$as_ac_var=no"
21809 fi
21810
21811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21812 conftest$ac_exeext conftest.$ac_ext
21813 fi
21814 ac_res=`eval echo '${'$as_ac_var'}'`
21815 { echo "$as_me:$LINENO: result: $ac_res" >&5
21816 echo "${ECHO_T}$ac_res" >&6; }
21817 if test `eval echo '${'$as_ac_var'}'` = yes; then
21818 cat >>confdefs.h <<_ACEOF
21819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21820 _ACEOF
21821
21822 fi
21823 done
21824
21825 if test $ac_cv_func_gettimeofday = yes; then
21826 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21827 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21828 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21829 echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837
21838 #ifdef TIME_WITH_SYS_TIME
21839 #include <sys/time.h>
21840 #include <time.h>
21841 #else
21842 #ifdef HAVE_SYS_TIME_H
21843 #include <sys/time.h>
21844 #else
21845 #include <time.h>
21846 #endif
21847 #endif
21848 int
21849 main ()
21850 {
21851 struct timeval time;
21852 gettimeofday (&time, 0);
21853 ;
21854 return 0;
21855 }
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 emacs_cv_gettimeofday_two_arguments=yes
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21878
21879 emacs_cv_gettimeofday_two_arguments=no
21880 fi
21881
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 fi
21884 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21885 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21886 if test $emacs_cv_gettimeofday_two_arguments = no; then
21887
21888 cat >>confdefs.h <<\_ACEOF
21889 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21890 _ACEOF
21891
21892 fi
21893 fi
21894 fi
21895
21896 ok_so_far=yes
21897 { echo "$as_me:$LINENO: checking for socket" >&5
21898 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21899 if test "${ac_cv_func_socket+set}" = set; then
21900 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902 cat >conftest.$ac_ext <<_ACEOF
21903 /* confdefs.h. */
21904 _ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21910 #define socket innocuous_socket
21911
21912 /* System header to define __stub macros and hopefully few prototypes,
21913 which can conflict with char socket (); below.
21914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21915 <limits.h> exists even on freestanding compilers. */
21916
21917 #ifdef __STDC__
21918 # include <limits.h>
21919 #else
21920 # include <assert.h>
21921 #endif
21922
21923 #undef socket
21924
21925 /* Override any GCC internal prototype to avoid an error.
21926 Use char because int might match the return type of a GCC
21927 builtin and then its argument prototype would still apply. */
21928 #ifdef __cplusplus
21929 extern "C"
21930 #endif
21931 char socket ();
21932 /* The GNU C library defines this for functions which it implements
21933 to always fail with ENOSYS. Some functions are actually named
21934 something starting with __ and the normal name is an alias. */
21935 #if defined __stub_socket || defined __stub___socket
21936 choke me
21937 #endif
21938
21939 int
21940 main ()
21941 {
21942 return socket ();
21943 ;
21944 return 0;
21945 }
21946 _ACEOF
21947 rm -f conftest.$ac_objext conftest$ac_exeext
21948 if { (ac_try="$ac_link"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_link") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext &&
21964 $as_test_x conftest$ac_exeext; then
21965 ac_cv_func_socket=yes
21966 else
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 ac_cv_func_socket=no
21971 fi
21972
21973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21974 conftest$ac_exeext conftest.$ac_ext
21975 fi
21976 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21977 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21978 if test $ac_cv_func_socket = yes; then
21979 :
21980 else
21981 ok_so_far=no
21982 fi
21983
21984 if test $ok_so_far = yes; then
21985 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21986 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21987 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21988 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 fi
21991 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21992 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21993 else
21994 # Is the header compilable?
21995 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21996 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h. */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 $ac_includes_default
22004 #include <netinet/in.h>
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22023 ac_header_compiler=yes
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028 ac_header_compiler=no
22029 fi
22030
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22033 echo "${ECHO_T}$ac_header_compiler" >&6; }
22034
22035 # Is the header present?
22036 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22037 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22038 cat >conftest.$ac_ext <<_ACEOF
22039 /* confdefs.h. */
22040 _ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 #include <netinet/in.h>
22045 _ACEOF
22046 if { (ac_try="$ac_cpp conftest.$ac_ext"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22053 ac_status=$?
22054 grep -v '^ *+' conftest.er1 >conftest.err
22055 rm -f conftest.er1
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } >/dev/null && {
22059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 }; then
22062 ac_header_preproc=yes
22063 else
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22066
22067 ac_header_preproc=no
22068 fi
22069
22070 rm -f conftest.err conftest.$ac_ext
22071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22072 echo "${ECHO_T}$ac_header_preproc" >&6; }
22073
22074 # So? What about this header?
22075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22076 yes:no: )
22077 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22078 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22079 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22080 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22081 ac_header_preproc=yes
22082 ;;
22083 no:yes:* )
22084 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22085 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22087 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22089 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22091 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22093 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22095 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22096
22097 ;;
22098 esac
22099 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22100 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22101 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104 ac_cv_header_netinet_in_h=$ac_header_preproc
22105 fi
22106 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22107 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22108
22109 fi
22110 if test $ac_cv_header_netinet_in_h = yes; then
22111 :
22112 else
22113 ok_so_far=no
22114 fi
22115
22116
22117 fi
22118 if test $ok_so_far = yes; then
22119 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22120 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22121 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22122 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 fi
22125 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22126 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22127 else
22128 # Is the header compilable?
22129 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22130 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h. */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22137 $ac_includes_default
22138 #include <arpa/inet.h>
22139 _ACEOF
22140 rm -f conftest.$ac_objext
22141 if { (ac_try="$ac_compile"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_compile") 2>conftest.er1
22148 ac_status=$?
22149 grep -v '^ *+' conftest.er1 >conftest.err
22150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } && {
22154 test -z "$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 } && test -s conftest.$ac_objext; then
22157 ac_header_compiler=yes
22158 else
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162 ac_header_compiler=no
22163 fi
22164
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22167 echo "${ECHO_T}$ac_header_compiler" >&6; }
22168
22169 # Is the header present?
22170 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22171 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22172 cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h. */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include <arpa/inet.h>
22179 _ACEOF
22180 if { (ac_try="$ac_cpp conftest.$ac_ext"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22187 ac_status=$?
22188 grep -v '^ *+' conftest.er1 >conftest.err
22189 rm -f conftest.er1
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } >/dev/null && {
22193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22194 test ! -s conftest.err
22195 }; then
22196 ac_header_preproc=yes
22197 else
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201 ac_header_preproc=no
22202 fi
22203
22204 rm -f conftest.err conftest.$ac_ext
22205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22206 echo "${ECHO_T}$ac_header_preproc" >&6; }
22207
22208 # So? What about this header?
22209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22210 yes:no: )
22211 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22212 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22214 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22215 ac_header_preproc=yes
22216 ;;
22217 no:yes:* )
22218 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22219 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22221 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22223 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22225 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22227 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22229 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22230
22231 ;;
22232 esac
22233 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22234 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22235 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238 ac_cv_header_arpa_inet_h=$ac_header_preproc
22239 fi
22240 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22241 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22242
22243 fi
22244 if test $ac_cv_header_arpa_inet_h = yes; then
22245 :
22246 else
22247 ok_so_far=no
22248 fi
22249
22250
22251 fi
22252 if test $ok_so_far = yes; then
22253
22254 cat >>confdefs.h <<\_ACEOF
22255 #define HAVE_INET_SOCKETS 1
22256 _ACEOF
22257
22258 fi
22259
22260
22261 for ac_header in sys/ioctl.h
22262 do
22263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 fi
22270 ac_res=`eval echo '${'$as_ac_Header'}'`
22271 { echo "$as_me:$LINENO: result: $ac_res" >&5
22272 echo "${ECHO_T}$ac_res" >&6; }
22273 else
22274 # Is the header compilable?
22275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22277 cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h. */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22283 $ac_includes_default
22284 #include <$ac_header>
22285 _ACEOF
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22291 esac
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_compile") 2>conftest.er1
22294 ac_status=$?
22295 grep -v '^ *+' conftest.er1 >conftest.err
22296 rm -f conftest.er1
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest.$ac_objext; then
22303 ac_header_compiler=yes
22304 else
22305 echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22307
22308 ac_header_compiler=no
22309 fi
22310
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22313 echo "${ECHO_T}$ac_header_compiler" >&6; }
22314
22315 # Is the header present?
22316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22318 cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h. */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324 #include <$ac_header>
22325 _ACEOF
22326 if { (ac_try="$ac_cpp conftest.$ac_ext"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } >/dev/null && {
22339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 }; then
22342 ac_header_preproc=yes
22343 else
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347 ac_header_preproc=no
22348 fi
22349
22350 rm -f conftest.err conftest.$ac_ext
22351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22352 echo "${ECHO_T}$ac_header_preproc" >&6; }
22353
22354 # So? What about this header?
22355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22356 yes:no: )
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22361 ac_header_preproc=yes
22362 ;;
22363 no:yes:* )
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22376
22377 ;;
22378 esac
22379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384 eval "$as_ac_Header=\$ac_header_preproc"
22385 fi
22386 ac_res=`eval echo '${'$as_ac_Header'}'`
22387 { echo "$as_me:$LINENO: result: $ac_res" >&5
22388 echo "${ECHO_T}$ac_res" >&6; }
22389
22390 fi
22391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22392 cat >>confdefs.h <<_ACEOF
22393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22394 _ACEOF
22395
22396 fi
22397
22398 done
22399
22400
22401 if test -f /usr/lpp/X11/bin/smt.exp; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AIX_SMT_EXP 1
22405 _ACEOF
22406
22407 fi
22408
22409 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22410 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22411 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22412 { echo "$as_me:$LINENO: result: yes" >&5
22413 echo "${ECHO_T}yes" >&6; }
22414
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_DEV_PTMX 1
22417 _ACEOF
22418
22419 else
22420 { echo "$as_me:$LINENO: result: no" >&5
22421 echo "${ECHO_T}no" >&6; }
22422 fi
22423
22424 { echo "$as_me:$LINENO: checking for pid_t" >&5
22425 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22426 if test "${ac_cv_type_pid_t+set}" = set; then
22427 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 else
22429 cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h. */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22435 $ac_includes_default
22436 typedef pid_t ac__type_new_;
22437 int
22438 main ()
22439 {
22440 if ((ac__type_new_ *) 0)
22441 return 0;
22442 if (sizeof (ac__type_new_))
22443 return 0;
22444 ;
22445 return 0;
22446 }
22447 _ACEOF
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 ac_cv_type_pid_t=yes
22466 else
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470 ac_cv_type_pid_t=no
22471 fi
22472
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474 fi
22475 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22476 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22477 if test $ac_cv_type_pid_t = yes; then
22478 :
22479 else
22480
22481 cat >>confdefs.h <<_ACEOF
22482 #define pid_t int
22483 _ACEOF
22484
22485 fi
22486
22487
22488 for ac_header in vfork.h
22489 do
22490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22495 echo $ECHO_N "(cached) $ECHO_C" >&6
22496 fi
22497 ac_res=`eval echo '${'$as_ac_Header'}'`
22498 { echo "$as_me:$LINENO: result: $ac_res" >&5
22499 echo "${ECHO_T}$ac_res" >&6; }
22500 else
22501 # Is the header compilable?
22502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h. */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 $ac_includes_default
22511 #include <$ac_header>
22512 _ACEOF
22513 rm -f conftest.$ac_objext
22514 if { (ac_try="$ac_compile"
22515 case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_compile") 2>conftest.er1
22521 ac_status=$?
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest.$ac_objext; then
22530 ac_header_compiler=yes
22531 else
22532 echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 ac_header_compiler=no
22536 fi
22537
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22540 echo "${ECHO_T}$ac_header_compiler" >&6; }
22541
22542 # Is the header present?
22543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #include <$ac_header>
22552 _ACEOF
22553 if { (ac_try="$ac_cpp conftest.$ac_ext"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } >/dev/null && {
22566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 }; then
22569 ac_header_preproc=yes
22570 else
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574 ac_header_preproc=no
22575 fi
22576
22577 rm -f conftest.err conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22579 echo "${ECHO_T}$ac_header_preproc" >&6; }
22580
22581 # So? What about this header?
22582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22583 yes:no: )
22584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22588 ac_header_preproc=yes
22589 ;;
22590 no:yes:* )
22591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22603
22604 ;;
22605 esac
22606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611 eval "$as_ac_Header=\$ac_header_preproc"
22612 fi
22613 ac_res=`eval echo '${'$as_ac_Header'}'`
22614 { echo "$as_me:$LINENO: result: $ac_res" >&5
22615 echo "${ECHO_T}$ac_res" >&6; }
22616
22617 fi
22618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22619 cat >>confdefs.h <<_ACEOF
22620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22621 _ACEOF
22622
22623 fi
22624
22625 done
22626
22627
22628
22629 for ac_func in fork vfork
22630 do
22631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22645 #define $ac_func innocuous_$ac_func
22646
22647 /* System header to define __stub macros and hopefully few prototypes,
22648 which can conflict with char $ac_func (); below.
22649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22650 <limits.h> exists even on freestanding compilers. */
22651
22652 #ifdef __STDC__
22653 # include <limits.h>
22654 #else
22655 # include <assert.h>
22656 #endif
22657
22658 #undef $ac_func
22659
22660 /* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22663 #ifdef __cplusplus
22664 extern "C"
22665 #endif
22666 char $ac_func ();
22667 /* The GNU C library defines this for functions which it implements
22668 to always fail with ENOSYS. Some functions are actually named
22669 something starting with __ and the normal name is an alias. */
22670 #if defined __stub_$ac_func || defined __stub___$ac_func
22671 choke me
22672 #endif
22673
22674 int
22675 main ()
22676 {
22677 return $ac_func ();
22678 ;
22679 return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_link") 2>conftest.er1
22690 ac_status=$?
22691 grep -v '^ *+' conftest.er1 >conftest.err
22692 rm -f conftest.er1
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest$ac_exeext &&
22699 $as_test_x conftest$ac_exeext; then
22700 eval "$as_ac_var=yes"
22701 else
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705 eval "$as_ac_var=no"
22706 fi
22707
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709 conftest$ac_exeext conftest.$ac_ext
22710 fi
22711 ac_res=`eval echo '${'$as_ac_var'}'`
22712 { echo "$as_me:$LINENO: result: $ac_res" >&5
22713 echo "${ECHO_T}$ac_res" >&6; }
22714 if test `eval echo '${'$as_ac_var'}'` = yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22717 _ACEOF
22718
22719 fi
22720 done
22721
22722 if test "x$ac_cv_func_fork" = xyes; then
22723 { echo "$as_me:$LINENO: checking for working fork" >&5
22724 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22725 if test "${ac_cv_func_fork_works+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22728 if test "$cross_compiling" = yes; then
22729 ac_cv_func_fork_works=cross
22730 else
22731 cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h. */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 $ac_includes_default
22738 int
22739 main ()
22740 {
22741
22742 /* By Ruediger Kuhlmann. */
22743 return fork () < 0;
22744
22745 ;
22746 return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest$ac_exeext
22750 if { (ac_try="$ac_link"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_link") 2>&5
22757 ac_status=$?
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22760 { (case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22763 esac
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_try") 2>&5
22766 ac_status=$?
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; }; then
22769 ac_cv_func_fork_works=yes
22770 else
22771 echo "$as_me: program exited with status $ac_status" >&5
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22774
22775 ( exit $ac_status )
22776 ac_cv_func_fork_works=no
22777 fi
22778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22779 fi
22780
22781
22782 fi
22783 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22784 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22785
22786 else
22787 ac_cv_func_fork_works=$ac_cv_func_fork
22788 fi
22789 if test "x$ac_cv_func_fork_works" = xcross; then
22790 case $host in
22791 *-*-amigaos* | *-*-msdosdjgpp*)
22792 # Override, as these systems have only a dummy fork() stub
22793 ac_cv_func_fork_works=no
22794 ;;
22795 *)
22796 ac_cv_func_fork_works=yes
22797 ;;
22798 esac
22799 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22800 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22801 fi
22802 ac_cv_func_vfork_works=$ac_cv_func_vfork
22803 if test "x$ac_cv_func_vfork" = xyes; then
22804 { echo "$as_me:$LINENO: checking for working vfork" >&5
22805 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22806 if test "${ac_cv_func_vfork_works+set}" = set; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22808 else
22809 if test "$cross_compiling" = yes; then
22810 ac_cv_func_vfork_works=cross
22811 else
22812 cat >conftest.$ac_ext <<_ACEOF
22813 /* confdefs.h. */
22814 _ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 /* Thanks to Paul Eggert for this test. */
22819 $ac_includes_default
22820 #include <sys/wait.h>
22821 #ifdef HAVE_VFORK_H
22822 # include <vfork.h>
22823 #endif
22824 /* On some sparc systems, changes by the child to local and incoming
22825 argument registers are propagated back to the parent. The compiler
22826 is told about this with #include <vfork.h>, but some compilers
22827 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22828 static variable whose address is put into a register that is
22829 clobbered by the vfork. */
22830 static void
22831 #ifdef __cplusplus
22832 sparc_address_test (int arg)
22833 # else
22834 sparc_address_test (arg) int arg;
22835 #endif
22836 {
22837 static pid_t child;
22838 if (!child) {
22839 child = vfork ();
22840 if (child < 0) {
22841 perror ("vfork");
22842 _exit(2);
22843 }
22844 if (!child) {
22845 arg = getpid();
22846 write(-1, "", 0);
22847 _exit (arg);
22848 }
22849 }
22850 }
22851
22852 int
22853 main ()
22854 {
22855 pid_t parent = getpid ();
22856 pid_t child;
22857
22858 sparc_address_test (0);
22859
22860 child = vfork ();
22861
22862 if (child == 0) {
22863 /* Here is another test for sparc vfork register problems. This
22864 test uses lots of local variables, at least as many local
22865 variables as main has allocated so far including compiler
22866 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22867 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22868 reuse the register of parent for one of the local variables,
22869 since it will think that parent can't possibly be used any more
22870 in this routine. Assigning to the local variable will thus
22871 munge parent in the parent process. */
22872 pid_t
22873 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22874 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22875 /* Convince the compiler that p..p7 are live; otherwise, it might
22876 use the same hardware register for all 8 local variables. */
22877 if (p != p1 || p != p2 || p != p3 || p != p4
22878 || p != p5 || p != p6 || p != p7)
22879 _exit(1);
22880
22881 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22882 from child file descriptors. If the child closes a descriptor
22883 before it execs or exits, this munges the parent's descriptor
22884 as well. Test for this by closing stdout in the child. */
22885 _exit(close(fileno(stdout)) != 0);
22886 } else {
22887 int status;
22888 struct stat st;
22889
22890 while (wait(&status) != child)
22891 ;
22892 return (
22893 /* Was there some problem with vforking? */
22894 child < 0
22895
22896 /* Did the child fail? (This shouldn't happen.) */
22897 || status
22898
22899 /* Did the vfork/compiler bug occur? */
22900 || parent != getpid()
22901
22902 /* Did the file descriptor bug occur? */
22903 || fstat(fileno(stdout), &st) != 0
22904 );
22905 }
22906 }
22907 _ACEOF
22908 rm -f conftest$ac_exeext
22909 if { (ac_try="$ac_link"
22910 case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22913 esac
22914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_link") 2>&5
22916 ac_status=$?
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22919 { (case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_try") 2>&5
22925 ac_status=$?
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; }; then
22928 ac_cv_func_vfork_works=yes
22929 else
22930 echo "$as_me: program exited with status $ac_status" >&5
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 ( exit $ac_status )
22935 ac_cv_func_vfork_works=no
22936 fi
22937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22938 fi
22939
22940
22941 fi
22942 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22943 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22944
22945 fi;
22946 if test "x$ac_cv_func_fork_works" = xcross; then
22947 ac_cv_func_vfork_works=$ac_cv_func_vfork
22948 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22949 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22950 fi
22951
22952 if test "x$ac_cv_func_vfork_works" = xyes; then
22953
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_WORKING_VFORK 1
22956 _ACEOF
22957
22958 else
22959
22960 cat >>confdefs.h <<\_ACEOF
22961 #define vfork fork
22962 _ACEOF
22963
22964 fi
22965 if test "x$ac_cv_func_fork_works" = xyes; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_WORKING_FORK 1
22969 _ACEOF
22970
22971 fi
22972
22973
22974 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22975 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22976 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979 cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h. */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 #include <langinfo.h>
22986 int
22987 main ()
22988 {
22989 char* cs = nl_langinfo(CODESET);
22990 ;
22991 return 0;
22992 }
22993 _ACEOF
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_link") 2>conftest.er1
23002 ac_status=$?
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest$ac_exeext &&
23011 $as_test_x conftest$ac_exeext; then
23012 emacs_cv_langinfo_codeset=yes
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 emacs_cv_langinfo_codeset=no
23018 fi
23019
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021 conftest$ac_exeext conftest.$ac_ext
23022
23023 fi
23024 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23025 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23026 if test $emacs_cv_langinfo_codeset = yes; then
23027
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_LANGINFO_CODESET 1
23030 _ACEOF
23031
23032 fi
23033
23034 { echo "$as_me:$LINENO: checking for size_t" >&5
23035 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23036 if test "${ac_cv_type_size_t+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 typedef size_t ac__type_new_;
23047 int
23048 main ()
23049 {
23050 if ((ac__type_new_ *) 0)
23051 return 0;
23052 if (sizeof (ac__type_new_))
23053 return 0;
23054 ;
23055 return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23066 ac_status=$?
23067 grep -v '^ *+' conftest.er1 >conftest.err
23068 rm -f conftest.er1
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23075 ac_cv_type_size_t=yes
23076 else
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23079
23080 ac_cv_type_size_t=no
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 fi
23085 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23086 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23087 if test $ac_cv_type_size_t = yes; then
23088
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_SIZE_T 1
23091 _ACEOF
23092
23093
23094 fi
23095
23096
23097 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23098 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23099 if test "${ac_cv_type_mbstate_t+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23102 cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h. */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23108 $ac_includes_default
23109 # include <wchar.h>
23110 int
23111 main ()
23112 {
23113 mbstate_t x; return sizeof x;
23114 ;
23115 return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23123 esac
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_cv_type_mbstate_t=yes
23136 else
23137 echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23139
23140 ac_cv_type_mbstate_t=no
23141 fi
23142
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 fi
23145 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23146 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23147 if test $ac_cv_type_mbstate_t = yes; then
23148
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_MBSTATE_T 1
23151 _ACEOF
23152
23153 else
23154
23155 cat >>confdefs.h <<\_ACEOF
23156 #define mbstate_t int
23157 _ACEOF
23158
23159 fi
23160
23161 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23162 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23163 if test "${emacs_cv_c_restrict+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23165 else
23166 cat >conftest.$ac_ext <<_ACEOF
23167 /* confdefs.h. */
23168 _ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h. */
23172 void fred (int *restrict x);
23173 int
23174 main ()
23175 {
23176
23177 ;
23178 return 0;
23179 }
23180 _ACEOF
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23186 esac
23187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23189 ac_status=$?
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23198 emacs_cv_c_restrict=yes
23199 else
23200 echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23202
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h. */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 void fred (int *__restrict x);
23210 int
23211 main ()
23212 {
23213
23214 ;
23215 return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_compile") 2>conftest.er1
23226 ac_status=$?
23227 grep -v '^ *+' conftest.er1 >conftest.err
23228 rm -f conftest.er1
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); } && {
23232 test -z "$ac_c_werror_flag" ||
23233 test ! -s conftest.err
23234 } && test -s conftest.$ac_objext; then
23235 emacs_cv_c_restrict=__restrict
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 emacs_cv_c_restrict=no
23241 fi
23242
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23244 fi
23245
23246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247 fi
23248 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23249 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23250 case "$emacs_cv_c_restrict" in
23251 yes) emacs_restrict=restrict;;
23252 no) emacs_restrict="";;
23253 *) emacs_restrict="$emacs_cv_c_restrict";;
23254 esac
23255 if test "$emacs_restrict" != __restrict; then
23256
23257 cat >>confdefs.h <<_ACEOF
23258 #define __restrict $emacs_restrict
23259 _ACEOF
23260
23261 fi
23262
23263 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23264 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23265 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23266 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 else
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 void fred (int x[__restrict]);
23275 int
23276 main ()
23277 {
23278
23279 ;
23280 return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23300 emacs_cv_c_restrict_arr=yes
23301 else
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 emacs_cv_c_restrict_arr=no
23306 fi
23307
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 fi
23310 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23311 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23312 if test "$emacs_cv_c_restrict_arr" = yes; then
23313
23314 cat >>confdefs.h <<\_ACEOF
23315 #define __restrict_arr __restrict
23316 _ACEOF
23317
23318 fi
23319
23320
23321
23322 # Set up the CFLAGS for real compilation, so we can substitute it.
23323 CFLAGS="$REAL_CFLAGS"
23324 CPPFLAGS="$REAL_CPPFLAGS"
23325
23326 #### Find out which version of Emacs this is.
23327 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23328 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23329 if test x"${version}" = x; then
23330 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23331 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23332 { (exit 1); exit 1; }; }
23333 fi
23334
23335 ### Specify what sort of things we'll be editing into Makefile and config.h.
23336 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372 cat >>confdefs.h <<_ACEOF
23373 #define EMACS_CONFIGURATION "${canonical}"
23374 _ACEOF
23375
23376
23377 cat >>confdefs.h <<_ACEOF
23378 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23379 _ACEOF
23380
23381
23382 cat >>confdefs.h <<_ACEOF
23383 #define config_machfile "${machfile}"
23384 _ACEOF
23385
23386
23387 cat >>confdefs.h <<_ACEOF
23388 #define config_opsysfile "${opsysfile}"
23389 _ACEOF
23390
23391
23392 cat >>confdefs.h <<_ACEOF
23393 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23394 _ACEOF
23395
23396
23397 cat >>confdefs.h <<_ACEOF
23398 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23399 _ACEOF
23400
23401
23402 cat >>confdefs.h <<_ACEOF
23403 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23404 _ACEOF
23405
23406
23407 cat >>confdefs.h <<_ACEOF
23408 #define UNEXEC_SRC ${UNEXEC_SRC}
23409 _ACEOF
23410
23411
23412 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23413
23414 cat >>confdefs.h <<\_ACEOF
23415 #define HAVE_X_WINDOWS 1
23416 _ACEOF
23417
23418 fi
23419 if test "${USE_X_TOOLKIT}" != "none" ; then
23420
23421 cat >>confdefs.h <<\_ACEOF
23422 #define USE_X_TOOLKIT 1
23423 _ACEOF
23424
23425 fi
23426 if test "${HAVE_X11}" = "yes" ; then
23427
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_X11 1
23430 _ACEOF
23431
23432 fi
23433 if test "${HAVE_XFREE386}" = "yes" ; then
23434
23435 cat >>confdefs.h <<\_ACEOF
23436 #define HAVE_XFREE386 1
23437 _ACEOF
23438
23439 fi
23440 if test "${HAVE_MENUS}" = "yes" ; then
23441
23442 cat >>confdefs.h <<\_ACEOF
23443 #define HAVE_MENUS 1
23444 _ACEOF
23445
23446 fi
23447 if test "${GNU_MALLOC}" = "yes" ; then
23448
23449 cat >>confdefs.h <<\_ACEOF
23450 #define GNU_MALLOC 1
23451 _ACEOF
23452
23453 fi
23454 if test "${REL_ALLOC}" = "yes" ; then
23455
23456 cat >>confdefs.h <<\_ACEOF
23457 #define REL_ALLOC 1
23458 _ACEOF
23459
23460 fi
23461
23462
23463
23464
23465
23466 #### Report on what we decided to do.
23467 #### Report GTK as a toolkit, even if it doesn't use Xt.
23468 #### It makes printing result more understandable as using GTK sets
23469 #### toolkit_scroll_bars to yes by default.
23470 if test "${HAVE_GTK}" = "yes"; then
23471 USE_X_TOOLKIT=GTK
23472 fi
23473
23474 echo "
23475 Configured for \`${canonical}'.
23476
23477 Where should the build process find the source code? ${srcdir}
23478 What operating system and machine description files should Emacs use?
23479 \`${opsysfile}' and \`${machfile}'
23480 What compiler should emacs be built with? ${CC} ${CFLAGS}
23481 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23482 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23483 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23484 What window system should Emacs use? ${window_system}
23485 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23486
23487 if test -n "${x_includes}"; then
23488 echo " Where do we find X Windows header files? ${x_includes}"
23489 else
23490 echo " Where do we find X Windows header files? Standard dirs"
23491 fi
23492 if test -n "${x_libraries}"; then
23493 echo " Where do we find X Windows libraries? ${x_libraries}"
23494 else
23495 echo " Where do we find X Windows libraries? Standard dirs"
23496 fi
23497
23498 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23499 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23500 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23501 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23502 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23503 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23504 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23505 echo
23506
23507 if test $USE_XASSERTS = yes; then
23508 echo " Compiling with asserts turned on."
23509 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23510 echo
23511 fi
23512
23513 if test "$USE_X_TOOLKIT" = GTK; then
23514 case "$canonical" in
23515 *cygwin*)
23516 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23517 will probably get a crash on startup. If this happens, please use another
23518 toolkit for Emacs. See etc/PROBLEMS for more information."
23519 ;;
23520 esac
23521 fi
23522
23523
23524
23525 # Remove any trailing slashes in these variables.
23526 test "${prefix}" != NONE &&
23527 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23528 test "${exec_prefix}" != NONE &&
23529 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23530
23531 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23532 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23533 ## from Makefile.c can correctly provide the arg `-traditional' to the
23534 ## C preprocessor.
23535
23536 cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h. */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542 yes..yes
23543 _ACEOF
23544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23545 $EGREP "yes..yes" >/dev/null 2>&1; then
23546 CPP_NEED_TRADITIONAL=no
23547 else
23548 CPP_NEED_TRADITIONAL=yes
23549 fi
23550 rm -f conftest*
23551
23552
23553 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"
23554
23555 ac_config_commands="$ac_config_commands default"
23556
23557 cat >confcache <<\_ACEOF
23558 # This file is a shell script that caches the results of configure
23559 # tests run on this system so they can be shared between configure
23560 # scripts and configure runs, see configure's option --config-cache.
23561 # It is not useful on other systems. If it contains results you don't
23562 # want to keep, you may remove or edit it.
23563 #
23564 # config.status only pays attention to the cache file if you give it
23565 # the --recheck option to rerun configure.
23566 #
23567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23569 # following values.
23570
23571 _ACEOF
23572
23573 # The following way of writing the cache mishandles newlines in values,
23574 # but we know of no workaround that is simple, portable, and efficient.
23575 # So, we kill variables containing newlines.
23576 # Ultrix sh set writes to stderr and can't be redirected directly,
23577 # and sets the high bit in the cache file unless we assign to the vars.
23578 (
23579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23580 eval ac_val=\$$ac_var
23581 case $ac_val in #(
23582 *${as_nl}*)
23583 case $ac_var in #(
23584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23586 esac
23587 case $ac_var in #(
23588 _ | IFS | as_nl) ;; #(
23589 *) $as_unset $ac_var ;;
23590 esac ;;
23591 esac
23592 done
23593
23594 (set) 2>&1 |
23595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23596 *${as_nl}ac_space=\ *)
23597 # `set' does not quote correctly, so add quotes (double-quote
23598 # substitution turns \\\\ into \\, and sed turns \\ into \).
23599 sed -n \
23600 "s/'/'\\\\''/g;
23601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23602 ;; #(
23603 *)
23604 # `set' quotes correctly as required by POSIX, so do not add quotes.
23605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23606 ;;
23607 esac |
23608 sort
23609 ) |
23610 sed '
23611 /^ac_cv_env_/b end
23612 t clear
23613 :clear
23614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23615 t end
23616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23617 :end' >>confcache
23618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23619 if test -w "$cache_file"; then
23620 test "x$cache_file" != "x/dev/null" &&
23621 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23622 echo "$as_me: updating cache $cache_file" >&6;}
23623 cat confcache >$cache_file
23624 else
23625 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23626 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23627 fi
23628 fi
23629 rm -f confcache
23630
23631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23632 # Let make expand exec_prefix.
23633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23634
23635 DEFS=-DHAVE_CONFIG_H
23636
23637 ac_libobjs=
23638 ac_ltlibobjs=
23639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23640 # 1. Remove the extension, and $U if already installed.
23641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23642 ac_i=`echo "$ac_i" | sed "$ac_script"`
23643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23644 # will be set to the directory where LIBOBJS objects are built.
23645 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23646 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23647 done
23648 LIBOBJS=$ac_libobjs
23649
23650 LTLIBOBJS=$ac_ltlibobjs
23651
23652
23653
23654 : ${CONFIG_STATUS=./config.status}
23655 ac_clean_files_save=$ac_clean_files
23656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23657 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23658 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23659 cat >$CONFIG_STATUS <<_ACEOF
23660 #! $SHELL
23661 # Generated by $as_me.
23662 # Run this file to recreate the current configuration.
23663 # Compiler output produced by configure, useful for debugging
23664 # configure, is in config.log if it exists.
23665
23666 debug=false
23667 ac_cs_recheck=false
23668 ac_cs_silent=false
23669 SHELL=\${CONFIG_SHELL-$SHELL}
23670 _ACEOF
23671
23672 cat >>$CONFIG_STATUS <<\_ACEOF
23673 ## --------------------- ##
23674 ## M4sh Initialization. ##
23675 ## --------------------- ##
23676
23677 # Be more Bourne compatible
23678 DUALCASE=1; export DUALCASE # for MKS sh
23679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23680 emulate sh
23681 NULLCMD=:
23682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23683 # is contrary to our usage. Disable this feature.
23684 alias -g '${1+"$@"}'='"$@"'
23685 setopt NO_GLOB_SUBST
23686 else
23687 case `(set -o) 2>/dev/null` in
23688 *posix*) set -o posix ;;
23689 esac
23690
23691 fi
23692
23693
23694
23695
23696 # PATH needs CR
23697 # Avoid depending upon Character Ranges.
23698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23701 as_cr_digits='0123456789'
23702 as_cr_alnum=$as_cr_Letters$as_cr_digits
23703
23704 # The user is always right.
23705 if test "${PATH_SEPARATOR+set}" != set; then
23706 echo "#! /bin/sh" >conf$$.sh
23707 echo "exit 0" >>conf$$.sh
23708 chmod +x conf$$.sh
23709 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23710 PATH_SEPARATOR=';'
23711 else
23712 PATH_SEPARATOR=:
23713 fi
23714 rm -f conf$$.sh
23715 fi
23716
23717 # Support unset when possible.
23718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23719 as_unset=unset
23720 else
23721 as_unset=false
23722 fi
23723
23724
23725 # IFS
23726 # We need space, tab and new line, in precisely that order. Quoting is
23727 # there to prevent editors from complaining about space-tab.
23728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23729 # splitting by setting IFS to empty value.)
23730 as_nl='
23731 '
23732 IFS=" "" $as_nl"
23733
23734 # Find who we are. Look in the path if we contain no directory separator.
23735 case $0 in
23736 *[\\/]* ) as_myself=$0 ;;
23737 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23738 for as_dir in $PATH
23739 do
23740 IFS=$as_save_IFS
23741 test -z "$as_dir" && as_dir=.
23742 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23743 done
23744 IFS=$as_save_IFS
23745
23746 ;;
23747 esac
23748 # We did not find ourselves, most probably we were run as `sh COMMAND'
23749 # in which case we are not to be found in the path.
23750 if test "x$as_myself" = x; then
23751 as_myself=$0
23752 fi
23753 if test ! -f "$as_myself"; then
23754 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23755 { (exit 1); exit 1; }
23756 fi
23757
23758 # Work around bugs in pre-3.0 UWIN ksh.
23759 for as_var in ENV MAIL MAILPATH
23760 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23761 done
23762 PS1='$ '
23763 PS2='> '
23764 PS4='+ '
23765
23766 # NLS nuisances.
23767 for as_var in \
23768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23770 LC_TELEPHONE LC_TIME
23771 do
23772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23773 eval $as_var=C; export $as_var
23774 else
23775 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23776 fi
23777 done
23778
23779 # Required to use basename.
23780 if expr a : '\(a\)' >/dev/null 2>&1 &&
23781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23782 as_expr=expr
23783 else
23784 as_expr=false
23785 fi
23786
23787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23788 as_basename=basename
23789 else
23790 as_basename=false
23791 fi
23792
23793
23794 # Name of the executable.
23795 as_me=`$as_basename -- "$0" ||
23796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23797 X"$0" : 'X\(//\)$' \| \
23798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23799 echo X/"$0" |
23800 sed '/^.*\/\([^/][^/]*\)\/*$/{
23801 s//\1/
23802 q
23803 }
23804 /^X\/\(\/\/\)$/{
23805 s//\1/
23806 q
23807 }
23808 /^X\/\(\/\).*/{
23809 s//\1/
23810 q
23811 }
23812 s/.*/./; q'`
23813
23814 # CDPATH.
23815 $as_unset CDPATH
23816
23817
23818
23819 as_lineno_1=$LINENO
23820 as_lineno_2=$LINENO
23821 test "x$as_lineno_1" != "x$as_lineno_2" &&
23822 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23823
23824 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23825 # uniformly replaced by the line number. The first 'sed' inserts a
23826 # line-number line after each line using $LINENO; the second 'sed'
23827 # does the real work. The second script uses 'N' to pair each
23828 # line-number line with the line containing $LINENO, and appends
23829 # trailing '-' during substitution so that $LINENO is not a special
23830 # case at line end.
23831 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23832 # scripts with optimization help from Paolo Bonzini. Blame Lee
23833 # E. McMahon (1931-1989) for sed's syntax. :-)
23834 sed -n '
23835 p
23836 /[$]LINENO/=
23837 ' <$as_myself |
23838 sed '
23839 s/[$]LINENO.*/&-/
23840 t lineno
23841 b
23842 :lineno
23843 N
23844 :loop
23845 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23846 t loop
23847 s/-\n.*//
23848 ' >$as_me.lineno &&
23849 chmod +x "$as_me.lineno" ||
23850 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23851 { (exit 1); exit 1; }; }
23852
23853 # Don't try to exec as it changes $[0], causing all sort of problems
23854 # (the dirname of $[0] is not the place where we might find the
23855 # original and so on. Autoconf is especially sensitive to this).
23856 . "./$as_me.lineno"
23857 # Exit status is that of the last command.
23858 exit
23859 }
23860
23861
23862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23863 as_dirname=dirname
23864 else
23865 as_dirname=false
23866 fi
23867
23868 ECHO_C= ECHO_N= ECHO_T=
23869 case `echo -n x` in
23870 -n*)
23871 case `echo 'x\c'` in
23872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23873 *) ECHO_C='\c';;
23874 esac;;
23875 *)
23876 ECHO_N='-n';;
23877 esac
23878
23879 if expr a : '\(a\)' >/dev/null 2>&1 &&
23880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23881 as_expr=expr
23882 else
23883 as_expr=false
23884 fi
23885
23886 rm -f conf$$ conf$$.exe conf$$.file
23887 if test -d conf$$.dir; then
23888 rm -f conf$$.dir/conf$$.file
23889 else
23890 rm -f conf$$.dir
23891 mkdir conf$$.dir
23892 fi
23893 echo >conf$$.file
23894 if ln -s conf$$.file conf$$ 2>/dev/null; then
23895 as_ln_s='ln -s'
23896 # ... but there are two gotchas:
23897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23899 # In both cases, we have to default to `cp -p'.
23900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23901 as_ln_s='cp -p'
23902 elif ln conf$$.file conf$$ 2>/dev/null; then
23903 as_ln_s=ln
23904 else
23905 as_ln_s='cp -p'
23906 fi
23907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23908 rmdir conf$$.dir 2>/dev/null
23909
23910 if mkdir -p . 2>/dev/null; then
23911 as_mkdir_p=:
23912 else
23913 test -d ./-p && rmdir ./-p
23914 as_mkdir_p=false
23915 fi
23916
23917 if test -x / >/dev/null 2>&1; then
23918 as_test_x='test -x'
23919 else
23920 if ls -dL / >/dev/null 2>&1; then
23921 as_ls_L_option=L
23922 else
23923 as_ls_L_option=
23924 fi
23925 as_test_x='
23926 eval sh -c '\''
23927 if test -d "$1"; then
23928 test -d "$1/.";
23929 else
23930 case $1 in
23931 -*)set "./$1";;
23932 esac;
23933 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23934 ???[sx]*):;;*)false;;esac;fi
23935 '\'' sh
23936 '
23937 fi
23938 as_executable_p=$as_test_x
23939
23940 # Sed expression to map a string onto a valid CPP name.
23941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23942
23943 # Sed expression to map a string onto a valid variable name.
23944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23945
23946
23947 exec 6>&1
23948
23949 # Save the log message, to keep $[0] and so on meaningful, and to
23950 # report actual input values of CONFIG_FILES etc. instead of their
23951 # values after options handling.
23952 ac_log="
23953 This file was extended by $as_me, which was
23954 generated by GNU Autoconf 2.61. Invocation command line was
23955
23956 CONFIG_FILES = $CONFIG_FILES
23957 CONFIG_HEADERS = $CONFIG_HEADERS
23958 CONFIG_LINKS = $CONFIG_LINKS
23959 CONFIG_COMMANDS = $CONFIG_COMMANDS
23960 $ $0 $@
23961
23962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23963 "
23964
23965 _ACEOF
23966
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 # Files that config.status was made for.
23969 config_files="$ac_config_files"
23970 config_headers="$ac_config_headers"
23971 config_commands="$ac_config_commands"
23972
23973 _ACEOF
23974
23975 cat >>$CONFIG_STATUS <<\_ACEOF
23976 ac_cs_usage="\
23977 \`$as_me' instantiates files from templates according to the
23978 current configuration.
23979
23980 Usage: $0 [OPTIONS] [FILE]...
23981
23982 -h, --help print this help, then exit
23983 -V, --version print version number and configuration settings, then exit
23984 -q, --quiet do not print progress messages
23985 -d, --debug don't remove temporary files
23986 --recheck update $as_me by reconfiguring in the same conditions
23987 --file=FILE[:TEMPLATE]
23988 instantiate the configuration file FILE
23989 --header=FILE[:TEMPLATE]
23990 instantiate the configuration header FILE
23991
23992 Configuration files:
23993 $config_files
23994
23995 Configuration headers:
23996 $config_headers
23997
23998 Configuration commands:
23999 $config_commands
24000
24001 Report bugs to <bug-autoconf@gnu.org>."
24002
24003 _ACEOF
24004 cat >>$CONFIG_STATUS <<_ACEOF
24005 ac_cs_version="\\
24006 config.status
24007 configured by $0, generated by GNU Autoconf 2.61,
24008 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24009
24010 Copyright (C) 2006 Free Software Foundation, Inc.
24011 This config.status script is free software; the Free Software Foundation
24012 gives unlimited permission to copy, distribute and modify it."
24013
24014 ac_pwd='$ac_pwd'
24015 srcdir='$srcdir'
24016 INSTALL='$INSTALL'
24017 _ACEOF
24018
24019 cat >>$CONFIG_STATUS <<\_ACEOF
24020 # If no file are specified by the user, then we need to provide default
24021 # value. By we need to know if files were specified by the user.
24022 ac_need_defaults=:
24023 while test $# != 0
24024 do
24025 case $1 in
24026 --*=*)
24027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24028 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24029 ac_shift=:
24030 ;;
24031 *)
24032 ac_option=$1
24033 ac_optarg=$2
24034 ac_shift=shift
24035 ;;
24036 esac
24037
24038 case $ac_option in
24039 # Handling of the options.
24040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24041 ac_cs_recheck=: ;;
24042 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24043 echo "$ac_cs_version"; exit ;;
24044 --debug | --debu | --deb | --de | --d | -d )
24045 debug=: ;;
24046 --file | --fil | --fi | --f )
24047 $ac_shift
24048 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24049 ac_need_defaults=false;;
24050 --header | --heade | --head | --hea )
24051 $ac_shift
24052 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24053 ac_need_defaults=false;;
24054 --he | --h)
24055 # Conflict between --help and --header
24056 { echo "$as_me: error: ambiguous option: $1
24057 Try \`$0 --help' for more information." >&2
24058 { (exit 1); exit 1; }; };;
24059 --help | --hel | -h )
24060 echo "$ac_cs_usage"; exit ;;
24061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24063 ac_cs_silent=: ;;
24064
24065 # This is an error.
24066 -*) { echo "$as_me: error: unrecognized option: $1
24067 Try \`$0 --help' for more information." >&2
24068 { (exit 1); exit 1; }; } ;;
24069
24070 *) ac_config_targets="$ac_config_targets $1"
24071 ac_need_defaults=false ;;
24072
24073 esac
24074 shift
24075 done
24076
24077 ac_configure_extra_args=
24078
24079 if $ac_cs_silent; then
24080 exec 6>/dev/null
24081 ac_configure_extra_args="$ac_configure_extra_args --silent"
24082 fi
24083
24084 _ACEOF
24085 cat >>$CONFIG_STATUS <<_ACEOF
24086 if \$ac_cs_recheck; then
24087 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24088 CONFIG_SHELL=$SHELL
24089 export CONFIG_SHELL
24090 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24091 fi
24092
24093 _ACEOF
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24095 exec 5>>config.log
24096 {
24097 echo
24098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24099 ## Running $as_me. ##
24100 _ASBOX
24101 echo "$ac_log"
24102 } >&5
24103
24104 _ACEOF
24105 cat >>$CONFIG_STATUS <<_ACEOF
24106 #
24107 # INIT-COMMANDS
24108 #
24109 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24110
24111 _ACEOF
24112
24113 cat >>$CONFIG_STATUS <<\_ACEOF
24114
24115 # Handling of arguments.
24116 for ac_config_target in $ac_config_targets
24117 do
24118 case $ac_config_target in
24119 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24120 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24121 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24122 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24123 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24124 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24125 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24126 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24127 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24128 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24129 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24130 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24131
24132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24134 { (exit 1); exit 1; }; };;
24135 esac
24136 done
24137
24138
24139 # If the user did not use the arguments to specify the items to instantiate,
24140 # then the envvar interface is used. Set only those that are not.
24141 # We use the long form for the default assignment because of an extremely
24142 # bizarre bug on SunOS 4.1.3.
24143 if $ac_need_defaults; then
24144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24147 fi
24148
24149 # Have a temporary directory for convenience. Make it in the build tree
24150 # simply because there is no reason against having it here, and in addition,
24151 # creating and moving files from /tmp can sometimes cause problems.
24152 # Hook for its removal unless debugging.
24153 # Note that there is a small window in which the directory will not be cleaned:
24154 # after its creation but before its name has been assigned to `$tmp'.
24155 $debug ||
24156 {
24157 tmp=
24158 trap 'exit_status=$?
24159 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24160 ' 0
24161 trap '{ (exit 1); exit 1; }' 1 2 13 15
24162 }
24163 # Create a (secure) tmp directory for tmp files.
24164
24165 {
24166 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24167 test -n "$tmp" && test -d "$tmp"
24168 } ||
24169 {
24170 tmp=./conf$$-$RANDOM
24171 (umask 077 && mkdir "$tmp")
24172 } ||
24173 {
24174 echo "$me: cannot create a temporary directory in ." >&2
24175 { (exit 1); exit 1; }
24176 }
24177
24178 #
24179 # Set up the sed scripts for CONFIG_FILES section.
24180 #
24181
24182 # No need to generate the scripts if there are no CONFIG_FILES.
24183 # This happens for instance when ./config.status config.h
24184 if test -n "$CONFIG_FILES"; then
24185
24186 _ACEOF
24187
24188
24189
24190 ac_delim='%!_!# '
24191 for ac_last_try in false false false false false :; do
24192 cat >conf$$subs.sed <<_ACEOF
24193 SHELL!$SHELL$ac_delim
24194 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24195 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24196 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24197 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24198 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24199 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24200 exec_prefix!$exec_prefix$ac_delim
24201 prefix!$prefix$ac_delim
24202 program_transform_name!$program_transform_name$ac_delim
24203 bindir!$bindir$ac_delim
24204 sbindir!$sbindir$ac_delim
24205 libexecdir!$libexecdir$ac_delim
24206 datarootdir!$datarootdir$ac_delim
24207 datadir!$datadir$ac_delim
24208 sysconfdir!$sysconfdir$ac_delim
24209 sharedstatedir!$sharedstatedir$ac_delim
24210 localstatedir!$localstatedir$ac_delim
24211 includedir!$includedir$ac_delim
24212 oldincludedir!$oldincludedir$ac_delim
24213 docdir!$docdir$ac_delim
24214 infodir!$infodir$ac_delim
24215 htmldir!$htmldir$ac_delim
24216 dvidir!$dvidir$ac_delim
24217 pdfdir!$pdfdir$ac_delim
24218 psdir!$psdir$ac_delim
24219 libdir!$libdir$ac_delim
24220 localedir!$localedir$ac_delim
24221 mandir!$mandir$ac_delim
24222 DEFS!$DEFS$ac_delim
24223 ECHO_C!$ECHO_C$ac_delim
24224 ECHO_N!$ECHO_N$ac_delim
24225 ECHO_T!$ECHO_T$ac_delim
24226 LIBS!$LIBS$ac_delim
24227 build_alias!$build_alias$ac_delim
24228 host_alias!$host_alias$ac_delim
24229 target_alias!$target_alias$ac_delim
24230 MAINT!$MAINT$ac_delim
24231 build!$build$ac_delim
24232 build_cpu!$build_cpu$ac_delim
24233 build_vendor!$build_vendor$ac_delim
24234 build_os!$build_os$ac_delim
24235 host!$host$ac_delim
24236 host_cpu!$host_cpu$ac_delim
24237 host_vendor!$host_vendor$ac_delim
24238 host_os!$host_os$ac_delim
24239 CC!$CC$ac_delim
24240 CFLAGS!$CFLAGS$ac_delim
24241 LDFLAGS!$LDFLAGS$ac_delim
24242 CPPFLAGS!$CPPFLAGS$ac_delim
24243 ac_ct_CC!$ac_ct_CC$ac_delim
24244 EXEEXT!$EXEEXT$ac_delim
24245 OBJEXT!$OBJEXT$ac_delim
24246 CPP!$CPP$ac_delim
24247 GREP!$GREP$ac_delim
24248 EGREP!$EGREP$ac_delim
24249 LN_S!$LN_S$ac_delim
24250 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24251 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24252 INSTALL_DATA!$INSTALL_DATA$ac_delim
24253 RANLIB!$RANLIB$ac_delim
24254 INSTALL_INFO!$INSTALL_INFO$ac_delim
24255 GZIP_PROG!$GZIP_PROG$ac_delim
24256 LIBSOUND!$LIBSOUND$ac_delim
24257 PKG_CONFIG!$PKG_CONFIG$ac_delim
24258 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24259 ALSA_LIBS!$ALSA_LIBS$ac_delim
24260 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24261 SET_MAKE!$SET_MAKE$ac_delim
24262 XMKMF!$XMKMF$ac_delim
24263 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24264 GTK_LIBS!$GTK_LIBS$ac_delim
24265 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24266 XFT_LIBS!$XFT_LIBS$ac_delim
24267 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24268 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24269 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24270 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24271 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24272 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24273 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24274 ALLOCA!$ALLOCA$ac_delim
24275 liblockfile!$liblockfile$ac_delim
24276 LIBOBJS!$LIBOBJS$ac_delim
24277 NEED_SETGID!$NEED_SETGID$ac_delim
24278 KMEM_GROUP!$KMEM_GROUP$ac_delim
24279 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24280 GETOPT_H!$GETOPT_H$ac_delim
24281 GETOPTOBJS!$GETOPTOBJS$ac_delim
24282 version!$version$ac_delim
24283 configuration!$configuration$ac_delim
24284 canonical!$canonical$ac_delim
24285 srcdir!$srcdir$ac_delim
24286 lispdir!$lispdir$ac_delim
24287 locallisppath!$locallisppath$ac_delim
24288 lisppath!$lisppath$ac_delim
24289 x_default_search_path!$x_default_search_path$ac_delim
24290 _ACEOF
24291
24292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24293 break
24294 elif $ac_last_try; then
24295 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24296 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24297 { (exit 1); exit 1; }; }
24298 else
24299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24300 fi
24301 done
24302
24303 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24304 if test -n "$ac_eof"; then
24305 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24306 ac_eof=`expr $ac_eof + 1`
24307 fi
24308
24309 cat >>$CONFIG_STATUS <<_ACEOF
24310 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24312 _ACEOF
24313 sed '
24314 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24315 s/^/s,@/; s/!/@,|#_!!_#|/
24316 :n
24317 t n
24318 s/'"$ac_delim"'$/,g/; t
24319 s/$/\\/; p
24320 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24321 ' >>$CONFIG_STATUS <conf$$subs.sed
24322 rm -f conf$$subs.sed
24323 cat >>$CONFIG_STATUS <<_ACEOF
24324 CEOF$ac_eof
24325 _ACEOF
24326
24327
24328 ac_delim='%!_!# '
24329 for ac_last_try in false false false false false :; do
24330 cat >conf$$subs.sed <<_ACEOF
24331 etcdir!$etcdir$ac_delim
24332 archlibdir!$archlibdir$ac_delim
24333 bitmapdir!$bitmapdir$ac_delim
24334 gamedir!$gamedir$ac_delim
24335 gameuser!$gameuser$ac_delim
24336 c_switch_system!$c_switch_system$ac_delim
24337 c_switch_machine!$c_switch_machine$ac_delim
24338 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24339 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24340 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24341 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24342 machfile!$machfile$ac_delim
24343 opsysfile!$opsysfile$ac_delim
24344 carbon_appdir!$carbon_appdir$ac_delim
24345 LTLIBOBJS!$LTLIBOBJS$ac_delim
24346 _ACEOF
24347
24348 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24349 break
24350 elif $ac_last_try; then
24351 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24352 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24353 { (exit 1); exit 1; }; }
24354 else
24355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24356 fi
24357 done
24358
24359 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24360 if test -n "$ac_eof"; then
24361 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24362 ac_eof=`expr $ac_eof + 1`
24363 fi
24364
24365 cat >>$CONFIG_STATUS <<_ACEOF
24366 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24368 _ACEOF
24369 sed '
24370 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24371 s/^/s,@/; s/!/@,|#_!!_#|/
24372 :n
24373 t n
24374 s/'"$ac_delim"'$/,g/; t
24375 s/$/\\/; p
24376 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24377 ' >>$CONFIG_STATUS <conf$$subs.sed
24378 rm -f conf$$subs.sed
24379 cat >>$CONFIG_STATUS <<_ACEOF
24380 :end
24381 s/|#_!!_#|//g
24382 CEOF$ac_eof
24383 _ACEOF
24384
24385
24386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24388 # trailing colons and then remove the whole line if VPATH becomes empty
24389 # (actually we leave an empty line to preserve line numbers).
24390 if test "x$srcdir" = x.; then
24391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24392 s/:*\$(srcdir):*/:/
24393 s/:*\${srcdir}:*/:/
24394 s/:*@srcdir@:*/:/
24395 s/^\([^=]*=[ ]*\):*/\1/
24396 s/:*$//
24397 s/^[^=]*=[ ]*$//
24398 }'
24399 fi
24400
24401 cat >>$CONFIG_STATUS <<\_ACEOF
24402 fi # test -n "$CONFIG_FILES"
24403
24404
24405 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24406 do
24407 case $ac_tag in
24408 :[FHLC]) ac_mode=$ac_tag; continue;;
24409 esac
24410 case $ac_mode$ac_tag in
24411 :[FHL]*:*);;
24412 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24413 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24414 { (exit 1); exit 1; }; };;
24415 :[FH]-) ac_tag=-:-;;
24416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24417 esac
24418 ac_save_IFS=$IFS
24419 IFS=:
24420 set x $ac_tag
24421 IFS=$ac_save_IFS
24422 shift
24423 ac_file=$1
24424 shift
24425
24426 case $ac_mode in
24427 :L) ac_source=$1;;
24428 :[FH])
24429 ac_file_inputs=
24430 for ac_f
24431 do
24432 case $ac_f in
24433 -) ac_f="$tmp/stdin";;
24434 *) # Look for the file first in the build tree, then in the source tree
24435 # (if the path is not absolute). The absolute path cannot be DOS-style,
24436 # because $ac_f cannot contain `:'.
24437 test -f "$ac_f" ||
24438 case $ac_f in
24439 [\\/$]*) false;;
24440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24441 esac ||
24442 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24443 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24444 { (exit 1); exit 1; }; };;
24445 esac
24446 ac_file_inputs="$ac_file_inputs $ac_f"
24447 done
24448
24449 # Let's still pretend it is `configure' which instantiates (i.e., don't
24450 # use $as_me), people would be surprised to read:
24451 # /* config.h. Generated by config.status. */
24452 configure_input="Generated from "`IFS=:
24453 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24454 if test x"$ac_file" != x-; then
24455 configure_input="$ac_file. $configure_input"
24456 { echo "$as_me:$LINENO: creating $ac_file" >&5
24457 echo "$as_me: creating $ac_file" >&6;}
24458 fi
24459
24460 case $ac_tag in
24461 *:-:* | *:-) cat >"$tmp/stdin";;
24462 esac
24463 ;;
24464 esac
24465
24466 ac_dir=`$as_dirname -- "$ac_file" ||
24467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24468 X"$ac_file" : 'X\(//\)[^/]' \| \
24469 X"$ac_file" : 'X\(//\)$' \| \
24470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24471 echo X"$ac_file" |
24472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24473 s//\1/
24474 q
24475 }
24476 /^X\(\/\/\)[^/].*/{
24477 s//\1/
24478 q
24479 }
24480 /^X\(\/\/\)$/{
24481 s//\1/
24482 q
24483 }
24484 /^X\(\/\).*/{
24485 s//\1/
24486 q
24487 }
24488 s/.*/./; q'`
24489 { as_dir="$ac_dir"
24490 case $as_dir in #(
24491 -*) as_dir=./$as_dir;;
24492 esac
24493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24494 as_dirs=
24495 while :; do
24496 case $as_dir in #(
24497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24498 *) as_qdir=$as_dir;;
24499 esac
24500 as_dirs="'$as_qdir' $as_dirs"
24501 as_dir=`$as_dirname -- "$as_dir" ||
24502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24503 X"$as_dir" : 'X\(//\)[^/]' \| \
24504 X"$as_dir" : 'X\(//\)$' \| \
24505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24506 echo X"$as_dir" |
24507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24508 s//\1/
24509 q
24510 }
24511 /^X\(\/\/\)[^/].*/{
24512 s//\1/
24513 q
24514 }
24515 /^X\(\/\/\)$/{
24516 s//\1/
24517 q
24518 }
24519 /^X\(\/\).*/{
24520 s//\1/
24521 q
24522 }
24523 s/.*/./; q'`
24524 test -d "$as_dir" && break
24525 done
24526 test -z "$as_dirs" || eval "mkdir $as_dirs"
24527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24529 { (exit 1); exit 1; }; }; }
24530 ac_builddir=.
24531
24532 case "$ac_dir" in
24533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24534 *)
24535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24536 # A ".." for each directory in $ac_dir_suffix.
24537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24538 case $ac_top_builddir_sub in
24539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24541 esac ;;
24542 esac
24543 ac_abs_top_builddir=$ac_pwd
24544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24545 # for backward compatibility:
24546 ac_top_builddir=$ac_top_build_prefix
24547
24548 case $srcdir in
24549 .) # We are building in place.
24550 ac_srcdir=.
24551 ac_top_srcdir=$ac_top_builddir_sub
24552 ac_abs_top_srcdir=$ac_pwd ;;
24553 [\\/]* | ?:[\\/]* ) # Absolute name.
24554 ac_srcdir=$srcdir$ac_dir_suffix;
24555 ac_top_srcdir=$srcdir
24556 ac_abs_top_srcdir=$srcdir ;;
24557 *) # Relative name.
24558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24559 ac_top_srcdir=$ac_top_build_prefix$srcdir
24560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24561 esac
24562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24563
24564
24565 case $ac_mode in
24566 :F)
24567 #
24568 # CONFIG_FILE
24569 #
24570
24571 case $INSTALL in
24572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24574 esac
24575 _ACEOF
24576
24577 cat >>$CONFIG_STATUS <<\_ACEOF
24578 # If the template does not know about datarootdir, expand it.
24579 # FIXME: This hack should be removed a few years after 2.60.
24580 ac_datarootdir_hack=; ac_datarootdir_seen=
24581
24582 case `sed -n '/datarootdir/ {
24583 p
24584 q
24585 }
24586 /@datadir@/p
24587 /@docdir@/p
24588 /@infodir@/p
24589 /@localedir@/p
24590 /@mandir@/p
24591 ' $ac_file_inputs` in
24592 *datarootdir*) ac_datarootdir_seen=yes;;
24593 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24594 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24595 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24596 _ACEOF
24597 cat >>$CONFIG_STATUS <<_ACEOF
24598 ac_datarootdir_hack='
24599 s&@datadir@&$datadir&g
24600 s&@docdir@&$docdir&g
24601 s&@infodir@&$infodir&g
24602 s&@localedir@&$localedir&g
24603 s&@mandir@&$mandir&g
24604 s&\\\${datarootdir}&$datarootdir&g' ;;
24605 esac
24606 _ACEOF
24607
24608 # Neutralize VPATH when `$srcdir' = `.'.
24609 # Shell code in configure.ac might set extrasub.
24610 # FIXME: do we really want to maintain this feature?
24611 cat >>$CONFIG_STATUS <<_ACEOF
24612 sed "$ac_vpsub
24613 $extrasub
24614 _ACEOF
24615 cat >>$CONFIG_STATUS <<\_ACEOF
24616 :t
24617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24618 s&@configure_input@&$configure_input&;t t
24619 s&@top_builddir@&$ac_top_builddir_sub&;t t
24620 s&@srcdir@&$ac_srcdir&;t t
24621 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24622 s&@top_srcdir@&$ac_top_srcdir&;t t
24623 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24624 s&@builddir@&$ac_builddir&;t t
24625 s&@abs_builddir@&$ac_abs_builddir&;t t
24626 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24627 s&@INSTALL@&$ac_INSTALL&;t t
24628 $ac_datarootdir_hack
24629 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24630
24631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24634 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24635 which seems to be undefined. Please make sure it is defined." >&5
24636 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24637 which seems to be undefined. Please make sure it is defined." >&2;}
24638
24639 rm -f "$tmp/stdin"
24640 case $ac_file in
24641 -) cat "$tmp/out"; rm -f "$tmp/out";;
24642 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24643 esac
24644 ;;
24645 :H)
24646 #
24647 # CONFIG_HEADER
24648 #
24649 _ACEOF
24650
24651 # Transform confdefs.h into a sed script `conftest.defines', that
24652 # substitutes the proper values into config.h.in to produce config.h.
24653 rm -f conftest.defines conftest.tail
24654 # First, append a space to every undef/define line, to ease matching.
24655 echo 's/$/ /' >conftest.defines
24656 # Then, protect against being on the right side of a sed subst, or in
24657 # an unquoted here document, in config.status. If some macros were
24658 # called several times there might be several #defines for the same
24659 # symbol, which is useless. But do not sort them, since the last
24660 # AC_DEFINE must be honored.
24661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24662 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24663 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24664 # PARAMS is the parameter list in the macro definition--in most cases, it's
24665 # just an empty string.
24666 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24667 ac_dB='\\)[ (].*,\\1define\\2'
24668 ac_dC=' '
24669 ac_dD=' ,'
24670
24671 uniq confdefs.h |
24672 sed -n '
24673 t rset
24674 :rset
24675 s/^[ ]*#[ ]*define[ ][ ]*//
24676 t ok
24677 d
24678 :ok
24679 s/[\\&,]/\\&/g
24680 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24681 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24682 ' >>conftest.defines
24683
24684 # Remove the space that was appended to ease matching.
24685 # Then replace #undef with comments. This is necessary, for
24686 # example, in the case of _POSIX_SOURCE, which is predefined and required
24687 # on some systems where configure will not decide to define it.
24688 # (The regexp can be short, since the line contains either #define or #undef.)
24689 echo 's/ $//
24690 s,^[ #]*u.*,/* & */,' >>conftest.defines
24691
24692 # Break up conftest.defines:
24693 ac_max_sed_lines=50
24694
24695 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24696 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24697 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24698 # et cetera.
24699 ac_in='$ac_file_inputs'
24700 ac_out='"$tmp/out1"'
24701 ac_nxt='"$tmp/out2"'
24702
24703 while :
24704 do
24705 # Write a here document:
24706 cat >>$CONFIG_STATUS <<_ACEOF
24707 # First, check the format of the line:
24708 cat >"\$tmp/defines.sed" <<\\CEOF
24709 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24710 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24711 b
24712 :def
24713 _ACEOF
24714 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24715 echo 'CEOF
24716 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24717 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24718 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24719 grep . conftest.tail >/dev/null || break
24720 rm -f conftest.defines
24721 mv conftest.tail conftest.defines
24722 done
24723 rm -f conftest.defines conftest.tail
24724
24725 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24726 cat >>$CONFIG_STATUS <<\_ACEOF
24727 if test x"$ac_file" != x-; then
24728 echo "/* $configure_input */" >"$tmp/config.h"
24729 cat "$ac_result" >>"$tmp/config.h"
24730 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24732 echo "$as_me: $ac_file is unchanged" >&6;}
24733 else
24734 rm -f $ac_file
24735 mv "$tmp/config.h" $ac_file
24736 fi
24737 else
24738 echo "/* $configure_input */"
24739 cat "$ac_result"
24740 fi
24741 rm -f "$tmp/out12"
24742 ;;
24743
24744 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24745 echo "$as_me: executing $ac_file commands" >&6;}
24746 ;;
24747 esac
24748
24749
24750 case $ac_file$ac_mode in
24751 "default":C)
24752
24753 ### Make the necessary directories, if they don't exist.
24754 for dir in etc lisp ; do
24755 test -d ${dir} || mkdir ${dir}
24756 done
24757
24758 # Build src/Makefile from ${srcdir}/src/Makefile.c
24759 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24760 # This must be done after src/config.h is built, since we rely on that file.
24761
24762 # Now get this: Some word that is part of the ${srcdir} directory name
24763 # or the ${configuration} value might, just might, happen to be an
24764 # identifier like `sun4' or `i386' or something, and be predefined by
24765 # the C preprocessor to some helpful value like 1, or maybe the empty
24766 # string. Needless to say consequent macro substitutions are less
24767 # than conducive to the makefile finding the correct directory.
24768 undefs="`echo $top_srcdir $configuration $canonical |
24769 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24770 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24771 `"
24772
24773 echo creating src/epaths.h
24774 ${MAKE-make} epaths-force
24775
24776 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24777 # `..' to `. .' unless invoked with -traditional
24778
24779 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24780 CPPFLAGS="$CPPFLAGS -traditional"
24781 fi
24782
24783 echo creating lib-src/Makefile
24784 ( cd lib-src
24785 rm -f junk.c junk1.c junk2.c
24786 sed -e '/start of cpp stuff/q' \
24787 < Makefile.c > junk1.c
24788 sed -e '1,/start of cpp stuff/d'\
24789 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24790 < Makefile.c > junk.c
24791 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24792 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24793 cat junk1.c junk2.c > Makefile.new
24794 rm -f junk.c junk1.c junk2.c
24795 chmod 444 Makefile.new
24796 mv -f Makefile.new Makefile
24797 )
24798
24799 echo creating src/Makefile
24800 ( cd src
24801 rm -f junk.c junk1.c junk2.c
24802 sed -e '/start of cpp stuff/q' \
24803 < Makefile.c > junk1.c
24804 sed -e '1,/start of cpp stuff/d'\
24805 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24806 < Makefile.c > junk.c
24807 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24808 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24809 fi
24810 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24811 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24812 cat junk1.c junk2.c > Makefile.new
24813 rm -f junk.c junk1.c junk2.c
24814 chmod 444 Makefile.new
24815 mv -f Makefile.new Makefile
24816 )
24817
24818 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24819 echo creating src/.gdbinit
24820 echo source $srcdir/src/.gdbinit > src/.gdbinit
24821 fi
24822
24823 # This is how we know whether to re-run configure in certain cases.
24824 touch src/config.stamp
24825
24826 ;;
24827
24828 esac
24829 done # for ac_tag
24830
24831
24832 { (exit 0); exit 0; }
24833 _ACEOF
24834 chmod +x $CONFIG_STATUS
24835 ac_clean_files=$ac_clean_files_save
24836
24837
24838 # configure is writing to config.log, and then calls config.status.
24839 # config.status does its own redirection, appending to config.log.
24840 # Unfortunately, on DOS this fails, as config.log is still kept open
24841 # by configure, so config.status won't be able to write to it; its
24842 # output is simply discarded. So we exec the FD to /dev/null,
24843 # effectively closing config.log, so it can be properly (re)opened and
24844 # appended to by config.status. When coming back to configure, we
24845 # need to make the FD available again.
24846 if test "$no_create" != yes; then
24847 ac_cs_success=:
24848 ac_config_status_args=
24849 test "$silent" = yes &&
24850 ac_config_status_args="$ac_config_status_args --quiet"
24851 exec 5>/dev/null
24852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24853 exec 5>>config.log
24854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24855 # would make configure fail if this is the last instruction.
24856 $ac_cs_success || { (exit 1); exit 1; }
24857 fi
24858
24859