*** empty log message ***
[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 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 FREETYPE_CFLAGS
694 FREETYPE_LIBS
695 FONTCONFIG_CFLAGS
696 FONTCONFIG_LIBS
697 HAVE_LIBOTF
698 LIBOTF_CFLAGS
699 LIBOTF_LIBS
700 ALLOCA
701 liblockfile
702 LIBOBJS
703 NEED_SETGID
704 KMEM_GROUP
705 GETLOADAVG_LIBS
706 GETOPT_H
707 GETOPTOBJS
708 version
709 configuration
710 canonical
711 srcdir
712 lispdir
713 locallisppath
714 lisppath
715 x_default_search_path
716 etcdir
717 archlibdir
718 bitmapdir
719 gamedir
720 gameuser
721 c_switch_system
722 c_switch_machine
723 LD_SWITCH_X_SITE
724 LD_SWITCH_X_SITE_AUX
725 C_SWITCH_X_SITE
726 X_TOOLKIT_TYPE
727 machfile
728 opsysfile
729 carbon_appdir
730 LTLIBOBJS'
731 ac_subst_files=''
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
735 CC
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
740 CPP
741 XMKMF'
742
743
744 # Initialize some variables set by options.
745 ac_init_help=
746 ac_init_version=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
789
790 ac_prev=
791 ac_dashdash=
792 for ac_option
793 do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
799 fi
800
801 case $ac_option in
802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *) ac_optarg=yes ;;
804 esac
805
806 # Accept the important Cygnus configure options, so we can diagnose typos.
807
808 case $ac_dashdash$ac_option in
809 --)
810 ac_dashdash=yes ;;
811
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
816
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
821
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
828
829 --config-cache | -C)
830 cache_file=config.cache ;;
831
832 -datadir | --datadir | --datadi | --datad)
833 ac_prev=datadir ;;
834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 datadir=$ac_optarg ;;
836
837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
843
844 -disable-* | --disable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=no ;;
852
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
857
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
862
863 -enable-* | --enable-*)
864 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=\$ac_optarg ;;
871
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
880
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
883 with_gas=yes ;;
884
885 -help | --help | --hel | --he | -h)
886 ac_init_help=long ;;
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
891
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
896
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 ac_prev=htmldir ;;
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 | --ht=*)
901 htmldir=$ac_optarg ;;
902
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
909
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 ac_prev=infodir ;;
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
914
915 -libdir | --libdir | --libdi | --libd)
916 ac_prev=libdir ;;
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 libdir=$ac_optarg ;;
919
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
926
927 -localedir | --localedir | --localedi | --localed | --locale)
928 ac_prev=localedir ;;
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
931
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
938
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 ac_prev=mandir ;;
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 mandir=$ac_optarg ;;
943
944 -nfp | --nfp | --nf)
945 # Obsolete; use --without-fp.
946 with_fp=no ;;
947
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
950 no_create=yes ;;
951
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 no_recursion=yes ;;
955
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
964
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 ac_prev=prefix ;;
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 prefix=$ac_optarg ;;
969
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
976
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
983
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1000
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 ac_prev=pdfdir ;;
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1005
1006 -psdir | --psdir | --psdi | --psd | --ps)
1007 ac_prev=psdir ;;
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 psdir=$ac_optarg ;;
1010
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 silent=yes ;;
1014
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 ac_prev=sbindir ;;
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 | --sbi=* | --sb=*)
1019 sbindir=$ac_optarg ;;
1020
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1024 | --sha | --sh)
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 | --sha=* | --sh=*)
1030 sharedstatedir=$ac_optarg ;;
1031
1032 -site | --site | --sit)
1033 ac_prev=site ;;
1034 -site=* | --site=* | --sit=*)
1035 site=$ac_optarg ;;
1036
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 ac_prev=srcdir ;;
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1041
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1048
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1053
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 verbose=yes ;;
1056
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1059
1060 -with-* | --with-*)
1061 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=\$ac_optarg ;;
1068
1069 -without-* | --without-*)
1070 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=no ;;
1077
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1081
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1088
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1095
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1099 ;;
1100
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1109
1110 *)
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 ;;
1117
1118 esac
1119 done
1120
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1125 fi
1126
1127 # Be sure to have absolute directory names.
1128 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1132 do
1133 eval ac_val=\$$ac_var
1134 case $ac_val in
1135 [\\/$]* | ?:[\\/]* ) continue;;
1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 esac
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1140 done
1141
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1145 build=$build_alias
1146 host=$host_alias
1147 target=$target_alias
1148
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x; then
1151 if test "x$build_alias" = x; then
1152 cross_compiling=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1156 cross_compiling=yes
1157 fi
1158 fi
1159
1160 ac_tool_prefix=
1161 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163 test "$silent" = yes && exec 6>/dev/null
1164
1165
1166 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di=`ls -di .` &&
1168 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 echo X"$0" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1214 fi
1215 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 ac_abs_confdir=`(
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1219 pwd)`
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 srcdir=.
1223 fi
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1227 case $srcdir in
1228 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 esac
1230 for ac_var in $ac_precious_vars; do
1231 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_${ac_var}_value=\$${ac_var}
1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235 done
1236
1237 #
1238 # Report the --help message.
1239 #
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1243 cat <<_ACEOF
1244 \`configure' configures this package to adapt to many kinds of systems.
1245
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1247
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1250
1251 Defaults for the options are specified in brackets.
1252
1253 Configuration:
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 [PREFIX]
1269
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1274
1275 For better control, use the options below.
1276
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1297 _ACEOF
1298
1299 cat <<\_ACEOF
1300
1301 Program names:
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305
1306 X features:
1307 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR
1309
1310 System types:
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313 _ACEOF
1314 fi
1315
1316 if test -n "$ac_init_help"; then
1317
1318 cat <<\_ACEOF
1319
1320 Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-carbon-app[=DIR] [DIR=/Application]
1324 specify install directory for Emacs.app on Mac OS X
1325 --enable-font-backend compile code of font-backend support
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode enable make rules and dependencies not useful
1328 (and sometimes confusing) to the casual installer
1329 --enable-locallisppath=PATH
1330 directories Emacs should search for lisp files
1331 specific to this site
1332 --disable-largefile omit support for large files
1333
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --without-gcc don't use GCC to compile Emacs if GCC is found
1338 --without-pop don't support POP mail retrieval with movemail
1339 --with-kerberos support Kerberos-authenticated POP
1340 --with-kerberos5 support Kerberos version 5 authenticated POP
1341 --with-hesiod support Hesiod to get the POP server host
1342 --without-sound don't compile with sound support
1343 --with-x-toolkit=KIT use an X toolkit
1344 (KIT = yes/lucid/athena/motif/gtk/no)
1345 --with-xpm use -lXpm for displaying XPM images
1346 --with-jpeg use -ljpeg for displaying JPEG images
1347 --with-tiff use -ltiff for displaying TIFF images
1348 --with-gif use -lungif for displaying GIF images
1349 --with-png use -lpng for displaying PNG images
1350 --with-freetype use -lfreetype for local fonts support
1351 --with-xft use -lXft for anti aliased fonts
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
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=gtk ;;
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' and \`gtk', and \`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' and \`gtk', and \`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-gpm was given.
1968 if test "${with_gpm+set}" = set; then
1969 withval=$with_gpm;
1970 fi
1971
1972
1973 # Check whether --with-gtk was given.
1974 if test "${with_gtk+set}" = set; then
1975 withval=$with_gtk;
1976 fi
1977
1978
1979 # Check whether --with-pkg-config-prog was given.
1980 if test "${with_pkg_config_prog+set}" = set; then
1981 withval=$with_pkg_config_prog;
1982 fi
1983
1984
1985 # Check whether --with-toolkit-scroll-bars was given.
1986 if test "${with_toolkit_scroll_bars+set}" = set; then
1987 withval=$with_toolkit_scroll_bars;
1988 fi
1989
1990
1991 # Check whether --with-xim was given.
1992 if test "${with_xim+set}" = set; then
1993 withval=$with_xim;
1994 fi
1995
1996
1997 # Check whether --with-carbon was given.
1998 if test "${with_carbon+set}" = set; then
1999 withval=$with_carbon;
2000 fi
2001
2002 # Check whether --enable-carbon-app was given.
2003 if test "${enable_carbon_app+set}" = set; then
2004 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2005 fi
2006
2007
2008 # Check whether --enable-font-backend was given.
2009 if test "${enable_font_backend+set}" = set; then
2010 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2011 else
2012 USE_FONT_BACKEND=no
2013 fi
2014
2015
2016 # Check whether --enable-asserts was given.
2017 if test "${enable_asserts+set}" = set; then
2018 enableval=$enable_asserts; USE_XASSERTS=$enableval
2019 else
2020 USE_XASSERTS=no
2021 fi
2022
2023
2024 # Check whether --enable-maintainer-mode was given.
2025 if test "${enable_maintainer_mode+set}" = set; then
2026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2027 else
2028 USE_MAINTAINER_MODE=no
2029 fi
2030
2031 if test $USE_MAINTAINER_MODE = yes; then
2032 MAINT=
2033 else
2034 MAINT=#
2035 fi
2036
2037
2038 # Check whether --enable-locallisppath was given.
2039 if test "${enable_locallisppath+set}" = set; then
2040 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2041 locallisppath=
2042 elif test "${enableval}" != "yes"; then
2043 locallisppath=${enableval}
2044 fi
2045 fi
2046
2047
2048 #### Make srcdir absolute, if it isn't already. It's important to
2049 #### avoid running the path through pwd unnecessarily, since pwd can
2050 #### give you automounter prefixes, which can go away. We do all this
2051 #### so Emacs can find its files when run uninstalled.
2052 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2053 unset CDPATH
2054 case "${srcdir}" in
2055 /* ) ;;
2056 . )
2057 ## We may be able to use the $PWD environment variable to make this
2058 ## absolute. But sometimes PWD is inaccurate.
2059 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2060 ## but that tested only for a well-formed and valid PWD,
2061 ## it did not object when PWD was well-formed and valid but just wrong.
2062 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2063 then
2064 srcdir="$PWD"
2065 else
2066 srcdir="`(cd ${srcdir}; pwd)`"
2067 fi
2068 ;;
2069 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2070 esac
2071
2072 #### Check if the source directory already has a configured system in it.
2073 if test `pwd` != `(cd ${srcdir} && pwd)` \
2074 && test -f "${srcdir}/src/config.h" ; then
2075 { echo "$as_me:$LINENO: 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." >&5
2081 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2082 as a build directory right now; it has been configured in its own
2083 right. To configure in another directory as well, you MUST
2084 use GNU make. If you do not have GNU make, then you must
2085 now do \`make distclean' in ${srcdir},
2086 and then run $0 again." >&2;}
2087 fi
2088
2089 #### Given the configuration name, set machfile and opsysfile to the
2090 #### names of the m/*.h and s/*.h files we should use.
2091
2092 ### Canonicalize the configuration name.
2093
2094 ac_aux_dir=
2095 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096 if test -f "$ac_dir/install-sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 break
2100 elif test -f "$ac_dir/install.sh"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 break
2104 elif test -f "$ac_dir/shtool"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/shtool install -c"
2107 break
2108 fi
2109 done
2110 if test -z "$ac_aux_dir"; then
2111 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2113 { (exit 1); exit 1; }; }
2114 fi
2115
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123
2124
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2130
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_build_alias=$build_alias
2137 test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x &&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2147
2148 fi
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 build=$ac_cv_build
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_build
2160 shift
2161 build_cpu=$1
2162 build_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 build_os=$*
2167 IFS=$ac_save_IFS
2168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169
2170
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178 else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2183 fi
2184
2185 fi
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 case $ac_cv_host in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193 esac
2194 host=$ac_cv_host
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_host
2197 shift
2198 host_cpu=$1
2199 host_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 host_os=$*
2204 IFS=$ac_save_IFS
2205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206
2207
2208 canonical=$host
2209 configuration=${host_alias-${build_alias-$host}}
2210
2211
2212
2213 ### If you add support for a new configuration, add code to this
2214 ### switch statement to recognize your configuration name and select
2215 ### the appropriate operating system and machine description files.
2216
2217 ### You would hope that you could choose an m/*.h file pretty much
2218 ### based on the machine portion of the configuration name, and an s-
2219 ### file based on the operating system portion. However, it turns out
2220 ### that each m/*.h file is pretty manufacturer-specific - for
2221 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2222 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2223 ### machines. So we basically have to have a special case for each
2224 ### configuration name.
2225 ###
2226 ### As far as handling version numbers on operating systems is
2227 ### concerned, make sure things will fail in a fixable way. If
2228 ### /etc/MACHINES doesn't say anything about version numbers, be
2229 ### prepared to handle anything reasonably. If version numbers
2230 ### matter, be sure /etc/MACHINES says something about it.
2231 ###
2232 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2233 ### "System V Release 4"; he writes, "The old convention encouraged
2234 ### confusion between `system' and `release' levels'."
2235
2236 machine='' opsys='' unported=no
2237 case "${canonical}" in
2238
2239 ## FreeBSD ports
2240 *-*-freebsd* )
2241 opsys=freebsd
2242 case "${canonical}" in
2243 alpha*-*-freebsd*) machine=alpha ;;
2244 ia64-*-freebsd*) machine=ia64 ;;
2245 sparc64-*-freebsd*) machine=sparc ;;
2246 powerpc-*-freebsd*) machine=macppc ;;
2247 i[3456]86-*-freebsd*) machine=intel386 ;;
2248 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2249 esac
2250 ;;
2251
2252 ## NetBSD ports
2253 *-*-netbsd* )
2254 opsys=netbsd
2255 if test -f /usr/lib/crti.o; then
2256
2257 cat >>confdefs.h <<\_ACEOF
2258 #define HAVE_CRTIN
2259 _ACEOF
2260
2261 fi
2262
2263 case "${canonical}" in
2264 alpha*-*-netbsd*) machine=alpha ;;
2265 i[3456]86-*-netbsd*) machine=intel386 ;;
2266 m68k-*-netbsd*)
2267 # This is somewhat bogus.
2268 machine=hp9000s300 ;;
2269 mips-*-netbsd*) machine=pmax ;;
2270 mipsel-*-netbsd*) machine=pmax ;;
2271 mipseb-*-netbsd*) machine=pmax ;;
2272 ns32k-*-netbsd*) machine=ns32000 ;;
2273 powerpc-*-netbsd*) machine=macppc ;;
2274 sparc*-*-netbsd*) machine=sparc ;;
2275 vax-*-netbsd*) machine=vax ;;
2276 arm-*-netbsd*) machine=arm ;;
2277 x86_64-*-netbsd*) machine=amdx86-64 ;;
2278 hppa-*-netbsd*) machine=hp800 ;;
2279 shle-*-netbsd*) machine=sh3el ;;
2280 esac
2281 ;;
2282
2283 ## OpenBSD ports
2284 *-*-openbsd* )
2285 opsys=openbsd
2286 case "${canonical}" in
2287 alpha*-*-openbsd*) machine=alpha ;;
2288 arm-*-openbsd*) machine=arm ;;
2289 hppa-*-openbsd*) machine=hp9000s300 ;;
2290 i386-*-openbsd*) machine=intel386 ;;
2291 m68k-*-openbsd*) machine=hp9000s300 ;;
2292 m88k-*-openbsd*) machine=aviion ;;
2293 mips64-*-openbsd*) machine=mips64 ;;
2294 powerpc-*-openbsd*) machine=macppc ;;
2295 sh-*-openbsd*) machine=sh3el ;;
2296 sparc*-*-openbsd*) machine=sparc ;;
2297 vax-*-openbsd*) machine=vax ;;
2298 x86_64-*-openbsd*) machine=amdx86-64 ;;
2299 esac
2300 ;;
2301
2302 ## LynxOS ports
2303 *-*-lynxos* )
2304 opsys=lynxos
2305 case "${canonical}" in
2306 i[3456]86-*-lynxos*) machine=intel386 ;;
2307 powerpc-*-lynxos*) machine=powerpc ;;
2308 esac
2309 ;;
2310
2311 ## Acorn RISCiX:
2312 arm-acorn-riscix1.1* )
2313 machine=acorn opsys=riscix1-1
2314 ;;
2315 arm-acorn-riscix1.2* | arm-acorn-riscix )
2316 ## This name is riscix12 instead of riscix1.2
2317 ## to avoid a file name conflict on MSDOS.
2318 machine=acorn opsys=riscix12
2319 ;;
2320
2321 ## BSDI ports
2322 *-*-bsdi* )
2323 opsys=bsdi
2324 case "${canonical}" in
2325 i[345]86-*-bsdi*) machine=intel386 ;;
2326 sparc-*-bsdi*) machine=sparc ;;
2327 powerpc-*-bsdi*) machine=macppc ;;
2328 esac
2329 case "${canonical}" in
2330 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2331 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2332 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2333 *-*-bsdi3* ) opsys=bsdos3 ;;
2334 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2335 esac
2336 ;;
2337
2338 ## Alliant machines
2339 ## Strictly speaking, we need the version of the alliant operating
2340 ## system to choose the right machine file, but currently the
2341 ## configuration name doesn't tell us enough to choose the right
2342 ## one; we need to give alliants their own operating system name to
2343 ## do this right. When someone cares, they can help us.
2344 fx80-alliant-* )
2345 machine=alliant4 opsys=bsd4-2
2346 ;;
2347 i860-alliant-* )
2348 machine=alliant-2800 opsys=bsd4-3
2349 ;;
2350
2351 ## Alpha (DEC) machines.
2352 alpha*-dec-osf* )
2353 machine=alpha opsys=osf1
2354 # This is needed to find X11R6.1 libraries for certain tests.
2355 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2356 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2357 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2358 # due to non-traditional preprocessing with the current compiler
2359 # defaults. OSF 4 can also have that compiler version, and there
2360 # seems always to have been a usable /usr/bin/cpp.
2361 NON_GNU_CPP=/usr/bin/cpp
2362 case "${canonical}" in
2363 alpha*-dec-osf[5-9]*)
2364 opsys=osf5-0 ;;
2365 esac
2366 ;;
2367
2368 alpha*-*-linux-gnu* )
2369 machine=alpha opsys=gnu-linux
2370 ;;
2371
2372 arm*-*-linux-gnu* )
2373 machine=arm opsys=gnu-linux
2374 ;;
2375
2376 ## Altos 3068
2377 m68*-altos-sysv* )
2378 machine=altos opsys=usg5-2
2379 ;;
2380
2381 ## Amdahl UTS
2382 580-amdahl-sysv* )
2383 machine=amdahl opsys=usg5-2-2
2384 ;;
2385
2386 ## Apollo, Domain/OS
2387 m68*-apollo-* )
2388 machine=apollo opsys=bsd4-3
2389 ;;
2390
2391 ## Apple Darwin / Mac OS X
2392 *-apple-darwin* )
2393 case "${canonical}" in
2394 i[3456]86-* ) machine=intel386 ;;
2395 powerpc-* ) machine=powermac ;;
2396 * ) unported=yes ;;
2397 esac
2398 opsys=darwin
2399 # Define CPP as follows to make autoconf work correctly.
2400 CPP="${CC-cc} -E -no-cpp-precomp"
2401 # Use fink packages if available.
2402 if test -d /sw/include && test -d /sw/lib; then
2403 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2404 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2405 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2406 fi
2407 ;;
2408
2409 ## AT&T 3b2, 3b5, 3b15, 3b20
2410 we32k-att-sysv* )
2411 machine=att3b opsys=usg5-2-2
2412 ;;
2413
2414 ## AT&T 3b1 - The Mighty Unix PC!
2415 m68*-att-sysv* )
2416 machine=7300 opsys=usg5-2-2
2417 ;;
2418
2419 ## Bull dpx20
2420 rs6000-bull-bosx* )
2421 machine=ibmrs6000 opsys=aix3-2
2422 ;;
2423
2424 ## Bull dpx2
2425 m68*-bull-sysv3* )
2426 machine=dpx2 opsys=usg5-3
2427 ;;
2428
2429 ## Bull sps7
2430 m68*-bull-sysv2* )
2431 machine=sps7 opsys=usg5-2
2432 ;;
2433
2434 ## CCI 5/32, 6/32 -- see "Tahoe".
2435
2436 ## Celerity
2437 ## I don't know what configuration name to use for this; config.sub
2438 ## doesn't seem to know anything about it. Hey, Celerity users, get
2439 ## in touch with us!
2440 celerity-celerity-bsd* )
2441 machine=celerity opsys=bsd4-2
2442 ;;
2443
2444 ## Clipper
2445 ## What operating systems does this chip run that Emacs has been
2446 ## tested on?
2447 clipper-* )
2448 machine=clipper
2449 ## We'll use the catch-all code at the bottom to guess the
2450 ## operating system.
2451 ;;
2452
2453 ## Compaq Nonstop
2454 mips-compaq-nonstopux* )
2455 machine=nonstopux opsys=nonstopux
2456 ;;
2457
2458 ## Convex
2459 *-convex-bsd* | *-convex-convexos* )
2460 machine=convex opsys=bsd4-3
2461 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2462 NON_GNU_CPP="cc -E -P"
2463 ;;
2464
2465 ## Cubix QBx/386
2466 i[3456]86-cubix-sysv* )
2467 machine=intel386 opsys=usg5-3
2468 ;;
2469
2470 ## Cydra 5
2471 cydra*-cydrome-sysv* )
2472 machine=cydra5 opsys=usg5-3
2473 ;;
2474
2475 ## Data General AViiON Machines
2476 ## DG changed naming conventions with the release of 5.4.4.10, they
2477 ## dropped the initial 5.4 but left the intervening R. Because of the
2478 ## R this shouldn't conflict with older versions of the OS (which I
2479 ## think were named like dgux4.*). In addition, DG new AViiONs series
2480 ## uses either Motorola M88k or Intel Pentium CPUs.
2481 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2482 machine=aviion opsys=dgux4
2483 ;;
2484 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2485 ## This name is dgux5-4-3 instead of dgux5-4r3
2486 ## to avoid a file name conflict on MSDOS.
2487 machine=aviion opsys=dgux5-4-3
2488 ;;
2489 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2490 machine=aviion opsys=dgux5-4r2
2491 ;;
2492 m88k-dg-dgux* )
2493 machine=aviion opsys=dgux
2494 ;;
2495
2496 ## Data General AViiON Intel (x86) Machines
2497 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2498 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2499 i[345]86-dg-dguxR4* )
2500 machine=aviion-intel opsys=dgux4
2501 ;;
2502
2503 ## DECstations
2504 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2505 machine=pmax opsys=bsd4-2
2506 ;;
2507 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2508 machine=pmax opsys=bsd4-3
2509 ;;
2510 mips-dec-ultrix* )
2511 machine=pmax opsys=ultrix4-3
2512 ;;
2513 mips-dec-osf* )
2514 machine=pmax opsys=osf1
2515 ;;
2516 mips-dec-mach_bsd4.3* )
2517 machine=pmax opsys=mach-bsd4-3
2518 ;;
2519
2520 ## Motorola Delta machines
2521 m68k-motorola-sysv* | m68000-motorola-sysv* )
2522 machine=delta opsys=usg5-3
2523 if test -z "`type gnucc | grep 'not found'`"
2524 then
2525 if test -s /etc/167config
2526 then CC="gnucc -m68040"
2527 else CC="gnucc -m68881"
2528 fi
2529 else
2530 if test -z "`type gcc | grep 'not found'`"
2531 then CC=gcc
2532 else CC=cc
2533 fi
2534 fi
2535 ;;
2536 m88k-motorola-sysv4* )
2537 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2538 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2539 # I hope there are not other 4.0 versions for this machine
2540 # which really need usg5-4 instead.
2541 machine=delta88k opsys=usg5-4-2
2542 ;;
2543 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2544 machine=delta88k opsys=usg5-3
2545 ;;
2546
2547 ## Dual machines
2548 m68*-dual-sysv* )
2549 machine=dual opsys=usg5-2
2550 ;;
2551 m68*-dual-uniplus* )
2552 machine=dual opsys=unipl5-2
2553 ;;
2554
2555 ## Elxsi 6400
2556 elxsi-elxsi-sysv* )
2557 machine=elxsi opsys=usg5-2
2558 ;;
2559
2560 ## Encore machines
2561 ns16k-encore-bsd* )
2562 machine=ns16000 opsys=umax
2563 ;;
2564
2565 ## The GEC 63 - apparently, this port isn't really finished yet.
2566 # I'm sure we finished off the last of the machines, though. -- fx
2567
2568 ## Gould Power Node and NP1
2569 pn-gould-bsd4.2* )
2570 machine=gould opsys=bsd4-2
2571 ;;
2572 pn-gould-bsd4.3* )
2573 machine=gould opsys=bsd4-3
2574 ;;
2575 np1-gould-bsd* )
2576 machine=gould-np1 opsys=bsd4-3
2577 ;;
2578
2579 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2580 ## as far as Emacs is concerned).
2581 m88k-harris-cxux* )
2582 # Build needs to be different on 7.0 and later releases
2583 case "`uname -r`" in
2584 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2585 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2586 esac
2587 NON_GNU_CPP="/lib/cpp"
2588 ;;
2589 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2590 m68k-harris-cxux* )
2591 machine=nh3000 opsys=cxux
2592 ;;
2593 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2594 powerpc-harris-powerunix )
2595 machine=nh6000 opsys=powerunix
2596 NON_GNU_CPP="cc -Xo -E -P"
2597 ;;
2598 ## SR2001/SR2201 running HI-UX/MPP
2599 hppa1.1-hitachi-hiuxmpp* )
2600 machine=sr2k opsys=hiuxmpp
2601 ;;
2602 hppa1.1-hitachi-hiuxwe2* )
2603 machine=sr2k opsys=hiuxwe2
2604 ;;
2605 ## Honeywell XPS100
2606 xps*-honeywell-sysv* )
2607 machine=xps100 opsys=usg5-2
2608 ;;
2609
2610 ## HP 9000 series 200 or 300
2611 m68*-hp-bsd* )
2612 machine=hp9000s300 opsys=bsd4-3
2613 ;;
2614 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2615 m68*-hp-hpux* )
2616 case "`uname -r`" in
2617 ## Someone's system reports A.B8.05 for this.
2618 ## I wonder what other possibilities there are.
2619 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2620 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2621 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2622 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2623 *) machine=hp9000s300 opsys=hpux ;;
2624 esac
2625 ;;
2626
2627 ## HP 9000 series 700 and 800, running HP/UX
2628 hppa*-hp-hpux7* )
2629 machine=hp800 opsys=hpux
2630 ;;
2631 hppa*-hp-hpux8* )
2632 machine=hp800 opsys=hpux8
2633 ;;
2634 hppa*-hp-hpux9shr* )
2635 machine=hp800 opsys=hpux9shr
2636 ;;
2637 hppa*-hp-hpux9* )
2638 machine=hp800 opsys=hpux9
2639 ;;
2640 hppa*-hp-hpux10.2* )
2641 machine=hp800 opsys=hpux10-20
2642 ;;
2643 hppa*-hp-hpux10* )
2644 machine=hp800 opsys=hpux10
2645 ;;
2646 hppa*-hp-hpux1[1-9]* )
2647 machine=hp800 opsys=hpux11
2648 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2649 ;;
2650
2651 hppa*-*-linux-gnu* )
2652 machine=hp800 opsys=gnu-linux
2653 ;;
2654
2655 ## HP 9000 series 700 and 800, running HP/UX
2656 hppa*-hp-hpux* )
2657 ## Cross-compilation? Nah!
2658 case "`uname -r`" in
2659 ## Someone's system reports A.B8.05 for this.
2660 ## I wonder what other possibilities there are.
2661 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2662 *.08.* ) machine=hp800 opsys=hpux8 ;;
2663 *.09.* ) machine=hp800 opsys=hpux9 ;;
2664 *) machine=hp800 opsys=hpux10 ;;
2665 esac
2666 ;;
2667 hppa*-*-nextstep* )
2668 machine=hp800 opsys=nextstep
2669 ;;
2670
2671 ## Orion machines
2672 orion-orion-bsd* )
2673 machine=orion opsys=bsd4-2
2674 ;;
2675 clipper-orion-bsd* )
2676 machine=orion105 opsys=bsd4-2
2677 ;;
2678
2679 ## IBM machines
2680 i[3456]86-ibm-aix1.1* )
2681 machine=ibmps2-aix opsys=usg5-2-2
2682 ;;
2683 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2684 machine=ibmps2-aix opsys=usg5-3
2685 ;;
2686 i370-ibm-aix*)
2687 machine=ibm370aix opsys=usg5-3
2688 ;;
2689 s390-*-linux-gnu* )
2690 machine=ibms390 opsys=gnu-linux
2691 ;;
2692 s390x-*-linux-gnu* )
2693 machine=ibms390x opsys=gnu-linux
2694 ;;
2695 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2696 machine=ibmrs6000 opsys=aix3-1
2697 ;;
2698 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2699 machine=ibmrs6000 opsys=aix3-2-5
2700 ;;
2701 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2702 machine=ibmrs6000 opsys=aix4-1
2703 ;;
2704 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2705 machine=ibmrs6000 opsys=aix4-2
2706 ;;
2707 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2708 machine=ibmrs6000 opsys=aix4-2
2709 ;;
2710 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2711 machine=ibmrs6000 opsys=aix4-2
2712 ;;
2713 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2714 machine=ibmrs6000 opsys=aix4
2715 ;;
2716 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2717 machine=ibmrs6000 opsys=aix4-1
2718 ;;
2719 rs6000-ibm-aix* | powerpc-ibm-aix* )
2720 machine=ibmrs6000 opsys=aix3-2
2721 ;;
2722 romp-ibm-bsd4.3* )
2723 machine=ibmrt opsys=bsd4-3
2724 ;;
2725 romp-ibm-bsd4.2* )
2726 machine=ibmrt opsys=bsd4-2
2727 ;;
2728 romp-ibm-aos4.3* )
2729 machine=ibmrt opsys=bsd4-3
2730 ;;
2731 romp-ibm-aos4.2* )
2732 machine=ibmrt opsys=bsd4-2
2733 ;;
2734 romp-ibm-aos* )
2735 machine=ibmrt opsys=bsd4-3
2736 ;;
2737 romp-ibm-bsd* )
2738 machine=ibmrt opsys=bsd4-3
2739 ;;
2740 romp-ibm-aix* )
2741 machine=ibmrt-aix opsys=usg5-2-2
2742 ;;
2743
2744 ## Integrated Solutions `Optimum V'
2745 m68*-isi-bsd4.2* )
2746 machine=isi-ov opsys=bsd4-2
2747 ;;
2748 m68*-isi-bsd4.3* )
2749 machine=isi-ov opsys=bsd4-3
2750 ;;
2751
2752 ## Intel 386 machines where we do care about the manufacturer
2753 i[3456]86-intsys-sysv* )
2754 machine=is386 opsys=usg5-2-2
2755 ;;
2756
2757 ## Prime EXL
2758 i[3456]86-prime-sysv* )
2759 machine=i386 opsys=usg5-3
2760 ;;
2761
2762 ## Sequent Symmetry running Dynix
2763 i[3456]86-sequent-bsd* )
2764 machine=symmetry opsys=bsd4-3
2765 ;;
2766
2767 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2768 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2769 machine=sequent-ptx opsys=ptx4
2770 NON_GNU_CPP=/lib/cpp
2771 ;;
2772
2773 ## Sequent Symmetry running DYNIX/ptx
2774 ## Use the old cpp rather than the newer ANSI one.
2775 i[3456]86-sequent-ptx* )
2776 machine=sequent-ptx opsys=ptx
2777 NON_GNU_CPP="/lib/cpp"
2778 ;;
2779
2780 ## ncr machine running svr4.3.
2781 i[3456]86-ncr-sysv4.3 )
2782 machine=ncr386 opsys=usg5-4-3
2783 ;;
2784
2785 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2786 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2787 i[3456]86-ncr-sysv* )
2788 machine=ncr386 opsys=usg5-4-2
2789 ;;
2790
2791 ## Intel Paragon OSF/1
2792 i860-intel-osf1* )
2793 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2794 ;;
2795
2796 ## Intel 860
2797 i860-*-sysv4* )
2798 machine=i860 opsys=usg5-4
2799 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2800 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2801 ;;
2802
2803 ## Macintosh PowerPC
2804 powerpc*-*-linux-gnu* )
2805 machine=macppc opsys=gnu-linux
2806 ;;
2807
2808 ## Masscomp machines
2809 m68*-masscomp-rtu* )
2810 machine=masscomp opsys=rtu
2811 ;;
2812
2813 ## Megatest machines
2814 m68*-megatest-bsd* )
2815 machine=mega68 opsys=bsd4-2
2816 ;;
2817
2818 ## Workstations sold by MIPS
2819 ## This is not necessarily all workstations using the MIPS processor -
2820 ## Irises are produced by SGI, and DECstations by DEC.
2821
2822 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2823 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2824 ## it gives for choosing between the alternatives seems to be "Use
2825 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2826 ## the BSD world." I'll assume that these are instructions for
2827 ## handling two odd situations, and that every other situation
2828 ## should use mips.h and usg5-2-2, they being listed first.
2829 mips-mips-usg* )
2830 machine=mips4
2831 ## Fall through to the general code at the bottom to decide on the OS.
2832 ;;
2833 mips-mips-riscos4* )
2834 machine=mips4 opsys=bsd4-3
2835 NON_GNU_CC="cc -systype bsd43"
2836 NON_GNU_CPP="cc -systype bsd43 -E"
2837 ;;
2838 mips-mips-riscos5* )
2839 machine=mips4 opsys=riscos5
2840 NON_GNU_CC="cc -systype bsd43"
2841 NON_GNU_CPP="cc -systype bsd43 -E"
2842 ;;
2843 mips-mips-bsd* )
2844 machine=mips opsys=bsd4-3
2845 ;;
2846 mips-mips-* )
2847 machine=mips opsys=usg5-2-2
2848 ;;
2849
2850 ## NeXT
2851 m68*-next-* | m68k-*-nextstep* )
2852 machine=m68k opsys=nextstep
2853 ;;
2854
2855 ## The complete machine from National Semiconductor
2856 ns32k-ns-genix* )
2857 machine=ns32000 opsys=usg5-2
2858 ;;
2859
2860 ## NCR machines
2861 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2862 machine=tower32 opsys=usg5-2-2
2863 ;;
2864 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2865 machine=tower32v3 opsys=usg5-3
2866 ;;
2867
2868 ## NEC EWS4800
2869 mips-nec-sysv4*)
2870 machine=ews4800 opsys=ux4800
2871 ;;
2872
2873 ## Nixdorf Targon 31
2874 m68*-nixdorf-sysv* )
2875 machine=targon31 opsys=usg5-2-2
2876 ;;
2877
2878 ## Nu (TI or LMI)
2879 m68*-nu-sysv* )
2880 machine=nu opsys=usg5-2
2881 ;;
2882
2883 ## Plexus
2884 m68*-plexus-sysv* )
2885 machine=plexus opsys=usg5-2
2886 ;;
2887
2888 ## Pyramid machines
2889 ## I don't really have any idea what sort of processor the Pyramid has,
2890 ## so I'm assuming it is its own architecture.
2891 pyramid-pyramid-bsd* )
2892 machine=pyramid opsys=bsd4-2
2893 ;;
2894
2895 ## Sequent Balance
2896 ns32k-sequent-bsd4.2* )
2897 machine=sequent opsys=bsd4-2
2898 ;;
2899 ns32k-sequent-bsd4.3* )
2900 machine=sequent opsys=bsd4-3
2901 ;;
2902
2903 ## Siemens Nixdorf
2904 mips-siemens-sysv* | mips-sni-sysv*)
2905 machine=mips-siemens opsys=usg5-4
2906 NON_GNU_CC=/usr/ccs/bin/cc
2907 NON_GNU_CPP=/usr/ccs/lib/cpp
2908 ;;
2909
2910 ## Silicon Graphics machines
2911 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2912 m68*-sgi-iris3.5* )
2913 machine=irist opsys=iris3-5
2914 ;;
2915 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2916 machine=irist opsys=iris3-6
2917 ;;
2918 ## Iris 4D
2919 mips-sgi-irix3* )
2920 machine=iris4d opsys=irix3-3
2921 ;;
2922 mips-sgi-irix4* )
2923 machine=iris4d opsys=irix4-0
2924 ;;
2925 mips-sgi-irix6.5 )
2926 machine=iris4d opsys=irix6-5
2927 # Without defining _LANGUAGE_C, things get masked out in the headers
2928 # so that, for instance, grepping for `free' in stdlib.h fails and
2929 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2930 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2931 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2932 ;;
2933 mips-sgi-irix6* )
2934 machine=iris4d opsys=irix6-0
2935 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2936 # but presumably it does no harm.
2937 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2938 # -32 probably isn't necessary in later v.6s -- anyone know which?
2939 NON_GCC_TEST_OPTIONS=-32
2940 ;;
2941 mips-sgi-irix5.[01]* )
2942 machine=iris4d opsys=irix5-0
2943 ;;
2944 mips-sgi-irix5* | mips-sgi-irix* )
2945 machine=iris4d opsys=irix5-2
2946 ;;
2947
2948 ## SONY machines
2949 m68*-sony-bsd4.2* )
2950 machine=news opsys=bsd4-2
2951 ;;
2952 m68*-sony-bsd4.3* )
2953 machine=news opsys=bsd4-3
2954 ;;
2955 m68*-sony-newsos3* | m68*-sony-news3*)
2956 machine=news opsys=bsd4-3
2957 ;;
2958 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2959 machine=news-risc opsys=bsd4-3
2960 ;;
2961 mips-sony-newsos6* )
2962 machine=news-r6 opsys=newsos6
2963 ;;
2964 mips-sony-news* )
2965 machine=news-risc opsys=newsos5
2966 ;;
2967
2968 ## Stride
2969 m68*-stride-sysv* )
2970 machine=stride opsys=usg5-2
2971 ;;
2972
2973 ## Suns
2974 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2975 machine=sparc opsys=gnu-linux
2976 ;;
2977
2978 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2979 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2980 | rs6000-*-solaris2*)
2981 case "${canonical}" in
2982 m68*-sunos1* ) machine=sun1 ;;
2983 m68*-sunos2* ) machine=sun2 ;;
2984 m68* ) machine=sun3 ;;
2985 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2986 i[3456]86-*-* ) machine=intel386 ;;
2987 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2988 powerpcle* ) machine=powerpcle ;;
2989 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2990 sparc* ) machine=sparc ;;
2991 * ) unported=yes ;;
2992 esac
2993 case "${canonical}" in
2994 ## The Sun386 didn't get past 4.0.
2995 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2996 *-sunos4.0* ) opsys=sunos4-0 ;;
2997 *-sunos4.1.[3-9]*noshare )
2998 ## This name is sunos413 instead of sunos4-1-3
2999 ## to avoid a file name conflict on MSDOS.
3000 opsys=sunos413
3001 NON_GNU_CPP=/usr/lib/cpp
3002 NON_GCC_TEST_OPTIONS=-Bstatic
3003 GCC_TEST_OPTIONS=-static
3004 ;;
3005 *-sunos4.1.[3-9]* | *-sunos4shr*)
3006 opsys=sunos4shr
3007 NON_GNU_CPP=/usr/lib/cpp
3008 ;;
3009 *-sunos4* | *-sunos )
3010 opsys=sunos4-1
3011 NON_GCC_TEST_OPTIONS=-Bstatic
3012 GCC_TEST_OPTIONS=-static
3013 ;;
3014 *-sunos5.3* | *-solaris2.3* )
3015 opsys=sol2-3
3016 NON_GNU_CPP=/usr/ccs/lib/cpp
3017 ;;
3018 *-sunos5.4* | *-solaris2.4* )
3019 opsys=sol2-4
3020 NON_GNU_CPP=/usr/ccs/lib/cpp
3021 RANLIB="ar -ts"
3022 ;;
3023 *-sunos5.5* | *-solaris2.5* )
3024 opsys=sol2-5
3025 NON_GNU_CPP=/usr/ccs/lib/cpp
3026 RANLIB="ar -ts"
3027 ;;
3028 *-sunos5.6* | *-solaris2.6* )
3029 opsys=sol2-6
3030 NON_GNU_CPP=/usr/ccs/lib/cpp
3031 RANLIB="ar -ts"
3032 ;;
3033 *-sunos5* | *-solaris* )
3034 opsys=sol2-6
3035 emacs_check_sunpro_c=yes
3036 NON_GNU_CPP=/usr/ccs/lib/cpp
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 ## If not using gcc, and on Solaris, and no CPP specified, see if
4193 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4194 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4195 test x"$CPP" = x; then
4196 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4197 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4198
4199 if test "${emacs_cv_sunpro_c+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208
4209 int
4210 main ()
4211 {
4212 #ifndef __SUNPRO_C
4213 fail;
4214 #endif
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext conftest$ac_exeext
4221 if { (ac_try="$ac_link"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_link") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest$ac_exeext &&
4237 $as_test_x conftest$ac_exeext; then
4238 emacs_cv_sunpro_c=yes
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 emacs_cv_sunpro_c=no
4244 fi
4245
4246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4247 conftest$ac_exeext conftest.$ac_ext
4248 fi
4249
4250 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4251 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4252
4253 if test x"$emacs_cv_sunpro_c" = xyes; then
4254 NON_GNU_CPP="$CC -E -Xs"
4255 fi
4256 fi
4257
4258 #### Some systems specify a CPP to use unless we are using GCC.
4259 #### Now that we know whether we are using GCC, we can decide whether
4260 #### to use that one.
4261 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4262 then
4263 CPP="$NON_GNU_CPP"
4264 fi
4265
4266 #### Some systems specify a CC to use unless we are using GCC.
4267 #### Now that we know whether we are using GCC, we can decide whether
4268 #### to use that one.
4269 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4270 test x$cc_specified != xyes
4271 then
4272 CC="$NON_GNU_CC"
4273 fi
4274
4275 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4276 then
4277 CC="$CC $GCC_TEST_OPTIONS"
4278 fi
4279
4280 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4281 then
4282 CC="$CC $NON_GCC_TEST_OPTIONS"
4283 fi
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4291 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4292 # On Suns, sometimes $CPP names a directory.
4293 if test -n "$CPP" && test -d "$CPP"; then
4294 CPP=
4295 fi
4296 if test -z "$CPP"; then
4297 if test "${ac_cv_prog_CPP+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4302 do
4303 ac_preproc_ok=false
4304 for ac_c_preproc_warn_flag in '' yes
4305 do
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #ifdef __STDC__
4319 # include <limits.h>
4320 #else
4321 # include <assert.h>
4322 #endif
4323 Syntax error
4324 _ACEOF
4325 if { (ac_try="$ac_cpp conftest.$ac_ext"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } >/dev/null && {
4338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4340 }; then
4341 :
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 # Broken: fails on valid input.
4347 continue
4348 fi
4349
4350 rm -f conftest.err conftest.$ac_ext
4351
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <ac_nonexistent.h>
4361 _ACEOF
4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4377 }; then
4378 # Broken: success on invalid input.
4379 continue
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4387 fi
4388
4389 rm -f conftest.err conftest.$ac_ext
4390
4391 done
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4395 break
4396 fi
4397
4398 done
4399 ac_cv_prog_CPP=$CPP
4400
4401 fi
4402 CPP=$ac_cv_prog_CPP
4403 else
4404 ac_cv_prog_CPP=$CPP
4405 fi
4406 { echo "$as_me:$LINENO: result: $CPP" >&5
4407 echo "${ECHO_T}$CPP" >&6; }
4408 ac_preproc_ok=false
4409 for ac_c_preproc_warn_flag in '' yes
4410 do
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error" is here to catch this case.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #ifdef __STDC__
4424 # include <limits.h>
4425 #else
4426 # include <assert.h>
4427 #endif
4428 Syntax error
4429 _ACEOF
4430 if { (ac_try="$ac_cpp conftest.$ac_ext"
4431 case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434 esac
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4437 ac_status=$?
4438 grep -v '^ *+' conftest.er1 >conftest.err
4439 rm -f conftest.er1
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } >/dev/null && {
4443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4445 }; then
4446 :
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 # Broken: fails on valid input.
4452 continue
4453 fi
4454
4455 rm -f conftest.err conftest.$ac_ext
4456
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4466 _ACEOF
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4468 case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471 esac
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null && {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 }; then
4483 # Broken: success on invalid input.
4484 continue
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 # Passes both tests.
4490 ac_preproc_ok=:
4491 break
4492 fi
4493
4494 rm -f conftest.err conftest.$ac_ext
4495
4496 done
4497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498 rm -f conftest.err conftest.$ac_ext
4499 if $ac_preproc_ok; then
4500 :
4501 else
4502 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4503 See \`config.log' for more details." >&5
4504 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4505 See \`config.log' for more details." >&2;}
4506 { (exit 1); exit 1; }; }
4507 fi
4508
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
4515
4516 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4517 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4518 if test "${ac_cv_path_GREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 # Extract the first word of "grep ggrep" to use in msg output
4522 if test -z "$GREP"; then
4523 set dummy grep ggrep; ac_prog_name=$2
4524 if test "${ac_cv_path_GREP+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 ac_path_GREP_found=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_prog in grep ggrep; do
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4538 # Check for GNU ac_path_GREP and select it if it is found.
4539 # Check for GNU $ac_path_GREP
4540 case `"$ac_path_GREP" --version 2>&1` in
4541 *GNU*)
4542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4543 *)
4544 ac_count=0
4545 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4546 while :
4547 do
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 echo 'GREP' >> "conftest.nl"
4552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554 ac_count=`expr $ac_count + 1`
4555 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_GREP="$ac_path_GREP"
4558 ac_path_GREP_max=$ac_count
4559 fi
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4562 done
4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564 esac
4565
4566
4567 $ac_path_GREP_found && break 3
4568 done
4569 done
4570
4571 done
4572 IFS=$as_save_IFS
4573
4574
4575 fi
4576
4577 GREP="$ac_cv_path_GREP"
4578 if test -z "$GREP"; then
4579 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4580 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4581 { (exit 1); exit 1; }; }
4582 fi
4583
4584 else
4585 ac_cv_path_GREP=$GREP
4586 fi
4587
4588
4589 fi
4590 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4591 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4592 GREP="$ac_cv_path_GREP"
4593
4594
4595 { echo "$as_me:$LINENO: checking for egrep" >&5
4596 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4597 if test "${ac_cv_path_EGREP+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4601 then ac_cv_path_EGREP="$GREP -E"
4602 else
4603 # Extract the first word of "egrep" to use in msg output
4604 if test -z "$EGREP"; then
4605 set dummy egrep; ac_prog_name=$2
4606 if test "${ac_cv_path_EGREP+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 ac_path_EGREP_found=false
4610 # Loop through the user's path and test for each of PROGNAME-LIST
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_prog in egrep; do
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4619 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4620 # Check for GNU ac_path_EGREP and select it if it is found.
4621 # Check for GNU $ac_path_EGREP
4622 case `"$ac_path_EGREP" --version 2>&1` in
4623 *GNU*)
4624 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4625 *)
4626 ac_count=0
4627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4628 while :
4629 do
4630 cat "conftest.in" "conftest.in" >"conftest.tmp"
4631 mv "conftest.tmp" "conftest.in"
4632 cp "conftest.in" "conftest.nl"
4633 echo 'EGREP' >> "conftest.nl"
4634 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4636 ac_count=`expr $ac_count + 1`
4637 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4638 # Best one so far, save it but keep looking for a better one
4639 ac_cv_path_EGREP="$ac_path_EGREP"
4640 ac_path_EGREP_max=$ac_count
4641 fi
4642 # 10*(2^10) chars as input seems more than enough
4643 test $ac_count -gt 10 && break
4644 done
4645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4646 esac
4647
4648
4649 $ac_path_EGREP_found && break 3
4650 done
4651 done
4652
4653 done
4654 IFS=$as_save_IFS
4655
4656
4657 fi
4658
4659 EGREP="$ac_cv_path_EGREP"
4660 if test -z "$EGREP"; then
4661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4663 { (exit 1); exit 1; }; }
4664 fi
4665
4666 else
4667 ac_cv_path_EGREP=$EGREP
4668 fi
4669
4670
4671 fi
4672 fi
4673 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4674 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4675 EGREP="$ac_cv_path_EGREP"
4676
4677
4678
4679 { echo "$as_me:$LINENO: checking for AIX" >&5
4680 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4681 cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h. */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #ifdef _AIX
4688 yes
4689 #endif
4690
4691 _ACEOF
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 $EGREP "yes" >/dev/null 2>&1; then
4694 { echo "$as_me:$LINENO: result: yes" >&5
4695 echo "${ECHO_T}yes" >&6; }
4696 cat >>confdefs.h <<\_ACEOF
4697 #define _ALL_SOURCE 1
4698 _ACEOF
4699
4700 else
4701 { echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6; }
4703 fi
4704 rm -f conftest*
4705
4706
4707
4708 cat >>confdefs.h <<\_ACEOF
4709 #define _GNU_SOURCE 1
4710 _ACEOF
4711
4712
4713
4714 ### Use -Wno-pointer-sign if the compiler supports it
4715 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4716 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4717 SAVE_CFLAGS="$CFLAGS"
4718 CFLAGS="$CFLAGS -Wno-pointer-sign"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725
4726 int
4727 main ()
4728 {
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4736 case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_compile") 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && {
4748 test -z "$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 } && test -s conftest.$ac_objext; then
4751 has_option=yes
4752 else
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 has_option=no
4757 fi
4758
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 if test $has_option = yes; then
4761 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4762 fi
4763 { echo "$as_me:$LINENO: result: $has_option" >&5
4764 echo "${ECHO_T}$has_option" >&6; }
4765 CFLAGS="$SAVE_CFLAGS"
4766 unset has_option
4767 unset SAVE_CFLAGS
4768
4769 #### Some other nice autoconf tests.
4770
4771 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4772 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4773 LN_S=$as_ln_s
4774 if test "$LN_S" = "ln -s"; then
4775 { echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6; }
4777 else
4778 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4779 echo "${ECHO_T}no, using $LN_S" >&6; }
4780 fi
4781
4782 ac_ext=c
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4789 # On Suns, sometimes $CPP names a directory.
4790 if test -n "$CPP" && test -d "$CPP"; then
4791 CPP=
4792 fi
4793 if test -z "$CPP"; then
4794 if test "${ac_cv_prog_CPP+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 # Double quotes because CPP needs to be expanded
4798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4799 do
4800 ac_preproc_ok=false
4801 for ac_c_preproc_warn_flag in '' yes
4802 do
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
4805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
4807 # On the NeXT, cc -E runs the code through the compiler's parser,
4808 # not just through cpp. "Syntax error" is here to catch this case.
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #ifdef __STDC__
4816 # include <limits.h>
4817 #else
4818 # include <assert.h>
4819 #endif
4820 Syntax error
4821 _ACEOF
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null && {
4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4837 }; then
4838 :
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 # Broken: fails on valid input.
4844 continue
4845 fi
4846
4847 rm -f conftest.err conftest.$ac_ext
4848
4849 # OK, works on sane cases. Now check whether nonexistent headers
4850 # can be detected and how.
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <ac_nonexistent.h>
4858 _ACEOF
4859 if { (ac_try="$ac_cpp conftest.$ac_ext"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4866 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null && {
4872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4873 test ! -s conftest.err
4874 }; then
4875 # Broken: success on invalid input.
4876 continue
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 # Passes both tests.
4882 ac_preproc_ok=:
4883 break
4884 fi
4885
4886 rm -f conftest.err conftest.$ac_ext
4887
4888 done
4889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4890 rm -f conftest.err conftest.$ac_ext
4891 if $ac_preproc_ok; then
4892 break
4893 fi
4894
4895 done
4896 ac_cv_prog_CPP=$CPP
4897
4898 fi
4899 CPP=$ac_cv_prog_CPP
4900 else
4901 ac_cv_prog_CPP=$CPP
4902 fi
4903 { echo "$as_me:$LINENO: result: $CPP" >&5
4904 echo "${ECHO_T}$CPP" >&6; }
4905 ac_preproc_ok=false
4906 for ac_c_preproc_warn_flag in '' yes
4907 do
4908 # Use a header file that comes with gcc, so configuring glibc
4909 # with a fresh cross-compiler works.
4910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 # <limits.h> exists even on freestanding compilers.
4912 # On the NeXT, cc -E runs the code through the compiler's parser,
4913 # not just through cpp. "Syntax error" is here to catch this case.
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920 #ifdef __STDC__
4921 # include <limits.h>
4922 #else
4923 # include <assert.h>
4924 #endif
4925 Syntax error
4926 _ACEOF
4927 if { (ac_try="$ac_cpp conftest.$ac_ext"
4928 case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } >/dev/null && {
4940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 }; then
4943 :
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 # Broken: fails on valid input.
4949 continue
4950 fi
4951
4952 rm -f conftest.err conftest.$ac_ext
4953
4954 # OK, works on sane cases. Now check whether nonexistent headers
4955 # can be detected and how.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <ac_nonexistent.h>
4963 _ACEOF
4964 if { (ac_try="$ac_cpp conftest.$ac_ext"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null && {
4977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 }; then
4980 # Broken: success on invalid input.
4981 continue
4982 else
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 # Passes both tests.
4987 ac_preproc_ok=:
4988 break
4989 fi
4990
4991 rm -f conftest.err conftest.$ac_ext
4992
4993 done
4994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995 rm -f conftest.err conftest.$ac_ext
4996 if $ac_preproc_ok; then
4997 :
4998 else
4999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5000 See \`config.log' for more details." >&5
5001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5002 See \`config.log' for more details." >&2;}
5003 { (exit 1); exit 1; }; }
5004 fi
5005
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5011
5012 # Find a good install program. We prefer a C program (faster),
5013 # so one script is as good as another. But avoid the broken or
5014 # incompatible versions:
5015 # SysV /etc/install, /usr/sbin/install
5016 # SunOS /usr/etc/install
5017 # IRIX /sbin/install
5018 # AIX /bin/install
5019 # AmigaOS /C/install, which installs bootblocks on floppy discs
5020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5023 # OS/2's system install, which has a completely different semantic
5024 # ./install, which can be erroneously created by make from ./install.sh.
5025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5027 if test -z "$INSTALL"; then
5028 if test "${ac_cv_path_install+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 # Account for people who put trailing slashes in PATH elements.
5037 case $as_dir/ in
5038 ./ | .// | /cC/* | \
5039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5041 /usr/ucb/* ) ;;
5042 *)
5043 # OSF1 and SCO ODT 3.0 have their own names for install.
5044 # Don't use installbsd from OSF since it installs stuff as root
5045 # by default.
5046 for ac_prog in ginstall scoinst install; do
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5049 if test $ac_prog = install &&
5050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5051 # AIX install. It has an incompatible calling convention.
5052 :
5053 elif test $ac_prog = install &&
5054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5055 # program-specific install script used by HP pwplus--don't use.
5056 :
5057 else
5058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5059 break 3
5060 fi
5061 fi
5062 done
5063 done
5064 ;;
5065 esac
5066 done
5067 IFS=$as_save_IFS
5068
5069
5070 fi
5071 if test "${ac_cv_path_install+set}" = set; then
5072 INSTALL=$ac_cv_path_install
5073 else
5074 # As a last resort, use the slow shell script. Don't cache a
5075 # value for INSTALL within a source directory, because that will
5076 # break other packages using the cache if that directory is
5077 # removed, or if the value is a relative name.
5078 INSTALL=$ac_install_sh
5079 fi
5080 fi
5081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5082 echo "${ECHO_T}$INSTALL" >&6; }
5083
5084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5085 # It thinks the first close brace ends the variable substitution.
5086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5087
5088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5089
5090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5091
5092 if test "x$RANLIB" = x; then
5093 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_prog_RANLIB+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 if test -n "$RANLIB"; then
5102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115 done
5116 done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 RANLIB=$ac_cv_prog_RANLIB
5122 if test -n "$RANLIB"; then
5123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5124 echo "${ECHO_T}$RANLIB" >&6; }
5125 else
5126 { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5128 fi
5129
5130
5131 fi
5132 if test -z "$ac_cv_prog_RANLIB"; then
5133 ac_ct_RANLIB=$RANLIB
5134 # Extract the first word of "ranlib", so it can be a program name with args.
5135 set dummy ranlib; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 if test -n "$ac_ct_RANLIB"; then
5142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_ac_ct_RANLIB="ranlib"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5154 fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5162 if test -n "$ac_ct_RANLIB"; then
5163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5165 else
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170 if test "x$ac_ct_RANLIB" = x; then
5171 RANLIB=":"
5172 else
5173 case $cross_compiling:$ac_tool_warned in
5174 yes:)
5175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet. If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&5
5178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5179 whose name does not start with the host triplet. If you think this
5180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5181 ac_tool_warned=yes ;;
5182 esac
5183 RANLIB=$ac_ct_RANLIB
5184 fi
5185 else
5186 RANLIB="$ac_cv_prog_RANLIB"
5187 fi
5188
5189 fi
5190 # Extract the first word of "install-info", so it can be a program name with args.
5191 set dummy install-info; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 case $INSTALL_INFO in
5198 [\\/]* | ?:[\\/]*)
5199 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5200 ;;
5201 *)
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 ;;
5218 esac
5219 fi
5220 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5221 if test -n "$INSTALL_INFO"; then
5222 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5223 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5224 else
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5227 fi
5228
5229
5230 # Extract the first word of "install-info", so it can be a program name with args.
5231 set dummy install-info; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 case $INSTALL_INFO in
5238 [\\/]* | ?:[\\/]*)
5239 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5240 ;;
5241 *)
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in /usr/sbin
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257 ;;
5258 esac
5259 fi
5260 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5261 if test -n "$INSTALL_INFO"; then
5262 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5263 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5264 else
5265 { echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6; }
5267 fi
5268
5269
5270 # Extract the first word of "install-info", so it can be a program name with args.
5271 set dummy install-info; ac_word=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 case $INSTALL_INFO in
5278 [\\/]* | ?:[\\/]*)
5279 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5280 ;;
5281 *)
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in /sbin
5284 do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293 done
5294 done
5295 IFS=$as_save_IFS
5296
5297 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5298 ;;
5299 esac
5300 fi
5301 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5302 if test -n "$INSTALL_INFO"; then
5303 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5304 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5305 else
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5308 fi
5309
5310
5311 # Extract the first word of "gzip", so it can be a program name with args.
5312 set dummy gzip; ac_word=$2
5313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5315 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 case $GZIP_PROG in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5321 ;;
5322 *)
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 ;;
5339 esac
5340 fi
5341 GZIP_PROG=$ac_cv_path_GZIP_PROG
5342 if test -n "$GZIP_PROG"; then
5343 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5344 echo "${ECHO_T}$GZIP_PROG" >&6; }
5345 else
5346 { echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6; }
5348 fi
5349
5350
5351
5352
5353 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5354 then
5355 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5356 fi
5357
5358 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5359 then
5360 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5361 fi
5362
5363
5364 late_LDFLAGS=$LDFLAGS
5365 if test "$GCC" = yes; then
5366 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5367 else
5368 LDFLAGS="$LDFLAGS -znocombreloc"
5369 fi
5370
5371 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5372 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5373 cat >conftest.$ac_ext <<_ACEOF
5374 main(){return 0;}
5375 _ACEOF
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (ac_try="$ac_link"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_link") 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest$ac_exeext &&
5393 $as_test_x conftest$ac_exeext; then
5394 { echo "$as_me:$LINENO: result: yes" >&5
5395 echo "${ECHO_T}yes" >&6; }
5396 else
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5399
5400 LDFLAGS=$late_LDFLAGS
5401 { echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; }
5403 fi
5404
5405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5406 conftest$ac_exeext conftest.$ac_ext
5407
5408 #### Extract some information from the operating system and machine files.
5409
5410 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5411 - which libraries the lib-src programs will want, and
5412 - whether the GNU malloc routines are usable..." >&5
5413 echo "$as_me: checking the machine- and system-dependent files to find out
5414 - which libraries the lib-src programs will want, and
5415 - whether the GNU malloc routines are usable..." >&6;}
5416
5417 ### First figure out CFLAGS (which we use for running the compiler here)
5418 ### and REAL_CFLAGS (which we use for real compilation).
5419 ### The two are the same except on a few systems, where they are made
5420 ### different to work around various lossages. For example,
5421 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5422 ### as implying static linking.
5423
5424 ### If the CFLAGS env var is specified, we use that value
5425 ### instead of the default.
5426
5427 ### It's not important that this name contain the PID; you can't run
5428 ### two configures in the same directory and have anything work
5429 ### anyway.
5430 tempcname="conftest.c"
5431
5432 echo '
5433 #include "'${srcdir}'/src/'${opsysfile}'"
5434 #include "'${srcdir}'/src/'${machfile}'"
5435 #ifndef LIBS_MACHINE
5436 #define LIBS_MACHINE
5437 #endif
5438 #ifndef LIBS_SYSTEM
5439 #define LIBS_SYSTEM
5440 #endif
5441 #ifndef C_SWITCH_SYSTEM
5442 #define C_SWITCH_SYSTEM
5443 #endif
5444 #ifndef C_SWITCH_MACHINE
5445 #define C_SWITCH_MACHINE
5446 #endif
5447 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5448 configure___ c_switch_system=C_SWITCH_SYSTEM
5449 configure___ c_switch_machine=C_SWITCH_MACHINE
5450
5451 #ifndef LIB_X11_LIB
5452 #define LIB_X11_LIB -lX11
5453 #endif
5454
5455 #ifndef LIBX11_MACHINE
5456 #define LIBX11_MACHINE
5457 #endif
5458
5459 #ifndef LIBX11_SYSTEM
5460 #define LIBX11_SYSTEM
5461 #endif
5462 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5463
5464 #ifdef UNEXEC
5465 configure___ unexec=UNEXEC
5466 #else
5467 configure___ unexec=unexec.o
5468 #endif
5469
5470 #ifdef SYSTEM_MALLOC
5471 configure___ system_malloc=yes
5472 #else
5473 configure___ system_malloc=no
5474 #endif
5475
5476 #ifdef USE_MMAP_FOR_BUFFERS
5477 configure___ use_mmap_for_buffers=yes
5478 #else
5479 configure___ use_mmap_for_buffers=no
5480 #endif
5481
5482 #ifndef C_DEBUG_SWITCH
5483 #define C_DEBUG_SWITCH -g
5484 #endif
5485
5486 #ifndef C_OPTIMIZE_SWITCH
5487 #ifdef __GNUC__
5488 #define C_OPTIMIZE_SWITCH -O2
5489 #else
5490 #define C_OPTIMIZE_SWITCH -O
5491 #endif
5492 #endif
5493
5494 #ifndef C_WARNINGS_SWITCH
5495 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5496 #endif
5497
5498 #ifndef LD_SWITCH_MACHINE
5499 #define LD_SWITCH_MACHINE
5500 #endif
5501
5502 #ifndef LD_SWITCH_SYSTEM
5503 #define LD_SWITCH_SYSTEM
5504 #endif
5505
5506 #ifndef LD_SWITCH_X_SITE_AUX
5507 #define LD_SWITCH_X_SITE_AUX
5508 #endif
5509
5510 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5511 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5512
5513 #ifdef THIS_IS_CONFIGURE
5514
5515 /* Get the CFLAGS for tests in configure. */
5516 #ifdef __GNUC__
5517 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5518 #else
5519 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5520 #endif
5521
5522 #else /* not THIS_IS_CONFIGURE */
5523
5524 /* Get the CFLAGS for real compilation. */
5525 #ifdef __GNUC__
5526 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5527 #else
5528 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5529 #endif
5530
5531 #endif /* not THIS_IS_CONFIGURE */
5532 ' > ${tempcname}
5533
5534 # The value of CPP is a quoted variable reference, so we need to do this
5535 # to get its actual value...
5536 CPP=`eval "echo $CPP"`
5537 eval `${CPP} -Isrc ${tempcname} \
5538 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5539 if test "x$SPECIFIED_CFLAGS" = x; then
5540 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5541 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5542 else
5543 REAL_CFLAGS="$CFLAGS"
5544 fi
5545 rm ${tempcname}
5546
5547 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5548
5549 ### Make sure subsequent tests use flags consistent with the build flags.
5550
5551 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5552 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5553 else
5554 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5555 fi
5556
5557
5558
5559 # Check whether --enable-largefile was given.
5560 if test "${enable_largefile+set}" = set; then
5561 enableval=$enable_largefile;
5562 fi
5563
5564 if test "$enable_largefile" != no; then
5565
5566 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 ac_cv_sys_largefile_CC=no
5572 if test "$GCC" != yes; then
5573 ac_save_CC=$CC
5574 while :; do
5575 # IRIX 6.2 and later do not support large files by default,
5576 # so use the C compiler's -n32 option if that helps.
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <sys/types.h>
5584 /* Check that off_t can represent 2**63 - 1 correctly.
5585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5586 since some C++ compilers masquerading as C compilers
5587 incorrectly reject 9223372036854775807. */
5588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5590 && LARGE_OFF_T % 2147483647 == 1)
5591 ? 1 : -1];
5592 int
5593 main ()
5594 {
5595
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 break
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622
5623 fi
5624
5625 rm -f core conftest.err conftest.$ac_objext
5626 CC="$CC -n32"
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_sys_largefile_CC=' -n32'; break
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650 fi
5651
5652 rm -f core conftest.err conftest.$ac_objext
5653 break
5654 done
5655 CC=$ac_save_CC
5656 rm -f conftest.$ac_ext
5657 fi
5658 fi
5659 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5660 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no; then
5662 CC=$CC$ac_cv_sys_largefile_CC
5663 fi
5664
5665 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 while :; do
5671 cat >conftest.$ac_ext <<_ACEOF
5672 /* confdefs.h. */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <sys/types.h>
5678 /* Check that off_t can represent 2**63 - 1 correctly.
5679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5680 since some C++ compilers masquerading as C compilers
5681 incorrectly reject 9223372036854775807. */
5682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5684 && LARGE_OFF_T % 2147483647 == 1)
5685 ? 1 : -1];
5686 int
5687 main ()
5688 {
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (ac_try="$ac_compile"
5696 case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_compile") 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && {
5708 test -z "$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 } && test -s conftest.$ac_objext; then
5711 ac_cv_sys_file_offset_bits=no; break
5712 else
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716
5717 fi
5718
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #define _FILE_OFFSET_BITS 64
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5735 ? 1 : -1];
5736 int
5737 main ()
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_cv_sys_file_offset_bits=64; break
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 ac_cv_sys_file_offset_bits=unknown
5771 break
5772 done
5773 fi
5774 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5775 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5776 case $ac_cv_sys_file_offset_bits in #(
5777 no | unknown) ;;
5778 *)
5779 cat >>confdefs.h <<_ACEOF
5780 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5781 _ACEOF
5782 ;;
5783 esac
5784 rm -f conftest*
5785 if test $ac_cv_sys_file_offset_bits = unknown; then
5786 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5787 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5788 if test "${ac_cv_sys_large_files+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 while :; do
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #include <sys/types.h>
5799 /* Check that off_t can represent 2**63 - 1 correctly.
5800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5801 since some C++ compilers masquerading as C compilers
5802 incorrectly reject 9223372036854775807. */
5803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5805 && LARGE_OFF_T % 2147483647 == 1)
5806 ? 1 : -1];
5807 int
5808 main ()
5809 {
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 ac_cv_sys_large_files=no; break
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836
5837
5838 fi
5839
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #define _LARGE_FILES 1
5848 #include <sys/types.h>
5849 /* Check that off_t can represent 2**63 - 1 correctly.
5850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5851 since some C++ compilers masquerading as C compilers
5852 incorrectly reject 9223372036854775807. */
5853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855 && LARGE_OFF_T % 2147483647 == 1)
5856 ? 1 : -1];
5857 int
5858 main ()
5859 {
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 ac_cv_sys_large_files=1; break
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 ac_cv_sys_large_files=unknown
5892 break
5893 done
5894 fi
5895 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5896 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5897 case $ac_cv_sys_large_files in #(
5898 no | unknown) ;;
5899 *)
5900 cat >>confdefs.h <<_ACEOF
5901 #define _LARGE_FILES $ac_cv_sys_large_files
5902 _ACEOF
5903 ;;
5904 esac
5905 rm -f conftest*
5906 fi
5907 fi
5908
5909
5910
5911 ### The standard library on x86-64 GNU/Linux distributions can
5912 ### be located in either /usr/lib64 or /usr/lib.
5913 case "${canonical}" in
5914 x86_64-*-linux-gnu* )
5915 if test -d /usr/lib64; then
5916
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_X86_64_LIB64_DIR 1
5919 _ACEOF
5920
5921 fi
5922 esac
5923
5924
5925
5926
5927 if test "${with_sound}" != "no"; then
5928 # Sound support for GNU/Linux and the free BSDs.
5929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5931 if test "${ac_cv_header_stdc+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <stdlib.h>
5941 #include <stdarg.h>
5942 #include <string.h>
5943 #include <float.h>
5944
5945 int
5946 main ()
5947 {
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_objext; then
5970 ac_cv_header_stdc=yes
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_header_stdc=no
5976 fi
5977
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979
5980 if test $ac_cv_header_stdc = yes; then
5981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <string.h>
5989
5990 _ACEOF
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "memchr" >/dev/null 2>&1; then
5993 :
5994 else
5995 ac_cv_header_stdc=no
5996 fi
5997 rm -f conftest*
5998
5999 fi
6000
6001 if test $ac_cv_header_stdc = yes; then
6002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6003 cat >conftest.$ac_ext <<_ACEOF
6004 /* confdefs.h. */
6005 _ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #include <stdlib.h>
6010
6011 _ACEOF
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "free" >/dev/null 2>&1; then
6014 :
6015 else
6016 ac_cv_header_stdc=no
6017 fi
6018 rm -f conftest*
6019
6020 fi
6021
6022 if test $ac_cv_header_stdc = yes; then
6023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6024 if test "$cross_compiling" = yes; then
6025 :
6026 else
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <ctype.h>
6034 #include <stdlib.h>
6035 #if ((' ' & 0x0FF) == 0x020)
6036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6038 #else
6039 # define ISLOWER(c) \
6040 (('a' <= (c) && (c) <= 'i') \
6041 || ('j' <= (c) && (c) <= 'r') \
6042 || ('s' <= (c) && (c) <= 'z'))
6043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6044 #endif
6045
6046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6047 int
6048 main ()
6049 {
6050 int i;
6051 for (i = 0; i < 256; i++)
6052 if (XOR (islower (i), ISLOWER (i))
6053 || toupper (i) != TOUPPER (i))
6054 return 2;
6055 return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest$ac_exeext
6059 if { (ac_try="$ac_link"
6060 case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 :
6079 else
6080 echo "$as_me: program exited with status $ac_status" >&5
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ( exit $ac_status )
6085 ac_cv_header_stdc=no
6086 fi
6087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088 fi
6089
6090
6091 fi
6092 fi
6093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6095 if test $ac_cv_header_stdc = yes; then
6096
6097 cat >>confdefs.h <<\_ACEOF
6098 #define STDC_HEADERS 1
6099 _ACEOF
6100
6101 fi
6102
6103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6114 inttypes.h stdint.h unistd.h
6115 do
6116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 $ac_includes_default
6129
6130 #include <$ac_header>
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6134 case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 eval "$as_ac_Header=yes"
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 eval "$as_ac_Header=no"
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 ac_res=`eval echo '${'$as_ac_Header'}'`
6160 { echo "$as_me:$LINENO: result: $ac_res" >&5
6161 echo "${ECHO_T}$ac_res" >&6; }
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163 cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6165 _ACEOF
6166
6167 fi
6168
6169 done
6170
6171
6172
6173
6174
6175 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6176 do
6177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 fi
6184 ac_res=`eval echo '${'$as_ac_Header'}'`
6185 { echo "$as_me:$LINENO: result: $ac_res" >&5
6186 echo "${ECHO_T}$ac_res" >&6; }
6187 else
6188 # Is the header compilable?
6189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6198 #include <$ac_header>
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
6217 ac_header_compiler=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_header_compiler=no
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6227 echo "${ECHO_T}$ac_header_compiler" >&6; }
6228
6229 # Is the header present?
6230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6232 cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #include <$ac_header>
6239 _ACEOF
6240 if { (ac_try="$ac_cpp conftest.$ac_ext"
6241 case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6247 ac_status=$?
6248 grep -v '^ *+' conftest.er1 >conftest.err
6249 rm -f conftest.er1
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } >/dev/null && {
6253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 }; then
6256 ac_header_preproc=yes
6257 else
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6260
6261 ac_header_preproc=no
6262 fi
6263
6264 rm -f conftest.err conftest.$ac_ext
6265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6266 echo "${ECHO_T}$ac_header_preproc" >&6; }
6267
6268 # So? What about this header?
6269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 yes:no: )
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6275 ac_header_preproc=yes
6276 ;;
6277 no:yes:* )
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6290
6291 ;;
6292 esac
6293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 else
6298 eval "$as_ac_Header=\$ac_header_preproc"
6299 fi
6300 ac_res=`eval echo '${'$as_ac_Header'}'`
6301 { echo "$as_me:$LINENO: result: $ac_res" >&5
6302 echo "${ECHO_T}$ac_res" >&6; }
6303
6304 fi
6305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6306 cat >>confdefs.h <<_ACEOF
6307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6308 _ACEOF
6309
6310 fi
6311
6312 done
6313
6314 # Emulation library used on NetBSD.
6315 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6316 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6317 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 ac_check_lib_save_LIBS=$LIBS
6321 LIBS="-lossaudio $LIBS"
6322 cat >conftest.$ac_ext <<_ACEOF
6323 /* confdefs.h. */
6324 _ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328
6329 /* Override any GCC internal prototype to avoid an error.
6330 Use char because int might match the return type of a GCC
6331 builtin and then its argument prototype would still apply. */
6332 #ifdef __cplusplus
6333 extern "C"
6334 #endif
6335 char _oss_ioctl ();
6336 int
6337 main ()
6338 {
6339 return _oss_ioctl ();
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_link") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest$ac_exeext &&
6361 $as_test_x conftest$ac_exeext; then
6362 ac_cv_lib_ossaudio__oss_ioctl=yes
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_cv_lib_ossaudio__oss_ioctl=no
6368 fi
6369
6370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6371 conftest$ac_exeext conftest.$ac_ext
6372 LIBS=$ac_check_lib_save_LIBS
6373 fi
6374 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6375 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6376 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6377 LIBSOUND=-lossaudio
6378 else
6379 LIBSOUND=
6380 fi
6381
6382
6383
6384 ALSA_REQUIRED=1.0.0
6385 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6386 if test "X${with_pkg_config_prog}" != X; then
6387 PKG_CONFIG="${with_pkg_config_prog}"
6388 fi
6389
6390 succeeded=no
6391
6392 if test -z "$PKG_CONFIG"; then
6393 # Extract the first word of "pkg-config", so it can be a program name with args.
6394 set dummy pkg-config; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 case $PKG_CONFIG in
6401 [\\/]* | ?:[\\/]*)
6402 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6403 ;;
6404 *)
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6421 ;;
6422 esac
6423 fi
6424 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6425 if test -n "$PKG_CONFIG"; then
6426 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6427 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6428 else
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6431 fi
6432
6433
6434 fi
6435
6436 if test "$PKG_CONFIG" = "no" ; then
6437 HAVE_ALSA=no
6438 else
6439 PKG_CONFIG_MIN_VERSION=0.9.0
6440 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6441 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6442 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6443
6444 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6445 { echo "$as_me:$LINENO: result: yes" >&5
6446 echo "${ECHO_T}yes" >&6; }
6447 succeeded=yes
6448
6449 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6450 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6451 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6452 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6453 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6454
6455 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6456 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6457 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6458 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6459 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6460 else
6461 { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6463 ALSA_CFLAGS=""
6464 ALSA_LIBS=""
6465 ## If we have a custom action on failure, don't print errors, but
6466 ## do set a variable so people can do so.
6467 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6468
6469 fi
6470
6471
6472
6473 else
6474 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6475 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6476 fi
6477 fi
6478
6479 if test $succeeded = yes; then
6480 HAVE_ALSA=yes
6481 else
6482 HAVE_ALSA=no
6483 fi
6484
6485 if test $HAVE_ALSA = yes; then
6486 SAVE_CFLAGS="$CFLAGS"
6487 SAVE_LDFLAGS="$LDFLAGS"
6488 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6489 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <asoundlib.h>
6497 int
6498 main ()
6499 {
6500 snd_lib_error_set_handler (0);
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (ac_try="$ac_compile"
6507 case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_alsa_normal=yes
6523 else
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 emacs_alsa_normal=no
6528 fi
6529
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 if test "$emacs_alsa_normal" != yes; then
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 #include <alsa/asoundlib.h>
6539 int
6540 main ()
6541 {
6542 snd_lib_error_set_handler (0);
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext
6548 if { (ac_try="$ac_compile"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_compile") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest.$ac_objext; then
6564 emacs_alsa_subdir=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 emacs_alsa_subdir=no
6570 fi
6571
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 if test "$emacs_alsa_subdir" != yes; then
6574 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6575 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6576 { (exit 1); exit 1; }; }
6577 fi
6578 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6579 fi
6580
6581 CFLAGS="$SAVE_CFLAGS"
6582 LDFLAGS="$SAVE_LDFLAGS"
6583 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6584 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6585
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_ALSA 1
6588 _ACEOF
6589
6590 fi
6591
6592 fi
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6620 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6621 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6622 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6623 sys/utsname.h pwd.h
6624 do
6625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 fi
6632 ac_res=`eval echo '${'$as_ac_Header'}'`
6633 { echo "$as_me:$LINENO: result: $ac_res" >&5
6634 echo "${ECHO_T}$ac_res" >&6; }
6635 else
6636 # Is the header compilable?
6637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 $ac_includes_default
6646 #include <$ac_header>
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (ac_try="$ac_compile"
6650 case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_compile") 2>conftest.er1
6656 ac_status=$?
6657 grep -v '^ *+' conftest.er1 >conftest.err
6658 rm -f conftest.er1
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && {
6662 test -z "$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6664 } && test -s conftest.$ac_objext; then
6665 ac_header_compiler=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_header_compiler=no
6671 fi
6672
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6675 echo "${ECHO_T}$ac_header_compiler" >&6; }
6676
6677 # Is the header present?
6678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h. */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <$ac_header>
6687 _ACEOF
6688 if { (ac_try="$ac_cpp conftest.$ac_ext"
6689 case "(($ac_try" in
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6692 esac
6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6695 ac_status=$?
6696 grep -v '^ *+' conftest.er1 >conftest.err
6697 rm -f conftest.er1
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } >/dev/null && {
6701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6702 test ! -s conftest.err
6703 }; then
6704 ac_header_preproc=yes
6705 else
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6708
6709 ac_header_preproc=no
6710 fi
6711
6712 rm -f conftest.err conftest.$ac_ext
6713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6714 echo "${ECHO_T}$ac_header_preproc" >&6; }
6715
6716 # So? What about this header?
6717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6718 yes:no: )
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6723 ac_header_preproc=yes
6724 ;;
6725 no:yes:* )
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6738
6739 ;;
6740 esac
6741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 eval "$as_ac_Header=\$ac_header_preproc"
6747 fi
6748 ac_res=`eval echo '${'$as_ac_Header'}'`
6749 { echo "$as_me:$LINENO: result: $ac_res" >&5
6750 echo "${ECHO_T}$ac_res" >&6; }
6751
6752 fi
6753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6754 cat >>confdefs.h <<_ACEOF
6755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6756 _ACEOF
6757
6758 fi
6759
6760 done
6761
6762
6763 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6764 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <sys/personality.h>
6772 int
6773 main ()
6774 {
6775 personality (PER_LINUX32)
6776 ;
6777 return 0;
6778 }
6779 _ACEOF
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6782 case "(($ac_try" in
6783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6785 esac
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 emacs_cv_personality_linux32=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6801
6802 emacs_cv_personality_linux32=no
6803 fi
6804
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6807 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6808
6809 if test $emacs_cv_personality_linux32 = yes; then
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_PERSONALITY_LINUX32 1
6813 _ACEOF
6814
6815 fi
6816
6817
6818 for ac_header in term.h
6819 do
6820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <$ac_header>
6833 _ACEOF
6834 if { (ac_try="$ac_cpp conftest.$ac_ext"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } >/dev/null && {
6847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 }; then
6850 eval "$as_ac_Header=yes"
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 eval "$as_ac_Header=no"
6856 fi
6857
6858 rm -f conftest.err conftest.$ac_ext
6859 fi
6860 ac_res=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6864 cat >>confdefs.h <<_ACEOF
6865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6867
6868 fi
6869
6870 done
6871
6872 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6873 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6874 if test "${ac_cv_header_stdc+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <stdlib.h>
6884 #include <stdarg.h>
6885 #include <string.h>
6886 #include <float.h>
6887
6888 int
6889 main ()
6890 {
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 ac_cv_header_stdc=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_cv_header_stdc=no
6919 fi
6920
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922
6923 if test $ac_cv_header_stdc = yes; then
6924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <string.h>
6932
6933 _ACEOF
6934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6935 $EGREP "memchr" >/dev/null 2>&1; then
6936 :
6937 else
6938 ac_cv_header_stdc=no
6939 fi
6940 rm -f conftest*
6941
6942 fi
6943
6944 if test $ac_cv_header_stdc = yes; then
6945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 #include <stdlib.h>
6953
6954 _ACEOF
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956 $EGREP "free" >/dev/null 2>&1; then
6957 :
6958 else
6959 ac_cv_header_stdc=no
6960 fi
6961 rm -f conftest*
6962
6963 fi
6964
6965 if test $ac_cv_header_stdc = yes; then
6966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6967 if test "$cross_compiling" = yes; then
6968 :
6969 else
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <ctype.h>
6977 #include <stdlib.h>
6978 #if ((' ' & 0x0FF) == 0x020)
6979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6981 #else
6982 # define ISLOWER(c) \
6983 (('a' <= (c) && (c) <= 'i') \
6984 || ('j' <= (c) && (c) <= 'r') \
6985 || ('s' <= (c) && (c) <= 'z'))
6986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6987 #endif
6988
6989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6990 int
6991 main ()
6992 {
6993 int i;
6994 for (i = 0; i < 256; i++)
6995 if (XOR (islower (i), ISLOWER (i))
6996 || toupper (i) != TOUPPER (i))
6997 return 2;
6998 return 0;
6999 }
7000 _ACEOF
7001 rm -f conftest$ac_exeext
7002 if { (ac_try="$ac_link"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7012 { (case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015 esac
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_try") 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 :
7022 else
7023 echo "$as_me: program exited with status $ac_status" >&5
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 ( exit $ac_status )
7028 ac_cv_header_stdc=no
7029 fi
7030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7031 fi
7032
7033
7034 fi
7035 fi
7036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7038 if test $ac_cv_header_stdc = yes; then
7039
7040 cat >>confdefs.h <<\_ACEOF
7041 #define STDC_HEADERS 1
7042 _ACEOF
7043
7044 fi
7045
7046 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7047 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7048 if test "${ac_cv_header_time+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7058 #include <sys/time.h>
7059 #include <time.h>
7060
7061 int
7062 main ()
7063 {
7064 if ((struct tm *) 0)
7065 return 0;
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.$ac_objext; then
7087 ac_cv_header_time=yes
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_cv_header_time=no
7093 fi
7094
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 fi
7097 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7098 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7099 if test $ac_cv_header_time = yes; then
7100
7101 cat >>confdefs.h <<\_ACEOF
7102 #define TIME_WITH_SYS_TIME 1
7103 _ACEOF
7104
7105 fi
7106
7107 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7108 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7109 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 int
7120 main ()
7121 {
7122 #ifndef sys_siglist
7123 (void) sys_siglist;
7124 #endif
7125
7126 ;
7127 return 0;
7128 }
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (ac_try="$ac_compile"
7132 case "(($ac_try" in
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7135 esac
7136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_compile") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest.$ac_objext; then
7147 ac_cv_have_decl_sys_siglist=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_have_decl_sys_siglist=no
7153 fi
7154
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 fi
7157 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7158 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7159 if test $ac_cv_have_decl_sys_siglist = yes; then
7160
7161 cat >>confdefs.h <<_ACEOF
7162 #define HAVE_DECL_SYS_SIGLIST 1
7163 _ACEOF
7164
7165
7166 else
7167 cat >>confdefs.h <<_ACEOF
7168 #define HAVE_DECL_SYS_SIGLIST 0
7169 _ACEOF
7170
7171
7172 fi
7173
7174
7175 if test $ac_cv_have_decl_sys_siglist != yes; then
7176 # For Tru64, at least:
7177 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7178 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7179 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 $ac_includes_default
7189 int
7190 main ()
7191 {
7192 #ifndef __sys_siglist
7193 (void) __sys_siglist;
7194 #endif
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 ac_cv_have_decl___sys_siglist=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222 ac_cv_have_decl___sys_siglist=no
7223 fi
7224
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7228 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7229 if test $ac_cv_have_decl___sys_siglist = yes; then
7230
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_DECL___SYS_SIGLIST 1
7233 _ACEOF
7234
7235
7236 else
7237 cat >>confdefs.h <<_ACEOF
7238 #define HAVE_DECL___SYS_SIGLIST 0
7239 _ACEOF
7240
7241
7242 fi
7243
7244
7245 if test $ac_cv_have_decl___sys_siglist = yes; then
7246
7247 cat >>confdefs.h <<\_ACEOF
7248 #define sys_siglist __sys_siglist
7249 _ACEOF
7250
7251 fi
7252 fi
7253 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7254 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7255 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <sys/types.h>
7265 #include <sys/wait.h>
7266 #ifndef WEXITSTATUS
7267 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7268 #endif
7269 #ifndef WIFEXITED
7270 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7271 #endif
7272
7273 int
7274 main ()
7275 {
7276 int s;
7277 wait (&s);
7278 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (ac_try="$ac_compile"
7285 case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7291 ac_status=$?
7292 grep -v '^ *+' conftest.er1 >conftest.err
7293 rm -f conftest.er1
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
7300 ac_cv_header_sys_wait_h=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 ac_cv_header_sys_wait_h=no
7306 fi
7307
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7311 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7312 if test $ac_cv_header_sys_wait_h = yes; then
7313
7314 cat >>confdefs.h <<\_ACEOF
7315 #define HAVE_SYS_WAIT_H 1
7316 _ACEOF
7317
7318 fi
7319
7320
7321 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7322 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7323 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h. */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 #ifdef TIME_WITH_SYS_TIME
7333 #include <sys/time.h>
7334 #include <time.h>
7335 #else
7336 #ifdef HAVE_SYS_TIME_H
7337 #include <sys/time.h>
7338 #else
7339 #include <time.h>
7340 #endif
7341 #endif
7342 #ifdef HAVE_UTIME_H
7343 #include <utime.h>
7344 #endif
7345 int
7346 main ()
7347 {
7348 static struct utimbuf x; x.actime = x.modtime;
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 emacs_cv_struct_utimbuf=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 emacs_cv_struct_utimbuf=no
7376 fi
7377
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 fi
7380 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7381 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7382 if test $emacs_cv_struct_utimbuf = yes; then
7383
7384 cat >>confdefs.h <<\_ACEOF
7385 #define HAVE_STRUCT_UTIMBUF 1
7386 _ACEOF
7387
7388 fi
7389
7390 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7391 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7392 if test "${ac_cv_type_signal+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 cat >conftest.$ac_ext <<_ACEOF
7396 /* confdefs.h. */
7397 _ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 #include <sys/types.h>
7402 #include <signal.h>
7403
7404 int
7405 main ()
7406 {
7407 return *(signal (0, 0)) (0) == 1;
7408 ;
7409 return 0;
7410 }
7411 _ACEOF
7412 rm -f conftest.$ac_objext
7413 if { (ac_try="$ac_compile"
7414 case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7429 ac_cv_type_signal=int
7430 else
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7433
7434 ac_cv_type_signal=void
7435 fi
7436
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 fi
7439 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7440 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7441
7442 cat >>confdefs.h <<_ACEOF
7443 #define RETSIGTYPE $ac_cv_type_signal
7444 _ACEOF
7445
7446
7447
7448 { echo "$as_me:$LINENO: checking for speed_t" >&5
7449 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7450 if test "${emacs_cv_speed_t+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453 cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h. */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <termios.h>
7460 int
7461 main ()
7462 {
7463 speed_t x = 1;
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 emacs_cv_speed_t=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 emacs_cv_speed_t=no
7491 fi
7492
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 fi
7495 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7496 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7497 if test $emacs_cv_speed_t = yes; then
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_SPEED_T 1
7501 _ACEOF
7502
7503 fi
7504
7505 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7506 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7507 if test "${emacs_cv_struct_timeval+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #ifdef TIME_WITH_SYS_TIME
7517 #include <sys/time.h>
7518 #include <time.h>
7519 #else
7520 #ifdef HAVE_SYS_TIME_H
7521 #include <sys/time.h>
7522 #else
7523 #include <time.h>
7524 #endif
7525 #endif
7526 int
7527 main ()
7528 {
7529 static struct timeval x; x.tv_sec = x.tv_usec;
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7536 case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539 esac
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7542 ac_status=$?
7543 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 emacs_cv_struct_timeval=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7555
7556 emacs_cv_struct_timeval=no
7557 fi
7558
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 fi
7561 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7562 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7563 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7564 if test $emacs_cv_struct_timeval = yes; then
7565
7566 cat >>confdefs.h <<\_ACEOF
7567 #define HAVE_TIMEVAL 1
7568 _ACEOF
7569
7570 fi
7571
7572 { echo "$as_me:$LINENO: checking for struct exception" >&5
7573 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7574 if test "${emacs_cv_struct_exception+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h. */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 #include <math.h>
7584 int
7585 main ()
7586 {
7587 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7588 ;
7589 return 0;
7590 }
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 emacs_cv_struct_exception=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 emacs_cv_struct_exception=no
7615 fi
7616
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 fi
7619 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7620 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7621 HAVE_EXCEPTION=$emacs_cv_struct_exception
7622 if test $emacs_cv_struct_exception != yes; then
7623
7624 cat >>confdefs.h <<\_ACEOF
7625 #define NO_MATHERR 1
7626 _ACEOF
7627
7628 fi
7629
7630
7631 for ac_header in sys/socket.h
7632 do
7633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 fi
7640 ac_res=`eval echo '${'$as_ac_Header'}'`
7641 { echo "$as_me:$LINENO: result: $ac_res" >&5
7642 echo "${ECHO_T}$ac_res" >&6; }
7643 else
7644 # Is the header compilable?
7645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 #include <$ac_header>
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_header_compiler=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_header_compiler=no
7679 fi
7680
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6; }
7684
7685 # Is the header present?
7686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7695 _ACEOF
7696 if { (ac_try="$ac_cpp conftest.$ac_ext"
7697 case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700 esac
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } >/dev/null && {
7709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 }; then
7712 ac_header_preproc=yes
7713 else
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 ac_header_preproc=no
7718 fi
7719
7720 rm -f conftest.err conftest.$ac_ext
7721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7722 echo "${ECHO_T}$ac_header_preproc" >&6; }
7723
7724 # So? What about this header?
7725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7726 yes:no: )
7727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7731 ac_header_preproc=yes
7732 ;;
7733 no:yes:* )
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7746
7747 ;;
7748 esac
7749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 eval "$as_ac_Header=\$ac_header_preproc"
7755 fi
7756 ac_res=`eval echo '${'$as_ac_Header'}'`
7757 { echo "$as_me:$LINENO: result: $ac_res" >&5
7758 echo "${ECHO_T}$ac_res" >&6; }
7759
7760 fi
7761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7762 cat >>confdefs.h <<_ACEOF
7763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7764 _ACEOF
7765
7766 fi
7767
7768 done
7769
7770
7771 for ac_header in net/if.h
7772 do
7773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h. */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 #if HAVE_SYS_SOCKET_H
7787 #include <sys/socket.h>
7788 #endif
7789
7790 #include <$ac_header>
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 eval "$as_ac_Header=yes"
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814 eval "$as_ac_Header=no"
7815 fi
7816
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 fi
7819 ac_res=`eval echo '${'$as_ac_Header'}'`
7820 { echo "$as_me:$LINENO: result: $ac_res" >&5
7821 echo "${ECHO_T}$ac_res" >&6; }
7822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7823 cat >>confdefs.h <<_ACEOF
7824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7825 _ACEOF
7826
7827 fi
7828
7829 done
7830
7831
7832 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7833 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7834 if test "${ac_cv_struct_tm+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 #include <sys/types.h>
7844 #include <time.h>
7845
7846 int
7847 main ()
7848 {
7849 struct tm tm;
7850 int *p = &tm.tm_sec;
7851 return !p;
7852 ;
7853 return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7858 case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_struct_tm=time.h
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_cv_struct_tm=sys/time.h
7879 fi
7880
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 fi
7883 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7884 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7885 if test $ac_cv_struct_tm = sys/time.h; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define TM_IN_SYS_TIME 1
7889 _ACEOF
7890
7891 fi
7892
7893 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7894 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7895 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 #include <$ac_cv_struct_tm>
7906
7907
7908 int
7909 main ()
7910 {
7911 static struct tm ac_aggr;
7912 if (ac_aggr.tm_zone)
7913 return 0;
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (ac_try="$ac_compile"
7920 case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923 esac
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7926 ac_status=$?
7927 grep -v '^ *+' conftest.er1 >conftest.err
7928 rm -f conftest.er1
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7935 ac_cv_member_struct_tm_tm_zone=yes
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <sys/types.h>
7947 #include <$ac_cv_struct_tm>
7948
7949
7950 int
7951 main ()
7952 {
7953 static struct tm ac_aggr;
7954 if (sizeof ac_aggr.tm_zone)
7955 return 0;
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7977 ac_cv_member_struct_tm_tm_zone=yes
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 ac_cv_member_struct_tm_tm_zone=no
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7991 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7992 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7993
7994 cat >>confdefs.h <<_ACEOF
7995 #define HAVE_STRUCT_TM_TM_ZONE 1
7996 _ACEOF
7997
7998
7999 fi
8000
8001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8002
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_TM_ZONE 1
8005 _ACEOF
8006
8007 else
8008 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8009 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8010 if test "${ac_cv_have_decl_tzname+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h. */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 #include <time.h>
8020
8021 int
8022 main ()
8023 {
8024 #ifndef tzname
8025 (void) tzname;
8026 #endif
8027
8028 ;
8029 return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8034 case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_cv_have_decl_tzname=yes
8050 else
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054 ac_cv_have_decl_tzname=no
8055 fi
8056
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 fi
8059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8060 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8061 if test $ac_cv_have_decl_tzname = yes; then
8062
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_DECL_TZNAME 1
8065 _ACEOF
8066
8067
8068 else
8069 cat >>confdefs.h <<_ACEOF
8070 #define HAVE_DECL_TZNAME 0
8071 _ACEOF
8072
8073
8074 fi
8075
8076
8077 { echo "$as_me:$LINENO: checking for tzname" >&5
8078 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8079 if test "${ac_cv_var_tzname+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 #if !HAVE_DECL_TZNAME
8090 extern char *tzname[];
8091 #endif
8092
8093 int
8094 main ()
8095 {
8096 return tzname[0][0];
8097 ;
8098 return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8103 case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_link") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest$ac_exeext &&
8118 $as_test_x conftest$ac_exeext; then
8119 ac_cv_var_tzname=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_var_tzname=no
8125 fi
8126
8127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8128 conftest$ac_exeext conftest.$ac_ext
8129 fi
8130 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8131 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8132 if test $ac_cv_var_tzname = yes; then
8133
8134 cat >>confdefs.h <<\_ACEOF
8135 #define HAVE_TZNAME 1
8136 _ACEOF
8137
8138 fi
8139 fi
8140
8141 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8142 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8143 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h. */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <time.h>
8153
8154 int
8155 main ()
8156 {
8157 static struct tm ac_aggr;
8158 if (ac_aggr.tm_gmtoff)
8159 return 0;
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8181 ac_cv_member_struct_tm_tm_gmtoff=yes
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 #include <time.h>
8193
8194 int
8195 main ()
8196 {
8197 static struct tm ac_aggr;
8198 if (sizeof ac_aggr.tm_gmtoff)
8199 return 0;
8200 ;
8201 return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8206 case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_cv_member_struct_tm_tm_gmtoff=yes
8222 else
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_cv_member_struct_tm_tm_gmtoff=no
8227 fi
8228
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8235 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8236 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8237
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_TM_GMTOFF 1
8240 _ACEOF
8241
8242 fi
8243
8244 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8245 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8246 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #if HAVE_SYS_SOCKET_H
8257 #include <sys/socket.h>
8258 #endif
8259 #if HAVE_NET_IF_H
8260 #include <net/if.h>
8261 #endif
8262
8263 int
8264 main ()
8265 {
8266 static struct ifreq ac_aggr;
8267 if (ac_aggr.ifr_flags)
8268 return 0;
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8290 ac_cv_member_struct_ifreq_ifr_flags=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #if HAVE_SYS_SOCKET_H
8303 #include <sys/socket.h>
8304 #endif
8305 #if HAVE_NET_IF_H
8306 #include <net/if.h>
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 static struct ifreq ac_aggr;
8313 if (sizeof ac_aggr.ifr_flags)
8314 return 0;
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8321 case "(($ac_try" in
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8324 esac
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.$ac_objext; then
8336 ac_cv_member_struct_ifreq_ifr_flags=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_cv_member_struct_ifreq_ifr_flags=no
8342 fi
8343
8344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 fi
8346
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 fi
8349 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8350 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8351 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8352
8353 cat >>confdefs.h <<_ACEOF
8354 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8355 _ACEOF
8356
8357
8358 fi
8359 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8360 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8361 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #if HAVE_SYS_SOCKET_H
8372 #include <sys/socket.h>
8373 #endif
8374 #if HAVE_NET_IF_H
8375 #include <net/if.h>
8376 #endif
8377
8378 int
8379 main ()
8380 {
8381 static struct ifreq ac_aggr;
8382 if (ac_aggr.ifr_hwaddr)
8383 return 0;
8384 ;
8385 return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h. */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 #if HAVE_SYS_SOCKET_H
8418 #include <sys/socket.h>
8419 #endif
8420 #if HAVE_NET_IF_H
8421 #include <net/if.h>
8422 #endif
8423
8424 int
8425 main ()
8426 {
8427 static struct ifreq ac_aggr;
8428 if (sizeof ac_aggr.ifr_hwaddr)
8429 return 0;
8430 ;
8431 return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8436 case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439 esac
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.$ac_objext; then
8451 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8457 fi
8458
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8465 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8466 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8470 _ACEOF
8471
8472
8473 fi
8474 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8475 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8476 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 #if HAVE_SYS_SOCKET_H
8487 #include <sys/socket.h>
8488 #endif
8489 #if HAVE_NET_IF_H
8490 #include <net/if.h>
8491 #endif
8492
8493 int
8494 main ()
8495 {
8496 static struct ifreq ac_aggr;
8497 if (ac_aggr.ifr_netmask)
8498 return 0;
8499 ;
8500 return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8505 case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest.$ac_objext; then
8520 ac_cv_member_struct_ifreq_ifr_netmask=yes
8521 else
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h. */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 #if HAVE_SYS_SOCKET_H
8533 #include <sys/socket.h>
8534 #endif
8535 #if HAVE_NET_IF_H
8536 #include <net/if.h>
8537 #endif
8538
8539 int
8540 main ()
8541 {
8542 static struct ifreq ac_aggr;
8543 if (sizeof ac_aggr.ifr_netmask)
8544 return 0;
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8551 case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_cv_member_struct_ifreq_ifr_netmask=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_member_struct_ifreq_ifr_netmask=no
8572 fi
8573
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
8576
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 fi
8579 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8580 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8581 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8582
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8585 _ACEOF
8586
8587
8588 fi
8589 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8590 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8591 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 else
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h. */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8601 #if HAVE_SYS_SOCKET_H
8602 #include <sys/socket.h>
8603 #endif
8604 #if HAVE_NET_IF_H
8605 #include <net/if.h>
8606 #endif
8607
8608 int
8609 main ()
8610 {
8611 static struct ifreq ac_aggr;
8612 if (ac_aggr.ifr_broadaddr)
8613 return 0;
8614 ;
8615 return 0;
8616 }
8617 _ACEOF
8618 rm -f conftest.$ac_objext
8619 if { (ac_try="$ac_compile"
8620 case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_compile") 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && {
8632 test -z "$ac_c_werror_flag" ||
8633 test ! -s conftest.err
8634 } && test -s conftest.$ac_objext; then
8635 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8636 else
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8639
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 $ac_includes_default
8647 #if HAVE_SYS_SOCKET_H
8648 #include <sys/socket.h>
8649 #endif
8650 #if HAVE_NET_IF_H
8651 #include <net/if.h>
8652 #endif
8653
8654 int
8655 main ()
8656 {
8657 static struct ifreq ac_aggr;
8658 if (sizeof ac_aggr.ifr_broadaddr)
8659 return 0;
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 rm -f conftest.$ac_objext
8665 if { (ac_try="$ac_compile"
8666 case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669 esac
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_compile") 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest.$ac_objext; then
8681 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8682 else
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8687 fi
8688
8689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 fi
8691
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 fi
8694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8695 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8696 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8697
8698 cat >>confdefs.h <<_ACEOF
8699 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8700 _ACEOF
8701
8702
8703 fi
8704 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8705 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8706 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 $ac_includes_default
8716 #if HAVE_SYS_SOCKET_H
8717 #include <sys/socket.h>
8718 #endif
8719 #if HAVE_NET_IF_H
8720 #include <net/if.h>
8721 #endif
8722
8723 int
8724 main ()
8725 {
8726 static struct ifreq ac_aggr;
8727 if (ac_aggr.ifr_addr)
8728 return 0;
8729 ;
8730 return 0;
8731 }
8732 _ACEOF
8733 rm -f conftest.$ac_objext
8734 if { (ac_try="$ac_compile"
8735 case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_compile") 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && {
8747 test -z "$ac_c_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest.$ac_objext; then
8750 ac_cv_member_struct_ifreq_ifr_addr=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 $ac_includes_default
8762 #if HAVE_SYS_SOCKET_H
8763 #include <sys/socket.h>
8764 #endif
8765 #if HAVE_NET_IF_H
8766 #include <net/if.h>
8767 #endif
8768
8769 int
8770 main ()
8771 {
8772 static struct ifreq ac_aggr;
8773 if (sizeof ac_aggr.ifr_addr)
8774 return 0;
8775 ;
8776 return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext
8780 if { (ac_try="$ac_compile"
8781 case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 ac_cv_member_struct_ifreq_ifr_addr=yes
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801 ac_cv_member_struct_ifreq_ifr_addr=no
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8805 fi
8806
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 fi
8809 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8810 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8811 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8812
8813 cat >>confdefs.h <<_ACEOF
8814 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8815 _ACEOF
8816
8817
8818 fi
8819
8820
8821
8822 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8823 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8824 if test "$ac_cv_prog_cc_c89" != no; then
8825 { echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6; }
8827
8828 cat >>confdefs.h <<\_ACEOF
8829 #define PROTOTYPES 1
8830 _ACEOF
8831
8832
8833 cat >>confdefs.h <<\_ACEOF
8834 #define __PROTOTYPES 1
8835 _ACEOF
8836
8837 else
8838 { echo "$as_me:$LINENO: result: no" >&5
8839 echo "${ECHO_T}no" >&6; }
8840 fi
8841
8842 { echo "$as_me:$LINENO: checking for working volatile" >&5
8843 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8844 if test "${ac_cv_c_volatile+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853
8854 int
8855 main ()
8856 {
8857
8858 volatile int x;
8859 int * volatile y = (int *) 0;
8860 return !x && !y;
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8867 case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_compile") 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && {
8879 test -z "$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 } && test -s conftest.$ac_objext; then
8882 ac_cv_c_volatile=yes
8883 else
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 ac_cv_c_volatile=no
8888 fi
8889
8890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 fi
8892 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8893 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8894 if test $ac_cv_c_volatile = no; then
8895
8896 cat >>confdefs.h <<\_ACEOF
8897 #define volatile
8898 _ACEOF
8899
8900 fi
8901
8902 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8903 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8904 if test "${ac_cv_c_const+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 else
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913
8914 int
8915 main ()
8916 {
8917 /* FIXME: Include the comments suggested by Paul. */
8918 #ifndef __cplusplus
8919 /* Ultrix mips cc rejects this. */
8920 typedef int charset[2];
8921 const charset cs;
8922 /* SunOS 4.1.1 cc rejects this. */
8923 char const *const *pcpcc;
8924 char **ppc;
8925 /* NEC SVR4.0.2 mips cc rejects this. */
8926 struct point {int x, y;};
8927 static struct point const zero = {0,0};
8928 /* AIX XL C 1.02.0.0 rejects this.
8929 It does not let you subtract one const X* pointer from another in
8930 an arm of an if-expression whose if-part is not a constant
8931 expression */
8932 const char *g = "string";
8933 pcpcc = &g + (g ? g-g : 0);
8934 /* HPUX 7.0 cc rejects these. */
8935 ++pcpcc;
8936 ppc = (char**) pcpcc;
8937 pcpcc = (char const *const *) ppc;
8938 { /* SCO 3.2v4 cc rejects this. */
8939 char *t;
8940 char const *s = 0 ? (char *) 0 : (char const *) 0;
8941
8942 *t++ = 0;
8943 if (s) return 0;
8944 }
8945 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8946 int x[] = {25, 17};
8947 const int *foo = &x[0];
8948 ++foo;
8949 }
8950 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8951 typedef const int *iptr;
8952 iptr p = 0;
8953 ++p;
8954 }
8955 { /* AIX XL C 1.02.0.0 rejects this saying
8956 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8957 struct s { int j; const int *ap[3]; };
8958 struct s *b; b->j = 5;
8959 }
8960 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8961 const int foo = 10;
8962 if (!foo) return 0;
8963 }
8964 return !cs[0] && !zero.x;
8965 #endif
8966
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8973 case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_compile") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest.$ac_objext; then
8988 ac_cv_c_const=yes
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 ac_cv_c_const=no
8994 fi
8995
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 fi
8998 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8999 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9000 if test $ac_cv_c_const = no; then
9001
9002 cat >>confdefs.h <<\_ACEOF
9003 #define const
9004 _ACEOF
9005
9006 fi
9007
9008 { echo "$as_me:$LINENO: checking for void * support" >&5
9009 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9010 if test "${emacs_cv_void_star+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019
9020 int
9021 main ()
9022 {
9023 void * foo;
9024 ;
9025 return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext
9029 if { (ac_try="$ac_compile"
9030 case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_compile") 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } && {
9042 test -z "$ac_c_werror_flag" ||
9043 test ! -s conftest.err
9044 } && test -s conftest.$ac_objext; then
9045 emacs_cv_void_star=yes
9046 else
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 emacs_cv_void_star=no
9051 fi
9052
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 fi
9055 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9056 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9057 if test $emacs_cv_void_star = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define POINTER_TYPE void
9060 _ACEOF
9061
9062 else
9063 cat >>confdefs.h <<\_ACEOF
9064 #define POINTER_TYPE char
9065 _ACEOF
9066
9067 fi
9068
9069
9070
9071
9072
9073 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9074 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9075 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9076 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079 cat >conftest.make <<\_ACEOF
9080 SHELL = /bin/sh
9081 all:
9082 @echo '@@@%%%=$(MAKE)=@@@%%%'
9083 _ACEOF
9084 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9085 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9086 *@@@%%%=?*=@@@%%%*)
9087 eval ac_cv_prog_make_${ac_make}_set=yes;;
9088 *)
9089 eval ac_cv_prog_make_${ac_make}_set=no;;
9090 esac
9091 rm -f conftest.make
9092 fi
9093 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9094 { echo "$as_me:$LINENO: result: yes" >&5
9095 echo "${ECHO_T}yes" >&6; }
9096 SET_MAKE=
9097 else
9098 { echo "$as_me:$LINENO: result: no" >&5
9099 echo "${ECHO_T}no" >&6; }
9100 SET_MAKE="MAKE=${MAKE-make}"
9101 fi
9102
9103
9104 { echo "$as_me:$LINENO: checking for long file names" >&5
9105 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9106 if test "${ac_cv_sys_long_file_names+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109 ac_cv_sys_long_file_names=yes
9110 # Test for long file names in all the places we know might matter:
9111 # . the current directory, where building will happen
9112 # $prefix/lib where we will be installing things
9113 # $exec_prefix/lib likewise
9114 # $TMPDIR if set, where it might want to write temporary files
9115 # /tmp where it might want to write temporary files
9116 # /var/tmp likewise
9117 # /usr/tmp likewise
9118 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9119 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9120 # in the usual case where exec_prefix is '${prefix}'.
9121 case $ac_dir in #(
9122 . | /* | ?:[\\/]*) ;; #(
9123 *) continue;;
9124 esac
9125 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9126 ac_xdir=$ac_dir/cf$$
9127 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9128 ac_tf1=$ac_xdir/conftest9012345
9129 ac_tf2=$ac_xdir/conftest9012346
9130 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9131 ac_cv_sys_long_file_names=no
9132 rm -f -r "$ac_xdir" 2>/dev/null
9133 test $ac_cv_sys_long_file_names = no && break
9134 done
9135 fi
9136 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9137 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9138 if test $ac_cv_sys_long_file_names = yes; then
9139
9140 cat >>confdefs.h <<\_ACEOF
9141 #define HAVE_LONG_FILE_NAMES 1
9142 _ACEOF
9143
9144 fi
9145
9146
9147 #### Choose a window system.
9148
9149 { echo "$as_me:$LINENO: checking for X" >&5
9150 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9151
9152
9153 # Check whether --with-x was given.
9154 if test "${with_x+set}" = set; then
9155 withval=$with_x;
9156 fi
9157
9158 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9159 if test "x$with_x" = xno; then
9160 # The user explicitly disabled X.
9161 have_x=disabled
9162 else
9163 case $x_includes,$x_libraries in #(
9164 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9165 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9166 { (exit 1); exit 1; }; };; #(
9167 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170 # One or both of the vars are not set, and there is no cached value.
9171 ac_x_includes=no ac_x_libraries=no
9172 rm -f -r conftest.dir
9173 if mkdir conftest.dir; then
9174 cd conftest.dir
9175 cat >Imakefile <<'_ACEOF'
9176 incroot:
9177 @echo incroot='${INCROOT}'
9178 usrlibdir:
9179 @echo usrlibdir='${USRLIBDIR}'
9180 libdir:
9181 @echo libdir='${LIBDIR}'
9182 _ACEOF
9183 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9184 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9185 for ac_var in incroot usrlibdir libdir; do
9186 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9187 done
9188 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9189 for ac_extension in a so sl; do
9190 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9191 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9192 ac_im_usrlibdir=$ac_im_libdir; break
9193 fi
9194 done
9195 # Screen out bogus values from the imake configuration. They are
9196 # bogus both because they are the default anyway, and because
9197 # using them would break gcc on systems where it needs fixed includes.
9198 case $ac_im_incroot in
9199 /usr/include) ac_x_includes= ;;
9200 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9201 esac
9202 case $ac_im_usrlibdir in
9203 /usr/lib | /lib) ;;
9204 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9205 esac
9206 fi
9207 cd ..
9208 rm -f -r conftest.dir
9209 fi
9210
9211 # Standard set of common directories for X headers.
9212 # Check X11 before X11Rn because it is often a symlink to the current release.
9213 ac_x_header_dirs='
9214 /usr/X11/include
9215 /usr/X11R6/include
9216 /usr/X11R5/include
9217 /usr/X11R4/include
9218
9219 /usr/include/X11
9220 /usr/include/X11R6
9221 /usr/include/X11R5
9222 /usr/include/X11R4
9223
9224 /usr/local/X11/include
9225 /usr/local/X11R6/include
9226 /usr/local/X11R5/include
9227 /usr/local/X11R4/include
9228
9229 /usr/local/include/X11
9230 /usr/local/include/X11R6
9231 /usr/local/include/X11R5
9232 /usr/local/include/X11R4
9233
9234 /usr/X386/include
9235 /usr/x386/include
9236 /usr/XFree86/include/X11
9237
9238 /usr/include
9239 /usr/local/include
9240 /usr/unsupported/include
9241 /usr/athena/include
9242 /usr/local/x11r5/include
9243 /usr/lpp/Xamples/include
9244
9245 /usr/openwin/include
9246 /usr/openwin/share/include'
9247
9248 if test "$ac_x_includes" = no; then
9249 # Guess where to find include files, by looking for Xlib.h.
9250 # First, try using that file with no special directory specified.
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <X11/Xlib.h>
9258 _ACEOF
9259 if { (ac_try="$ac_cpp conftest.$ac_ext"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev/null && {
9272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 }; then
9275 # We can compile using X headers with no special include directory.
9276 ac_x_includes=
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 for ac_dir in $ac_x_header_dirs; do
9282 if test -r "$ac_dir/X11/Xlib.h"; then
9283 ac_x_includes=$ac_dir
9284 break
9285 fi
9286 done
9287 fi
9288
9289 rm -f conftest.err conftest.$ac_ext
9290 fi # $ac_x_includes = no
9291
9292 if test "$ac_x_libraries" = no; then
9293 # Check for the libraries.
9294 # See if we find them without any special options.
9295 # Don't add to $LIBS permanently.
9296 ac_save_LIBS=$LIBS
9297 LIBS="-lX11 $LIBS"
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #include <X11/Xlib.h>
9305 int
9306 main ()
9307 {
9308 XrmInitialize ()
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318 esac
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
9331 LIBS=$ac_save_LIBS
9332 # We can link X programs with no special library path.
9333 ac_x_libraries=
9334 else
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338 LIBS=$ac_save_LIBS
9339 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9340 do
9341 # Don't even attempt the hair of trying to link an X program!
9342 for ac_extension in a so sl; do
9343 if test -r "$ac_dir/libX11.$ac_extension"; then
9344 ac_x_libraries=$ac_dir
9345 break 2
9346 fi
9347 done
9348 done
9349 fi
9350
9351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9352 conftest$ac_exeext conftest.$ac_ext
9353 fi # $ac_x_libraries = no
9354
9355 case $ac_x_includes,$ac_x_libraries in #(
9356 no,* | *,no | *\'*)
9357 # Didn't find X, or a directory has "'" in its name.
9358 ac_cv_have_x="have_x=no";; #(
9359 *)
9360 # Record where we found X for the cache.
9361 ac_cv_have_x="have_x=yes\
9362 ac_x_includes='$ac_x_includes'\
9363 ac_x_libraries='$ac_x_libraries'"
9364 esac
9365 fi
9366 ;; #(
9367 *) have_x=yes;;
9368 esac
9369 eval "$ac_cv_have_x"
9370 fi # $with_x != no
9371
9372 if test "$have_x" != yes; then
9373 { echo "$as_me:$LINENO: result: $have_x" >&5
9374 echo "${ECHO_T}$have_x" >&6; }
9375 no_x=yes
9376 else
9377 # If each of the values was on the command line, it overrides each guess.
9378 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9379 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9380 # Update the cache value to reflect the command line values.
9381 ac_cv_have_x="have_x=yes\
9382 ac_x_includes='$x_includes'\
9383 ac_x_libraries='$x_libraries'"
9384 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9385 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9386 fi
9387
9388 if test "$no_x" = yes; then
9389 window_system=none
9390 else
9391 window_system=x11
9392 fi
9393
9394 if test "${x_libraries}" != NONE; then
9395 if test -n "${x_libraries}"; then
9396 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9397 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9398 fi
9399 x_default_search_path=""
9400 x_search_path=${x_libraries}
9401 if test -z "${x_search_path}"; then
9402 x_search_path=/usr/lib
9403 fi
9404 for x_library in `echo ${x_search_path}: | \
9405 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9406 x_search_path="\
9407 ${x_library}/X11/%L/%T/%N%C%S:\
9408 ${x_library}/X11/%l/%T/%N%C%S:\
9409 ${x_library}/X11/%T/%N%C%S:\
9410 ${x_library}/X11/%L/%T/%N%S:\
9411 ${x_library}/X11/%l/%T/%N%S:\
9412 ${x_library}/X11/%T/%N%S"
9413 if test x"${x_default_search_path}" = x; then
9414 x_default_search_path=${x_search_path}
9415 else
9416 x_default_search_path="${x_search_path}:${x_default_search_path}"
9417 fi
9418 done
9419 fi
9420 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9421 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9422 fi
9423
9424 if test x"${x_includes}" = x; then
9425 bitmapdir=/usr/include/X11/bitmaps
9426 else
9427 # accumulate include directories that have X11 bitmap subdirectories
9428 bmd_acc="dummyval"
9429 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9430 if test -d "${bmd}/X11/bitmaps"; then
9431 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9432 fi
9433 if test -d "${bmd}/bitmaps"; then
9434 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9435 fi
9436 done
9437 if test ${bmd_acc} != "dummyval"; then
9438 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9439 fi
9440 fi
9441
9442 HAVE_CARBON=no
9443 if test "${with_carbon}" != no; then
9444 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9445 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9446 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9447 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 fi
9450 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9451 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9452 else
9453 # Is the header compilable?
9454 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9455 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h. */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 $ac_includes_default
9463 #include <Carbon/Carbon.h>
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9467 case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470 esac
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9482 ac_header_compiler=yes
9483 else
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ac_header_compiler=no
9488 fi
9489
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9492 echo "${ECHO_T}$ac_header_compiler" >&6; }
9493
9494 # Is the header present?
9495 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9496 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 #include <Carbon/Carbon.h>
9504 _ACEOF
9505 if { (ac_try="$ac_cpp conftest.$ac_ext"
9506 case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } >/dev/null && {
9518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 }; then
9521 ac_header_preproc=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_header_preproc=no
9527 fi
9528
9529 rm -f conftest.err conftest.$ac_ext
9530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9531 echo "${ECHO_T}$ac_header_preproc" >&6; }
9532
9533 # So? What about this header?
9534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9535 yes:no: )
9536 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9537 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9539 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9540 ac_header_preproc=yes
9541 ;;
9542 no:yes:* )
9543 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9544 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9546 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9548 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9550 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9552 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9554 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9555
9556 ;;
9557 esac
9558 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9559 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9560 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9564 fi
9565 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9566 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9567
9568 fi
9569 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9570 HAVE_CARBON=yes
9571 fi
9572
9573
9574 fi
9575 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9576 if test "${with_carbon+set}" != set \
9577 && test "${carbon_appdir_x+set}" != set; then
9578 for var in with_x with_x_toolkit with_gtk with_xim \
9579 with_xpm with_jpeg with_tiff with_gif with_png; do
9580 if eval test \"\${$var+set}\" = set; then
9581 HAVE_CARBON=no
9582 break
9583 fi
9584 done
9585 fi
9586 fi
9587 if test "${HAVE_CARBON}" = yes; then
9588 window_system=mac
9589 fi
9590
9591 case "${window_system}" in
9592 x11 )
9593 HAVE_X_WINDOWS=yes
9594 HAVE_X11=yes
9595 case "${with_x_toolkit}" in
9596 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9597 motif ) USE_X_TOOLKIT=MOTIF ;;
9598 gtk ) with_gtk=yes
9599 USE_X_TOOLKIT=none ;;
9600 no ) USE_X_TOOLKIT=none ;;
9601 * )
9602 if test x"$with_gtk" = xyes; then
9603 USE_X_TOOLKIT=none
9604 else
9605 USE_X_TOOLKIT=maybe
9606 fi
9607 ;;
9608 esac
9609 ;;
9610 mac | none )
9611 HAVE_X_WINDOWS=no
9612 HAVE_X11=no
9613 USE_X_TOOLKIT=none
9614 ;;
9615 esac
9616
9617 ### If we're using X11, we should use the X menu package.
9618 HAVE_MENUS=no
9619 case ${HAVE_X11} in
9620 yes ) HAVE_MENUS=yes ;;
9621 esac
9622
9623 if test "${opsys}" = "hpux9"; then
9624 case "${x_libraries}" in
9625 *X11R4* )
9626 opsysfile="s/hpux9-x11r4.h"
9627 ;;
9628 esac
9629 fi
9630
9631 if test "${opsys}" = "hpux9shr"; then
9632 case "${x_libraries}" in
9633 *X11R4* )
9634 opsysfile="s/hpux9shxr4.h"
9635 ;;
9636 esac
9637 fi
9638
9639 ### Compute the unexec source name from the object name.
9640 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9641
9642 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9643 # Assume not, until told otherwise.
9644 GNU_MALLOC=yes
9645 doug_lea_malloc=yes
9646 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9647 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9648 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659 #define malloc_get_state innocuous_malloc_get_state
9660
9661 /* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char malloc_get_state (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9665
9666 #ifdef __STDC__
9667 # include <limits.h>
9668 #else
9669 # include <assert.h>
9670 #endif
9671
9672 #undef malloc_get_state
9673
9674 /* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9677 #ifdef __cplusplus
9678 extern "C"
9679 #endif
9680 char malloc_get_state ();
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9685 choke me
9686 #endif
9687
9688 int
9689 main ()
9690 {
9691 return malloc_get_state ();
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (ac_try="$ac_link"
9698 case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_link") 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest$ac_exeext &&
9713 $as_test_x conftest$ac_exeext; then
9714 ac_cv_func_malloc_get_state=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ac_cv_func_malloc_get_state=no
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9723 conftest$ac_exeext conftest.$ac_ext
9724 fi
9725 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9726 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9727 if test $ac_cv_func_malloc_get_state = yes; then
9728 :
9729 else
9730 doug_lea_malloc=no
9731 fi
9732
9733 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9734 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9735 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9746 #define malloc_set_state innocuous_malloc_set_state
9747
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char malloc_set_state (); below.
9750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9751 <limits.h> exists even on freestanding compilers. */
9752
9753 #ifdef __STDC__
9754 # include <limits.h>
9755 #else
9756 # include <assert.h>
9757 #endif
9758
9759 #undef malloc_set_state
9760
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 char malloc_set_state ();
9768 /* The GNU C library defines this for functions which it implements
9769 to always fail with ENOSYS. Some functions are actually named
9770 something starting with __ and the normal name is an alias. */
9771 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9772 choke me
9773 #endif
9774
9775 int
9776 main ()
9777 {
9778 return malloc_set_state ();
9779 ;
9780 return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9785 case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
9801 ac_cv_func_malloc_set_state=yes
9802 else
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9805
9806 ac_cv_func_malloc_set_state=no
9807 fi
9808
9809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810 conftest$ac_exeext conftest.$ac_ext
9811 fi
9812 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9813 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9814 if test $ac_cv_func_malloc_set_state = yes; then
9815 :
9816 else
9817 doug_lea_malloc=no
9818 fi
9819
9820 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9821 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9822 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 extern void (* __after_morecore_hook)();
9832 int
9833 main ()
9834 {
9835 __after_morecore_hook = 0
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9842 case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && {
9854 test -z "$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest$ac_exeext &&
9857 $as_test_x conftest$ac_exeext; then
9858 emacs_cv_var___after_morecore_hook=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 emacs_cv_var___after_morecore_hook=no
9864 fi
9865
9866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9870 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9871 if test $emacs_cv_var___after_morecore_hook = no; then
9872 doug_lea_malloc=no
9873 fi
9874 if test "${system_malloc}" = "yes"; then
9875 GNU_MALLOC=no
9876 GNU_MALLOC_reason="
9877 (The GNU allocators don't work with this system configuration.)"
9878 fi
9879 if test "$doug_lea_malloc" = "yes" ; then
9880 if test "$GNU_MALLOC" = yes ; then
9881 GNU_MALLOC_reason="
9882 (Using Doug Lea's new malloc from the GNU C Library.)"
9883 fi
9884
9885 cat >>confdefs.h <<\_ACEOF
9886 #define DOUG_LEA_MALLOC 1
9887 _ACEOF
9888
9889 fi
9890
9891 if test x"${REL_ALLOC}" = x; then
9892 REL_ALLOC=${GNU_MALLOC}
9893 fi
9894
9895
9896
9897
9898 for ac_header in stdlib.h unistd.h
9899 do
9900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 fi
9907 ac_res=`eval echo '${'$as_ac_Header'}'`
9908 { echo "$as_me:$LINENO: result: $ac_res" >&5
9909 echo "${ECHO_T}$ac_res" >&6; }
9910 else
9911 # Is the header compilable?
9912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h. */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 #include <$ac_header>
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (ac_try="$ac_compile"
9925 case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 ac_header_compiler=yes
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_header_compiler=no
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9950 echo "${ECHO_T}$ac_header_compiler" >&6; }
9951
9952 # Is the header present?
9953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 #include <$ac_header>
9962 _ACEOF
9963 if { (ac_try="$ac_cpp conftest.$ac_ext"
9964 case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } >/dev/null && {
9976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 }; then
9979 ac_header_preproc=yes
9980 else
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 ac_header_preproc=no
9985 fi
9986
9987 rm -f conftest.err conftest.$ac_ext
9988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9989 echo "${ECHO_T}$ac_header_preproc" >&6; }
9990
9991 # So? What about this header?
9992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9993 yes:no: )
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9998 ac_header_preproc=yes
9999 ;;
10000 no:yes:* )
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10013
10014 ;;
10015 esac
10016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 eval "$as_ac_Header=\$ac_header_preproc"
10022 fi
10023 ac_res=`eval echo '${'$as_ac_Header'}'`
10024 { echo "$as_me:$LINENO: result: $ac_res" >&5
10025 echo "${ECHO_T}$ac_res" >&6; }
10026
10027 fi
10028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10031 _ACEOF
10032
10033 fi
10034
10035 done
10036
10037
10038 for ac_func in getpagesize
10039 do
10040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046 cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h. */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054 #define $ac_func innocuous_$ac_func
10055
10056 /* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char $ac_func (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10060
10061 #ifdef __STDC__
10062 # include <limits.h>
10063 #else
10064 # include <assert.h>
10065 #endif
10066
10067 #undef $ac_func
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char $ac_func ();
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined __stub_$ac_func || defined __stub___$ac_func
10080 choke me
10081 #endif
10082
10083 int
10084 main ()
10085 {
10086 return $ac_func ();
10087 ;
10088 return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest$ac_exeext &&
10108 $as_test_x conftest$ac_exeext; then
10109 eval "$as_ac_var=yes"
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 eval "$as_ac_var=no"
10115 fi
10116
10117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10119 fi
10120 ac_res=`eval echo '${'$as_ac_var'}'`
10121 { echo "$as_me:$LINENO: result: $ac_res" >&5
10122 echo "${ECHO_T}$ac_res" >&6; }
10123 if test `eval echo '${'$as_ac_var'}'` = yes; then
10124 cat >>confdefs.h <<_ACEOF
10125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10126 _ACEOF
10127
10128 fi
10129 done
10130
10131 { echo "$as_me:$LINENO: checking for working mmap" >&5
10132 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10133 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136 if test "$cross_compiling" = yes; then
10137 ac_cv_func_mmap_fixed_mapped=no
10138 else
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 $ac_includes_default
10146 /* malloc might have been renamed as rpl_malloc. */
10147 #undef malloc
10148
10149 /* Thanks to Mike Haertel and Jim Avera for this test.
10150 Here is a matrix of mmap possibilities:
10151 mmap private not fixed
10152 mmap private fixed at somewhere currently unmapped
10153 mmap private fixed at somewhere already mapped
10154 mmap shared not fixed
10155 mmap shared fixed at somewhere currently unmapped
10156 mmap shared fixed at somewhere already mapped
10157 For private mappings, we should verify that changes cannot be read()
10158 back from the file, nor mmap's back from the file at a different
10159 address. (There have been systems where private was not correctly
10160 implemented like the infamous i386 svr4.0, and systems where the
10161 VM page cache was not coherent with the file system buffer cache
10162 like early versions of FreeBSD and possibly contemporary NetBSD.)
10163 For shared mappings, we should conversely verify that changes get
10164 propagated back to all the places they're supposed to be.
10165
10166 Grep wants private fixed already mapped.
10167 The main things grep needs to know about mmap are:
10168 * does it exist and is it safe to write into the mmap'd area
10169 * how to use it (BSD variants) */
10170
10171 #include <fcntl.h>
10172 #include <sys/mman.h>
10173
10174 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10175 char *malloc ();
10176 #endif
10177
10178 /* This mess was copied from the GNU getpagesize.h. */
10179 #ifndef HAVE_GETPAGESIZE
10180 /* Assume that all systems that can run configure have sys/param.h. */
10181 # ifndef HAVE_SYS_PARAM_H
10182 # define HAVE_SYS_PARAM_H 1
10183 # endif
10184
10185 # ifdef _SC_PAGESIZE
10186 # define getpagesize() sysconf(_SC_PAGESIZE)
10187 # else /* no _SC_PAGESIZE */
10188 # ifdef HAVE_SYS_PARAM_H
10189 # include <sys/param.h>
10190 # ifdef EXEC_PAGESIZE
10191 # define getpagesize() EXEC_PAGESIZE
10192 # else /* no EXEC_PAGESIZE */
10193 # ifdef NBPG
10194 # define getpagesize() NBPG * CLSIZE
10195 # ifndef CLSIZE
10196 # define CLSIZE 1
10197 # endif /* no CLSIZE */
10198 # else /* no NBPG */
10199 # ifdef NBPC
10200 # define getpagesize() NBPC
10201 # else /* no NBPC */
10202 # ifdef PAGESIZE
10203 # define getpagesize() PAGESIZE
10204 # endif /* PAGESIZE */
10205 # endif /* no NBPC */
10206 # endif /* no NBPG */
10207 # endif /* no EXEC_PAGESIZE */
10208 # else /* no HAVE_SYS_PARAM_H */
10209 # define getpagesize() 8192 /* punt totally */
10210 # endif /* no HAVE_SYS_PARAM_H */
10211 # endif /* no _SC_PAGESIZE */
10212
10213 #endif /* no HAVE_GETPAGESIZE */
10214
10215 int
10216 main ()
10217 {
10218 char *data, *data2, *data3;
10219 int i, pagesize;
10220 int fd;
10221
10222 pagesize = getpagesize ();
10223
10224 /* First, make a file with some known garbage in it. */
10225 data = (char *) malloc (pagesize);
10226 if (!data)
10227 return 1;
10228 for (i = 0; i < pagesize; ++i)
10229 *(data + i) = rand ();
10230 umask (0);
10231 fd = creat ("conftest.mmap", 0600);
10232 if (fd < 0)
10233 return 1;
10234 if (write (fd, data, pagesize) != pagesize)
10235 return 1;
10236 close (fd);
10237
10238 /* Next, try to mmap the file at a fixed address which already has
10239 something else allocated at it. If we can, also make sure that
10240 we see the same garbage. */
10241 fd = open ("conftest.mmap", O_RDWR);
10242 if (fd < 0)
10243 return 1;
10244 data2 = (char *) malloc (2 * pagesize);
10245 if (!data2)
10246 return 1;
10247 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10248 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10249 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10250 return 1;
10251 for (i = 0; i < pagesize; ++i)
10252 if (*(data + i) != *(data2 + i))
10253 return 1;
10254
10255 /* Finally, make sure that changes to the mapped area do not
10256 percolate back to the file as seen by read(). (This is a bug on
10257 some variants of i386 svr4.0.) */
10258 for (i = 0; i < pagesize; ++i)
10259 *(data2 + i) = *(data2 + i) + 1;
10260 data3 = (char *) malloc (pagesize);
10261 if (!data3)
10262 return 1;
10263 if (read (fd, data3, pagesize) != pagesize)
10264 return 1;
10265 for (i = 0; i < pagesize; ++i)
10266 if (*(data + i) != *(data3 + i))
10267 return 1;
10268 close (fd);
10269 return 0;
10270 }
10271 _ACEOF
10272 rm -f conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_func_mmap_fixed_mapped=yes
10293 else
10294 echo "$as_me: program exited with status $ac_status" >&5
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298 ( exit $ac_status )
10299 ac_cv_func_mmap_fixed_mapped=no
10300 fi
10301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10302 fi
10303
10304
10305 fi
10306 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10307 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10308 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10309
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_MMAP 1
10312 _ACEOF
10313
10314 fi
10315 rm -f conftest.mmap
10316
10317 if test $use_mmap_for_buffers = yes; then
10318 REL_ALLOC=no
10319 fi
10320
10321 LIBS="$libsrc_libs $LIBS"
10322
10323
10324 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10325 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10326 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-ldnet $LIBS"
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h. */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10341 #ifdef __cplusplus
10342 extern "C"
10343 #endif
10344 char dnet_ntoa ();
10345 int
10346 main ()
10347 {
10348 return dnet_ntoa ();
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10371 ac_cv_lib_dnet_dnet_ntoa=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_dnet_dnet_ntoa=no
10377 fi
10378
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10384 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10385 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_LIBDNET 1
10388 _ACEOF
10389
10390 LIBS="-ldnet $LIBS"
10391
10392 fi
10393
10394
10395 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10396 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10397 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lXbsd $LIBS"
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408
10409
10410 int
10411 main ()
10412 {
10413 return main ();
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext &&
10435 $as_test_x conftest$ac_exeext; then
10436 ac_cv_lib_Xbsd_main=yes
10437 else
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 ac_cv_lib_Xbsd_main=no
10442 fi
10443
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10447 fi
10448 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10449 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10450 if test $ac_cv_lib_Xbsd_main = yes; then
10451 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10452 fi
10453
10454
10455
10456 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10457 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10458 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-lpthreads $LIBS"
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 char cma_open ();
10477 int
10478 main ()
10479 {
10480 return cma_open ();
10481 ;
10482 return 0;
10483 }
10484 _ACEOF
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (ac_try="$ac_link"
10487 case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest$ac_exeext &&
10502 $as_test_x conftest$ac_exeext; then
10503 ac_cv_lib_pthreads_cma_open=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 ac_cv_lib_pthreads_cma_open=no
10509 fi
10510
10511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10514 fi
10515 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10516 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10517 if test $ac_cv_lib_pthreads_cma_open = yes; then
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_LIBPTHREADS 1
10520 _ACEOF
10521
10522 LIBS="-lpthreads $LIBS"
10523
10524 fi
10525
10526
10527 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10528 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10529 if test -d /usr/X386/include; then
10530 HAVE_XFREE386=yes
10531 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10532 else
10533 HAVE_XFREE386=no
10534 fi
10535 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10536 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10537
10538
10539 case ${host_os} in
10540 aix*)
10541 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10542 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10543 if test "${gdb_cv_bigtoc+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546
10547 case $GCC in
10548 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10549 *) gdb_cv_bigtoc=-bbigtoc ;;
10550 esac
10551
10552 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h. */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559
10560 int
10561 main ()
10562 {
10563 int i;
10564 ;
10565 return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (ac_try="$ac_link"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_link") 2>conftest.er1
10576 ac_status=$?
10577 grep -v '^ *+' conftest.er1 >conftest.err
10578 rm -f conftest.er1
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && {
10582 test -z "$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10584 } && test -s conftest$ac_exeext &&
10585 $as_test_x conftest$ac_exeext; then
10586 :
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 gdb_cv_bigtoc=
10592 fi
10593
10594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10595 conftest$ac_exeext conftest.$ac_ext
10596
10597 fi
10598 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10599 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10600 ;;
10601 esac
10602
10603 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10604 # used for the tests that follow. We set them back to REAL_CFLAGS and
10605 # REAL_CPPFLAGS later on.
10606
10607 REAL_CPPFLAGS="$CPPFLAGS"
10608
10609 if test "${HAVE_X11}" = "yes"; then
10610 DEFS="$C_SWITCH_X_SITE $DEFS"
10611 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10612 LIBS="$LIBX $LIBS"
10613 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10614 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10615
10616 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10617 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10618 # but it's more convenient here to set LD_RUN_PATH
10619 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10620 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10621 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10622 export LD_RUN_PATH
10623 fi
10624
10625 if test "${opsys}" = "gnu-linux"; then
10626 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10627 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h. */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634
10635 int
10636 main ()
10637 {
10638 XOpenDisplay ("foo");
10639 ;
10640 return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 xlinux_first_failure=no
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 xlinux_first_failure=yes
10667 fi
10668
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10671 if test "${xlinux_first_failure}" = "yes"; then
10672 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10673 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10674 OLD_CPPFLAGS="$CPPFLAGS"
10675 OLD_LIBS="$LIBS"
10676 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10677 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10678 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10679 LIBS="$LIBS -b i486-linuxaout"
10680 cat >conftest.$ac_ext <<_ACEOF
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10686
10687 int
10688 main ()
10689 {
10690 XOpenDisplay ("foo");
10691 ;
10692 return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (ac_try="$ac_link"
10697 case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest$ac_exeext &&
10712 $as_test_x conftest$ac_exeext; then
10713 xlinux_second_failure=no
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10717
10718 xlinux_second_failure=yes
10719 fi
10720
10721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10722 conftest$ac_exeext conftest.$ac_ext
10723 if test "${xlinux_second_failure}" = "yes"; then
10724 # If we get the same failure with -b, there is no use adding -b.
10725 # So take it out. This plays safe.
10726 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10727 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10728 CPPFLAGS="$OLD_CPPFLAGS"
10729 LIBS="$OLD_LIBS"
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10732 else
10733 { echo "$as_me:$LINENO: result: yes" >&5
10734 echo "${ECHO_T}yes" >&6; }
10735 fi
10736 else
10737 { echo "$as_me:$LINENO: result: no" >&5
10738 echo "${ECHO_T}no" >&6; }
10739 fi
10740 fi
10741
10742 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10743 # header files included from there.
10744 { echo "$as_me:$LINENO: checking for Xkb" >&5
10745 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h. */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <X11/Xlib.h>
10753 #include <X11/XKBlib.h>
10754 int
10755 main ()
10756 {
10757 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (ac_try="$ac_link"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_link") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest$ac_exeext &&
10779 $as_test_x conftest$ac_exeext; then
10780 emacs_xkb=yes
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785 emacs_xkb=no
10786 fi
10787
10788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10789 conftest$ac_exeext conftest.$ac_ext
10790 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10791 echo "${ECHO_T}$emacs_xkb" >&6; }
10792 if test $emacs_xkb = yes; then
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_XKBGETKEYBOARD 1
10796 _ACEOF
10797
10798 fi
10799
10800
10801
10802
10803
10804 for ac_func in XrmSetDatabase XScreenResourceString \
10805 XScreenNumberOfScreen XSetWMProtocols
10806 do
10807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10821 #define $ac_func innocuous_$ac_func
10822
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char $ac_func (); below.
10825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10826 <limits.h> exists even on freestanding compilers. */
10827
10828 #ifdef __STDC__
10829 # include <limits.h>
10830 #else
10831 # include <assert.h>
10832 #endif
10833
10834 #undef $ac_func
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char $ac_func ();
10843 /* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846 #if defined __stub_$ac_func || defined __stub___$ac_func
10847 choke me
10848 #endif
10849
10850 int
10851 main ()
10852 {
10853 return $ac_func ();
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (ac_try="$ac_link"
10860 case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863 esac
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_link") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest$ac_exeext &&
10875 $as_test_x conftest$ac_exeext; then
10876 eval "$as_ac_var=yes"
10877 else
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881 eval "$as_ac_var=no"
10882 fi
10883
10884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10885 conftest$ac_exeext conftest.$ac_ext
10886 fi
10887 ac_res=`eval echo '${'$as_ac_var'}'`
10888 { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10890 if test `eval echo '${'$as_ac_var'}'` = yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10893 _ACEOF
10894
10895 fi
10896 done
10897
10898 fi
10899
10900 if test "${window_system}" = "x11"; then
10901 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10902 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10903 if test "${emacs_cv_x11_version_6+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #include <X11/Xlib.h>
10913 int
10914 main ()
10915 {
10916 #if XlibSpecificationRelease < 6
10917 fail;
10918 #endif
10919
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_link") 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest$ac_exeext &&
10941 $as_test_x conftest$ac_exeext; then
10942 emacs_cv_x11_version_6=yes
10943 else
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 emacs_cv_x11_version_6=no
10948 fi
10949
10950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10951 conftest$ac_exeext conftest.$ac_ext
10952 fi
10953
10954 if test $emacs_cv_x11_version_6 = yes; then
10955 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10956 echo "${ECHO_T}6 or newer" >&6; }
10957
10958 cat >>confdefs.h <<\_ACEOF
10959 #define HAVE_X11R6 1
10960 _ACEOF
10961
10962 else
10963 { echo "$as_me:$LINENO: result: before 6" >&5
10964 echo "${ECHO_T}before 6" >&6; }
10965 fi
10966 fi
10967
10968 if test "${window_system}" = "x11"; then
10969 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10970 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10971 if test "${emacs_cv_x11_version_5+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974 cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h. */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 #include <X11/Xlib.h>
10981 int
10982 main ()
10983 {
10984 #if XlibSpecificationRelease < 5
10985 fail;
10986 #endif
10987
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (ac_try="$ac_link"
10994 case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_link") 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest$ac_exeext &&
11009 $as_test_x conftest$ac_exeext; then
11010 emacs_cv_x11_version_5=yes
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015 emacs_cv_x11_version_5=no
11016 fi
11017
11018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11019 conftest$ac_exeext conftest.$ac_ext
11020 fi
11021
11022 if test $emacs_cv_x11_version_5 = yes; then
11023 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11024 echo "${ECHO_T}5 or newer" >&6; }
11025 HAVE_X11R5=yes
11026
11027 cat >>confdefs.h <<\_ACEOF
11028 #define HAVE_X11R5 1
11029 _ACEOF
11030
11031 else
11032 HAVE_X11R5=no
11033 { echo "$as_me:$LINENO: result: before 5" >&5
11034 echo "${ECHO_T}before 5" >&6; }
11035 fi
11036 fi
11037
11038 HAVE_GTK=no
11039 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11040 USE_X_TOOLKIT=none
11041 fi
11042 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11043 test "$USE_X_TOOLKIT" = "maybe"; then
11044 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11045 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11046 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11047 { (exit 1); exit 1; }; };
11048 fi
11049 GLIB_REQUIRED=2.4
11050 GTK_REQUIRED=2.4
11051 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11052
11053 if test "X${with_pkg_config_prog}" != X; then
11054 PKG_CONFIG="${with_pkg_config_prog}"
11055 fi
11056
11057 succeeded=no
11058
11059 if test -z "$PKG_CONFIG"; then
11060 # Extract the first word of "pkg-config", so it can be a program name with args.
11061 set dummy pkg-config; ac_word=$2
11062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067 case $PKG_CONFIG in
11068 [\\/]* | ?:[\\/]*)
11069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11070 ;;
11071 *)
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083 done
11084 done
11085 IFS=$as_save_IFS
11086
11087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11088 ;;
11089 esac
11090 fi
11091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11092 if test -n "$PKG_CONFIG"; then
11093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11094 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11095 else
11096 { echo "$as_me:$LINENO: result: no" >&5
11097 echo "${ECHO_T}no" >&6; }
11098 fi
11099
11100
11101 fi
11102
11103 if test "$PKG_CONFIG" = "no" ; then
11104 pkg_check_gtk=no
11105 else
11106 PKG_CONFIG_MIN_VERSION=0.9.0
11107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11108 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11109 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11110
11111 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11112 { echo "$as_me:$LINENO: result: yes" >&5
11113 echo "${ECHO_T}yes" >&6; }
11114 succeeded=yes
11115
11116 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11117 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11118 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11119 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11120 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11121
11122 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11123 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11124 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11125 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11126 echo "${ECHO_T}$GTK_LIBS" >&6; }
11127 else
11128 { echo "$as_me:$LINENO: result: no" >&5
11129 echo "${ECHO_T}no" >&6; }
11130 GTK_CFLAGS=""
11131 GTK_LIBS=""
11132 ## If we have a custom action on failure, don't print errors, but
11133 ## do set a variable so people can do so.
11134 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11135
11136 fi
11137
11138
11139
11140 else
11141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11143 fi
11144 fi
11145
11146 if test $succeeded = yes; then
11147 pkg_check_gtk=yes
11148 else
11149 pkg_check_gtk=no
11150 fi
11151
11152 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11153 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11154 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11155 { (exit 1); exit 1; }; }
11156 fi
11157 fi
11158
11159
11160 if test x"$pkg_check_gtk" = xyes; then
11161
11162
11163
11164 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11165 CFLAGS="$CFLAGS $GTK_CFLAGS"
11166 LIBS="$GTK_LIBS $LIBS"
11167 GTK_COMPILES=no
11168
11169 for ac_func in gtk_main
11170 do
11171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11185 #define $ac_func innocuous_$ac_func
11186
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below.
11189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190 <limits.h> exists even on freestanding compilers. */
11191
11192 #ifdef __STDC__
11193 # include <limits.h>
11194 #else
11195 # include <assert.h>
11196 #endif
11197
11198 #undef $ac_func
11199
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char $ac_func ();
11207 /* The GNU C library defines this for functions which it implements
11208 to always fail with ENOSYS. Some functions are actually named
11209 something starting with __ and the normal name is an alias. */
11210 #if defined __stub_$ac_func || defined __stub___$ac_func
11211 choke me
11212 #endif
11213
11214 int
11215 main ()
11216 {
11217 return $ac_func ();
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest$ac_exeext &&
11239 $as_test_x conftest$ac_exeext; then
11240 eval "$as_ac_var=yes"
11241 else
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 eval "$as_ac_var=no"
11246 fi
11247
11248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249 conftest$ac_exeext conftest.$ac_ext
11250 fi
11251 ac_res=`eval echo '${'$as_ac_var'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253 echo "${ECHO_T}$ac_res" >&6; }
11254 if test `eval echo '${'$as_ac_var'}'` = yes; then
11255 cat >>confdefs.h <<_ACEOF
11256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257 _ACEOF
11258 GTK_COMPILES=yes
11259 fi
11260 done
11261
11262 if test "${GTK_COMPILES}" != "yes"; then
11263 if test "$USE_X_TOOLKIT" != "maybe"; then
11264 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11265 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11266 { (exit 1); exit 1; }; };
11267 fi
11268 else
11269 HAVE_GTK=yes
11270
11271 cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_GTK 1
11273 _ACEOF
11274
11275 USE_X_TOOLKIT=none
11276 fi
11277
11278 fi
11279
11280
11281 if test "${HAVE_GTK}" = "yes"; then
11282
11283 if test "$with_toolkit_scroll_bars" != no; then
11284 with_toolkit_scroll_bars=yes
11285 fi
11286
11287 HAVE_GTK_MULTIDISPLAY=no
11288
11289 for ac_func in gdk_display_open
11290 do
11291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define $ac_func innocuous_$ac_func
11306
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11311
11312 #ifdef __STDC__
11313 # include <limits.h>
11314 #else
11315 # include <assert.h>
11316 #endif
11317
11318 #undef $ac_func
11319
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char $ac_func ();
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub_$ac_func || defined __stub___$ac_func
11331 choke me
11332 #endif
11333
11334 int
11335 main ()
11336 {
11337 return $ac_func ();
11338 ;
11339 return 0;
11340 }
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest$ac_exeext &&
11359 $as_test_x conftest$ac_exeext; then
11360 eval "$as_ac_var=yes"
11361 else
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11364
11365 eval "$as_ac_var=no"
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11369 conftest$ac_exeext conftest.$ac_ext
11370 fi
11371 ac_res=`eval echo '${'$as_ac_var'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374 if test `eval echo '${'$as_ac_var'}'` = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11377 _ACEOF
11378 HAVE_GTK_MULTIDISPLAY=yes
11379 fi
11380 done
11381
11382 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11383
11384 cat >>confdefs.h <<\_ACEOF
11385 #define HAVE_GTK_MULTIDISPLAY 1
11386 _ACEOF
11387
11388 fi
11389 HAVE_GTK_FILE_SELECTION=no
11390
11391 for ac_func in gtk_file_selection_new
11392 do
11393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399 cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h. */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11407 #define $ac_func innocuous_$ac_func
11408
11409 /* System header to define __stub macros and hopefully few prototypes,
11410 which can conflict with char $ac_func (); below.
11411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11412 <limits.h> exists even on freestanding compilers. */
11413
11414 #ifdef __STDC__
11415 # include <limits.h>
11416 #else
11417 # include <assert.h>
11418 #endif
11419
11420 #undef $ac_func
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char $ac_func ();
11429 /* The GNU C library defines this for functions which it implements
11430 to always fail with ENOSYS. Some functions are actually named
11431 something starting with __ and the normal name is an alias. */
11432 #if defined __stub_$ac_func || defined __stub___$ac_func
11433 choke me
11434 #endif
11435
11436 int
11437 main ()
11438 {
11439 return $ac_func ();
11440 ;
11441 return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext conftest$ac_exeext
11445 if { (ac_try="$ac_link"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_link") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest$ac_exeext &&
11461 $as_test_x conftest$ac_exeext; then
11462 eval "$as_ac_var=yes"
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 eval "$as_ac_var=no"
11468 fi
11469
11470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11471 conftest$ac_exeext conftest.$ac_ext
11472 fi
11473 ac_res=`eval echo '${'$as_ac_var'}'`
11474 { echo "$as_me:$LINENO: result: $ac_res" >&5
11475 echo "${ECHO_T}$ac_res" >&6; }
11476 if test `eval echo '${'$as_ac_var'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11479 _ACEOF
11480 HAVE_GTK_FILE_SELECTION=yes
11481 fi
11482 done
11483
11484
11485 HAVE_GTK_FILE_CHOOSER=no
11486
11487 for ac_func in gtk_file_chooser_dialog_new
11488 do
11489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503 #define $ac_func innocuous_$ac_func
11504
11505 /* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11509
11510 #ifdef __STDC__
11511 # include <limits.h>
11512 #else
11513 # include <assert.h>
11514 #endif
11515
11516 #undef $ac_func
11517
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char $ac_func ();
11525 /* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528 #if defined __stub_$ac_func || defined __stub___$ac_func
11529 choke me
11530 #endif
11531
11532 int
11533 main ()
11534 {
11535 return $ac_func ();
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (ac_try="$ac_link"
11542 case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest$ac_exeext &&
11557 $as_test_x conftest$ac_exeext; then
11558 eval "$as_ac_var=yes"
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 eval "$as_ac_var=no"
11564 fi
11565
11566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11567 conftest$ac_exeext conftest.$ac_ext
11568 fi
11569 ac_res=`eval echo '${'$as_ac_var'}'`
11570 { echo "$as_me:$LINENO: result: $ac_res" >&5
11571 echo "${ECHO_T}$ac_res" >&6; }
11572 if test `eval echo '${'$as_ac_var'}'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11575 _ACEOF
11576 HAVE_GTK_FILE_CHOOSER=yes
11577 fi
11578 done
11579
11580
11581 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11582 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11583
11584 cat >>confdefs.h <<\_ACEOF
11585 #define HAVE_GTK_FILE_BOTH 1
11586 _ACEOF
11587
11588 fi
11589
11590 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11591 HAVE_GTK_AND_PTHREAD=no
11592
11593 for ac_header in pthread.h
11594 do
11595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 fi
11602 ac_res=`eval echo '${'$as_ac_Header'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11605 else
11606 # Is the header compilable?
11607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 $ac_includes_default
11616 #include <$ac_header>
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11623 esac
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11635 ac_header_compiler=yes
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 ac_header_compiler=no
11641 fi
11642
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11645 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646
11647 # Is the header present?
11648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11650 cat >conftest.$ac_ext <<_ACEOF
11651 /* confdefs.h. */
11652 _ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 #include <$ac_header>
11657 _ACEOF
11658 if { (ac_try="$ac_cpp conftest.$ac_ext"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } >/dev/null && {
11671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 }; then
11674 ac_header_preproc=yes
11675 else
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679 ac_header_preproc=no
11680 fi
11681
11682 rm -f conftest.err conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685
11686 # So? What about this header?
11687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 yes:no: )
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693 ac_header_preproc=yes
11694 ;;
11695 no:yes:* )
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708
11709 ;;
11710 esac
11711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716 eval "$as_ac_Header=\$ac_header_preproc"
11717 fi
11718 ac_res=`eval echo '${'$as_ac_Header'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721
11722 fi
11723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726 _ACEOF
11727
11728 fi
11729
11730 done
11731
11732 if test "$ac_cv_header_pthread_h"; then
11733 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11734 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11735 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 ac_check_lib_save_LIBS=$LIBS
11739 LIBS="-lpthread $LIBS"
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h. */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char pthread_self ();
11754 int
11755 main ()
11756 {
11757 return pthread_self ();
11758 ;
11759 return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767 esac
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest$ac_exeext &&
11779 $as_test_x conftest$ac_exeext; then
11780 ac_cv_lib_pthread_pthread_self=yes
11781 else
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_cv_lib_pthread_pthread_self=no
11786 fi
11787
11788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11793 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11794 if test $ac_cv_lib_pthread_pthread_self = yes; then
11795 HAVE_GTK_AND_PTHREAD=yes
11796 fi
11797
11798 fi
11799 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11800 GTK_LIBS="$GTK_LIBS -lpthread"
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_GTK_AND_PTHREAD 1
11804 _ACEOF
11805
11806 fi
11807 fi
11808 fi
11809
11810 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11811 if test x"${HAVE_X11R5}" = xyes; then
11812 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11813 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11814 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823
11824 #include <X11/Intrinsic.h>
11825 #include <X11/Xaw/Simple.h>
11826 int
11827 main ()
11828 {
11829
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext conftest$ac_exeext
11835 if { (ac_try="$ac_link"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_link") 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest$ac_exeext &&
11851 $as_test_x conftest$ac_exeext; then
11852 emacs_cv_x11_version_5_with_xaw=yes
11853 else
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 emacs_cv_x11_version_5_with_xaw=no
11858 fi
11859
11860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11861 conftest$ac_exeext conftest.$ac_ext
11862 fi
11863
11864 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11865 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11866 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11867 USE_X_TOOLKIT=LUCID
11868 else
11869 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11870 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11871 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11872 { (exit 1); exit 1; }; }
11873 else
11874 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11875 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11876 USE_X_TOOLKIT=none
11877 fi
11878 fi
11879 else
11880 USE_X_TOOLKIT=none
11881 fi
11882 fi
11883
11884 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11885
11886 if test "${USE_X_TOOLKIT}" != "none"; then
11887 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11888 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11889 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <X11/Intrinsic.h>
11899 int
11900 main ()
11901 {
11902 #if XtSpecificationRelease < 6
11903 fail;
11904 #endif
11905
11906 ;
11907 return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest$ac_exeext &&
11927 $as_test_x conftest$ac_exeext; then
11928 emacs_cv_x11_toolkit_version_6=yes
11929 else
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 emacs_cv_x11_toolkit_version_6=no
11934 fi
11935
11936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11937 conftest$ac_exeext conftest.$ac_ext
11938 fi
11939
11940 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11941 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11942 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11943 echo "${ECHO_T}6 or newer" >&6; }
11944
11945 cat >>confdefs.h <<\_ACEOF
11946 #define HAVE_X11XTR6 1
11947 _ACEOF
11948
11949 else
11950 { echo "$as_me:$LINENO: result: before 6" >&5
11951 echo "${ECHO_T}before 6" >&6; }
11952 fi
11953
11954 OLDLIBS="$LIBS"
11955 if test x$HAVE_X11XTR6 = xyes; then
11956 LIBS="-lXt -lSM -lICE $LIBS"
11957 else
11958 LIBS="-lXt $LIBS"
11959 fi
11960
11961 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11962 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11963 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 ac_check_lib_save_LIBS=$LIBS
11967 LIBS="-lXmu $LIBS"
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 char XmuConvertStandardSelection ();
11982 int
11983 main ()
11984 {
11985 return XmuConvertStandardSelection ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest$ac_exeext &&
12007 $as_test_x conftest$ac_exeext; then
12008 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12009 else
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12014 fi
12015
12016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12019 fi
12020 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12021 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12022 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_LIBXMU 1
12025 _ACEOF
12026
12027 LIBS="-lXmu $LIBS"
12028
12029 fi
12030
12031 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12032 fi
12033
12034 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12035 if test "${HAVE_X11}" = "yes"; then
12036 if test "${USE_X_TOOLKIT}" != "none"; then
12037
12038 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12039 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12040 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-lXext $LIBS"
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char XShapeQueryExtension ();
12059 int
12060 main ()
12061 {
12062 return XShapeQueryExtension ();
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 ac_cv_lib_Xext_XShapeQueryExtension=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 ac_cv_lib_Xext_XShapeQueryExtension=no
12091 fi
12092
12093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12096 fi
12097 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12098 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12099 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12100 cat >>confdefs.h <<_ACEOF
12101 #define HAVE_LIBXEXT 1
12102 _ACEOF
12103
12104 LIBS="-lXext $LIBS"
12105
12106 fi
12107
12108 fi
12109 fi
12110
12111 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12112 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12113 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12114 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h. */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 #include <Xm/Xm.h>
12124 int
12125 main ()
12126 {
12127 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12128 int x = 5;
12129 #else
12130 Motif version prior to 2.1.
12131 #endif
12132 ;
12133 return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (ac_try="$ac_compile"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.$ac_objext; then
12153 emacs_cv_motif_version_2_1=yes
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 emacs_cv_motif_version_2_1=no
12159 fi
12160
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 fi
12163 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12164 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12165 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12166 if test $emacs_cv_motif_version_2_1 = yes; then
12167 HAVE_LIBXP=no
12168
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_MOTIF_2_1 1
12171 _ACEOF
12172
12173 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12174 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12175 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 ac_check_lib_save_LIBS=$LIBS
12179 LIBS="-lXp $LIBS"
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char XpCreateContext ();
12194 int
12195 main ()
12196 {
12197 return XpCreateContext ();
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (ac_try="$ac_link"
12204 case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_link") 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest$ac_exeext &&
12219 $as_test_x conftest$ac_exeext; then
12220 ac_cv_lib_Xp_XpCreateContext=yes
12221 else
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 ac_cv_lib_Xp_XpCreateContext=no
12226 fi
12227
12228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12233 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12234 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12235 HAVE_LIBXP=yes
12236 fi
12237
12238 if test ${HAVE_LIBXP} = yes; then
12239
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_LIBXP 1
12242 _ACEOF
12243
12244 fi
12245 else
12246 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12247 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12248 if test "${emacs_cv_lesstif+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251 # We put this in CFLAGS temporarily to precede other -I options
12252 # that might be in CFLAGS temporarily.
12253 # We put this in CPPFLAGS where it precedes the other -I options.
12254 OLD_CPPFLAGS=$CPPFLAGS
12255 OLD_CFLAGS=$CFLAGS
12256 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12257 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12265 int
12266 main ()
12267 {
12268 int x = 5;
12269 ;
12270 return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext
12274 if { (ac_try="$ac_compile"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12278 esac
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_compile") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest.$ac_objext; then
12290 emacs_cv_lesstif=yes
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 emacs_cv_lesstif=no
12296 fi
12297
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 fi
12300 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12301 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12302 if test $emacs_cv_lesstif = yes; then
12303 # Make sure this -I option remains in CPPFLAGS after it is set
12304 # back to REAL_CPPFLAGS.
12305 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12306 # have those other -I options anyway. Ultimately, having this
12307 # directory ultimately in CPPFLAGS will be enough.
12308 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12309 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12310 else
12311 CFLAGS=$OLD_CFLAGS
12312 CPPFLAGS=$OLD_CPPFLAGS
12313 fi
12314 fi
12315 fi
12316
12317 ### Is -lXaw3d available?
12318 HAVE_XAW3D=no
12319 if test "${HAVE_X11}" = "yes"; then
12320 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12321 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12322 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12323 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <X11/Xaw3d/Scrollbar.h>
12333 _ACEOF
12334 if { (ac_try="$ac_cpp conftest.$ac_ext"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12341 ac_status=$?
12342 grep -v '^ *+' conftest.er1 >conftest.err
12343 rm -f conftest.er1
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } >/dev/null && {
12347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 }; then
12350 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12356 fi
12357
12358 rm -f conftest.err conftest.$ac_ext
12359 fi
12360 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12361 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12362 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12363 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12364 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12365 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368 ac_check_lib_save_LIBS=$LIBS
12369 LIBS="-lXaw3d $LIBS"
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char XawScrollbarSetThumb ();
12384 int
12385 main ()
12386 {
12387 return XawScrollbarSetThumb ();
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
12400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest$ac_exeext &&
12409 $as_test_x conftest$ac_exeext; then
12410 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12411 else
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12416 fi
12417
12418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12419 conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12421 fi
12422 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12423 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12424 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12425 HAVE_XAW3D=yes
12426 fi
12427
12428 fi
12429
12430
12431 if test "${HAVE_XAW3D}" = "yes"; then
12432
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_XAW3D 1
12435 _ACEOF
12436
12437 fi
12438 fi
12439 fi
12440
12441
12442
12443 USE_TOOLKIT_SCROLL_BARS=no
12444 if test "${with_toolkit_scroll_bars}" != "no"; then
12445 if test "${USE_X_TOOLKIT}" != "none"; then
12446 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define USE_TOOLKIT_SCROLL_BARS 1
12449 _ACEOF
12450
12451 HAVE_XAW3D=no
12452 USE_TOOLKIT_SCROLL_BARS=yes
12453 elif test "${HAVE_XAW3D}" = "yes"; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define USE_TOOLKIT_SCROLL_BARS 1
12456 _ACEOF
12457
12458 USE_TOOLKIT_SCROLL_BARS=yes
12459 fi
12460 elif test "${HAVE_GTK}" = "yes"; then
12461 cat >>confdefs.h <<\_ACEOF
12462 #define USE_TOOLKIT_SCROLL_BARS 1
12463 _ACEOF
12464
12465 USE_TOOLKIT_SCROLL_BARS=yes
12466 elif test "${HAVE_CARBON}" = "yes"; then
12467 cat >>confdefs.h <<\_ACEOF
12468 #define USE_TOOLKIT_SCROLL_BARS 1
12469 _ACEOF
12470
12471 USE_TOOLKIT_SCROLL_BARS=yes
12472 fi
12473 fi
12474
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481
12482 #include <X11/Xlib.h>
12483 #include <X11/Xresource.h>
12484 int
12485 main ()
12486 {
12487 XIMProc callback;
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_compile") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest.$ac_objext; then
12509 HAVE_XIM=yes
12510
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_XIM 1
12513 _ACEOF
12514
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 HAVE_XIM=no
12520 fi
12521
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523
12524
12525 if test "${with_xim}" != "no"; then
12526
12527 cat >>confdefs.h <<\_ACEOF
12528 #define USE_XIM 1
12529 _ACEOF
12530
12531 fi
12532
12533
12534 if test "${HAVE_XIM}" != "no"; then
12535 late_CFLAGS=$CFLAGS
12536 if test "$GCC" = yes; then
12537 CFLAGS="$CFLAGS --pedantic-errors"
12538 fi
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545
12546 #include <X11/Xlib.h>
12547 #include <X11/Xresource.h>
12548 int
12549 main ()
12550 {
12551 Display *display;
12552 XrmDatabase db;
12553 char *res_name;
12554 char *res_class;
12555 XIMProc callback;
12556 XPointer *client_data;
12557 #ifndef __GNUC__
12558 /* If we're not using GCC, it's probably not XFree86, and this is
12559 probably right, but we can't use something like --pedantic-errors. */
12560 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12561 char*, XIMProc, XPointer*);
12562 #endif
12563 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12564 client_data);
12565 ;
12566 return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest.$ac_objext; then
12586 emacs_cv_arg6_star=yes
12587 else
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591
12592 fi
12593
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595
12596 if test "$emacs_cv_arg6_star" = yes; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12599 _ACEOF
12600
12601 else
12602 cat >>confdefs.h <<\_ACEOF
12603 #define XRegisterIMInstantiateCallback_arg6 XPointer
12604 _ACEOF
12605
12606 fi
12607 CFLAGS=$late_CFLAGS
12608 fi
12609
12610 ### For font-backend
12611 if test "${USE_FONT_BACKEND}" = "yes"; then
12612
12613
12614 cat >>confdefs.h <<\_ACEOF
12615 #define USE_FONT_BACKEND 1
12616 _ACEOF
12617
12618
12619 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12620 HAVE_XFT=maybe
12621 if test "${HAVE_X11}" = "yes"; then
12622 if test "x${with_freetype}" = "xno"; then
12623 with_xft="no";
12624 fi
12625 if test "x${with_xft}" != "xno"; then
12626
12627 if test "X${with_pkg_config_prog}" != X; then
12628 PKG_CONFIG="${with_pkg_config_prog}"
12629 fi
12630
12631
12632 succeeded=no
12633
12634 if test -z "$PKG_CONFIG"; then
12635 # Extract the first word of "pkg-config", so it can be a program name with args.
12636 set dummy pkg-config; ac_word=$2
12637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 case $PKG_CONFIG in
12643 [\\/]* | ?:[\\/]*)
12644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12645 ;;
12646 *)
12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12649 do
12650 IFS=$as_save_IFS
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12656 break 2
12657 fi
12658 done
12659 done
12660 IFS=$as_save_IFS
12661
12662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12663 ;;
12664 esac
12665 fi
12666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12667 if test -n "$PKG_CONFIG"; then
12668 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12669 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12670 else
12671 { echo "$as_me:$LINENO: result: no" >&5
12672 echo "${ECHO_T}no" >&6; }
12673 fi
12674
12675
12676 fi
12677
12678 if test "$PKG_CONFIG" = "no" ; then
12679 HAVE_XFT=no
12680 else
12681 PKG_CONFIG_MIN_VERSION=0.9.0
12682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12683 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12684 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12685
12686 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12687 { echo "$as_me:$LINENO: result: yes" >&5
12688 echo "${ECHO_T}yes" >&6; }
12689 succeeded=yes
12690
12691 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12692 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12693 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12694 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12695 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12696
12697 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12698 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12699 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12700 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12701 echo "${ECHO_T}$XFT_LIBS" >&6; }
12702 else
12703 { echo "$as_me:$LINENO: result: no" >&5
12704 echo "${ECHO_T}no" >&6; }
12705 XFT_CFLAGS=""
12706 XFT_LIBS=""
12707 ## If we have a custom action on failure, don't print errors, but
12708 ## do set a variable so people can do so.
12709 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12710
12711 fi
12712
12713
12714
12715 else
12716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12718 fi
12719 fi
12720
12721 if test $succeeded = yes; then
12722 :
12723 else
12724 HAVE_XFT=no
12725 fi
12726
12727 if test "$HAVE_XFT" != no; then
12728 OLD_CPPFLAGS="$CPPFLAGS"
12729 OLD_CFLAGS="$CFLAGS"
12730 OLD_LIBS="$LIBS"
12731 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12732 CFLAGS="$CFLAGS $XFT_CFLAGS"
12733 LIBS="$XFT_LIBS $LIBS"
12734 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12735 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12736 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12737 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 fi
12740 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12741 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12742 else
12743 # Is the header compilable?
12744 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12745 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12746 cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h. */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 #include <X11/Xft/Xft.h>
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (ac_try="$ac_compile"
12757 case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_compile") 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest.$ac_objext; then
12772 ac_header_compiler=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_header_compiler=no
12778 fi
12779
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12782 echo "${ECHO_T}$ac_header_compiler" >&6; }
12783
12784 # Is the header present?
12785 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12786 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #include <X11/Xft/Xft.h>
12794 _ACEOF
12795 if { (ac_try="$ac_cpp conftest.$ac_ext"
12796 case "(($ac_try" in
12797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12799 esac
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } >/dev/null && {
12808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12810 }; then
12811 ac_header_preproc=yes
12812 else
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816 ac_header_preproc=no
12817 fi
12818
12819 rm -f conftest.err conftest.$ac_ext
12820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6; }
12822
12823 # So? What about this header?
12824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12825 yes:no: )
12826 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12829 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12830 ac_header_preproc=yes
12831 ;;
12832 no:yes:* )
12833 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12834 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12836 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12838 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12840 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12842 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12844 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12845
12846 ;;
12847 esac
12848 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12849 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12850 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12854 fi
12855 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12856 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12857
12858 fi
12859 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12860 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12861 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12862 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865 ac_check_lib_save_LIBS=$LIBS
12866 LIBS="-lXft $XFT_LIBS $LIBS"
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h. */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char XftFontOpen ();
12881 int
12882 main ()
12883 {
12884 return XftFontOpen ();
12885 ;
12886 return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest$ac_exeext &&
12906 $as_test_x conftest$ac_exeext; then
12907 ac_cv_lib_Xft_XftFontOpen=yes
12908 else
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 ac_cv_lib_Xft_XftFontOpen=no
12913 fi
12914
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12918 fi
12919 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12920 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12921 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12922 HAVE_XFT=yes
12923 fi
12924
12925 fi
12926
12927
12928
12929 if test "${HAVE_XFT}" = "yes"; then
12930
12931 cat >>confdefs.h <<\_ACEOF
12932 #define HAVE_XFT 1
12933 _ACEOF
12934
12935
12936 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12937 else
12938 CFLAGS="$OLD_CPPFLAGS"
12939 CFLAGS="$OLD_CFLAGS"
12940 LIBS="$OLD_LIBS"
12941 fi
12942 fi
12943 fi
12944 fi
12945
12946 HAVE_FREETYPE=no
12947 ### Use -lfreetype if available, unless `--with-freetype=no'.
12948 if test "${HAVE_XFT}" = "yes"; then
12949 HAVE_FREETYPE=yes
12950 elif test "x${with_freetype}" != "xno"; then
12951 if test "X${with_pkg_config_prog}" != X; then
12952 PKG_CONFIG="${with_pkg_config_prog}"
12953 fi
12954
12955
12956 succeeded=no
12957
12958 if test -z "$PKG_CONFIG"; then
12959 # Extract the first word of "pkg-config", so it can be a program name with args.
12960 set dummy pkg-config; ac_word=$2
12961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966 case $PKG_CONFIG in
12967 [\\/]* | ?:[\\/]*)
12968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12969 ;;
12970 *)
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12973 do
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 break 2
12981 fi
12982 done
12983 done
12984 IFS=$as_save_IFS
12985
12986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12987 ;;
12988 esac
12989 fi
12990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12991 if test -n "$PKG_CONFIG"; then
12992 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12993 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12994 else
12995 { echo "$as_me:$LINENO: result: no" >&5
12996 echo "${ECHO_T}no" >&6; }
12997 fi
12998
12999
13000 fi
13001
13002 if test "$PKG_CONFIG" = "no" ; then
13003 HAVE_FREETYPE=no
13004 else
13005 PKG_CONFIG_MIN_VERSION=0.9.0
13006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13007 { echo "$as_me:$LINENO: checking for freetype2" >&5
13008 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13009
13010 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13011 { echo "$as_me:$LINENO: result: yes" >&5
13012 echo "${ECHO_T}yes" >&6; }
13013 succeeded=yes
13014
13015 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13016 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13017 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13018 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13019 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13020
13021 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13022 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13023 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13024 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13025 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13026 else
13027 { echo "$as_me:$LINENO: result: no" >&5
13028 echo "${ECHO_T}no" >&6; }
13029 FREETYPE_CFLAGS=""
13030 FREETYPE_LIBS=""
13031 ## If we have a custom action on failure, don't print errors, but
13032 ## do set a variable so people can do so.
13033 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13034
13035 fi
13036
13037
13038
13039 else
13040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13042 fi
13043 fi
13044
13045 if test $succeeded = yes; then
13046 HAVE_FREETYPE=yes
13047 else
13048 HAVE_FREETYPE=no
13049 fi
13050
13051 if test "${HAVE_FREETYPE}" = "yes"; then
13052
13053 succeeded=no
13054
13055 if test -z "$PKG_CONFIG"; then
13056 # Extract the first word of "pkg-config", so it can be a program name with args.
13057 set dummy pkg-config; ac_word=$2
13058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 case $PKG_CONFIG in
13064 [\\/]* | ?:[\\/]*)
13065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13066 ;;
13067 *)
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13070 do
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13078 fi
13079 done
13080 done
13081 IFS=$as_save_IFS
13082
13083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13084 ;;
13085 esac
13086 fi
13087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13088 if test -n "$PKG_CONFIG"; then
13089 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13090 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13091 else
13092 { echo "$as_me:$LINENO: result: no" >&5
13093 echo "${ECHO_T}no" >&6; }
13094 fi
13095
13096
13097 fi
13098
13099 if test "$PKG_CONFIG" = "no" ; then
13100 HAVE_FC=no
13101 else
13102 PKG_CONFIG_MIN_VERSION=0.9.0
13103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13104 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13105 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13106
13107 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13108 { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13110 succeeded=yes
13111
13112 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13113 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13114 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13115 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13116 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13117
13118 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13119 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13120 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13121 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13122 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13123 else
13124 { echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6; }
13126 FONTCONFIG_CFLAGS=""
13127 FONTCONFIG_LIBS=""
13128 ## If we have a custom action on failure, don't print errors, but
13129 ## do set a variable so people can do so.
13130 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13131
13132 fi
13133
13134
13135
13136 else
13137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13139 fi
13140 fi
13141
13142 if test $succeeded = yes; then
13143 HAVE_FC=yes
13144 else
13145 HAVE_FC=no
13146 fi
13147
13148 if test "${HAVE_FC}" = "no"; then
13149 HAVE_FREETYPE=no
13150 fi
13151 fi
13152 fi
13153 if test "${HAVE_FREETYPE}" = "yes"; then
13154
13155 cat >>confdefs.h <<\_ACEOF
13156 #define HAVE_FREETYPE 1
13157 _ACEOF
13158
13159 # Extract the first word of "libotf-config", so it can be a program name with args.
13160 set dummy libotf-config; ac_word=$2
13161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13163 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166 if test -n "$HAVE_LIBOTF"; then
13167 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13168 else
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13171 do
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_prog_HAVE_LIBOTF="yes"
13177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13178 break 2
13179 fi
13180 done
13181 done
13182 IFS=$as_save_IFS
13183
13184 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13185 fi
13186 fi
13187 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13188 if test -n "$HAVE_LIBOTF"; then
13189 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13190 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13191 else
13192 { echo "$as_me:$LINENO: result: no" >&5
13193 echo "${ECHO_T}no" >&6; }
13194 fi
13195
13196
13197 if test "${HAVE_LIBOTF}" = "yes"; then
13198
13199 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13200 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13201 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204 ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-lotf $LIBS"
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h. */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13212
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char OTF_get_features ();
13220 int
13221 main ()
13222 {
13223 return OTF_get_features ();
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext conftest$ac_exeext
13229 if { (ac_try="$ac_link"
13230 case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_link") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 ac_cv_lib_otf_OTF_get_features=yes
13247 else
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 ac_cv_lib_otf_OTF_get_features=no
13252 fi
13253
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13257 fi
13258 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13259 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13260 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13261 cat >>confdefs.h <<_ACEOF
13262 #define HAVE_LIBOTF 1
13263 _ACEOF
13264
13265 LIBS="-lotf $LIBS"
13266
13267 else
13268 HAVE_LIBOTF=no
13269 fi
13270
13271 if test "${HAVE_LIBOTF}" = "yes"; then
13272
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_LIBOTF 1
13275 _ACEOF
13276
13277 LIBOTF_CFLAGS=`libotf-config --cflags`
13278 LIBOTF_LIBS=`libotf-config --libs`
13279 fi
13280 fi
13281 fi
13282
13283
13284
13285
13286
13287
13288
13289 fi
13290
13291 ### Use -lXpm if available, unless `--with-xpm=no'.
13292 HAVE_XPM=no
13293 if test "${HAVE_X11}" = "yes"; then
13294 if test "${with_xpm}" != "no"; then
13295 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13296 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13297 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13298 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 fi
13301 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13302 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13303 else
13304 # Is the header compilable?
13305 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13306 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h. */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13314 #include <X11/xpm.h>
13315 _ACEOF
13316 rm -f conftest.$ac_objext
13317 if { (ac_try="$ac_compile"
13318 case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_compile") 2>conftest.er1
13324 ac_status=$?
13325 grep -v '^ *+' conftest.er1 >conftest.err
13326 rm -f conftest.er1
13327 cat conftest.err >&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && {
13330 test -z "$ac_c_werror_flag" ||
13331 test ! -s conftest.err
13332 } && test -s conftest.$ac_objext; then
13333 ac_header_compiler=yes
13334 else
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 ac_header_compiler=no
13339 fi
13340
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343 echo "${ECHO_T}$ac_header_compiler" >&6; }
13344
13345 # Is the header present?
13346 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13347 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h. */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <X11/xpm.h>
13355 _ACEOF
13356 if { (ac_try="$ac_cpp conftest.$ac_ext"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360 esac
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } >/dev/null && {
13369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13370 test ! -s conftest.err
13371 }; then
13372 ac_header_preproc=yes
13373 else
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 ac_header_preproc=no
13378 fi
13379
13380 rm -f conftest.err conftest.$ac_ext
13381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382 echo "${ECHO_T}$ac_header_preproc" >&6; }
13383
13384 # So? What about this header?
13385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13386 yes:no: )
13387 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13388 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13390 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13391 ac_header_preproc=yes
13392 ;;
13393 no:yes:* )
13394 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13395 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13397 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13406
13407 ;;
13408 esac
13409 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13410 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13411 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414 ac_cv_header_X11_xpm_h=$ac_header_preproc
13415 fi
13416 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13417 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13418
13419 fi
13420 if test $ac_cv_header_X11_xpm_h = yes; then
13421 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13422 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13423 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-lXpm -lX11 $LIBS"
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13438 #ifdef __cplusplus
13439 extern "C"
13440 #endif
13441 char XpmReadFileToPixmap ();
13442 int
13443 main ()
13444 {
13445 return XpmReadFileToPixmap ();
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451 if { (ac_try="$ac_link"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_link") 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest$ac_exeext &&
13467 $as_test_x conftest$ac_exeext; then
13468 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13469 else
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13474 fi
13475
13476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13479 fi
13480 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13481 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13482 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13483 HAVE_XPM=yes
13484 fi
13485
13486 fi
13487
13488
13489 if test "${HAVE_XPM}" = "yes"; then
13490 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13491 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h. */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include "X11/xpm.h"
13499 #ifndef XpmReturnAllocPixels
13500 no_return_alloc_pixels
13501 #endif
13502
13503 _ACEOF
13504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13505 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13506 HAVE_XPM=no
13507 else
13508 HAVE_XPM=yes
13509 fi
13510 rm -f conftest*
13511
13512
13513 if test "${HAVE_XPM}" = "yes"; then
13514 { echo "$as_me:$LINENO: result: yes" >&5
13515 echo "${ECHO_T}yes" >&6; }
13516 else
13517 { echo "$as_me:$LINENO: result: no" >&5
13518 echo "${ECHO_T}no" >&6; }
13519 fi
13520 fi
13521 fi
13522
13523 if test "${HAVE_XPM}" = "yes"; then
13524
13525 cat >>confdefs.h <<\_ACEOF
13526 #define HAVE_XPM 1
13527 _ACEOF
13528
13529 fi
13530 fi
13531
13532 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13533 HAVE_JPEG=no
13534 if test "${HAVE_X11}" = "yes"; then
13535 if test "${with_jpeg}" != "no"; then
13536 if test "${ac_cv_header_jerror_h+set}" = set; then
13537 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13538 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13539 if test "${ac_cv_header_jerror_h+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 fi
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13544 else
13545 # Is the header compilable?
13546 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13547 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h. */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 #include <jerror.h>
13556 _ACEOF
13557 rm -f conftest.$ac_objext
13558 if { (ac_try="$ac_compile"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562 esac
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compile") 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && {
13571 test -z "$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13573 } && test -s conftest.$ac_objext; then
13574 ac_header_compiler=yes
13575 else
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_header_compiler=no
13580 fi
13581
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13584 echo "${ECHO_T}$ac_header_compiler" >&6; }
13585
13586 # Is the header present?
13587 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13588 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 #include <jerror.h>
13596 _ACEOF
13597 if { (ac_try="$ac_cpp conftest.$ac_ext"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601 esac
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13604 ac_status=$?
13605 grep -v '^ *+' conftest.er1 >conftest.err
13606 rm -f conftest.er1
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev/null && {
13610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13612 }; then
13613 ac_header_preproc=yes
13614 else
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 ac_header_preproc=no
13619 fi
13620
13621 rm -f conftest.err conftest.$ac_ext
13622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13623 echo "${ECHO_T}$ac_header_preproc" >&6; }
13624
13625 # So? What about this header?
13626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13627 yes:no: )
13628 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13629 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13631 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13632 ac_header_preproc=yes
13633 ;;
13634 no:yes:* )
13635 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13636 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13638 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13640 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13642 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13644 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13646 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13647
13648 ;;
13649 esac
13650 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13651 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_header_jerror_h+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655 ac_cv_header_jerror_h=$ac_header_preproc
13656 fi
13657 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13658 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13659
13660 fi
13661 if test $ac_cv_header_jerror_h = yes; then
13662 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13663 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-ljpeg $LIBS"
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char jpeg_destroy_compress ();
13683 int
13684 main ()
13685 {
13686 return jpeg_destroy_compress ();
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest$ac_exeext &&
13708 $as_test_x conftest$ac_exeext; then
13709 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13710 else
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13715 fi
13716
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13722 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13723 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13724 HAVE_JPEG=yes
13725 fi
13726
13727 fi
13728
13729
13730 fi
13731
13732
13733 if test "${HAVE_JPEG}" = "yes"; then
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_JPEG 1
13736 _ACEOF
13737
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <jpeglib.h>
13745 version=JPEG_LIB_VERSION
13746
13747 _ACEOF
13748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13750 cat >>confdefs.h <<\_ACEOF
13751 #define HAVE_JPEG 1
13752 _ACEOF
13753
13754 else
13755 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13756 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13757 HAVE_JPEG=no
13758 fi
13759 rm -f conftest*
13760
13761 fi
13762 fi
13763
13764 ### Use -lpng if available, unless `--with-png=no'.
13765 HAVE_PNG=no
13766 if test "${HAVE_X11}" = "yes"; then
13767 if test "${with_png}" != "no"; then
13768 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13769 # in /usr/include/libpng.
13770
13771
13772 for ac_header in png.h libpng/png.h
13773 do
13774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 fi
13781 ac_res=`eval echo '${'$as_ac_Header'}'`
13782 { echo "$as_me:$LINENO: result: $ac_res" >&5
13783 echo "${ECHO_T}$ac_res" >&6; }
13784 else
13785 # Is the header compilable?
13786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13788 cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h. */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 $ac_includes_default
13795 #include <$ac_header>
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (ac_try="$ac_compile"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_compile") 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest.$ac_objext; then
13814 ac_header_compiler=yes
13815 else
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 ac_header_compiler=no
13820 fi
13821
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13824 echo "${ECHO_T}$ac_header_compiler" >&6; }
13825
13826 # Is the header present?
13827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h. */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <$ac_header>
13836 _ACEOF
13837 if { (ac_try="$ac_cpp conftest.$ac_ext"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } >/dev/null && {
13850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 }; then
13853 ac_header_preproc=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_header_preproc=no
13859 fi
13860
13861 rm -f conftest.err conftest.$ac_ext
13862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13863 echo "${ECHO_T}$ac_header_preproc" >&6; }
13864
13865 # So? What about this header?
13866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13867 yes:no: )
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13872 ac_header_preproc=yes
13873 ;;
13874 no:yes:* )
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13887
13888 ;;
13889 esac
13890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895 eval "$as_ac_Header=\$ac_header_preproc"
13896 fi
13897 ac_res=`eval echo '${'$as_ac_Header'}'`
13898 { echo "$as_me:$LINENO: result: $ac_res" >&5
13899 echo "${ECHO_T}$ac_res" >&6; }
13900
13901 fi
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 _ACEOF
13906
13907 fi
13908
13909 done
13910
13911 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13912 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13913 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13914 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 ac_check_lib_save_LIBS=$LIBS
13918 LIBS="-lpng -lz -lm $LIBS"
13919 cat >conftest.$ac_ext <<_ACEOF
13920 /* confdefs.h. */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13929 #ifdef __cplusplus
13930 extern "C"
13931 #endif
13932 char png_get_channels ();
13933 int
13934 main ()
13935 {
13936 return png_get_channels ();
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } && {
13955 test -z "$ac_c_werror_flag" ||
13956 test ! -s conftest.err
13957 } && test -s conftest$ac_exeext &&
13958 $as_test_x conftest$ac_exeext; then
13959 ac_cv_lib_png_png_get_channels=yes
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964 ac_cv_lib_png_png_get_channels=no
13965 fi
13966
13967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13970 fi
13971 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13972 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13973 if test $ac_cv_lib_png_png_get_channels = yes; then
13974 HAVE_PNG=yes
13975 fi
13976
13977 fi
13978 fi
13979
13980 if test "${HAVE_PNG}" = "yes"; then
13981
13982 cat >>confdefs.h <<\_ACEOF
13983 #define HAVE_PNG 1
13984 _ACEOF
13985
13986 fi
13987 fi
13988
13989 ### Use -ltiff if available, unless `--with-tiff=no'.
13990 HAVE_TIFF=no
13991 if test "${HAVE_X11}" = "yes"; then
13992 if test "${with_tiff}" != "no"; then
13993 if test "${ac_cv_header_tiffio_h+set}" = set; then
13994 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13995 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13996 if test "${ac_cv_header_tiffio_h+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 fi
13999 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14000 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14001 else
14002 # Is the header compilable?
14003 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14004 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 $ac_includes_default
14012 #include <tiffio.h>
14013 _ACEOF
14014 rm -f conftest.$ac_objext
14015 if { (ac_try="$ac_compile"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_compile") 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
14031 ac_header_compiler=yes
14032 else
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_header_compiler=no
14037 fi
14038
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6; }
14042
14043 # Is the header present?
14044 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14045 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <tiffio.h>
14053 _ACEOF
14054 if { (ac_try="$ac_cpp conftest.$ac_ext"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } >/dev/null && {
14067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 }; then
14070 ac_header_preproc=yes
14071 else
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 ac_header_preproc=no
14076 fi
14077
14078 rm -f conftest.err conftest.$ac_ext
14079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14080 echo "${ECHO_T}$ac_header_preproc" >&6; }
14081
14082 # So? What about this header?
14083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14084 yes:no: )
14085 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14086 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14088 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14089 ac_header_preproc=yes
14090 ;;
14091 no:yes:* )
14092 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14093 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14095 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14097 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14099 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14101 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14103 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14104
14105 ;;
14106 esac
14107 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14108 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14109 if test "${ac_cv_header_tiffio_h+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 ac_cv_header_tiffio_h=$ac_header_preproc
14113 fi
14114 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14115 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14116
14117 fi
14118 if test $ac_cv_header_tiffio_h = yes; then
14119 tifflibs="-lz -lm"
14120 # At least one tiff package requires the jpeg library.
14121 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14122 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14123 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14124 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127 ac_check_lib_save_LIBS=$LIBS
14128 LIBS="-ltiff $tifflibs $LIBS"
14129 cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h. */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14139 #ifdef __cplusplus
14140 extern "C"
14141 #endif
14142 char TIFFGetVersion ();
14143 int
14144 main ()
14145 {
14146 return TIFFGetVersion ();
14147 ;
14148 return 0;
14149 }
14150 _ACEOF
14151 rm -f conftest.$ac_objext conftest$ac_exeext
14152 if { (ac_try="$ac_link"
14153 case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_link") 2>conftest.er1
14159 ac_status=$?
14160 grep -v '^ *+' conftest.er1 >conftest.err
14161 rm -f conftest.er1
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } && {
14165 test -z "$ac_c_werror_flag" ||
14166 test ! -s conftest.err
14167 } && test -s conftest$ac_exeext &&
14168 $as_test_x conftest$ac_exeext; then
14169 ac_cv_lib_tiff_TIFFGetVersion=yes
14170 else
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 ac_cv_lib_tiff_TIFFGetVersion=no
14175 fi
14176
14177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14178 conftest$ac_exeext conftest.$ac_ext
14179 LIBS=$ac_check_lib_save_LIBS
14180 fi
14181 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14182 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14183 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14184 HAVE_TIFF=yes
14185 fi
14186
14187 fi
14188
14189
14190 fi
14191
14192 if test "${HAVE_TIFF}" = "yes"; then
14193
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_TIFF 1
14196 _ACEOF
14197
14198 fi
14199 fi
14200
14201 ### Use -lgif if available, unless `--with-gif=no'.
14202 HAVE_GIF=no
14203 if test "${HAVE_X11}" = "yes"; then
14204 if test "${with_gif}" != "no"; then
14205 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14206 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14207 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14208 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14210 fi
14211 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14212 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14213 else
14214 # Is the header compilable?
14215 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14216 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 $ac_includes_default
14224 #include <gif_lib.h>
14225 _ACEOF
14226 rm -f conftest.$ac_objext
14227 if { (ac_try="$ac_compile"
14228 case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_compile") 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && {
14240 test -z "$ac_c_werror_flag" ||
14241 test ! -s conftest.err
14242 } && test -s conftest.$ac_objext; then
14243 ac_header_compiler=yes
14244 else
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248 ac_header_compiler=no
14249 fi
14250
14251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14253 echo "${ECHO_T}$ac_header_compiler" >&6; }
14254
14255 # Is the header present?
14256 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14257 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
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 #include <gif_lib.h>
14265 _ACEOF
14266 if { (ac_try="$ac_cpp conftest.$ac_ext"
14267 case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } >/dev/null && {
14279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14280 test ! -s conftest.err
14281 }; then
14282 ac_header_preproc=yes
14283 else
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ac_header_preproc=no
14288 fi
14289
14290 rm -f conftest.err conftest.$ac_ext
14291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14292 echo "${ECHO_T}$ac_header_preproc" >&6; }
14293
14294 # So? What about this header?
14295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14296 yes:no: )
14297 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14298 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14300 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14301 ac_header_preproc=yes
14302 ;;
14303 no:yes:* )
14304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14305 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14307 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14309 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14311 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14313 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14315 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14316
14317 ;;
14318 esac
14319 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14320 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14321 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324 ac_cv_header_gif_lib_h=$ac_header_preproc
14325 fi
14326 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14327 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14328
14329 fi
14330 if test $ac_cv_header_gif_lib_h = yes; then
14331 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14332 # Earlier versions can crash Emacs.
14333 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14334 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14335 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 else
14338 ac_check_lib_save_LIBS=$LIBS
14339 LIBS="-lungif $LIBS"
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346
14347 /* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14350 #ifdef __cplusplus
14351 extern "C"
14352 #endif
14353 char EGifPutExtensionLast ();
14354 int
14355 main ()
14356 {
14357 return EGifPutExtensionLast ();
14358 ;
14359 return 0;
14360 }
14361 _ACEOF
14362 rm -f conftest.$ac_objext conftest$ac_exeext
14363 if { (ac_try="$ac_link"
14364 case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_link") 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest$ac_exeext &&
14379 $as_test_x conftest$ac_exeext; then
14380 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14381 else
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14384
14385 ac_cv_lib_ungif_EGifPutExtensionLast=no
14386 fi
14387
14388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14389 conftest$ac_exeext conftest.$ac_ext
14390 LIBS=$ac_check_lib_save_LIBS
14391 fi
14392 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14393 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14394 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14395 HAVE_GIF=yes
14396 fi
14397
14398 fi
14399
14400
14401 fi
14402
14403 if test "${HAVE_GIF}" = "yes"; then
14404
14405 cat >>confdefs.h <<\_ACEOF
14406 #define HAVE_GIF 1
14407 _ACEOF
14408
14409 fi
14410 fi
14411
14412 ### Use -lgpm if available, unless `--with-gpm=no'.
14413 HAVE_GPM=no
14414 if test "${with_gpm}" != "no"; then
14415 if test "${ac_cv_header_gpm_h+set}" = set; then
14416 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14417 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14418 if test "${ac_cv_header_gpm_h+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 fi
14421 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14422 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14423 else
14424 # Is the header compilable?
14425 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14426 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14427 cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h. */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14434 #include <gpm.h>
14435 _ACEOF
14436 rm -f conftest.$ac_objext
14437 if { (ac_try="$ac_compile"
14438 case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_compile") 2>conftest.er1
14444 ac_status=$?
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } && {
14450 test -z "$ac_c_werror_flag" ||
14451 test ! -s conftest.err
14452 } && test -s conftest.$ac_objext; then
14453 ac_header_compiler=yes
14454 else
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_header_compiler=no
14459 fi
14460
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14463 echo "${ECHO_T}$ac_header_compiler" >&6; }
14464
14465 # Is the header present?
14466 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14467 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14468 cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #include <gpm.h>
14475 _ACEOF
14476 if { (ac_try="$ac_cpp conftest.$ac_ext"
14477 case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14480 esac
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } >/dev/null && {
14489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14490 test ! -s conftest.err
14491 }; then
14492 ac_header_preproc=yes
14493 else
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497 ac_header_preproc=no
14498 fi
14499
14500 rm -f conftest.err conftest.$ac_ext
14501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14502 echo "${ECHO_T}$ac_header_preproc" >&6; }
14503
14504 # So? What about this header?
14505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14506 yes:no: )
14507 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14508 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14510 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14511 ac_header_preproc=yes
14512 ;;
14513 no:yes:* )
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14515 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14517 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14519 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14521 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14523 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14525 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14526
14527 ;;
14528 esac
14529 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14530 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14531 if test "${ac_cv_header_gpm_h+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534 ac_cv_header_gpm_h=$ac_header_preproc
14535 fi
14536 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14537 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14538
14539 fi
14540 if test $ac_cv_header_gpm_h = yes; then
14541 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14542 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14543 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546 ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-lgpm $LIBS"
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 char Gpm_Open ();
14562 int
14563 main ()
14564 {
14565 return Gpm_Open ();
14566 ;
14567 return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (ac_try="$ac_link"
14572 case "(($ac_try" in
14573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14575 esac
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_link") 2>conftest.er1
14578 ac_status=$?
14579 grep -v '^ *+' conftest.er1 >conftest.err
14580 rm -f conftest.er1
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext &&
14587 $as_test_x conftest$ac_exeext; then
14588 ac_cv_lib_gpm_Gpm_Open=yes
14589 else
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 ac_cv_lib_gpm_Gpm_Open=no
14594 fi
14595
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598 LIBS=$ac_check_lib_save_LIBS
14599 fi
14600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14601 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14602 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14603 HAVE_GPM=yes
14604 fi
14605
14606 fi
14607
14608
14609 fi
14610
14611 if test "${HAVE_GPM}" = "yes"; then
14612
14613 cat >>confdefs.h <<\_ACEOF
14614 #define HAVE_GPM 1
14615 _ACEOF
14616
14617 fi
14618
14619 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14620 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14621 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14622 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 fi
14625 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14626 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14627 else
14628 # Is the header compilable?
14629 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14630 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14631 cat >conftest.$ac_ext <<_ACEOF
14632 /* confdefs.h. */
14633 _ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 $ac_includes_default
14638 #include <malloc/malloc.h>
14639 _ACEOF
14640 rm -f conftest.$ac_objext
14641 if { (ac_try="$ac_compile"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_compile") 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest.$ac_objext; then
14657 ac_header_compiler=yes
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662 ac_header_compiler=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667 echo "${ECHO_T}$ac_header_compiler" >&6; }
14668
14669 # Is the header present?
14670 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14671 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h. */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <malloc/malloc.h>
14679 _ACEOF
14680 if { (ac_try="$ac_cpp conftest.$ac_ext"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } >/dev/null && {
14693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 }; then
14696 ac_header_preproc=yes
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_header_preproc=no
14702 fi
14703
14704 rm -f conftest.err conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6; }
14707
14708 # So? What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14710 yes:no: )
14711 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc=yes
14716 ;;
14717 no:yes:* )
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14730
14731 ;;
14732 esac
14733 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14734 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14735 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14739 fi
14740 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14741 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14742
14743 fi
14744 if test $ac_cv_header_malloc_malloc_h = yes; then
14745
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_MALLOC_MALLOC_H 1
14748 _ACEOF
14749
14750 fi
14751
14752
14753
14754 ### Use Mac OS X Carbon API to implement GUI.
14755 if test "${HAVE_CARBON}" = "yes"; then
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_CARBON 1
14759 _ACEOF
14760
14761 ## Specify the install directory
14762 carbon_appdir=
14763 if test "${carbon_appdir_x}" != ""; then
14764 case ${carbon_appdir_x} in
14765 y | ye | yes) carbon_appdir=/Applications ;;
14766 * ) carbon_appdir=${carbon_appdir_x} ;;
14767 esac
14768 fi
14769 # We also have mouse menus.
14770 HAVE_MENUS=yes
14771 fi
14772
14773 ### Use session management (-lSM -lICE) if available
14774 HAVE_X_SM=no
14775 if test "${HAVE_X11}" = "yes"; then
14776 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14777 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14778 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14779 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 fi
14782 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14783 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14784 else
14785 # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14787 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <X11/SM/SMlib.h>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_compile") 2>conftest.er1
14805 ac_status=$?
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest.$ac_objext; then
14814 ac_header_compiler=yes
14815 else
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_header_compiler=no
14820 fi
14821
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6; }
14825
14826 # Is the header present?
14827 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14828 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h. */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <X11/SM/SMlib.h>
14836 _ACEOF
14837 if { (ac_try="$ac_cpp conftest.$ac_ext"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null && {
14850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 }; then
14853 ac_header_preproc=yes
14854 else
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_header_preproc=no
14859 fi
14860
14861 rm -f conftest.err conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 echo "${ECHO_T}$ac_header_preproc" >&6; }
14864
14865 # So? What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14867 yes:no: )
14868 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14869 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14871 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14872 ac_header_preproc=yes
14873 ;;
14874 no:yes:* )
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14880 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14882 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14884 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14886 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14887
14888 ;;
14889 esac
14890 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14891 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14892 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14896 fi
14897 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14898 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14899
14900 fi
14901 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14902 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14903 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14904 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907 ac_check_lib_save_LIBS=$LIBS
14908 LIBS="-lSM -lICE $LIBS"
14909 cat >conftest.$ac_ext <<_ACEOF
14910 /* confdefs.h. */
14911 _ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14915
14916 /* Override any GCC internal prototype to avoid an error.
14917 Use char because int might match the return type of a GCC
14918 builtin and then its argument prototype would still apply. */
14919 #ifdef __cplusplus
14920 extern "C"
14921 #endif
14922 char SmcOpenConnection ();
14923 int
14924 main ()
14925 {
14926 return SmcOpenConnection ();
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (ac_try="$ac_link"
14933 case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_link") 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest$ac_exeext &&
14948 $as_test_x conftest$ac_exeext; then
14949 ac_cv_lib_SM_SmcOpenConnection=yes
14950 else
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 ac_cv_lib_SM_SmcOpenConnection=no
14955 fi
14956
14957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14958 conftest$ac_exeext conftest.$ac_ext
14959 LIBS=$ac_check_lib_save_LIBS
14960 fi
14961 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14962 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14963 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14964 HAVE_X_SM=yes
14965 fi
14966
14967 fi
14968
14969
14970
14971 if test "${HAVE_X_SM}" = "yes"; then
14972
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_X_SM 1
14975 _ACEOF
14976
14977 case "$LIBS" in
14978 *-lSM*) ;;
14979 *) LIBS="-lSM -lICE $LIBS" ;;
14980 esac
14981 fi
14982 fi
14983
14984 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14985 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14986 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14987 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 #include <netdb.h>
14997 int
14998 main ()
14999 {
15000 return h_errno;
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (ac_try="$ac_link"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15023 emacs_cv_netdb_declares_h_errno=yes
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 emacs_cv_netdb_declares_h_errno=no
15029 fi
15030
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15033 fi
15034 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15035 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15036 if test $emacs_cv_netdb_declares_h_errno = yes; then
15037
15038 cat >>confdefs.h <<\_ACEOF
15039 #define HAVE_H_ERRNO 1
15040 _ACEOF
15041
15042 fi
15043
15044 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15045 # for constant arguments. Useless!
15046 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15047 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15048 if test "${ac_cv_working_alloca_h+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 #include <alloca.h>
15058 int
15059 main ()
15060 {
15061 char *p = (char *) alloca (2 * sizeof (int));
15062 if (p) return 0;
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
15085 ac_cv_working_alloca_h=yes
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_cv_working_alloca_h=no
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094 conftest$ac_exeext conftest.$ac_ext
15095 fi
15096 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15097 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15098 if test $ac_cv_working_alloca_h = yes; then
15099
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_ALLOCA_H 1
15102 _ACEOF
15103
15104 fi
15105
15106 { echo "$as_me:$LINENO: checking for alloca" >&5
15107 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15108 if test "${ac_cv_func_alloca_works+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h. */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 #ifdef __GNUC__
15118 # define alloca __builtin_alloca
15119 #else
15120 # ifdef _MSC_VER
15121 # include <malloc.h>
15122 # define alloca _alloca
15123 # else
15124 # ifdef HAVE_ALLOCA_H
15125 # include <alloca.h>
15126 # else
15127 # ifdef _AIX
15128 #pragma alloca
15129 # else
15130 # ifndef alloca /* predefined by HP cc +Olibcalls */
15131 char *alloca ();
15132 # endif
15133 # endif
15134 # endif
15135 # endif
15136 #endif
15137
15138 int
15139 main ()
15140 {
15141 char *p = (char *) alloca (1);
15142 if (p) return 0;
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_func_alloca_works=yes
15166 else
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170 ac_cv_func_alloca_works=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 fi
15176 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15177 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15178
15179 if test $ac_cv_func_alloca_works = yes; then
15180
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_ALLOCA 1
15183 _ACEOF
15184
15185 else
15186 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15187 # that cause trouble. Some versions do not even contain alloca or
15188 # contain a buggy version. If you still want to use their alloca,
15189 # use ar to extract alloca.o from them instead of compiling alloca.c.
15190
15191 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15192
15193 cat >>confdefs.h <<\_ACEOF
15194 #define C_ALLOCA 1
15195 _ACEOF
15196
15197
15198 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15199 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15200 if test "${ac_cv_os_cray+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #if defined CRAY && ! defined CRAY2
15210 webecray
15211 #else
15212 wenotbecray
15213 #endif
15214
15215 _ACEOF
15216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15217 $EGREP "webecray" >/dev/null 2>&1; then
15218 ac_cv_os_cray=yes
15219 else
15220 ac_cv_os_cray=no
15221 fi
15222 rm -f conftest*
15223
15224 fi
15225 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15226 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15227 if test $ac_cv_os_cray = yes; then
15228 for ac_func in _getb67 GETB67 getb67; do
15229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h. */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15243 #define $ac_func innocuous_$ac_func
15244
15245 /* System header to define __stub macros and hopefully few prototypes,
15246 which can conflict with char $ac_func (); below.
15247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248 <limits.h> exists even on freestanding compilers. */
15249
15250 #ifdef __STDC__
15251 # include <limits.h>
15252 #else
15253 # include <assert.h>
15254 #endif
15255
15256 #undef $ac_func
15257
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 char $ac_func ();
15265 /* The GNU C library defines this for functions which it implements
15266 to always fail with ENOSYS. Some functions are actually named
15267 something starting with __ and the normal name is an alias. */
15268 #if defined __stub_$ac_func || defined __stub___$ac_func
15269 choke me
15270 #endif
15271
15272 int
15273 main ()
15274 {
15275 return $ac_func ();
15276 ;
15277 return 0;
15278 }
15279 _ACEOF
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (ac_try="$ac_link"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285 esac
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_link") 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && {
15294 test -z "$ac_c_werror_flag" ||
15295 test ! -s conftest.err
15296 } && test -s conftest$ac_exeext &&
15297 $as_test_x conftest$ac_exeext; then
15298 eval "$as_ac_var=yes"
15299 else
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 eval "$as_ac_var=no"
15304 fi
15305
15306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15307 conftest$ac_exeext conftest.$ac_ext
15308 fi
15309 ac_res=`eval echo '${'$as_ac_var'}'`
15310 { echo "$as_me:$LINENO: result: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15312 if test `eval echo '${'$as_ac_var'}'` = yes; then
15313
15314 cat >>confdefs.h <<_ACEOF
15315 #define CRAY_STACKSEG_END $ac_func
15316 _ACEOF
15317
15318 break
15319 fi
15320
15321 done
15322 fi
15323
15324 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15325 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15326 if test "${ac_cv_c_stack_direction+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329 if test "$cross_compiling" = yes; then
15330 ac_cv_c_stack_direction=0
15331 else
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h. */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 $ac_includes_default
15339 int
15340 find_stack_direction ()
15341 {
15342 static char *addr = 0;
15343 auto char dummy;
15344 if (addr == 0)
15345 {
15346 addr = &dummy;
15347 return find_stack_direction ();
15348 }
15349 else
15350 return (&dummy > addr) ? 1 : -1;
15351 }
15352
15353 int
15354 main ()
15355 {
15356 return find_stack_direction () < 0;
15357 }
15358 _ACEOF
15359 rm -f conftest$ac_exeext
15360 if { (ac_try="$ac_link"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_link") 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_c_stack_direction=1
15380 else
15381 echo "$as_me: program exited with status $ac_status" >&5
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 ( exit $ac_status )
15386 ac_cv_c_stack_direction=-1
15387 fi
15388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15389 fi
15390
15391
15392 fi
15393 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15394 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15395
15396 cat >>confdefs.h <<_ACEOF
15397 #define STACK_DIRECTION $ac_cv_c_stack_direction
15398 _ACEOF
15399
15400
15401 fi
15402
15403
15404 # fmod, logb, and frexp are found in -lm on most systems.
15405 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15406
15407 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15408 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15409 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 ac_check_lib_save_LIBS=$LIBS
15413 LIBS="-lm $LIBS"
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 char sqrt ();
15428 int
15429 main ()
15430 {
15431 return sqrt ();
15432 ;
15433 return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_link") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest$ac_exeext &&
15453 $as_test_x conftest$ac_exeext; then
15454 ac_cv_lib_m_sqrt=yes
15455 else
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 ac_cv_lib_m_sqrt=no
15460 fi
15461
15462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15463 conftest$ac_exeext conftest.$ac_ext
15464 LIBS=$ac_check_lib_save_LIBS
15465 fi
15466 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15467 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15468 if test $ac_cv_lib_m_sqrt = yes; then
15469 cat >>confdefs.h <<_ACEOF
15470 #define HAVE_LIBM 1
15471 _ACEOF
15472
15473 LIBS="-lm $LIBS"
15474
15475 fi
15476
15477
15478 # Check for mail-locking functions in a "mail" library. Probably this should
15479 # have the same check as for liblockfile below.
15480
15481 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15482 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15483 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486 ac_check_lib_save_LIBS=$LIBS
15487 LIBS="-lmail $LIBS"
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h. */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15498 #ifdef __cplusplus
15499 extern "C"
15500 #endif
15501 char maillock ();
15502 int
15503 main ()
15504 {
15505 return maillock ();
15506 ;
15507 return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest$ac_exeext &&
15527 $as_test_x conftest$ac_exeext; then
15528 ac_cv_lib_mail_maillock=yes
15529 else
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 ac_cv_lib_mail_maillock=no
15534 fi
15535
15536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15537 conftest$ac_exeext conftest.$ac_ext
15538 LIBS=$ac_check_lib_save_LIBS
15539 fi
15540 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15541 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15542 if test $ac_cv_lib_mail_maillock = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_LIBMAIL 1
15545 _ACEOF
15546
15547 LIBS="-lmail $LIBS"
15548
15549 fi
15550
15551
15552 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15553 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15554 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557 ac_check_lib_save_LIBS=$LIBS
15558 LIBS="-llockfile $LIBS"
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h. */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15565
15566 /* Override any GCC internal prototype to avoid an error.
15567 Use char because int might match the return type of a GCC
15568 builtin and then its argument prototype would still apply. */
15569 #ifdef __cplusplus
15570 extern "C"
15571 #endif
15572 char maillock ();
15573 int
15574 main ()
15575 {
15576 return maillock ();
15577 ;
15578 return 0;
15579 }
15580 _ACEOF
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_link") 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext &&
15598 $as_test_x conftest$ac_exeext; then
15599 ac_cv_lib_lockfile_maillock=yes
15600 else
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 ac_cv_lib_lockfile_maillock=no
15605 fi
15606
15607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15610 fi
15611 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15612 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15613 if test $ac_cv_lib_lockfile_maillock = yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_LIBLOCKFILE 1
15616 _ACEOF
15617
15618 LIBS="-llockfile $LIBS"
15619
15620 fi
15621
15622 # If we have the shared liblockfile, assume we must use it for mail
15623 # locking (e.g. Debian). If we couldn't link against liblockfile
15624 # (no liblockfile.a installed), ensure that we don't need to.
15625 if test "$ac_cv_lib_lockfile_maillock" = no; then
15626 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15627 set dummy liblockfile.so; ac_word=$2
15628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15630 if test "${ac_cv_prog_liblockfile+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 if test -n "$liblockfile"; then
15634 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15635 else
15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15638 for as_dir in $as_dummy
15639 do
15640 IFS=$as_save_IFS
15641 test -z "$as_dir" && as_dir=.
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15644 ac_cv_prog_liblockfile="yes"
15645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15646 break 2
15647 fi
15648 done
15649 done
15650 IFS=$as_save_IFS
15651
15652 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15653 fi
15654 fi
15655 liblockfile=$ac_cv_prog_liblockfile
15656 if test -n "$liblockfile"; then
15657 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15658 echo "${ECHO_T}$liblockfile" >&6; }
15659 else
15660 { echo "$as_me:$LINENO: result: no" >&5
15661 echo "${ECHO_T}no" >&6; }
15662 fi
15663
15664
15665 if test $ac_cv_prog_liblockfile = yes; then
15666 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15667 This probably means that movemail could lose mail.
15668 There may be a \`development' package to install containing liblockfile." >&5
15669 echo "$as_me: error: Shared liblockfile found but can't link against it.
15670 This probably means that movemail could lose mail.
15671 There may be a \`development' package to install containing liblockfile." >&2;}
15672 { (exit 1); exit 1; }; }
15673 else :
15674 fi
15675 fi
15676
15677 for ac_func in touchlock
15678 do
15679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15693 #define $ac_func innocuous_$ac_func
15694
15695 /* System header to define __stub macros and hopefully few prototypes,
15696 which can conflict with char $ac_func (); below.
15697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15698 <limits.h> exists even on freestanding compilers. */
15699
15700 #ifdef __STDC__
15701 # include <limits.h>
15702 #else
15703 # include <assert.h>
15704 #endif
15705
15706 #undef $ac_func
15707
15708 /* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15711 #ifdef __cplusplus
15712 extern "C"
15713 #endif
15714 char $ac_func ();
15715 /* The GNU C library defines this for functions which it implements
15716 to always fail with ENOSYS. Some functions are actually named
15717 something starting with __ and the normal name is an alias. */
15718 #if defined __stub_$ac_func || defined __stub___$ac_func
15719 choke me
15720 #endif
15721
15722 int
15723 main ()
15724 {
15725 return $ac_func ();
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 eval "$as_ac_var=yes"
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 eval "$as_ac_var=no"
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15758 fi
15759 ac_res=`eval echo '${'$as_ac_var'}'`
15760 { echo "$as_me:$LINENO: result: $ac_res" >&5
15761 echo "${ECHO_T}$ac_res" >&6; }
15762 if test `eval echo '${'$as_ac_var'}'` = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15765 _ACEOF
15766
15767 fi
15768 done
15769
15770
15771 for ac_header in maillock.h
15772 do
15773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 fi
15780 ac_res=`eval echo '${'$as_ac_Header'}'`
15781 { echo "$as_me:$LINENO: result: $ac_res" >&5
15782 echo "${ECHO_T}$ac_res" >&6; }
15783 else
15784 # Is the header compilable?
15785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15787 cat >conftest.$ac_ext <<_ACEOF
15788 /* confdefs.h. */
15789 _ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 $ac_includes_default
15794 #include <$ac_header>
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (ac_try="$ac_compile"
15798 case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_compile") 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && {
15810 test -z "$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 } && test -s conftest.$ac_objext; then
15813 ac_header_compiler=yes
15814 else
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 ac_header_compiler=no
15819 fi
15820
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15823 echo "${ECHO_T}$ac_header_compiler" >&6; }
15824
15825 # Is the header present?
15826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <$ac_header>
15835 _ACEOF
15836 if { (ac_try="$ac_cpp conftest.$ac_ext"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } >/dev/null && {
15849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 }; then
15852 ac_header_preproc=yes
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_header_preproc=no
15858 fi
15859
15860 rm -f conftest.err conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15862 echo "${ECHO_T}$ac_header_preproc" >&6; }
15863
15864 # So? What about this header?
15865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15866 yes:no: )
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15871 ac_header_preproc=yes
15872 ;;
15873 no:yes:* )
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15886
15887 ;;
15888 esac
15889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894 eval "$as_ac_Header=\$ac_header_preproc"
15895 fi
15896 ac_res=`eval echo '${'$as_ac_Header'}'`
15897 { echo "$as_me:$LINENO: result: $ac_res" >&5
15898 echo "${ECHO_T}$ac_res" >&6; }
15899
15900 fi
15901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15902 cat >>confdefs.h <<_ACEOF
15903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15904 _ACEOF
15905
15906 fi
15907
15908 done
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980 for ac_func in gethostname getdomainname dup2 \
15981 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15982 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15983 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15984 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15985 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15986 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15987 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15988 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15989 do
15990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h. */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16004 #define $ac_func innocuous_$ac_func
16005
16006 /* System header to define __stub macros and hopefully few prototypes,
16007 which can conflict with char $ac_func (); below.
16008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16009 <limits.h> exists even on freestanding compilers. */
16010
16011 #ifdef __STDC__
16012 # include <limits.h>
16013 #else
16014 # include <assert.h>
16015 #endif
16016
16017 #undef $ac_func
16018
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char $ac_func ();
16026 /* The GNU C library defines this for functions which it implements
16027 to always fail with ENOSYS. Some functions are actually named
16028 something starting with __ and the normal name is an alias. */
16029 #if defined __stub_$ac_func || defined __stub___$ac_func
16030 choke me
16031 #endif
16032
16033 int
16034 main ()
16035 {
16036 return $ac_func ();
16037 ;
16038 return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest.$ac_objext conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_link") 2>conftest.er1
16049 ac_status=$?
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } && {
16055 test -z "$ac_c_werror_flag" ||
16056 test ! -s conftest.err
16057 } && test -s conftest$ac_exeext &&
16058 $as_test_x conftest$ac_exeext; then
16059 eval "$as_ac_var=yes"
16060 else
16061 echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 eval "$as_ac_var=no"
16065 fi
16066
16067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16068 conftest$ac_exeext conftest.$ac_ext
16069 fi
16070 ac_res=`eval echo '${'$as_ac_var'}'`
16071 { echo "$as_me:$LINENO: result: $ac_res" >&5
16072 echo "${ECHO_T}$ac_res" >&6; }
16073 if test `eval echo '${'$as_ac_var'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16076 _ACEOF
16077
16078 fi
16079 done
16080
16081
16082
16083 for ac_header in sys/un.h
16084 do
16085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 fi
16092 ac_res=`eval echo '${'$as_ac_Header'}'`
16093 { echo "$as_me:$LINENO: result: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16095 else
16096 # Is the header compilable?
16097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16099 cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h. */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 $ac_includes_default
16106 #include <$ac_header>
16107 _ACEOF
16108 rm -f conftest.$ac_objext
16109 if { (ac_try="$ac_compile"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113 esac
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_compile") 2>conftest.er1
16116 ac_status=$?
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest.$ac_objext; then
16125 ac_header_compiler=yes
16126 else
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 ac_header_compiler=no
16131 fi
16132
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16135 echo "${ECHO_T}$ac_header_compiler" >&6; }
16136
16137 # Is the header present?
16138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h. */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16146 #include <$ac_header>
16147 _ACEOF
16148 if { (ac_try="$ac_cpp conftest.$ac_ext"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } >/dev/null && {
16161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 }; then
16164 ac_header_preproc=yes
16165 else
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ac_header_preproc=no
16170 fi
16171
16172 rm -f conftest.err conftest.$ac_ext
16173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174 echo "${ECHO_T}$ac_header_preproc" >&6; }
16175
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16178 yes:no: )
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc=yes
16184 ;;
16185 no:yes:* )
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16198
16199 ;;
16200 esac
16201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206 eval "$as_ac_Header=\$ac_header_preproc"
16207 fi
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209 { echo "$as_me:$LINENO: result: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16211
16212 fi
16213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16214 cat >>confdefs.h <<_ACEOF
16215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16216 _ACEOF
16217
16218 fi
16219
16220 done
16221
16222
16223
16224
16225
16226
16227 for ac_header in $ac_header_list
16228 do
16229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 fi
16236 ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result: $ac_res" >&5
16238 echo "${ECHO_T}$ac_res" >&6; }
16239 else
16240 # Is the header compilable?
16241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16250 #include <$ac_header>
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest.$ac_objext; then
16269 ac_header_compiler=yes
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 ac_header_compiler=no
16275 fi
16276
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16279 echo "${ECHO_T}$ac_header_compiler" >&6; }
16280
16281 # Is the header present?
16282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 #include <$ac_header>
16291 _ACEOF
16292 if { (ac_try="$ac_cpp conftest.$ac_ext"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16296 esac
16297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16299 ac_status=$?
16300 grep -v '^ *+' conftest.er1 >conftest.err
16301 rm -f conftest.er1
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); } >/dev/null && {
16305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16306 test ! -s conftest.err
16307 }; then
16308 ac_header_preproc=yes
16309 else
16310 echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 ac_header_preproc=no
16314 fi
16315
16316 rm -f conftest.err conftest.$ac_ext
16317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16318 echo "${ECHO_T}$ac_header_preproc" >&6; }
16319
16320 # So? What about this header?
16321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16322 yes:no: )
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16327 ac_header_preproc=yes
16328 ;;
16329 no:yes:* )
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16342
16343 ;;
16344 esac
16345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350 eval "$as_ac_Header=\$ac_header_preproc"
16351 fi
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16355
16356 fi
16357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16360 _ACEOF
16361
16362 fi
16363
16364 done
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374 for ac_func in $ac_func_list
16375 do
16376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h. */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16390 #define $ac_func innocuous_$ac_func
16391
16392 /* System header to define __stub macros and hopefully few prototypes,
16393 which can conflict with char $ac_func (); below.
16394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16395 <limits.h> exists even on freestanding compilers. */
16396
16397 #ifdef __STDC__
16398 # include <limits.h>
16399 #else
16400 # include <assert.h>
16401 #endif
16402
16403 #undef $ac_func
16404
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16408 #ifdef __cplusplus
16409 extern "C"
16410 #endif
16411 char $ac_func ();
16412 /* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415 #if defined __stub_$ac_func || defined __stub___$ac_func
16416 choke me
16417 #endif
16418
16419 int
16420 main ()
16421 {
16422 return $ac_func ();
16423 ;
16424 return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest$ac_exeext &&
16444 $as_test_x conftest$ac_exeext; then
16445 eval "$as_ac_var=yes"
16446 else
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450 eval "$as_ac_var=no"
16451 fi
16452
16453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16454 conftest$ac_exeext conftest.$ac_ext
16455 fi
16456 ac_res=`eval echo '${'$as_ac_var'}'`
16457 { echo "$as_me:$LINENO: result: $ac_res" >&5
16458 echo "${ECHO_T}$ac_res" >&6; }
16459 if test `eval echo '${'$as_ac_var'}'` = yes; then
16460 cat >>confdefs.h <<_ACEOF
16461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16462 _ACEOF
16463
16464 fi
16465 done
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483 { echo "$as_me:$LINENO: checking for working mktime" >&5
16484 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16485 if test "${ac_cv_func_working_mktime+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488 if test "$cross_compiling" = yes; then
16489 ac_cv_func_working_mktime=no
16490 else
16491 cat >conftest.$ac_ext <<_ACEOF
16492 /* confdefs.h. */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 /* Test program from Paul Eggert and Tony Leneis. */
16498 #ifdef TIME_WITH_SYS_TIME
16499 # include <sys/time.h>
16500 # include <time.h>
16501 #else
16502 # ifdef HAVE_SYS_TIME_H
16503 # include <sys/time.h>
16504 # else
16505 # include <time.h>
16506 # endif
16507 #endif
16508
16509 #include <stdlib.h>
16510
16511 #ifdef HAVE_UNISTD_H
16512 # include <unistd.h>
16513 #endif
16514
16515 #ifndef HAVE_ALARM
16516 # define alarm(X) /* empty */
16517 #endif
16518
16519 /* Work around redefinition to rpl_putenv by other config tests. */
16520 #undef putenv
16521
16522 static time_t time_t_max;
16523 static time_t time_t_min;
16524
16525 /* Values we'll use to set the TZ environment variable. */
16526 static char *tz_strings[] = {
16527 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16528 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16529 };
16530 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16531
16532 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16533 Based on a problem report from Andreas Jaeger. */
16534 static int
16535 spring_forward_gap ()
16536 {
16537 /* glibc (up to about 1998-10-07) failed this test. */
16538 struct tm tm;
16539
16540 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16541 instead of "TZ=America/Vancouver" in order to detect the bug even
16542 on systems that don't support the Olson extension, or don't have the
16543 full zoneinfo tables installed. */
16544 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16545
16546 tm.tm_year = 98;
16547 tm.tm_mon = 3;
16548 tm.tm_mday = 5;
16549 tm.tm_hour = 2;
16550 tm.tm_min = 0;
16551 tm.tm_sec = 0;
16552 tm.tm_isdst = -1;
16553 return mktime (&tm) != (time_t) -1;
16554 }
16555
16556 static int
16557 mktime_test1 (now)
16558 time_t now;
16559 {
16560 struct tm *lt;
16561 return ! (lt = localtime (&now)) || mktime (lt) == now;
16562 }
16563
16564 static int
16565 mktime_test (now)
16566 time_t now;
16567 {
16568 return (mktime_test1 (now)
16569 && mktime_test1 ((time_t) (time_t_max - now))
16570 && mktime_test1 ((time_t) (time_t_min + now)));
16571 }
16572
16573 static int
16574 irix_6_4_bug ()
16575 {
16576 /* Based on code from Ariel Faigon. */
16577 struct tm tm;
16578 tm.tm_year = 96;
16579 tm.tm_mon = 3;
16580 tm.tm_mday = 0;
16581 tm.tm_hour = 0;
16582 tm.tm_min = 0;
16583 tm.tm_sec = 0;
16584 tm.tm_isdst = -1;
16585 mktime (&tm);
16586 return tm.tm_mon == 2 && tm.tm_mday == 31;
16587 }
16588
16589 static int
16590 bigtime_test (j)
16591 int j;
16592 {
16593 struct tm tm;
16594 time_t now;
16595 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16596 now = mktime (&tm);
16597 if (now != (time_t) -1)
16598 {
16599 struct tm *lt = localtime (&now);
16600 if (! (lt
16601 && lt->tm_year == tm.tm_year
16602 && lt->tm_mon == tm.tm_mon
16603 && lt->tm_mday == tm.tm_mday
16604 && lt->tm_hour == tm.tm_hour
16605 && lt->tm_min == tm.tm_min
16606 && lt->tm_sec == tm.tm_sec
16607 && lt->tm_yday == tm.tm_yday
16608 && lt->tm_wday == tm.tm_wday
16609 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16610 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16611 return 0;
16612 }
16613 return 1;
16614 }
16615
16616 static int
16617 year_2050_test ()
16618 {
16619 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16620 ignoring leap seconds. */
16621 unsigned long int answer = 2527315200UL;
16622
16623 struct tm tm;
16624 time_t t;
16625 tm.tm_year = 2050 - 1900;
16626 tm.tm_mon = 2 - 1;
16627 tm.tm_mday = 1;
16628 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16629 tm.tm_isdst = -1;
16630
16631 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16632 instead of "TZ=America/Vancouver" in order to detect the bug even
16633 on systems that don't support the Olson extension, or don't have the
16634 full zoneinfo tables installed. */
16635 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16636
16637 t = mktime (&tm);
16638
16639 /* Check that the result is either a failure, or close enough
16640 to the correct answer that we can assume the discrepancy is
16641 due to leap seconds. */
16642 return (t == (time_t) -1
16643 || (0 < t && answer - 120 <= t && t <= answer + 120));
16644 }
16645
16646 int
16647 main ()
16648 {
16649 time_t t, delta;
16650 int i, j;
16651
16652 /* This test makes some buggy mktime implementations loop.
16653 Give up after 60 seconds; a mktime slower than that
16654 isn't worth using anyway. */
16655 alarm (60);
16656
16657 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16658 continue;
16659 time_t_max--;
16660 if ((time_t) -1 < 0)
16661 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16662 continue;
16663 delta = time_t_max / 997; /* a suitable prime number */
16664 for (i = 0; i < N_STRINGS; i++)
16665 {
16666 if (tz_strings[i])
16667 putenv (tz_strings[i]);
16668
16669 for (t = 0; t <= time_t_max - delta; t += delta)
16670 if (! mktime_test (t))
16671 return 1;
16672 if (! (mktime_test ((time_t) 1)
16673 && mktime_test ((time_t) (60 * 60))
16674 && mktime_test ((time_t) (60 * 60 * 24))))
16675 return 1;
16676
16677 for (j = 1; 0 < j; j *= 2)
16678 if (! bigtime_test (j))
16679 return 1;
16680 if (! bigtime_test (j - 1))
16681 return 1;
16682 }
16683 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16684 }
16685 _ACEOF
16686 rm -f conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_link") 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_cv_func_working_mktime=yes
16707 else
16708 echo "$as_me: program exited with status $ac_status" >&5
16709 echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 ( exit $ac_status )
16713 ac_cv_func_working_mktime=no
16714 fi
16715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16716 fi
16717
16718
16719 fi
16720 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16721 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16722 if test $ac_cv_func_working_mktime = no; then
16723 case " $LIBOBJS " in
16724 *" mktime.$ac_objext "* ) ;;
16725 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16726 ;;
16727 esac
16728
16729 fi
16730
16731 if test "$ac_cv_func_working_mktime" = no; then
16732
16733 cat >>confdefs.h <<\_ACEOF
16734 #define BROKEN_MKTIME 1
16735 _ACEOF
16736
16737 fi
16738
16739 ac_have_func=no # yes means we've found a way to get the load average.
16740
16741 # Make sure getloadavg.c is where it belongs, at configure-time.
16742 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16743 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16744 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16745 { (exit 1); exit 1; }; }
16746
16747 ac_save_LIBS=$LIBS
16748
16749 # Check for getloadavg, but be sure not to touch the cache variable.
16750 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16751 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16752 if test "${ac_cv_func_getloadavg+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763 #define getloadavg innocuous_getloadavg
16764
16765 /* System header to define __stub macros and hopefully few prototypes,
16766 which can conflict with char getloadavg (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
16769
16770 #ifdef __STDC__
16771 # include <limits.h>
16772 #else
16773 # include <assert.h>
16774 #endif
16775
16776 #undef getloadavg
16777
16778 /* Override any GCC internal prototype to avoid an error.
16779 Use char because int might match the return type of a GCC
16780 builtin and then its argument prototype would still apply. */
16781 #ifdef __cplusplus
16782 extern "C"
16783 #endif
16784 char getloadavg ();
16785 /* The GNU C library defines this for functions which it implements
16786 to always fail with ENOSYS. Some functions are actually named
16787 something starting with __ and the normal name is an alias. */
16788 #if defined __stub_getloadavg || defined __stub___getloadavg
16789 choke me
16790 #endif
16791
16792 int
16793 main ()
16794 {
16795 return getloadavg ();
16796 ;
16797 return 0;
16798 }
16799 _ACEOF
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
16808 ac_status=$?
16809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } && {
16814 test -z "$ac_c_werror_flag" ||
16815 test ! -s conftest.err
16816 } && test -s conftest$ac_exeext &&
16817 $as_test_x conftest$ac_exeext; then
16818 ac_cv_func_getloadavg=yes
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 ac_cv_func_getloadavg=no
16824 fi
16825
16826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16827 conftest$ac_exeext conftest.$ac_ext
16828 fi
16829 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16830 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16831 if test $ac_cv_func_getloadavg = yes; then
16832 exit 0
16833 else
16834 exit 1
16835 fi
16836 ) && ac_have_func=yes
16837
16838 # On HPUX9, an unprivileged user can get load averages through this function.
16839
16840 for ac_func in pstat_getdynamic
16841 do
16842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16856 #define $ac_func innocuous_$ac_func
16857
16858 /* System header to define __stub macros and hopefully few prototypes,
16859 which can conflict with char $ac_func (); below.
16860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16861 <limits.h> exists even on freestanding compilers. */
16862
16863 #ifdef __STDC__
16864 # include <limits.h>
16865 #else
16866 # include <assert.h>
16867 #endif
16868
16869 #undef $ac_func
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 $ac_func ();
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined __stub_$ac_func || defined __stub___$ac_func
16882 choke me
16883 #endif
16884
16885 int
16886 main ()
16887 {
16888 return $ac_func ();
16889 ;
16890 return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 eval "$as_ac_var=yes"
16912 else
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916 eval "$as_ac_var=no"
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16921 fi
16922 ac_res=`eval echo '${'$as_ac_var'}'`
16923 { echo "$as_me:$LINENO: result: $ac_res" >&5
16924 echo "${ECHO_T}$ac_res" >&6; }
16925 if test `eval echo '${'$as_ac_var'}'` = yes; then
16926 cat >>confdefs.h <<_ACEOF
16927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16928 _ACEOF
16929
16930 fi
16931 done
16932
16933
16934 # Solaris has libkstat which does not require root.
16935
16936 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16937 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16938 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lkstat $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char kstat_open ();
16957 int
16958 main ()
16959 {
16960 return kstat_open ();
16961 ;
16962 return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 ac_cv_lib_kstat_kstat_open=yes
16984 else
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 ac_cv_lib_kstat_kstat_open=no
16989 fi
16990
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16994 fi
16995 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16996 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16997 if test $ac_cv_lib_kstat_kstat_open = yes; then
16998 cat >>confdefs.h <<_ACEOF
16999 #define HAVE_LIBKSTAT 1
17000 _ACEOF
17001
17002 LIBS="-lkstat $LIBS"
17003
17004 fi
17005
17006 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17007
17008 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17009 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17010 # to get the right answer into the cache.
17011 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17012 if test $ac_have_func = no; then
17013 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17014 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17015 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018 ac_check_lib_save_LIBS=$LIBS
17019 LIBS="-lelf $LIBS"
17020 cat >conftest.$ac_ext <<_ACEOF
17021 /* confdefs.h. */
17022 _ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17026
17027 /* Override any GCC internal prototype to avoid an error.
17028 Use char because int might match the return type of a GCC
17029 builtin and then its argument prototype would still apply. */
17030 #ifdef __cplusplus
17031 extern "C"
17032 #endif
17033 char elf_begin ();
17034 int
17035 main ()
17036 {
17037 return elf_begin ();
17038 ;
17039 return 0;
17040 }
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17050 ac_status=$?
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && {
17056 test -z "$ac_c_werror_flag" ||
17057 test ! -s conftest.err
17058 } && test -s conftest$ac_exeext &&
17059 $as_test_x conftest$ac_exeext; then
17060 ac_cv_lib_elf_elf_begin=yes
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_cv_lib_elf_elf_begin=no
17066 fi
17067
17068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17069 conftest$ac_exeext conftest.$ac_ext
17070 LIBS=$ac_check_lib_save_LIBS
17071 fi
17072 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17073 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17074 if test $ac_cv_lib_elf_elf_begin = yes; then
17075 LIBS="-lelf $LIBS"
17076 fi
17077
17078 fi
17079 if test $ac_have_func = no; then
17080 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17081 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17082 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085 ac_check_lib_save_LIBS=$LIBS
17086 LIBS="-lkvm $LIBS"
17087 cat >conftest.$ac_ext <<_ACEOF
17088 /* confdefs.h. */
17089 _ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093
17094 /* Override any GCC internal prototype to avoid an error.
17095 Use char because int might match the return type of a GCC
17096 builtin and then its argument prototype would still apply. */
17097 #ifdef __cplusplus
17098 extern "C"
17099 #endif
17100 char kvm_open ();
17101 int
17102 main ()
17103 {
17104 return kvm_open ();
17105 ;
17106 return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (ac_try="$ac_link"
17111 case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114 esac
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_link") 2>conftest.er1
17117 ac_status=$?
17118 grep -v '^ *+' conftest.er1 >conftest.err
17119 rm -f conftest.er1
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } && {
17123 test -z "$ac_c_werror_flag" ||
17124 test ! -s conftest.err
17125 } && test -s conftest$ac_exeext &&
17126 $as_test_x conftest$ac_exeext; then
17127 ac_cv_lib_kvm_kvm_open=yes
17128 else
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132 ac_cv_lib_kvm_kvm_open=no
17133 fi
17134
17135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17136 conftest$ac_exeext conftest.$ac_ext
17137 LIBS=$ac_check_lib_save_LIBS
17138 fi
17139 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17140 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17141 if test $ac_cv_lib_kvm_kvm_open = yes; then
17142 LIBS="-lkvm $LIBS"
17143 fi
17144
17145 # Check for the 4.4BSD definition of getloadavg.
17146 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17147 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17148 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lutil $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h. */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17163 #ifdef __cplusplus
17164 extern "C"
17165 #endif
17166 char getloadavg ();
17167 int
17168 main ()
17169 {
17170 return getloadavg ();
17171 ;
17172 return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 ac_cv_lib_util_getloadavg=yes
17194 else
17195 echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17197
17198 ac_cv_lib_util_getloadavg=no
17199 fi
17200
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17204 fi
17205 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17206 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17207 if test $ac_cv_lib_util_getloadavg = yes; then
17208 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17209 fi
17210
17211 fi
17212
17213 if test $ac_have_func = no; then
17214 # There is a commonly available library for RS/6000 AIX.
17215 # Since it is not a standard part of AIX, it might be installed locally.
17216 ac_getloadavg_LIBS=$LIBS
17217 LIBS="-L/usr/local/lib $LIBS"
17218 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17219 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17220 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223 ac_check_lib_save_LIBS=$LIBS
17224 LIBS="-lgetloadavg $LIBS"
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h. */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231
17232 /* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17235 #ifdef __cplusplus
17236 extern "C"
17237 #endif
17238 char getloadavg ();
17239 int
17240 main ()
17241 {
17242 return getloadavg ();
17243 ;
17244 return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (ac_try="$ac_link"
17249 case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_link") 2>conftest.er1
17255 ac_status=$?
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest$ac_exeext &&
17264 $as_test_x conftest$ac_exeext; then
17265 ac_cv_lib_getloadavg_getloadavg=yes
17266 else
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_cv_lib_getloadavg_getloadavg=no
17271 fi
17272
17273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17274 conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17276 fi
17277 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17278 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17279 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17280 LIBS="-lgetloadavg $LIBS"
17281 else
17282 LIBS=$ac_getloadavg_LIBS
17283 fi
17284
17285 fi
17286
17287 # Make sure it is really in the library, if we think we found it,
17288 # otherwise set up the replacement function.
17289
17290 for ac_func in getloadavg
17291 do
17292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17296 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 else
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17306 #define $ac_func innocuous_$ac_func
17307
17308 /* System header to define __stub macros and hopefully few prototypes,
17309 which can conflict with char $ac_func (); below.
17310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311 <limits.h> exists even on freestanding compilers. */
17312
17313 #ifdef __STDC__
17314 # include <limits.h>
17315 #else
17316 # include <assert.h>
17317 #endif
17318
17319 #undef $ac_func
17320
17321 /* Override any GCC internal prototype to avoid an error.
17322 Use char because int might match the return type of a GCC
17323 builtin and then its argument prototype would still apply. */
17324 #ifdef __cplusplus
17325 extern "C"
17326 #endif
17327 char $ac_func ();
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined __stub_$ac_func || defined __stub___$ac_func
17332 choke me
17333 #endif
17334
17335 int
17336 main ()
17337 {
17338 return $ac_func ();
17339 ;
17340 return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17351 ac_status=$?
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 eval "$as_ac_var=yes"
17362 else
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366 eval "$as_ac_var=no"
17367 fi
17368
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17371 fi
17372 ac_res=`eval echo '${'$as_ac_var'}'`
17373 { echo "$as_me:$LINENO: result: $ac_res" >&5
17374 echo "${ECHO_T}$ac_res" >&6; }
17375 if test `eval echo '${'$as_ac_var'}'` = yes; then
17376 cat >>confdefs.h <<_ACEOF
17377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17378 _ACEOF
17379
17380 else
17381 case " $LIBOBJS " in
17382 *" getloadavg.$ac_objext "* ) ;;
17383 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17384 ;;
17385 esac
17386
17387
17388 cat >>confdefs.h <<\_ACEOF
17389 #define C_GETLOADAVG 1
17390 _ACEOF
17391
17392 # Figure out what our getloadavg.c needs.
17393 ac_have_func=no
17394 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17395 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17396 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17397 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 fi
17400 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17401 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17402 else
17403 # Is the header compilable?
17404 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17405 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17406 cat >conftest.$ac_ext <<_ACEOF
17407 /* confdefs.h. */
17408 _ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 $ac_includes_default
17413 #include <sys/dg_sys_info.h>
17414 _ACEOF
17415 rm -f conftest.$ac_objext
17416 if { (ac_try="$ac_compile"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17423 ac_status=$?
17424 grep -v '^ *+' conftest.er1 >conftest.err
17425 rm -f conftest.er1
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.$ac_objext; then
17432 ac_header_compiler=yes
17433 else
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 ac_header_compiler=no
17438 fi
17439
17440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17442 echo "${ECHO_T}$ac_header_compiler" >&6; }
17443
17444 # Is the header present?
17445 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17446 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h. */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 #include <sys/dg_sys_info.h>
17454 _ACEOF
17455 if { (ac_try="$ac_cpp conftest.$ac_ext"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } >/dev/null && {
17468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17469 test ! -s conftest.err
17470 }; then
17471 ac_header_preproc=yes
17472 else
17473 echo "$as_me: failed program was:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 ac_header_preproc=no
17477 fi
17478
17479 rm -f conftest.err conftest.$ac_ext
17480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17481 echo "${ECHO_T}$ac_header_preproc" >&6; }
17482
17483 # So? What about this header?
17484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17485 yes:no: )
17486 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17487 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17489 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17490 ac_header_preproc=yes
17491 ;;
17492 no:yes:* )
17493 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17494 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17495 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17496 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17497 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17498 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17500 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17502 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17504 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17505
17506 ;;
17507 esac
17508 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17509 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17510 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 else
17513 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17514 fi
17515 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17516 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17517
17518 fi
17519 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17520 ac_have_func=yes
17521
17522 cat >>confdefs.h <<\_ACEOF
17523 #define DGUX 1
17524 _ACEOF
17525
17526
17527 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17528 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17529 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532 ac_check_lib_save_LIBS=$LIBS
17533 LIBS="-ldgc $LIBS"
17534 cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h. */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17544 #ifdef __cplusplus
17545 extern "C"
17546 #endif
17547 char dg_sys_info ();
17548 int
17549 main ()
17550 {
17551 return dg_sys_info ();
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_link") 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest$ac_exeext &&
17573 $as_test_x conftest$ac_exeext; then
17574 ac_cv_lib_dgc_dg_sys_info=yes
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_cv_lib_dgc_dg_sys_info=no
17580 fi
17581
17582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583 conftest$ac_exeext conftest.$ac_ext
17584 LIBS=$ac_check_lib_save_LIBS
17585 fi
17586 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17587 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17588 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_LIBDGC 1
17591 _ACEOF
17592
17593 LIBS="-ldgc $LIBS"
17594
17595 fi
17596
17597 fi
17598
17599
17600
17601 if test "${ac_cv_header_locale_h+set}" = set; then
17602 { echo "$as_me:$LINENO: checking for locale.h" >&5
17603 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17604 if test "${ac_cv_header_locale_h+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 fi
17607 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17608 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17609 else
17610 # Is the header compilable?
17611 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17612 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17620 #include <locale.h>
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17627 esac
17628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_compile") 2>conftest.er1
17630 ac_status=$?
17631 grep -v '^ *+' conftest.er1 >conftest.err
17632 rm -f conftest.er1
17633 cat conftest.err >&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } && {
17636 test -z "$ac_c_werror_flag" ||
17637 test ! -s conftest.err
17638 } && test -s conftest.$ac_objext; then
17639 ac_header_compiler=yes
17640 else
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_header_compiler=no
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17649 echo "${ECHO_T}$ac_header_compiler" >&6; }
17650
17651 # Is the header present?
17652 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17653 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 #include <locale.h>
17661 _ACEOF
17662 if { (ac_try="$ac_cpp conftest.$ac_ext"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17669 ac_status=$?
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } >/dev/null && {
17675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17677 }; then
17678 ac_header_preproc=yes
17679 else
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 ac_header_preproc=no
17684 fi
17685
17686 rm -f conftest.err conftest.$ac_ext
17687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17688 echo "${ECHO_T}$ac_header_preproc" >&6; }
17689
17690 # So? What about this header?
17691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17692 yes:no: )
17693 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17694 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17695 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17696 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17697 ac_header_preproc=yes
17698 ;;
17699 no:yes:* )
17700 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17701 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17702 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17703 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17704 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17705 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17706 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17707 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17708 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17709 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17710 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17711 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17712
17713 ;;
17714 esac
17715 { echo "$as_me:$LINENO: checking for locale.h" >&5
17716 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17717 if test "${ac_cv_header_locale_h+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720 ac_cv_header_locale_h=$ac_header_preproc
17721 fi
17722 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17723 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17724
17725 fi
17726
17727
17728
17729 for ac_func in setlocale
17730 do
17731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17745 #define $ac_func innocuous_$ac_func
17746
17747 /* System header to define __stub macros and hopefully few prototypes,
17748 which can conflict with char $ac_func (); below.
17749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17750 <limits.h> exists even on freestanding compilers. */
17751
17752 #ifdef __STDC__
17753 # include <limits.h>
17754 #else
17755 # include <assert.h>
17756 #endif
17757
17758 #undef $ac_func
17759
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char $ac_func ();
17767 /* The GNU C library defines this for functions which it implements
17768 to always fail with ENOSYS. Some functions are actually named
17769 something starting with __ and the normal name is an alias. */
17770 #if defined __stub_$ac_func || defined __stub___$ac_func
17771 choke me
17772 #endif
17773
17774 int
17775 main ()
17776 {
17777 return $ac_func ();
17778 ;
17779 return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest$ac_exeext &&
17799 $as_test_x conftest$ac_exeext; then
17800 eval "$as_ac_var=yes"
17801 else
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 eval "$as_ac_var=no"
17806 fi
17807
17808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17809 conftest$ac_exeext conftest.$ac_ext
17810 fi
17811 ac_res=`eval echo '${'$as_ac_var'}'`
17812 { echo "$as_me:$LINENO: result: $ac_res" >&5
17813 echo "${ECHO_T}$ac_res" >&6; }
17814 if test `eval echo '${'$as_ac_var'}'` = yes; then
17815 cat >>confdefs.h <<_ACEOF
17816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17817 _ACEOF
17818
17819 fi
17820 done
17821
17822
17823 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17824 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17825 # Irix 4.0.5F has the header but not the library.
17826 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17827 ac_have_func=yes
17828
17829 cat >>confdefs.h <<\_ACEOF
17830 #define SVR4 1
17831 _ACEOF
17832
17833 fi
17834
17835 if test $ac_have_func = no; then
17836 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17837 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17838 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17839 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 fi
17842 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17843 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17844 else
17845 # Is the header compilable?
17846 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17847 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17855 #include <inq_stats/cpustats.h>
17856 _ACEOF
17857 rm -f conftest.$ac_objext
17858 if { (ac_try="$ac_compile"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_compile") 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && {
17871 test -z "$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17873 } && test -s conftest.$ac_objext; then
17874 ac_header_compiler=yes
17875 else
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879 ac_header_compiler=no
17880 fi
17881
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17884 echo "${ECHO_T}$ac_header_compiler" >&6; }
17885
17886 # Is the header present?
17887 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17888 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17889 cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h. */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 #include <inq_stats/cpustats.h>
17896 _ACEOF
17897 if { (ac_try="$ac_cpp conftest.$ac_ext"
17898 case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } >/dev/null && {
17910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17912 }; then
17913 ac_header_preproc=yes
17914 else
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918 ac_header_preproc=no
17919 fi
17920
17921 rm -f conftest.err conftest.$ac_ext
17922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17923 echo "${ECHO_T}$ac_header_preproc" >&6; }
17924
17925 # So? What about this header?
17926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17927 yes:no: )
17928 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17929 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17931 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17932 ac_header_preproc=yes
17933 ;;
17934 no:yes:* )
17935 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17936 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17937 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17938 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17940 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17942 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17944 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17946 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17947
17948 ;;
17949 esac
17950 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17951 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17952 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17956 fi
17957 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17958 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17959
17960 fi
17961 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17962 ac_have_func=yes
17963
17964 cat >>confdefs.h <<\_ACEOF
17965 #define UMAX 1
17966 _ACEOF
17967
17968
17969 cat >>confdefs.h <<\_ACEOF
17970 #define UMAX4_3 1
17971 _ACEOF
17972
17973 fi
17974
17975
17976 fi
17977
17978 if test $ac_have_func = no; then
17979 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17980 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17981 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17982 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 fi
17985 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17987 else
17988 # Is the header compilable?
17989 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17990 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17991 cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h. */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 #include <sys/cpustats.h>
17999 _ACEOF
18000 rm -f conftest.$ac_objext
18001 if { (ac_try="$ac_compile"
18002 case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_compile") 2>conftest.er1
18008 ac_status=$?
18009 grep -v '^ *+' conftest.er1 >conftest.err
18010 rm -f conftest.er1
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } && {
18014 test -z "$ac_c_werror_flag" ||
18015 test ! -s conftest.err
18016 } && test -s conftest.$ac_objext; then
18017 ac_header_compiler=yes
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_header_compiler=no
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18027 echo "${ECHO_T}$ac_header_compiler" >&6; }
18028
18029 # Is the header present?
18030 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18031 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h. */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <sys/cpustats.h>
18039 _ACEOF
18040 if { (ac_try="$ac_cpp conftest.$ac_ext"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } >/dev/null && {
18053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 }; then
18056 ac_header_preproc=yes
18057 else
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18060
18061 ac_header_preproc=no
18062 fi
18063
18064 rm -f conftest.err conftest.$ac_ext
18065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18066 echo "${ECHO_T}$ac_header_preproc" >&6; }
18067
18068 # So? What about this header?
18069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18070 yes:no: )
18071 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18072 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18074 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18075 ac_header_preproc=yes
18076 ;;
18077 no:yes:* )
18078 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18079 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18081 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18083 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18085 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18087 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18089 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18090
18091 ;;
18092 esac
18093 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18094 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18095 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18099 fi
18100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18101 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18102
18103 fi
18104 if test $ac_cv_header_sys_cpustats_h = yes; then
18105 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18106 #define UMAX 1
18107 _ACEOF
18108
18109 fi
18110
18111
18112 fi
18113
18114 if test $ac_have_func = no; then
18115
18116 for ac_header in mach/mach.h
18117 do
18118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 fi
18125 ac_res=`eval echo '${'$as_ac_Header'}'`
18126 { echo "$as_me:$LINENO: result: $ac_res" >&5
18127 echo "${ECHO_T}$ac_res" >&6; }
18128 else
18129 # Is the header compilable?
18130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18132 cat >conftest.$ac_ext <<_ACEOF
18133 /* confdefs.h. */
18134 _ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18139 #include <$ac_header>
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest.$ac_objext; then
18158 ac_header_compiler=yes
18159 else
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ac_header_compiler=no
18164 fi
18165
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6; }
18169
18170 # Is the header present?
18171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18173 cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h. */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 #include <$ac_header>
18180 _ACEOF
18181 if { (ac_try="$ac_cpp conftest.$ac_ext"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185 esac
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } >/dev/null && {
18194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18195 test ! -s conftest.err
18196 }; then
18197 ac_header_preproc=yes
18198 else
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202 ac_header_preproc=no
18203 fi
18204
18205 rm -f conftest.err conftest.$ac_ext
18206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18207 echo "${ECHO_T}$ac_header_preproc" >&6; }
18208
18209 # So? What about this header?
18210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18211 yes:no: )
18212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18216 ac_header_preproc=yes
18217 ;;
18218 no:yes:* )
18219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18231
18232 ;;
18233 esac
18234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239 eval "$as_ac_Header=\$ac_header_preproc"
18240 fi
18241 ac_res=`eval echo '${'$as_ac_Header'}'`
18242 { echo "$as_me:$LINENO: result: $ac_res" >&5
18243 echo "${ECHO_T}$ac_res" >&6; }
18244
18245 fi
18246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18247 cat >>confdefs.h <<_ACEOF
18248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18249 _ACEOF
18250
18251 fi
18252
18253 done
18254
18255 fi
18256
18257
18258 for ac_header in nlist.h
18259 do
18260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 fi
18267 ac_res=`eval echo '${'$as_ac_Header'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270 else
18271 # Is the header compilable?
18272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h. */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 $ac_includes_default
18281 #include <$ac_header>
18282 _ACEOF
18283 rm -f conftest.$ac_objext
18284 if { (ac_try="$ac_compile"
18285 case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_compile") 2>conftest.er1
18291 ac_status=$?
18292 grep -v '^ *+' conftest.er1 >conftest.err
18293 rm -f conftest.er1
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } && {
18297 test -z "$ac_c_werror_flag" ||
18298 test ! -s conftest.err
18299 } && test -s conftest.$ac_objext; then
18300 ac_header_compiler=yes
18301 else
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18304
18305 ac_header_compiler=no
18306 fi
18307
18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18310 echo "${ECHO_T}$ac_header_compiler" >&6; }
18311
18312 # Is the header present?
18313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18315 cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h. */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18321 #include <$ac_header>
18322 _ACEOF
18323 if { (ac_try="$ac_cpp conftest.$ac_ext"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } >/dev/null && {
18336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 }; then
18339 ac_header_preproc=yes
18340 else
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_header_preproc=no
18345 fi
18346
18347 rm -f conftest.err conftest.$ac_ext
18348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18349 echo "${ECHO_T}$ac_header_preproc" >&6; }
18350
18351 # So? What about this header?
18352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18353 yes:no: )
18354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18358 ac_header_preproc=yes
18359 ;;
18360 no:yes:* )
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18373
18374 ;;
18375 esac
18376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 eval "$as_ac_Header=\$ac_header_preproc"
18382 fi
18383 ac_res=`eval echo '${'$as_ac_Header'}'`
18384 { echo "$as_me:$LINENO: result: $ac_res" >&5
18385 echo "${ECHO_T}$ac_res" >&6; }
18386
18387 fi
18388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18389 cat >>confdefs.h <<_ACEOF
18390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18391 _ACEOF
18392 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18393 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18394 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 #include <nlist.h>
18404
18405 int
18406 main ()
18407 {
18408 static struct nlist ac_aggr;
18409 if (ac_aggr.n_un.n_name)
18410 return 0;
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext
18416 if { (ac_try="$ac_compile"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_compile") 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } && {
18429 test -z "$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18431 } && test -s conftest.$ac_objext; then
18432 ac_cv_member_struct_nlist_n_un_n_name=yes
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18436
18437 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h. */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 #include <nlist.h>
18444
18445 int
18446 main ()
18447 {
18448 static struct nlist ac_aggr;
18449 if (sizeof ac_aggr.n_un.n_name)
18450 return 0;
18451 ;
18452 return 0;
18453 }
18454 _ACEOF
18455 rm -f conftest.$ac_objext
18456 if { (ac_try="$ac_compile"
18457 case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_compile") 2>conftest.er1
18463 ac_status=$?
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && {
18469 test -z "$ac_c_werror_flag" ||
18470 test ! -s conftest.err
18471 } && test -s conftest.$ac_objext; then
18472 ac_cv_member_struct_nlist_n_un_n_name=yes
18473 else
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_cv_member_struct_nlist_n_un_n_name=no
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 fi
18482
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 fi
18485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18486 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18487 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18488
18489 cat >>confdefs.h <<_ACEOF
18490 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18491 _ACEOF
18492
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define NLIST_NAME_UNION 1
18496 _ACEOF
18497
18498 fi
18499
18500
18501 fi
18502
18503 done
18504
18505 fi
18506 done
18507
18508
18509 # Some definitions of getloadavg require that the program be installed setgid.
18510 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18511 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18512 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18522 #ifdef LDAV_PRIVILEGED
18523 Yowza Am I SETGID yet
18524 #endif
18525 _ACEOF
18526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18527 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18528 ac_cv_func_getloadavg_setgid=yes
18529 else
18530 ac_cv_func_getloadavg_setgid=no
18531 fi
18532 rm -f conftest*
18533
18534 fi
18535 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18536 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18537 if test $ac_cv_func_getloadavg_setgid = yes; then
18538 NEED_SETGID=true
18539
18540 cat >>confdefs.h <<\_ACEOF
18541 #define GETLOADAVG_PRIVILEGED 1
18542 _ACEOF
18543
18544 else
18545 NEED_SETGID=false
18546 fi
18547
18548 if test $ac_cv_func_getloadavg_setgid = yes; then
18549 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18550 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18551 if test "${ac_cv_group_kmem+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18555 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18556 # If we got an error (system does not support symlinks), try without -L.
18557 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18558 ac_cv_group_kmem=`echo $ac_ls_output \
18559 | sed -ne 's/[ ][ ]*/ /g;
18560 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18561 / /s/.* //;p;'`
18562
18563 fi
18564 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18565 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18566 KMEM_GROUP=$ac_cv_group_kmem
18567 fi
18568 if test "x$ac_save_LIBS" = x; then
18569 GETLOADAVG_LIBS=$LIBS
18570 else
18571 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18572 fi
18573 LIBS=$ac_save_LIBS
18574
18575
18576
18577 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18578 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18579 if test "${ac_cv_sys_largefile_source+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581 else
18582 while :; do
18583 cat >conftest.$ac_ext <<_ACEOF
18584 /* confdefs.h. */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18589 #include <sys/types.h> /* for off_t */
18590 #include <stdio.h>
18591 int
18592 main ()
18593 {
18594 int (*fp) (FILE *, off_t, int) = fseeko;
18595 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18596 ;
18597 return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest$ac_exeext &&
18617 $as_test_x conftest$ac_exeext; then
18618 ac_cv_sys_largefile_source=no; break
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623
18624 fi
18625
18626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18627 conftest$ac_exeext conftest.$ac_ext
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #define _LARGEFILE_SOURCE 1
18635 #include <sys/types.h> /* for off_t */
18636 #include <stdio.h>
18637 int
18638 main ()
18639 {
18640 int (*fp) (FILE *, off_t, int) = fseeko;
18641 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18642 ;
18643 return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_link") 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest$ac_exeext &&
18663 $as_test_x conftest$ac_exeext; then
18664 ac_cv_sys_largefile_source=1; break
18665 else
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669
18670 fi
18671
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673 conftest$ac_exeext conftest.$ac_ext
18674 ac_cv_sys_largefile_source=unknown
18675 break
18676 done
18677 fi
18678 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18679 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18680 case $ac_cv_sys_largefile_source in #(
18681 no | unknown) ;;
18682 *)
18683 cat >>confdefs.h <<_ACEOF
18684 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18685 _ACEOF
18686 ;;
18687 esac
18688 rm -f conftest*
18689
18690 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18691 # in glibc 2.1.3, but that breaks too many other things.
18692 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18693 if test $ac_cv_sys_largefile_source != unknown; then
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_FSEEKO 1
18697 _ACEOF
18698
18699 fi
18700
18701
18702 # Configure getopt.
18703 # getopt.m4 serial 10
18704
18705 # The getopt module assume you want GNU getopt, with getopt_long etc,
18706 # rather than vanilla POSIX getopt. This means your your code should
18707 # always include <getopt.h> for the getopt prototypes.
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719 # Prerequisites of lib/getopt*.
18720
18721
18722
18723
18724 GETOPT_H=
18725
18726 for ac_header in getopt.h
18727 do
18728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 fi
18735 ac_res=`eval echo '${'$as_ac_Header'}'`
18736 { echo "$as_me:$LINENO: result: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18738 else
18739 # Is the header compilable?
18740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18742 cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h. */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 $ac_includes_default
18749 #include <$ac_header>
18750 _ACEOF
18751 rm -f conftest.$ac_objext
18752 if { (ac_try="$ac_compile"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18756 esac
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_compile") 2>conftest.er1
18759 ac_status=$?
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest.$ac_objext; then
18768 ac_header_compiler=yes
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18772
18773 ac_header_compiler=no
18774 fi
18775
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18778 echo "${ECHO_T}$ac_header_compiler" >&6; }
18779
18780 # Is the header present?
18781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18783 cat >conftest.$ac_ext <<_ACEOF
18784 /* confdefs.h. */
18785 _ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789 #include <$ac_header>
18790 _ACEOF
18791 if { (ac_try="$ac_cpp conftest.$ac_ext"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18798 ac_status=$?
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } >/dev/null && {
18804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18805 test ! -s conftest.err
18806 }; then
18807 ac_header_preproc=yes
18808 else
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812 ac_header_preproc=no
18813 fi
18814
18815 rm -f conftest.err conftest.$ac_ext
18816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18817 echo "${ECHO_T}$ac_header_preproc" >&6; }
18818
18819 # So? What about this header?
18820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18821 yes:no: )
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18826 ac_header_preproc=yes
18827 ;;
18828 no:yes:* )
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18841
18842 ;;
18843 esac
18844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 else
18849 eval "$as_ac_Header=\$ac_header_preproc"
18850 fi
18851 ac_res=`eval echo '${'$as_ac_Header'}'`
18852 { echo "$as_me:$LINENO: result: $ac_res" >&5
18853 echo "${ECHO_T}$ac_res" >&6; }
18854
18855 fi
18856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18857 cat >>confdefs.h <<_ACEOF
18858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18859 _ACEOF
18860
18861 else
18862 GETOPT_H=getopt.h
18863 fi
18864
18865 done
18866
18867 if test -z "$GETOPT_H"; then
18868
18869 for ac_func in getopt_long_only
18870 do
18871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 else
18877 cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h. */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18886
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18891
18892 #ifdef __STDC__
18893 # include <limits.h>
18894 #else
18895 # include <assert.h>
18896 #endif
18897
18898 #undef $ac_func
18899
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 char $ac_func ();
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18911 choke me
18912 #endif
18913
18914 int
18915 main ()
18916 {
18917 return $ac_func ();
18918 ;
18919 return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18930 ac_status=$?
18931 grep -v '^ *+' conftest.er1 >conftest.err
18932 rm -f conftest.er1
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } && {
18936 test -z "$ac_c_werror_flag" ||
18937 test ! -s conftest.err
18938 } && test -s conftest$ac_exeext &&
18939 $as_test_x conftest$ac_exeext; then
18940 eval "$as_ac_var=yes"
18941 else
18942 echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 eval "$as_ac_var=no"
18946 fi
18947
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18950 fi
18951 ac_res=`eval echo '${'$as_ac_var'}'`
18952 { echo "$as_me:$LINENO: result: $ac_res" >&5
18953 echo "${ECHO_T}$ac_res" >&6; }
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957 _ACEOF
18958
18959 else
18960 GETOPT_H=getopt.h
18961 fi
18962 done
18963
18964 fi
18965
18966 if test -z "$GETOPT_H"; then
18967 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18968 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18969 if test "${ac_cv_have_decl_optreset+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 #include <getopt.h>
18979
18980 int
18981 main ()
18982 {
18983 #ifndef optreset
18984 (void) optreset;
18985 #endif
18986
18987 ;
18988 return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext
18992 if { (ac_try="$ac_compile"
18993 case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_compile") 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } && {
19005 test -z "$ac_c_werror_flag" ||
19006 test ! -s conftest.err
19007 } && test -s conftest.$ac_objext; then
19008 ac_cv_have_decl_optreset=yes
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 ac_cv_have_decl_optreset=no
19014 fi
19015
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19017 fi
19018 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19019 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19020 if test $ac_cv_have_decl_optreset = yes; then
19021 GETOPT_H=getopt.h
19022 fi
19023
19024 fi
19025
19026 if test -z "$GETOPT_H"; then
19027 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19028 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19029 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032 if test "$cross_compiling" = yes; then
19033 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19034 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19035 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h. */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <getopt.h>
19045
19046 int
19047 main ()
19048 {
19049 #ifndef getopt_clip
19050 (void) getopt_clip;
19051 #endif
19052
19053 ;
19054 return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext
19058 if { (ac_try="$ac_compile"
19059 case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_compile") 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest.$ac_objext; then
19074 ac_cv_have_decl_getopt_clip=yes
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ac_cv_have_decl_getopt_clip=no
19080 fi
19081
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083 fi
19084 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19085 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19086 if test $ac_cv_have_decl_getopt_clip = yes; then
19087 gl_cv_func_gnu_getopt=no
19088 else
19089 gl_cv_func_gnu_getopt=yes
19090 fi
19091
19092 else
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <getopt.h>
19100 int
19101 main ()
19102 {
19103
19104 char *myargv[3];
19105 myargv[0] = "conftest";
19106 myargv[1] = "-+";
19107 myargv[2] = 0;
19108 return getopt (2, myargv, "+a") != '?';
19109
19110 ;
19111 return 0;
19112 }
19113 _ACEOF
19114 rm -f conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_link") 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19125 { (case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19128 esac
19129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_try") 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 gl_cv_func_gnu_getopt=yes
19135 else
19136 echo "$as_me: program exited with status $ac_status" >&5
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 ( exit $ac_status )
19141 gl_cv_func_gnu_getopt=no
19142 fi
19143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19144 fi
19145
19146
19147 fi
19148 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19149 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19150 if test "$gl_cv_func_gnu_getopt" = "no"; then
19151 GETOPT_H=getopt.h
19152 fi
19153 fi
19154
19155
19156
19157 if test -n "$GETOPT_H"; then
19158
19159
19160 GETOPT_H=getopt.h
19161
19162 cat >>confdefs.h <<\_ACEOF
19163 #define __GETOPT_PREFIX rpl_
19164 _ACEOF
19165
19166
19167
19168 :
19169 GETOPTOBJS='getopt.o getopt1.o'
19170
19171 fi
19172
19173
19174
19175
19176 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19177 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19178 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 else
19181 # Use it with a single arg.
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19189 int
19190 main ()
19191 {
19192 getpgrp (0);
19193 ;
19194 return 0;
19195 }
19196 _ACEOF
19197 rm -f conftest.$ac_objext
19198 if { (ac_try="$ac_compile"
19199 case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202 esac
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_compile") 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } && {
19211 test -z "$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19213 } && test -s conftest.$ac_objext; then
19214 ac_cv_func_getpgrp_void=no
19215 else
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_cv_func_getpgrp_void=yes
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19226 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19227 if test $ac_cv_func_getpgrp_void = yes; then
19228
19229 cat >>confdefs.h <<\_ACEOF
19230 #define GETPGRP_VOID 1
19231 _ACEOF
19232
19233 fi
19234
19235
19236
19237 for ac_func in strftime
19238 do
19239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19253 #define $ac_func innocuous_$ac_func
19254
19255 /* System header to define __stub macros and hopefully few prototypes,
19256 which can conflict with char $ac_func (); below.
19257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19258 <limits.h> exists even on freestanding compilers. */
19259
19260 #ifdef __STDC__
19261 # include <limits.h>
19262 #else
19263 # include <assert.h>
19264 #endif
19265
19266 #undef $ac_func
19267
19268 /* Override any GCC internal prototype to avoid an error.
19269 Use char because int might match the return type of a GCC
19270 builtin and then its argument prototype would still apply. */
19271 #ifdef __cplusplus
19272 extern "C"
19273 #endif
19274 char $ac_func ();
19275 /* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278 #if defined __stub_$ac_func || defined __stub___$ac_func
19279 choke me
19280 #endif
19281
19282 int
19283 main ()
19284 {
19285 return $ac_func ();
19286 ;
19287 return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (ac_try="$ac_link"
19292 case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_link") 2>conftest.er1
19298 ac_status=$?
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest$ac_exeext &&
19307 $as_test_x conftest$ac_exeext; then
19308 eval "$as_ac_var=yes"
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 eval "$as_ac_var=no"
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19317 conftest$ac_exeext conftest.$ac_ext
19318 fi
19319 ac_res=`eval echo '${'$as_ac_var'}'`
19320 { echo "$as_me:$LINENO: result: $ac_res" >&5
19321 echo "${ECHO_T}$ac_res" >&6; }
19322 if test `eval echo '${'$as_ac_var'}'` = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19325 _ACEOF
19326
19327 else
19328 # strftime is in -lintl on SCO UNIX.
19329 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19330 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19331 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lintl $LIBS"
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h. */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char strftime ();
19350 int
19351 main ()
19352 {
19353 return strftime ();
19354 ;
19355 return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (ac_try="$ac_link"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_link") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest$ac_exeext &&
19375 $as_test_x conftest$ac_exeext; then
19376 ac_cv_lib_intl_strftime=yes
19377 else
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19380
19381 ac_cv_lib_intl_strftime=no
19382 fi
19383
19384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19385 conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19387 fi
19388 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19389 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19390 if test $ac_cv_lib_intl_strftime = yes; then
19391 cat >>confdefs.h <<\_ACEOF
19392 #define HAVE_STRFTIME 1
19393 _ACEOF
19394
19395 LIBS="-lintl $LIBS"
19396 fi
19397
19398 fi
19399 done
19400
19401
19402 # UNIX98 PTYs.
19403
19404 for ac_func in grantpt
19405 do
19406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412 cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h. */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19420 #define $ac_func innocuous_$ac_func
19421
19422 /* System header to define __stub macros and hopefully few prototypes,
19423 which can conflict with char $ac_func (); below.
19424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19425 <limits.h> exists even on freestanding compilers. */
19426
19427 #ifdef __STDC__
19428 # include <limits.h>
19429 #else
19430 # include <assert.h>
19431 #endif
19432
19433 #undef $ac_func
19434
19435 /* Override any GCC internal prototype to avoid an error.
19436 Use char because int might match the return type of a GCC
19437 builtin and then its argument prototype would still apply. */
19438 #ifdef __cplusplus
19439 extern "C"
19440 #endif
19441 char $ac_func ();
19442 /* The GNU C library defines this for functions which it implements
19443 to always fail with ENOSYS. Some functions are actually named
19444 something starting with __ and the normal name is an alias. */
19445 #if defined __stub_$ac_func || defined __stub___$ac_func
19446 choke me
19447 #endif
19448
19449 int
19450 main ()
19451 {
19452 return $ac_func ();
19453 ;
19454 return 0;
19455 }
19456 _ACEOF
19457 rm -f conftest.$ac_objext conftest$ac_exeext
19458 if { (ac_try="$ac_link"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_link") 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && {
19471 test -z "$ac_c_werror_flag" ||
19472 test ! -s conftest.err
19473 } && test -s conftest$ac_exeext &&
19474 $as_test_x conftest$ac_exeext; then
19475 eval "$as_ac_var=yes"
19476 else
19477 echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19479
19480 eval "$as_ac_var=no"
19481 fi
19482
19483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19484 conftest$ac_exeext conftest.$ac_ext
19485 fi
19486 ac_res=`eval echo '${'$as_ac_var'}'`
19487 { echo "$as_me:$LINENO: result: $ac_res" >&5
19488 echo "${ECHO_T}$ac_res" >&6; }
19489 if test `eval echo '${'$as_ac_var'}'` = yes; then
19490 cat >>confdefs.h <<_ACEOF
19491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19492 _ACEOF
19493
19494 fi
19495 done
19496
19497
19498 # PTY-related GNU extensions.
19499
19500 for ac_func in getpt
19501 do
19502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h. */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19516 #define $ac_func innocuous_$ac_func
19517
19518 /* System header to define __stub macros and hopefully few prototypes,
19519 which can conflict with char $ac_func (); below.
19520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521 <limits.h> exists even on freestanding compilers. */
19522
19523 #ifdef __STDC__
19524 # include <limits.h>
19525 #else
19526 # include <assert.h>
19527 #endif
19528
19529 #undef $ac_func
19530
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 char $ac_func ();
19538 /* The GNU C library defines this for functions which it implements
19539 to always fail with ENOSYS. Some functions are actually named
19540 something starting with __ and the normal name is an alias. */
19541 #if defined __stub_$ac_func || defined __stub___$ac_func
19542 choke me
19543 #endif
19544
19545 int
19546 main ()
19547 {
19548 return $ac_func ();
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19558 esac
19559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 eval "$as_ac_var=yes"
19572 else
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19575
19576 eval "$as_ac_var=no"
19577 fi
19578
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19581 fi
19582 ac_res=`eval echo '${'$as_ac_var'}'`
19583 { echo "$as_me:$LINENO: result: $ac_res" >&5
19584 echo "${ECHO_T}$ac_res" >&6; }
19585 if test `eval echo '${'$as_ac_var'}'` = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19588 _ACEOF
19589
19590 fi
19591 done
19592
19593
19594 # Check this now, so that we will NOT find the above functions in ncurses.
19595 # That is because we have not set up to link ncurses in lib-src.
19596 # It's better to believe a function is not available
19597 # than to expect to find it in ncurses.
19598
19599 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19600 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19601 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604 ac_check_lib_save_LIBS=$LIBS
19605 LIBS="-lncurses $LIBS"
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612
19613 /* Override any GCC internal prototype to avoid an error.
19614 Use char because int might match the return type of a GCC
19615 builtin and then its argument prototype would still apply. */
19616 #ifdef __cplusplus
19617 extern "C"
19618 #endif
19619 char tparm ();
19620 int
19621 main ()
19622 {
19623 return tparm ();
19624 ;
19625 return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (ac_try="$ac_link"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_link") 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } && {
19642 test -z "$ac_c_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest$ac_exeext &&
19645 $as_test_x conftest$ac_exeext; then
19646 ac_cv_lib_ncurses_tparm=yes
19647 else
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651 ac_cv_lib_ncurses_tparm=no
19652 fi
19653
19654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19655 conftest$ac_exeext conftest.$ac_ext
19656 LIBS=$ac_check_lib_save_LIBS
19657 fi
19658 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19659 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19660 if test $ac_cv_lib_ncurses_tparm = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define HAVE_LIBNCURSES 1
19663 _ACEOF
19664
19665 LIBS="-lncurses $LIBS"
19666
19667 fi
19668
19669
19670 # Do we need the Hesiod library to provide the support routines?
19671 if test "$with_hesiod" = yes ; then
19672 # Don't set $LIBS here -- see comments above.
19673 resolv=no
19674 { echo "$as_me:$LINENO: checking for res_send" >&5
19675 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19676 if test "${ac_cv_func_res_send+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19687 #define res_send innocuous_res_send
19688
19689 /* System header to define __stub macros and hopefully few prototypes,
19690 which can conflict with char res_send (); below.
19691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19692 <limits.h> exists even on freestanding compilers. */
19693
19694 #ifdef __STDC__
19695 # include <limits.h>
19696 #else
19697 # include <assert.h>
19698 #endif
19699
19700 #undef res_send
19701
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19705 #ifdef __cplusplus
19706 extern "C"
19707 #endif
19708 char res_send ();
19709 /* The GNU C library defines this for functions which it implements
19710 to always fail with ENOSYS. Some functions are actually named
19711 something starting with __ and the normal name is an alias. */
19712 #if defined __stub_res_send || defined __stub___res_send
19713 choke me
19714 #endif
19715
19716 int
19717 main ()
19718 {
19719 return res_send ();
19720 ;
19721 return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest$ac_exeext &&
19741 $as_test_x conftest$ac_exeext; then
19742 ac_cv_func_res_send=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_func_res_send=no
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19751 conftest$ac_exeext conftest.$ac_ext
19752 fi
19753 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19754 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19755 if test $ac_cv_func_res_send = yes; then
19756 :
19757 else
19758 { echo "$as_me:$LINENO: checking for __res_send" >&5
19759 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19760 if test "${ac_cv_func___res_send+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h. */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define __res_send innocuous___res_send
19772
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char __res_send (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19777
19778 #ifdef __STDC__
19779 # include <limits.h>
19780 #else
19781 # include <assert.h>
19782 #endif
19783
19784 #undef __res_send
19785
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19789 #ifdef __cplusplus
19790 extern "C"
19791 #endif
19792 char __res_send ();
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined __stub___res_send || defined __stub_____res_send
19797 choke me
19798 #endif
19799
19800 int
19801 main ()
19802 {
19803 return __res_send ();
19804 ;
19805 return 0;
19806 }
19807 _ACEOF
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19816 ac_status=$?
19817 grep -v '^ *+' conftest.er1 >conftest.err
19818 rm -f conftest.er1
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest$ac_exeext &&
19825 $as_test_x conftest$ac_exeext; then
19826 ac_cv_func___res_send=yes
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831 ac_cv_func___res_send=no
19832 fi
19833
19834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19835 conftest$ac_exeext conftest.$ac_ext
19836 fi
19837 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19838 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19839 if test $ac_cv_func___res_send = yes; then
19840 :
19841 else
19842 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19843 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19844 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847 ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lresolv $LIBS"
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19859 #ifdef __cplusplus
19860 extern "C"
19861 #endif
19862 char res_send ();
19863 int
19864 main ()
19865 {
19866 return res_send ();
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest$ac_exeext &&
19888 $as_test_x conftest$ac_exeext; then
19889 ac_cv_lib_resolv_res_send=yes
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 ac_cv_lib_resolv_res_send=no
19895 fi
19896
19897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19898 conftest$ac_exeext conftest.$ac_ext
19899 LIBS=$ac_check_lib_save_LIBS
19900 fi
19901 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19902 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19903 if test $ac_cv_lib_resolv_res_send = yes; then
19904 resolv=yes
19905 else
19906 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19907 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19908 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911 ac_check_lib_save_LIBS=$LIBS
19912 LIBS="-lresolv $LIBS"
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919
19920 /* Override any GCC internal prototype to avoid an error.
19921 Use char because int might match the return type of a GCC
19922 builtin and then its argument prototype would still apply. */
19923 #ifdef __cplusplus
19924 extern "C"
19925 #endif
19926 char __res_send ();
19927 int
19928 main ()
19929 {
19930 return __res_send ();
19931 ;
19932 return 0;
19933 }
19934 _ACEOF
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (ac_try="$ac_link"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_link") 2>conftest.er1
19943 ac_status=$?
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest$ac_exeext &&
19952 $as_test_x conftest$ac_exeext; then
19953 ac_cv_lib_resolv___res_send=yes
19954 else
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 ac_cv_lib_resolv___res_send=no
19959 fi
19960
19961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19962 conftest$ac_exeext conftest.$ac_ext
19963 LIBS=$ac_check_lib_save_LIBS
19964 fi
19965 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19966 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19967 if test $ac_cv_lib_resolv___res_send = yes; then
19968 resolv=yes
19969 fi
19970
19971 fi
19972
19973 fi
19974
19975 fi
19976
19977 if test "$resolv" = yes ; then
19978 RESOLVLIB=-lresolv
19979
19980 cat >>confdefs.h <<\_ACEOF
19981 #define HAVE_LIBRESOLV 1
19982 _ACEOF
19983
19984 else
19985 RESOLVLIB=
19986 fi
19987 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19988 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19989 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 else
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h. */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20000 #define hes_getmailhost innocuous_hes_getmailhost
20001
20002 /* System header to define __stub macros and hopefully few prototypes,
20003 which can conflict with char hes_getmailhost (); below.
20004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20005 <limits.h> exists even on freestanding compilers. */
20006
20007 #ifdef __STDC__
20008 # include <limits.h>
20009 #else
20010 # include <assert.h>
20011 #endif
20012
20013 #undef hes_getmailhost
20014
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20018 #ifdef __cplusplus
20019 extern "C"
20020 #endif
20021 char hes_getmailhost ();
20022 /* The GNU C library defines this for functions which it implements
20023 to always fail with ENOSYS. Some functions are actually named
20024 something starting with __ and the normal name is an alias. */
20025 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20026 choke me
20027 #endif
20028
20029 int
20030 main ()
20031 {
20032 return hes_getmailhost ();
20033 ;
20034 return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (ac_try="$ac_link"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_link") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest$ac_exeext &&
20054 $as_test_x conftest$ac_exeext; then
20055 ac_cv_func_hes_getmailhost=yes
20056 else
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 ac_cv_func_hes_getmailhost=no
20061 fi
20062
20063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20064 conftest$ac_exeext conftest.$ac_ext
20065 fi
20066 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20067 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20068 if test $ac_cv_func_hes_getmailhost = yes; then
20069 :
20070 else
20071 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20072 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20073 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076 ac_check_lib_save_LIBS=$LIBS
20077 LIBS="-lhesiod $RESOLVLIB $LIBS"
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084
20085 /* Override any GCC internal prototype to avoid an error.
20086 Use char because int might match the return type of a GCC
20087 builtin and then its argument prototype would still apply. */
20088 #ifdef __cplusplus
20089 extern "C"
20090 #endif
20091 char hes_getmailhost ();
20092 int
20093 main ()
20094 {
20095 return hes_getmailhost ();
20096 ;
20097 return 0;
20098 }
20099 _ACEOF
20100 rm -f conftest.$ac_objext conftest$ac_exeext
20101 if { (ac_try="$ac_link"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_link") 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } && {
20114 test -z "$ac_c_werror_flag" ||
20115 test ! -s conftest.err
20116 } && test -s conftest$ac_exeext &&
20117 $as_test_x conftest$ac_exeext; then
20118 ac_cv_lib_hesiod_hes_getmailhost=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ac_cv_lib_hesiod_hes_getmailhost=no
20124 fi
20125
20126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20127 conftest$ac_exeext conftest.$ac_ext
20128 LIBS=$ac_check_lib_save_LIBS
20129 fi
20130 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20131 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20132 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20133
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_LIBHESIOD 1
20136 _ACEOF
20137
20138 else
20139 :
20140 fi
20141
20142 fi
20143
20144 fi
20145
20146 # These tell us which Kerberos-related libraries to use.
20147 if test "${with_kerberos+set}" = set; then
20148
20149 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20150 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20151 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lcom_err $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166 #ifdef __cplusplus
20167 extern "C"
20168 #endif
20169 char com_err ();
20170 int
20171 main ()
20172 {
20173 return com_err ();
20174 ;
20175 return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext &&
20195 $as_test_x conftest$ac_exeext; then
20196 ac_cv_lib_com_err_com_err=yes
20197 else
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201 ac_cv_lib_com_err_com_err=no
20202 fi
20203
20204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20205 conftest$ac_exeext conftest.$ac_ext
20206 LIBS=$ac_check_lib_save_LIBS
20207 fi
20208 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20209 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20210 if test $ac_cv_lib_com_err_com_err = yes; then
20211 cat >>confdefs.h <<_ACEOF
20212 #define HAVE_LIBCOM_ERR 1
20213 _ACEOF
20214
20215 LIBS="-lcom_err $LIBS"
20216
20217 fi
20218
20219
20220 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20221 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20222 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225 ac_check_lib_save_LIBS=$LIBS
20226 LIBS="-lk5crypto $LIBS"
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h. */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 char mit_des_cbc_encrypt ();
20241 int
20242 main ()
20243 {
20244 return mit_des_cbc_encrypt ();
20245 ;
20246 return 0;
20247 }
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20257 ac_status=$?
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20268 else
20269 echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20277 LIBS=$ac_check_lib_save_LIBS
20278 fi
20279 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20280 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20281 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_LIBK5CRYPTO 1
20284 _ACEOF
20285
20286 LIBS="-lk5crypto $LIBS"
20287
20288 fi
20289
20290
20291 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20292 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20293 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296 ac_check_lib_save_LIBS=$LIBS
20297 LIBS="-lcrypto $LIBS"
20298 cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h. */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304
20305 /* Override any GCC internal prototype to avoid an error.
20306 Use char because int might match the return type of a GCC
20307 builtin and then its argument prototype would still apply. */
20308 #ifdef __cplusplus
20309 extern "C"
20310 #endif
20311 char mit_des_cbc_encrypt ();
20312 int
20313 main ()
20314 {
20315 return mit_des_cbc_encrypt ();
20316 ;
20317 return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>conftest.er1
20328 ac_status=$?
20329 grep -v '^ *+' conftest.er1 >conftest.err
20330 rm -f conftest.er1
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest$ac_exeext &&
20337 $as_test_x conftest$ac_exeext; then
20338 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20339 else
20340 echo "$as_me: failed program was:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20344 fi
20345
20346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20347 conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20349 fi
20350 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20351 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20352 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_LIBCRYPTO 1
20355 _ACEOF
20356
20357 LIBS="-lcrypto $LIBS"
20358
20359 fi
20360
20361
20362 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20363 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20364 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367 ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lkrb5 $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h. */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375
20376 /* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20379 #ifdef __cplusplus
20380 extern "C"
20381 #endif
20382 char krb5_init_context ();
20383 int
20384 main ()
20385 {
20386 return krb5_init_context ();
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_link") 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest$ac_exeext &&
20408 $as_test_x conftest$ac_exeext; then
20409 ac_cv_lib_krb5_krb5_init_context=yes
20410 else
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ac_cv_lib_krb5_krb5_init_context=no
20415 fi
20416
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20420 fi
20421 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20422 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20423 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20424 cat >>confdefs.h <<_ACEOF
20425 #define HAVE_LIBKRB5 1
20426 _ACEOF
20427
20428 LIBS="-lkrb5 $LIBS"
20429
20430 fi
20431
20432 if test "${with_kerberos5+set}" != set; then
20433
20434 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20435 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20436 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20439 ac_check_lib_save_LIBS=$LIBS
20440 LIBS="-ldes425 $LIBS"
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447
20448 /* Override any GCC internal prototype to avoid an error.
20449 Use char because int might match the return type of a GCC
20450 builtin and then its argument prototype would still apply. */
20451 #ifdef __cplusplus
20452 extern "C"
20453 #endif
20454 char des_cbc_encrypt ();
20455 int
20456 main ()
20457 {
20458 return des_cbc_encrypt ();
20459 ;
20460 return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_link") 2>conftest.er1
20471 ac_status=$?
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest$ac_exeext &&
20480 $as_test_x conftest$ac_exeext; then
20481 ac_cv_lib_des425_des_cbc_encrypt=yes
20482 else
20483 echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486 ac_cv_lib_des425_des_cbc_encrypt=no
20487 fi
20488
20489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20490 conftest$ac_exeext conftest.$ac_ext
20491 LIBS=$ac_check_lib_save_LIBS
20492 fi
20493 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20494 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20495 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 #define HAVE_LIBDES425 1
20498 _ACEOF
20499
20500 LIBS="-ldes425 $LIBS"
20501
20502 else
20503
20504 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20505 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20506 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509 ac_check_lib_save_LIBS=$LIBS
20510 LIBS="-ldes $LIBS"
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h. */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20521 #ifdef __cplusplus
20522 extern "C"
20523 #endif
20524 char des_cbc_encrypt ();
20525 int
20526 main ()
20527 {
20528 return des_cbc_encrypt ();
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (ac_try="$ac_link"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_link") 2>conftest.er1
20541 ac_status=$?
20542 grep -v '^ *+' conftest.er1 >conftest.err
20543 rm -f conftest.er1
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest$ac_exeext &&
20550 $as_test_x conftest$ac_exeext; then
20551 ac_cv_lib_des_des_cbc_encrypt=yes
20552 else
20553 echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 ac_cv_lib_des_des_cbc_encrypt=no
20557 fi
20558
20559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20560 conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20562 fi
20563 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20564 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20565 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20566 cat >>confdefs.h <<_ACEOF
20567 #define HAVE_LIBDES 1
20568 _ACEOF
20569
20570 LIBS="-ldes $LIBS"
20571
20572 fi
20573
20574 fi
20575
20576
20577 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20578 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20579 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-lkrb4 $LIBS"
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h. */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20594 #ifdef __cplusplus
20595 extern "C"
20596 #endif
20597 char krb_get_cred ();
20598 int
20599 main ()
20600 {
20601 return krb_get_cred ();
20602 ;
20603 return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_link") 2>conftest.er1
20614 ac_status=$?
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } && {
20620 test -z "$ac_c_werror_flag" ||
20621 test ! -s conftest.err
20622 } && test -s conftest$ac_exeext &&
20623 $as_test_x conftest$ac_exeext; then
20624 ac_cv_lib_krb4_krb_get_cred=yes
20625 else
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_lib_krb4_krb_get_cred=no
20630 fi
20631
20632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20633 conftest$ac_exeext conftest.$ac_ext
20634 LIBS=$ac_check_lib_save_LIBS
20635 fi
20636 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20637 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20638 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20639 cat >>confdefs.h <<_ACEOF
20640 #define HAVE_LIBKRB4 1
20641 _ACEOF
20642
20643 LIBS="-lkrb4 $LIBS"
20644
20645 else
20646
20647 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20648 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20649 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 else
20652 ac_check_lib_save_LIBS=$LIBS
20653 LIBS="-lkrb $LIBS"
20654 cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h. */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20660
20661 /* Override any GCC internal prototype to avoid an error.
20662 Use char because int might match the return type of a GCC
20663 builtin and then its argument prototype would still apply. */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 char krb_get_cred ();
20668 int
20669 main ()
20670 {
20671 return krb_get_cred ();
20672 ;
20673 return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (ac_try="$ac_link"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_link") 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest$ac_exeext &&
20693 $as_test_x conftest$ac_exeext; then
20694 ac_cv_lib_krb_krb_get_cred=yes
20695 else
20696 echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20698
20699 ac_cv_lib_krb_krb_get_cred=no
20700 fi
20701
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703 conftest$ac_exeext conftest.$ac_ext
20704 LIBS=$ac_check_lib_save_LIBS
20705 fi
20706 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20707 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20708 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_LIBKRB 1
20711 _ACEOF
20712
20713 LIBS="-lkrb $LIBS"
20714
20715 fi
20716
20717 fi
20718
20719 fi
20720
20721 if test "${with_kerberos5+set}" = set; then
20722
20723 for ac_header in krb5.h
20724 do
20725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 fi
20732 ac_res=`eval echo '${'$as_ac_Header'}'`
20733 { echo "$as_me:$LINENO: result: $ac_res" >&5
20734 echo "${ECHO_T}$ac_res" >&6; }
20735 else
20736 # Is the header compilable?
20737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h. */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 $ac_includes_default
20746 #include <$ac_header>
20747 _ACEOF
20748 rm -f conftest.$ac_objext
20749 if { (ac_try="$ac_compile"
20750 case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20753 esac
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_compile") 2>conftest.er1
20756 ac_status=$?
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } && {
20762 test -z "$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20764 } && test -s conftest.$ac_objext; then
20765 ac_header_compiler=yes
20766 else
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 ac_header_compiler=no
20771 fi
20772
20773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20775 echo "${ECHO_T}$ac_header_compiler" >&6; }
20776
20777 # Is the header present?
20778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 #include <$ac_header>
20787 _ACEOF
20788 if { (ac_try="$ac_cpp conftest.$ac_ext"
20789 case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } >/dev/null && {
20801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 }; then
20804 ac_header_preproc=yes
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 ac_header_preproc=no
20810 fi
20811
20812 rm -f conftest.err conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20814 echo "${ECHO_T}$ac_header_preproc" >&6; }
20815
20816 # So? What about this header?
20817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20818 yes:no: )
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20823 ac_header_preproc=yes
20824 ;;
20825 no:yes:* )
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20838
20839 ;;
20840 esac
20841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 else
20846 eval "$as_ac_Header=\$ac_header_preproc"
20847 fi
20848 ac_res=`eval echo '${'$as_ac_Header'}'`
20849 { echo "$as_me:$LINENO: result: $ac_res" >&5
20850 echo "${ECHO_T}$ac_res" >&6; }
20851
20852 fi
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20856 _ACEOF
20857
20858 fi
20859
20860 done
20861
20862 else
20863
20864 for ac_header in des.h
20865 do
20866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 fi
20873 ac_res=`eval echo '${'$as_ac_Header'}'`
20874 { echo "$as_me:$LINENO: result: $ac_res" >&5
20875 echo "${ECHO_T}$ac_res" >&6; }
20876 else
20877 # Is the header compilable?
20878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20880 cat >conftest.$ac_ext <<_ACEOF
20881 /* confdefs.h. */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886 $ac_includes_default
20887 #include <$ac_header>
20888 _ACEOF
20889 rm -f conftest.$ac_objext
20890 if { (ac_try="$ac_compile"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 ac_header_compiler=yes
20907 else
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_header_compiler=no
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20916 echo "${ECHO_T}$ac_header_compiler" >&6; }
20917
20918 # Is the header present?
20919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20921 cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h. */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 #include <$ac_header>
20928 _ACEOF
20929 if { (ac_try="$ac_cpp conftest.$ac_ext"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20936 ac_status=$?
20937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } >/dev/null && {
20942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20944 }; then
20945 ac_header_preproc=yes
20946 else
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950 ac_header_preproc=no
20951 fi
20952
20953 rm -f conftest.err conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20955 echo "${ECHO_T}$ac_header_preproc" >&6; }
20956
20957 # So? What about this header?
20958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20959 yes:no: )
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20964 ac_header_preproc=yes
20965 ;;
20966 no:yes:* )
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20979
20980 ;;
20981 esac
20982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987 eval "$as_ac_Header=\$ac_header_preproc"
20988 fi
20989 ac_res=`eval echo '${'$as_ac_Header'}'`
20990 { echo "$as_me:$LINENO: result: $ac_res" >&5
20991 echo "${ECHO_T}$ac_res" >&6; }
20992
20993 fi
20994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20995 cat >>confdefs.h <<_ACEOF
20996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20997 _ACEOF
20998
20999 else
21000
21001 for ac_header in kerberosIV/des.h
21002 do
21003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21008 echo $ECHO_N "(cached) $ECHO_C" >&6
21009 fi
21010 ac_res=`eval echo '${'$as_ac_Header'}'`
21011 { echo "$as_me:$LINENO: result: $ac_res" >&5
21012 echo "${ECHO_T}$ac_res" >&6; }
21013 else
21014 # Is the header compilable?
21015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21017 cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h. */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023 $ac_includes_default
21024 #include <$ac_header>
21025 _ACEOF
21026 rm -f conftest.$ac_objext
21027 if { (ac_try="$ac_compile"
21028 case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21031 esac
21032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_compile") 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest.$ac_objext; then
21043 ac_header_compiler=yes
21044 else
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_header_compiler=no
21049 fi
21050
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21053 echo "${ECHO_T}$ac_header_compiler" >&6; }
21054
21055 # Is the header present?
21056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21058 cat >conftest.$ac_ext <<_ACEOF
21059 /* confdefs.h. */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 #include <$ac_header>
21065 _ACEOF
21066 if { (ac_try="$ac_cpp conftest.$ac_ext"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } >/dev/null && {
21079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 }; then
21082 ac_header_preproc=yes
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 ac_header_preproc=no
21088 fi
21089
21090 rm -f conftest.err conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21092 echo "${ECHO_T}$ac_header_preproc" >&6; }
21093
21094 # So? What about this header?
21095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21096 yes:no: )
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21101 ac_header_preproc=yes
21102 ;;
21103 no:yes:* )
21104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21116
21117 ;;
21118 esac
21119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124 eval "$as_ac_Header=\$ac_header_preproc"
21125 fi
21126 ac_res=`eval echo '${'$as_ac_Header'}'`
21127 { echo "$as_me:$LINENO: result: $ac_res" >&5
21128 echo "${ECHO_T}$ac_res" >&6; }
21129
21130 fi
21131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21132 cat >>confdefs.h <<_ACEOF
21133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21134 _ACEOF
21135
21136 else
21137
21138 for ac_header in kerberos/des.h
21139 do
21140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 fi
21147 ac_res=`eval echo '${'$as_ac_Header'}'`
21148 { echo "$as_me:$LINENO: result: $ac_res" >&5
21149 echo "${ECHO_T}$ac_res" >&6; }
21150 else
21151 # Is the header compilable?
21152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21154 cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h. */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 $ac_includes_default
21161 #include <$ac_header>
21162 _ACEOF
21163 rm -f conftest.$ac_objext
21164 if { (ac_try="$ac_compile"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_compile") 2>conftest.er1
21171 ac_status=$?
21172 grep -v '^ *+' conftest.er1 >conftest.err
21173 rm -f conftest.er1
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } && {
21177 test -z "$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21179 } && test -s conftest.$ac_objext; then
21180 ac_header_compiler=yes
21181 else
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 ac_header_compiler=no
21186 fi
21187
21188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21190 echo "${ECHO_T}$ac_header_compiler" >&6; }
21191
21192 # Is the header present?
21193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21195 cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h. */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <$ac_header>
21202 _ACEOF
21203 if { (ac_try="$ac_cpp conftest.$ac_ext"
21204 case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21207 esac
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } >/dev/null && {
21216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21217 test ! -s conftest.err
21218 }; then
21219 ac_header_preproc=yes
21220 else
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 ac_header_preproc=no
21225 fi
21226
21227 rm -f conftest.err conftest.$ac_ext
21228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21229 echo "${ECHO_T}$ac_header_preproc" >&6; }
21230
21231 # So? What about this header?
21232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21233 yes:no: )
21234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21238 ac_header_preproc=yes
21239 ;;
21240 no:yes:* )
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21253
21254 ;;
21255 esac
21256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261 eval "$as_ac_Header=\$ac_header_preproc"
21262 fi
21263 ac_res=`eval echo '${'$as_ac_Header'}'`
21264 { echo "$as_me:$LINENO: result: $ac_res" >&5
21265 echo "${ECHO_T}$ac_res" >&6; }
21266
21267 fi
21268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21269 cat >>confdefs.h <<_ACEOF
21270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21271 _ACEOF
21272
21273 fi
21274
21275 done
21276
21277 fi
21278
21279 done
21280
21281 fi
21282
21283 done
21284
21285
21286 for ac_header in krb.h
21287 do
21288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 fi
21295 ac_res=`eval echo '${'$as_ac_Header'}'`
21296 { echo "$as_me:$LINENO: result: $ac_res" >&5
21297 echo "${ECHO_T}$ac_res" >&6; }
21298 else
21299 # Is the header compilable?
21300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21302 cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h. */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308 $ac_includes_default
21309 #include <$ac_header>
21310 _ACEOF
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_compile") 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest.$ac_objext; then
21328 ac_header_compiler=yes
21329 else
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333 ac_header_compiler=no
21334 fi
21335
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21338 echo "${ECHO_T}$ac_header_compiler" >&6; }
21339
21340 # Is the header present?
21341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21343 cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h. */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 #include <$ac_header>
21350 _ACEOF
21351 if { (ac_try="$ac_cpp conftest.$ac_ext"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21355 esac
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } >/dev/null && {
21364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 }; then
21367 ac_header_preproc=yes
21368 else
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372 ac_header_preproc=no
21373 fi
21374
21375 rm -f conftest.err conftest.$ac_ext
21376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21377 echo "${ECHO_T}$ac_header_preproc" >&6; }
21378
21379 # So? What about this header?
21380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21381 yes:no: )
21382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21386 ac_header_preproc=yes
21387 ;;
21388 no:yes:* )
21389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21401
21402 ;;
21403 esac
21404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409 eval "$as_ac_Header=\$ac_header_preproc"
21410 fi
21411 ac_res=`eval echo '${'$as_ac_Header'}'`
21412 { echo "$as_me:$LINENO: result: $ac_res" >&5
21413 echo "${ECHO_T}$ac_res" >&6; }
21414
21415 fi
21416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21417 cat >>confdefs.h <<_ACEOF
21418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21419 _ACEOF
21420
21421 else
21422
21423 for ac_header in kerberosIV/krb.h
21424 do
21425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 fi
21432 ac_res=`eval echo '${'$as_ac_Header'}'`
21433 { echo "$as_me:$LINENO: result: $ac_res" >&5
21434 echo "${ECHO_T}$ac_res" >&6; }
21435 else
21436 # Is the header compilable?
21437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h. */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 $ac_includes_default
21446 #include <$ac_header>
21447 _ACEOF
21448 rm -f conftest.$ac_objext
21449 if { (ac_try="$ac_compile"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_compile") 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest.$ac_objext; then
21465 ac_header_compiler=yes
21466 else
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ac_header_compiler=no
21471 fi
21472
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21475 echo "${ECHO_T}$ac_header_compiler" >&6; }
21476
21477 # Is the header present?
21478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21480 cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h. */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 #include <$ac_header>
21487 _ACEOF
21488 if { (ac_try="$ac_cpp conftest.$ac_ext"
21489 case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21495 ac_status=$?
21496 grep -v '^ *+' conftest.er1 >conftest.err
21497 rm -f conftest.er1
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); } >/dev/null && {
21501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21502 test ! -s conftest.err
21503 }; then
21504 ac_header_preproc=yes
21505 else
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21508
21509 ac_header_preproc=no
21510 fi
21511
21512 rm -f conftest.err conftest.$ac_ext
21513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21514 echo "${ECHO_T}$ac_header_preproc" >&6; }
21515
21516 # So? What about this header?
21517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21518 yes:no: )
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21523 ac_header_preproc=yes
21524 ;;
21525 no:yes:* )
21526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21538
21539 ;;
21540 esac
21541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546 eval "$as_ac_Header=\$ac_header_preproc"
21547 fi
21548 ac_res=`eval echo '${'$as_ac_Header'}'`
21549 { echo "$as_me:$LINENO: result: $ac_res" >&5
21550 echo "${ECHO_T}$ac_res" >&6; }
21551
21552 fi
21553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21554 cat >>confdefs.h <<_ACEOF
21555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21556 _ACEOF
21557
21558 else
21559
21560 for ac_header in kerberos/krb.h
21561 do
21562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 fi
21569 ac_res=`eval echo '${'$as_ac_Header'}'`
21570 { echo "$as_me:$LINENO: result: $ac_res" >&5
21571 echo "${ECHO_T}$ac_res" >&6; }
21572 else
21573 # Is the header compilable?
21574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21576 cat >conftest.$ac_ext <<_ACEOF
21577 /* confdefs.h. */
21578 _ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 $ac_includes_default
21583 #include <$ac_header>
21584 _ACEOF
21585 rm -f conftest.$ac_objext
21586 if { (ac_try="$ac_compile"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_compile") 2>conftest.er1
21593 ac_status=$?
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest.$ac_objext; then
21602 ac_header_compiler=yes
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 ac_header_compiler=no
21608 fi
21609
21610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21612 echo "${ECHO_T}$ac_header_compiler" >&6; }
21613
21614 # Is the header present?
21615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21617 cat >conftest.$ac_ext <<_ACEOF
21618 /* confdefs.h. */
21619 _ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 #include <$ac_header>
21624 _ACEOF
21625 if { (ac_try="$ac_cpp conftest.$ac_ext"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21629 esac
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21632 ac_status=$?
21633 grep -v '^ *+' conftest.er1 >conftest.err
21634 rm -f conftest.er1
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } >/dev/null && {
21638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 }; then
21641 ac_header_preproc=yes
21642 else
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 ac_header_preproc=no
21647 fi
21648
21649 rm -f conftest.err conftest.$ac_ext
21650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21651 echo "${ECHO_T}$ac_header_preproc" >&6; }
21652
21653 # So? What about this header?
21654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21655 yes:no: )
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21660 ac_header_preproc=yes
21661 ;;
21662 no:yes:* )
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21675
21676 ;;
21677 esac
21678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 else
21683 eval "$as_ac_Header=\$ac_header_preproc"
21684 fi
21685 ac_res=`eval echo '${'$as_ac_Header'}'`
21686 { echo "$as_me:$LINENO: result: $ac_res" >&5
21687 echo "${ECHO_T}$ac_res" >&6; }
21688
21689 fi
21690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21691 cat >>confdefs.h <<_ACEOF
21692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21693 _ACEOF
21694
21695 fi
21696
21697 done
21698
21699 fi
21700
21701 done
21702
21703 fi
21704
21705 done
21706
21707 fi
21708
21709 for ac_header in com_err.h
21710 do
21711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 fi
21718 ac_res=`eval echo '${'$as_ac_Header'}'`
21719 { echo "$as_me:$LINENO: result: $ac_res" >&5
21720 echo "${ECHO_T}$ac_res" >&6; }
21721 else
21722 # Is the header compilable?
21723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21725 cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h. */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21732 #include <$ac_header>
21733 _ACEOF
21734 rm -f conftest.$ac_objext
21735 if { (ac_try="$ac_compile"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21739 esac
21740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_compile") 2>conftest.er1
21742 ac_status=$?
21743 grep -v '^ *+' conftest.er1 >conftest.err
21744 rm -f conftest.er1
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } && {
21748 test -z "$ac_c_werror_flag" ||
21749 test ! -s conftest.err
21750 } && test -s conftest.$ac_objext; then
21751 ac_header_compiler=yes
21752 else
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_header_compiler=no
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21761 echo "${ECHO_T}$ac_header_compiler" >&6; }
21762
21763 # Is the header present?
21764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21766 cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h. */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 #include <$ac_header>
21773 _ACEOF
21774 if { (ac_try="$ac_cpp conftest.$ac_ext"
21775 case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21781 ac_status=$?
21782 grep -v '^ *+' conftest.er1 >conftest.err
21783 rm -f conftest.er1
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } >/dev/null && {
21787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21788 test ! -s conftest.err
21789 }; then
21790 ac_header_preproc=yes
21791 else
21792 echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795 ac_header_preproc=no
21796 fi
21797
21798 rm -f conftest.err conftest.$ac_ext
21799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21800 echo "${ECHO_T}$ac_header_preproc" >&6; }
21801
21802 # So? What about this header?
21803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21804 yes:no: )
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21809 ac_header_preproc=yes
21810 ;;
21811 no:yes:* )
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21824
21825 ;;
21826 esac
21827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832 eval "$as_ac_Header=\$ac_header_preproc"
21833 fi
21834 ac_res=`eval echo '${'$as_ac_Header'}'`
21835 { echo "$as_me:$LINENO: result: $ac_res" >&5
21836 echo "${ECHO_T}$ac_res" >&6; }
21837
21838 fi
21839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21840 cat >>confdefs.h <<_ACEOF
21841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21842 _ACEOF
21843
21844 fi
21845
21846 done
21847
21848 fi
21849
21850 # Solaris requires -lintl if you want strerror (which calls dgettext)
21851 # to return localized messages.
21852
21853 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21854 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21855 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21856 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858 ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-lintl $LIBS"
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char dgettext ();
21874 int
21875 main ()
21876 {
21877 return dgettext ();
21878 ;
21879 return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_link") 2>conftest.er1
21890 ac_status=$?
21891 grep -v '^ *+' conftest.er1 >conftest.err
21892 rm -f conftest.er1
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest$ac_exeext &&
21899 $as_test_x conftest$ac_exeext; then
21900 ac_cv_lib_intl_dgettext=yes
21901 else
21902 echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905 ac_cv_lib_intl_dgettext=no
21906 fi
21907
21908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909 conftest$ac_exeext conftest.$ac_ext
21910 LIBS=$ac_check_lib_save_LIBS
21911 fi
21912 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21913 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21914 if test $ac_cv_lib_intl_dgettext = yes; then
21915 cat >>confdefs.h <<_ACEOF
21916 #define HAVE_LIBINTL 1
21917 _ACEOF
21918
21919 LIBS="-lintl $LIBS"
21920
21921 fi
21922
21923
21924 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21925 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21926 if test "${emacs_cv_localtime_cache+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 if test x$ac_cv_func_tzset = xyes; then
21930 if test "$cross_compiling" = yes; then
21931 # If we have tzset, assume the worst when cross-compiling.
21932 emacs_cv_localtime_cache=yes
21933 else
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h. */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 #include <time.h>
21941 extern char **environ;
21942 unset_TZ ()
21943 {
21944 char **from, **to;
21945 for (to = from = environ; (*to = *from); from++)
21946 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21947 to++;
21948 }
21949 char TZ_GMT0[] = "TZ=GMT0";
21950 char TZ_PST8[] = "TZ=PST8";
21951 main()
21952 {
21953 time_t now = time ((time_t *) 0);
21954 int hour_GMT0, hour_unset;
21955 if (putenv (TZ_GMT0) != 0)
21956 exit (1);
21957 hour_GMT0 = localtime (&now)->tm_hour;
21958 unset_TZ ();
21959 hour_unset = localtime (&now)->tm_hour;
21960 if (putenv (TZ_PST8) != 0)
21961 exit (1);
21962 if (localtime (&now)->tm_hour == hour_GMT0)
21963 exit (1);
21964 unset_TZ ();
21965 if (localtime (&now)->tm_hour != hour_unset)
21966 exit (1);
21967 exit (0);
21968 }
21969 _ACEOF
21970 rm -f conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_link") 2>&5
21978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; }; then
21990 emacs_cv_localtime_cache=no
21991 else
21992 echo "$as_me: program exited with status $ac_status" >&5
21993 echo "$as_me: failed program was:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ( exit $ac_status )
21997 emacs_cv_localtime_cache=yes
21998 fi
21999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22000 fi
22001
22002
22003 else
22004 # If we lack tzset, report that localtime does not cache TZ,
22005 # since we can't invalidate the cache if we don't have tzset.
22006 emacs_cv_localtime_cache=no
22007 fi
22008 fi
22009 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22010 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22011 if test $emacs_cv_localtime_cache = yes; then
22012
22013 cat >>confdefs.h <<\_ACEOF
22014 #define LOCALTIME_CACHE 1
22015 _ACEOF
22016
22017 fi
22018
22019 if test "x$HAVE_TIMEVAL" = xyes; then
22020
22021 for ac_func in gettimeofday
22022 do
22023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029 cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h. */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22037 #define $ac_func innocuous_$ac_func
22038
22039 /* System header to define __stub macros and hopefully few prototypes,
22040 which can conflict with char $ac_func (); below.
22041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22042 <limits.h> exists even on freestanding compilers. */
22043
22044 #ifdef __STDC__
22045 # include <limits.h>
22046 #else
22047 # include <assert.h>
22048 #endif
22049
22050 #undef $ac_func
22051
22052 /* Override any GCC internal prototype to avoid an error.
22053 Use char because int might match the return type of a GCC
22054 builtin and then its argument prototype would still apply. */
22055 #ifdef __cplusplus
22056 extern "C"
22057 #endif
22058 char $ac_func ();
22059 /* The GNU C library defines this for functions which it implements
22060 to always fail with ENOSYS. Some functions are actually named
22061 something starting with __ and the normal name is an alias. */
22062 #if defined __stub_$ac_func || defined __stub___$ac_func
22063 choke me
22064 #endif
22065
22066 int
22067 main ()
22068 {
22069 return $ac_func ();
22070 ;
22071 return 0;
22072 }
22073 _ACEOF
22074 rm -f conftest.$ac_objext conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_link") 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && {
22088 test -z "$ac_c_werror_flag" ||
22089 test ! -s conftest.err
22090 } && test -s conftest$ac_exeext &&
22091 $as_test_x conftest$ac_exeext; then
22092 eval "$as_ac_var=yes"
22093 else
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097 eval "$as_ac_var=no"
22098 fi
22099
22100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22101 conftest$ac_exeext conftest.$ac_ext
22102 fi
22103 ac_res=`eval echo '${'$as_ac_var'}'`
22104 { echo "$as_me:$LINENO: result: $ac_res" >&5
22105 echo "${ECHO_T}$ac_res" >&6; }
22106 if test `eval echo '${'$as_ac_var'}'` = yes; then
22107 cat >>confdefs.h <<_ACEOF
22108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22109 _ACEOF
22110
22111 fi
22112 done
22113
22114 if test $ac_cv_func_gettimeofday = yes; then
22115 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22116 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22117 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22120 cat >conftest.$ac_ext <<_ACEOF
22121 /* confdefs.h. */
22122 _ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22126
22127 #ifdef TIME_WITH_SYS_TIME
22128 #include <sys/time.h>
22129 #include <time.h>
22130 #else
22131 #ifdef HAVE_SYS_TIME_H
22132 #include <sys/time.h>
22133 #else
22134 #include <time.h>
22135 #endif
22136 #endif
22137 int
22138 main ()
22139 {
22140 struct timeval time;
22141 gettimeofday (&time, 0);
22142 ;
22143 return 0;
22144 }
22145 _ACEOF
22146 rm -f conftest.$ac_objext
22147 if { (ac_try="$ac_compile"
22148 case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22151 esac
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_compile") 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } && {
22160 test -z "$ac_c_werror_flag" ||
22161 test ! -s conftest.err
22162 } && test -s conftest.$ac_objext; then
22163 emacs_cv_gettimeofday_two_arguments=yes
22164 else
22165 echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168 emacs_cv_gettimeofday_two_arguments=no
22169 fi
22170
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 fi
22173 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22174 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22175 if test $emacs_cv_gettimeofday_two_arguments = no; then
22176
22177 cat >>confdefs.h <<\_ACEOF
22178 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22179 _ACEOF
22180
22181 fi
22182 fi
22183 fi
22184
22185 ok_so_far=yes
22186 { echo "$as_me:$LINENO: checking for socket" >&5
22187 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22188 if test "${ac_cv_func_socket+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191 cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h. */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22199 #define socket innocuous_socket
22200
22201 /* System header to define __stub macros and hopefully few prototypes,
22202 which can conflict with char socket (); below.
22203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22204 <limits.h> exists even on freestanding compilers. */
22205
22206 #ifdef __STDC__
22207 # include <limits.h>
22208 #else
22209 # include <assert.h>
22210 #endif
22211
22212 #undef socket
22213
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217 #ifdef __cplusplus
22218 extern "C"
22219 #endif
22220 char socket ();
22221 /* The GNU C library defines this for functions which it implements
22222 to always fail with ENOSYS. Some functions are actually named
22223 something starting with __ and the normal name is an alias. */
22224 #if defined __stub_socket || defined __stub___socket
22225 choke me
22226 #endif
22227
22228 int
22229 main ()
22230 {
22231 return socket ();
22232 ;
22233 return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_link") 2>conftest.er1
22244 ac_status=$?
22245 grep -v '^ *+' conftest.er1 >conftest.err
22246 rm -f conftest.er1
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest$ac_exeext &&
22253 $as_test_x conftest$ac_exeext; then
22254 ac_cv_func_socket=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 ac_cv_func_socket=no
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263 conftest$ac_exeext conftest.$ac_ext
22264 fi
22265 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22266 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22267 if test $ac_cv_func_socket = yes; then
22268 :
22269 else
22270 ok_so_far=no
22271 fi
22272
22273 if test $ok_so_far = yes; then
22274 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22275 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22276 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22277 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 fi
22280 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22281 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22282 else
22283 # Is the header compilable?
22284 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22285 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22286 cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h. */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 $ac_includes_default
22293 #include <netinet/in.h>
22294 _ACEOF
22295 rm -f conftest.$ac_objext
22296 if { (ac_try="$ac_compile"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22300 esac
22301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22302 (eval "$ac_compile") 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest.$ac_objext; then
22312 ac_header_compiler=yes
22313 else
22314 echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 ac_header_compiler=no
22318 fi
22319
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22322 echo "${ECHO_T}$ac_header_compiler" >&6; }
22323
22324 # Is the header present?
22325 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22326 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22327 cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h. */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 #include <netinet/in.h>
22334 _ACEOF
22335 if { (ac_try="$ac_cpp conftest.$ac_ext"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22342 ac_status=$?
22343 grep -v '^ *+' conftest.er1 >conftest.err
22344 rm -f conftest.er1
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } >/dev/null && {
22348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 }; then
22351 ac_header_preproc=yes
22352 else
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356 ac_header_preproc=no
22357 fi
22358
22359 rm -f conftest.err conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22361 echo "${ECHO_T}$ac_header_preproc" >&6; }
22362
22363 # So? What about this header?
22364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22365 yes:no: )
22366 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22367 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22369 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22370 ac_header_preproc=yes
22371 ;;
22372 no:yes:* )
22373 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22374 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22375 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22376 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22377 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22378 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22379 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22380 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22381 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22382 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22383 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22384 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22385
22386 ;;
22387 esac
22388 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22389 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22390 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22393 ac_cv_header_netinet_in_h=$ac_header_preproc
22394 fi
22395 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22396 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22397
22398 fi
22399 if test $ac_cv_header_netinet_in_h = yes; then
22400 :
22401 else
22402 ok_so_far=no
22403 fi
22404
22405
22406 fi
22407 if test $ok_so_far = yes; then
22408 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22409 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22410 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22413 fi
22414 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22415 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22416 else
22417 # Is the header compilable?
22418 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22419 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 $ac_includes_default
22427 #include <arpa/inet.h>
22428 _ACEOF
22429 rm -f conftest.$ac_objext
22430 if { (ac_try="$ac_compile"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434 esac
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_compile") 2>conftest.er1
22437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest.$ac_objext; then
22446 ac_header_compiler=yes
22447 else
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22450
22451 ac_header_compiler=no
22452 fi
22453
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22456 echo "${ECHO_T}$ac_header_compiler" >&6; }
22457
22458 # Is the header present?
22459 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22460 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <arpa/inet.h>
22468 _ACEOF
22469 if { (ac_try="$ac_cpp conftest.$ac_ext"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } >/dev/null && {
22482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 }; then
22485 ac_header_preproc=yes
22486 else
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ac_header_preproc=no
22491 fi
22492
22493 rm -f conftest.err conftest.$ac_ext
22494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22495 echo "${ECHO_T}$ac_header_preproc" >&6; }
22496
22497 # So? What about this header?
22498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22499 yes:no: )
22500 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22501 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22503 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22504 ac_header_preproc=yes
22505 ;;
22506 no:yes:* )
22507 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22508 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22510 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22512 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22514 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22516 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22518 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22519
22520 ;;
22521 esac
22522 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22523 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527 ac_cv_header_arpa_inet_h=$ac_header_preproc
22528 fi
22529 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22530 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22531
22532 fi
22533 if test $ac_cv_header_arpa_inet_h = yes; then
22534 :
22535 else
22536 ok_so_far=no
22537 fi
22538
22539
22540 fi
22541 if test $ok_so_far = yes; then
22542
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_INET_SOCKETS 1
22545 _ACEOF
22546
22547 fi
22548
22549
22550 for ac_header in sys/ioctl.h
22551 do
22552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 fi
22559 ac_res=`eval echo '${'$as_ac_Header'}'`
22560 { echo "$as_me:$LINENO: result: $ac_res" >&5
22561 echo "${ECHO_T}$ac_res" >&6; }
22562 else
22563 # Is the header compilable?
22564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h. */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 $ac_includes_default
22573 #include <$ac_header>
22574 _ACEOF
22575 rm -f conftest.$ac_objext
22576 if { (ac_try="$ac_compile"
22577 case "(($ac_try" in
22578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579 *) ac_try_echo=$ac_try;;
22580 esac
22581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22582 (eval "$ac_compile") 2>conftest.er1
22583 ac_status=$?
22584 grep -v '^ *+' conftest.er1 >conftest.err
22585 rm -f conftest.er1
22586 cat conftest.err >&5
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } && {
22589 test -z "$ac_c_werror_flag" ||
22590 test ! -s conftest.err
22591 } && test -s conftest.$ac_objext; then
22592 ac_header_compiler=yes
22593 else
22594 echo "$as_me: failed program was:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22596
22597 ac_header_compiler=no
22598 fi
22599
22600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22602 echo "${ECHO_T}$ac_header_compiler" >&6; }
22603
22604 # Is the header present?
22605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h. */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 #include <$ac_header>
22614 _ACEOF
22615 if { (ac_try="$ac_cpp conftest.$ac_ext"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } >/dev/null && {
22628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 }; then
22631 ac_header_preproc=yes
22632 else
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 ac_header_preproc=no
22637 fi
22638
22639 rm -f conftest.err conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22641 echo "${ECHO_T}$ac_header_preproc" >&6; }
22642
22643 # So? What about this header?
22644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22645 yes:no: )
22646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22650 ac_header_preproc=yes
22651 ;;
22652 no:yes:* )
22653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22665
22666 ;;
22667 esac
22668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22671 echo $ECHO_N "(cached) $ECHO_C" >&6
22672 else
22673 eval "$as_ac_Header=\$ac_header_preproc"
22674 fi
22675 ac_res=`eval echo '${'$as_ac_Header'}'`
22676 { echo "$as_me:$LINENO: result: $ac_res" >&5
22677 echo "${ECHO_T}$ac_res" >&6; }
22678
22679 fi
22680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22681 cat >>confdefs.h <<_ACEOF
22682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22683 _ACEOF
22684
22685 fi
22686
22687 done
22688
22689
22690 if test -f /usr/lpp/X11/bin/smt.exp; then
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_AIX_SMT_EXP 1
22694 _ACEOF
22695
22696 fi
22697
22698 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22699 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22700 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22701 { echo "$as_me:$LINENO: result: yes" >&5
22702 echo "${ECHO_T}yes" >&6; }
22703
22704 cat >>confdefs.h <<\_ACEOF
22705 #define HAVE_DEV_PTMX 1
22706 _ACEOF
22707
22708 else
22709 { echo "$as_me:$LINENO: result: no" >&5
22710 echo "${ECHO_T}no" >&6; }
22711 fi
22712
22713 { echo "$as_me:$LINENO: checking for pid_t" >&5
22714 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22715 if test "${ac_cv_type_pid_t+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718 cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h. */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 $ac_includes_default
22725 typedef pid_t ac__type_new_;
22726 int
22727 main ()
22728 {
22729 if ((ac__type_new_ *) 0)
22730 return 0;
22731 if (sizeof (ac__type_new_))
22732 return 0;
22733 ;
22734 return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_type_pid_t=yes
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ac_cv_type_pid_t=no
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 fi
22764 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22765 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22766 if test $ac_cv_type_pid_t = yes; then
22767 :
22768 else
22769
22770 cat >>confdefs.h <<_ACEOF
22771 #define pid_t int
22772 _ACEOF
22773
22774 fi
22775
22776
22777 for ac_header in vfork.h
22778 do
22779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 fi
22786 ac_res=`eval echo '${'$as_ac_Header'}'`
22787 { echo "$as_me:$LINENO: result: $ac_res" >&5
22788 echo "${ECHO_T}$ac_res" >&6; }
22789 else
22790 # Is the header compilable?
22791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22793 cat >conftest.$ac_ext <<_ACEOF
22794 /* confdefs.h. */
22795 _ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22800 #include <$ac_header>
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_compile") 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest.$ac_objext; then
22819 ac_header_compiler=yes
22820 else
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 ac_header_compiler=no
22825 fi
22826
22827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22829 echo "${ECHO_T}$ac_header_compiler" >&6; }
22830
22831 # Is the header present?
22832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22834 cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h. */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 #include <$ac_header>
22841 _ACEOF
22842 if { (ac_try="$ac_cpp conftest.$ac_ext"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } >/dev/null && {
22855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 }; then
22858 ac_header_preproc=yes
22859 else
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 ac_header_preproc=no
22864 fi
22865
22866 rm -f conftest.err conftest.$ac_ext
22867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22868 echo "${ECHO_T}$ac_header_preproc" >&6; }
22869
22870 # So? What about this header?
22871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22872 yes:no: )
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22877 ac_header_preproc=yes
22878 ;;
22879 no:yes:* )
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22892
22893 ;;
22894 esac
22895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900 eval "$as_ac_Header=\$ac_header_preproc"
22901 fi
22902 ac_res=`eval echo '${'$as_ac_Header'}'`
22903 { echo "$as_me:$LINENO: result: $ac_res" >&5
22904 echo "${ECHO_T}$ac_res" >&6; }
22905
22906 fi
22907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22908 cat >>confdefs.h <<_ACEOF
22909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22910 _ACEOF
22911
22912 fi
22913
22914 done
22915
22916
22917
22918 for ac_func in fork vfork
22919 do
22920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926 cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h. */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22934 #define $ac_func innocuous_$ac_func
22935
22936 /* System header to define __stub macros and hopefully few prototypes,
22937 which can conflict with char $ac_func (); below.
22938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22939 <limits.h> exists even on freestanding compilers. */
22940
22941 #ifdef __STDC__
22942 # include <limits.h>
22943 #else
22944 # include <assert.h>
22945 #endif
22946
22947 #undef $ac_func
22948
22949 /* Override any GCC internal prototype to avoid an error.
22950 Use char because int might match the return type of a GCC
22951 builtin and then its argument prototype would still apply. */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char $ac_func ();
22956 /* The GNU C library defines this for functions which it implements
22957 to always fail with ENOSYS. Some functions are actually named
22958 something starting with __ and the normal name is an alias. */
22959 #if defined __stub_$ac_func || defined __stub___$ac_func
22960 choke me
22961 #endif
22962
22963 int
22964 main ()
22965 {
22966 return $ac_func ();
22967 ;
22968 return 0;
22969 }
22970 _ACEOF
22971 rm -f conftest.$ac_objext conftest$ac_exeext
22972 if { (ac_try="$ac_link"
22973 case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22976 esac
22977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22978 (eval "$ac_link") 2>conftest.er1
22979 ac_status=$?
22980 grep -v '^ *+' conftest.er1 >conftest.err
22981 rm -f conftest.er1
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } && {
22985 test -z "$ac_c_werror_flag" ||
22986 test ! -s conftest.err
22987 } && test -s conftest$ac_exeext &&
22988 $as_test_x conftest$ac_exeext; then
22989 eval "$as_ac_var=yes"
22990 else
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 eval "$as_ac_var=no"
22995 fi
22996
22997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22998 conftest$ac_exeext conftest.$ac_ext
22999 fi
23000 ac_res=`eval echo '${'$as_ac_var'}'`
23001 { echo "$as_me:$LINENO: result: $ac_res" >&5
23002 echo "${ECHO_T}$ac_res" >&6; }
23003 if test `eval echo '${'$as_ac_var'}'` = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23006 _ACEOF
23007
23008 fi
23009 done
23010
23011 if test "x$ac_cv_func_fork" = xyes; then
23012 { echo "$as_me:$LINENO: checking for working fork" >&5
23013 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23014 if test "${ac_cv_func_fork_works+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017 if test "$cross_compiling" = yes; then
23018 ac_cv_func_fork_works=cross
23019 else
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 $ac_includes_default
23027 int
23028 main ()
23029 {
23030
23031 /* By Ruediger Kuhlmann. */
23032 return fork () < 0;
23033
23034 ;
23035 return 0;
23036 }
23037 _ACEOF
23038 rm -f conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043 esac
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_try") 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 ac_cv_func_fork_works=yes
23059 else
23060 echo "$as_me: program exited with status $ac_status" >&5
23061 echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23063
23064 ( exit $ac_status )
23065 ac_cv_func_fork_works=no
23066 fi
23067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23068 fi
23069
23070
23071 fi
23072 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23073 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23074
23075 else
23076 ac_cv_func_fork_works=$ac_cv_func_fork
23077 fi
23078 if test "x$ac_cv_func_fork_works" = xcross; then
23079 case $host in
23080 *-*-amigaos* | *-*-msdosdjgpp*)
23081 # Override, as these systems have only a dummy fork() stub
23082 ac_cv_func_fork_works=no
23083 ;;
23084 *)
23085 ac_cv_func_fork_works=yes
23086 ;;
23087 esac
23088 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23089 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23090 fi
23091 ac_cv_func_vfork_works=$ac_cv_func_vfork
23092 if test "x$ac_cv_func_vfork" = xyes; then
23093 { echo "$as_me:$LINENO: checking for working vfork" >&5
23094 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23095 if test "${ac_cv_func_vfork_works+set}" = set; then
23096 echo $ECHO_N "(cached) $ECHO_C" >&6
23097 else
23098 if test "$cross_compiling" = yes; then
23099 ac_cv_func_vfork_works=cross
23100 else
23101 cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h. */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 /* Thanks to Paul Eggert for this test. */
23108 $ac_includes_default
23109 #include <sys/wait.h>
23110 #ifdef HAVE_VFORK_H
23111 # include <vfork.h>
23112 #endif
23113 /* On some sparc systems, changes by the child to local and incoming
23114 argument registers are propagated back to the parent. The compiler
23115 is told about this with #include <vfork.h>, but some compilers
23116 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23117 static variable whose address is put into a register that is
23118 clobbered by the vfork. */
23119 static void
23120 #ifdef __cplusplus
23121 sparc_address_test (int arg)
23122 # else
23123 sparc_address_test (arg) int arg;
23124 #endif
23125 {
23126 static pid_t child;
23127 if (!child) {
23128 child = vfork ();
23129 if (child < 0) {
23130 perror ("vfork");
23131 _exit(2);
23132 }
23133 if (!child) {
23134 arg = getpid();
23135 write(-1, "", 0);
23136 _exit (arg);
23137 }
23138 }
23139 }
23140
23141 int
23142 main ()
23143 {
23144 pid_t parent = getpid ();
23145 pid_t child;
23146
23147 sparc_address_test (0);
23148
23149 child = vfork ();
23150
23151 if (child == 0) {
23152 /* Here is another test for sparc vfork register problems. This
23153 test uses lots of local variables, at least as many local
23154 variables as main has allocated so far including compiler
23155 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23156 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23157 reuse the register of parent for one of the local variables,
23158 since it will think that parent can't possibly be used any more
23159 in this routine. Assigning to the local variable will thus
23160 munge parent in the parent process. */
23161 pid_t
23162 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23163 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23164 /* Convince the compiler that p..p7 are live; otherwise, it might
23165 use the same hardware register for all 8 local variables. */
23166 if (p != p1 || p != p2 || p != p3 || p != p4
23167 || p != p5 || p != p6 || p != p7)
23168 _exit(1);
23169
23170 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23171 from child file descriptors. If the child closes a descriptor
23172 before it execs or exits, this munges the parent's descriptor
23173 as well. Test for this by closing stdout in the child. */
23174 _exit(close(fileno(stdout)) != 0);
23175 } else {
23176 int status;
23177 struct stat st;
23178
23179 while (wait(&status) != child)
23180 ;
23181 return (
23182 /* Was there some problem with vforking? */
23183 child < 0
23184
23185 /* Did the child fail? (This shouldn't happen.) */
23186 || status
23187
23188 /* Did the vfork/compiler bug occur? */
23189 || parent != getpid()
23190
23191 /* Did the file descriptor bug occur? */
23192 || fstat(fileno(stdout), &st) != 0
23193 );
23194 }
23195 }
23196 _ACEOF
23197 rm -f conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>&5
23205 ac_status=$?
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208 { (case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_try") 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 ac_cv_func_vfork_works=yes
23218 else
23219 echo "$as_me: program exited with status $ac_status" >&5
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223 ( exit $ac_status )
23224 ac_cv_func_vfork_works=no
23225 fi
23226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23227 fi
23228
23229
23230 fi
23231 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23232 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23233
23234 fi;
23235 if test "x$ac_cv_func_fork_works" = xcross; then
23236 ac_cv_func_vfork_works=$ac_cv_func_vfork
23237 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23238 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23239 fi
23240
23241 if test "x$ac_cv_func_vfork_works" = xyes; then
23242
23243 cat >>confdefs.h <<\_ACEOF
23244 #define HAVE_WORKING_VFORK 1
23245 _ACEOF
23246
23247 else
23248
23249 cat >>confdefs.h <<\_ACEOF
23250 #define vfork fork
23251 _ACEOF
23252
23253 fi
23254 if test "x$ac_cv_func_fork_works" = xyes; then
23255
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_WORKING_FORK 1
23258 _ACEOF
23259
23260 fi
23261
23262
23263 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23264 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23265 if test "${emacs_cv_langinfo_codeset+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 #include <langinfo.h>
23275 int
23276 main ()
23277 {
23278 char* cs = nl_langinfo(CODESET);
23279 ;
23280 return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
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_link") 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_exeext &&
23300 $as_test_x conftest$ac_exeext; then
23301 emacs_cv_langinfo_codeset=yes
23302 else
23303 echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23305
23306 emacs_cv_langinfo_codeset=no
23307 fi
23308
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310 conftest$ac_exeext conftest.$ac_ext
23311
23312 fi
23313 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23314 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23315 if test $emacs_cv_langinfo_codeset = yes; then
23316
23317 cat >>confdefs.h <<\_ACEOF
23318 #define HAVE_LANGINFO_CODESET 1
23319 _ACEOF
23320
23321 fi
23322
23323 { echo "$as_me:$LINENO: checking for size_t" >&5
23324 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23325 if test "${ac_cv_type_size_t+set}" = set; then
23326 echo $ECHO_N "(cached) $ECHO_C" >&6
23327 else
23328 cat >conftest.$ac_ext <<_ACEOF
23329 /* confdefs.h. */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h. */
23334 $ac_includes_default
23335 typedef size_t ac__type_new_;
23336 int
23337 main ()
23338 {
23339 if ((ac__type_new_ *) 0)
23340 return 0;
23341 if (sizeof (ac__type_new_))
23342 return 0;
23343 ;
23344 return 0;
23345 }
23346 _ACEOF
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23355 ac_status=$?
23356 grep -v '^ *+' conftest.er1 >conftest.err
23357 rm -f conftest.er1
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.$ac_objext; then
23364 ac_cv_type_size_t=yes
23365 else
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369 ac_cv_type_size_t=no
23370 fi
23371
23372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23373 fi
23374 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23375 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23376 if test $ac_cv_type_size_t = yes; then
23377
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_SIZE_T 1
23380 _ACEOF
23381
23382
23383 fi
23384
23385
23386 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23387 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23388 if test "${ac_cv_type_mbstate_t+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 else
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h. */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 # include <wchar.h>
23399 int
23400 main ()
23401 {
23402 mbstate_t x; return sizeof x;
23403 ;
23404 return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext
23408 if { (ac_try="$ac_compile"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23412 esac
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_compile") 2>conftest.er1
23415 ac_status=$?
23416 grep -v '^ *+' conftest.er1 >conftest.err
23417 rm -f conftest.er1
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest.$ac_objext; then
23424 ac_cv_type_mbstate_t=yes
23425 else
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 ac_cv_type_mbstate_t=no
23430 fi
23431
23432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433 fi
23434 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23435 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23436 if test $ac_cv_type_mbstate_t = yes; then
23437
23438 cat >>confdefs.h <<\_ACEOF
23439 #define HAVE_MBSTATE_T 1
23440 _ACEOF
23441
23442 else
23443
23444 cat >>confdefs.h <<\_ACEOF
23445 #define mbstate_t int
23446 _ACEOF
23447
23448 fi
23449
23450 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23451 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23452 if test "${emacs_cv_c_restrict+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23455 cat >conftest.$ac_ext <<_ACEOF
23456 /* confdefs.h. */
23457 _ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 void fred (int *restrict x);
23462 int
23463 main ()
23464 {
23465
23466 ;
23467 return 0;
23468 }
23469 _ACEOF
23470 rm -f conftest.$ac_objext
23471 if { (ac_try="$ac_compile"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23475 esac
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23478 ac_status=$?
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 emacs_cv_c_restrict=yes
23488 else
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 void fred (int *__restrict x);
23499 int
23500 main ()
23501 {
23502
23503 ;
23504 return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511 *) ac_try_echo=$ac_try;;
23512 esac
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514 (eval "$ac_compile") 2>conftest.er1
23515 ac_status=$?
23516 grep -v '^ *+' conftest.er1 >conftest.err
23517 rm -f conftest.er1
23518 cat conftest.err >&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && {
23521 test -z "$ac_c_werror_flag" ||
23522 test ! -s conftest.err
23523 } && test -s conftest.$ac_objext; then
23524 emacs_cv_c_restrict=__restrict
23525 else
23526 echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529 emacs_cv_c_restrict=no
23530 fi
23531
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 fi
23534
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 fi
23537 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23538 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23539 case "$emacs_cv_c_restrict" in
23540 yes) emacs_restrict=restrict;;
23541 no) emacs_restrict="";;
23542 *) emacs_restrict="$emacs_cv_c_restrict";;
23543 esac
23544 if test "$emacs_restrict" != __restrict; then
23545
23546 cat >>confdefs.h <<_ACEOF
23547 #define __restrict $emacs_restrict
23548 _ACEOF
23549
23550 fi
23551
23552 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23553 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23554 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557 cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h. */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 void fred (int x[__restrict]);
23564 int
23565 main ()
23566 {
23567
23568 ;
23569 return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23589 emacs_cv_c_restrict_arr=yes
23590 else
23591 echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
23594 emacs_cv_c_restrict_arr=no
23595 fi
23596
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 fi
23599 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23600 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23601 if test "$emacs_cv_c_restrict_arr" = yes; then
23602
23603 cat >>confdefs.h <<\_ACEOF
23604 #define __restrict_arr __restrict
23605 _ACEOF
23606
23607 fi
23608
23609
23610
23611 # Set up the CFLAGS for real compilation, so we can substitute it.
23612 CFLAGS="$REAL_CFLAGS"
23613 CPPFLAGS="$REAL_CPPFLAGS"
23614
23615 #### Find out which version of Emacs this is.
23616 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23617 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23618 if test x"${version}" = x; then
23619 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23620 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23621 { (exit 1); exit 1; }; }
23622 fi
23623
23624 ### Specify what sort of things we'll be editing into Makefile and config.h.
23625 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661 cat >>confdefs.h <<_ACEOF
23662 #define EMACS_CONFIGURATION "${canonical}"
23663 _ACEOF
23664
23665
23666 cat >>confdefs.h <<_ACEOF
23667 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23668 _ACEOF
23669
23670
23671 cat >>confdefs.h <<_ACEOF
23672 #define config_machfile "${machfile}"
23673 _ACEOF
23674
23675
23676 cat >>confdefs.h <<_ACEOF
23677 #define config_opsysfile "${opsysfile}"
23678 _ACEOF
23679
23680
23681 cat >>confdefs.h <<_ACEOF
23682 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23683 _ACEOF
23684
23685
23686 cat >>confdefs.h <<_ACEOF
23687 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23688 _ACEOF
23689
23690
23691 cat >>confdefs.h <<_ACEOF
23692 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23693 _ACEOF
23694
23695
23696 cat >>confdefs.h <<_ACEOF
23697 #define UNEXEC_SRC ${UNEXEC_SRC}
23698 _ACEOF
23699
23700
23701 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23702
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_X_WINDOWS 1
23705 _ACEOF
23706
23707 fi
23708 if test "${USE_X_TOOLKIT}" != "none" ; then
23709
23710 cat >>confdefs.h <<\_ACEOF
23711 #define USE_X_TOOLKIT 1
23712 _ACEOF
23713
23714 fi
23715 if test "${HAVE_X11}" = "yes" ; then
23716
23717 cat >>confdefs.h <<\_ACEOF
23718 #define HAVE_X11 1
23719 _ACEOF
23720
23721 fi
23722 if test "${HAVE_XFREE386}" = "yes" ; then
23723
23724 cat >>confdefs.h <<\_ACEOF
23725 #define HAVE_XFREE386 1
23726 _ACEOF
23727
23728 fi
23729 if test "${HAVE_MENUS}" = "yes" ; then
23730
23731 cat >>confdefs.h <<\_ACEOF
23732 #define HAVE_MENUS 1
23733 _ACEOF
23734
23735 fi
23736 if test "${GNU_MALLOC}" = "yes" ; then
23737
23738 cat >>confdefs.h <<\_ACEOF
23739 #define GNU_MALLOC 1
23740 _ACEOF
23741
23742 fi
23743 if test "${REL_ALLOC}" = "yes" ; then
23744
23745 cat >>confdefs.h <<\_ACEOF
23746 #define REL_ALLOC 1
23747 _ACEOF
23748
23749 fi
23750
23751
23752
23753
23754
23755 #### Report on what we decided to do.
23756 #### Report GTK as a toolkit, even if it doesn't use Xt.
23757 #### It makes printing result more understandable as using GTK sets
23758 #### toolkit_scroll_bars to yes by default.
23759 if test "${HAVE_GTK}" = "yes"; then
23760 USE_X_TOOLKIT=GTK
23761 fi
23762
23763 echo "
23764 Configured for \`${canonical}'.
23765
23766 Where should the build process find the source code? ${srcdir}
23767 What operating system and machine description files should Emacs use?
23768 \`${opsysfile}' and \`${machfile}'
23769 What compiler should emacs be built with? ${CC} ${CFLAGS}
23770 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23771 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23772 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23773 What window system should Emacs use? ${window_system}
23774 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23775
23776 if test -n "${x_includes}"; then
23777 echo " Where do we find X Windows header files? ${x_includes}"
23778 else
23779 echo " Where do we find X Windows header files? Standard dirs"
23780 fi
23781 if test -n "${x_libraries}"; then
23782 echo " Where do we find X Windows libraries? ${x_libraries}"
23783 else
23784 echo " Where do we find X Windows libraries? Standard dirs"
23785 fi
23786
23787 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23788 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23789 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23790 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23791 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23792 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23793 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23794 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23795 echo
23796
23797 if test $USE_XASSERTS = yes; then
23798 echo " Compiling with asserts turned on."
23799 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23800 echo
23801 fi
23802
23803 if test "$USE_X_TOOLKIT" = GTK; then
23804 case "$canonical" in
23805 *cygwin*)
23806 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23807 will probably get a crash on startup. If this happens, please use another
23808 toolkit for Emacs. See etc/PROBLEMS for more information."
23809 ;;
23810 esac
23811 fi
23812
23813
23814
23815 # Remove any trailing slashes in these variables.
23816 test "${prefix}" != NONE &&
23817 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23818 test "${exec_prefix}" != NONE &&
23819 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23820
23821 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23822 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23823 ## from Makefile.c can correctly provide the arg `-traditional' to the
23824 ## C preprocessor.
23825
23826 cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h. */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 yes..yes
23833 _ACEOF
23834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23835 $EGREP "yes..yes" >/dev/null 2>&1; then
23836 CPP_NEED_TRADITIONAL=no
23837 else
23838 CPP_NEED_TRADITIONAL=yes
23839 fi
23840 rm -f conftest*
23841
23842
23843 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"
23844
23845 ac_config_commands="$ac_config_commands default"
23846
23847 cat >confcache <<\_ACEOF
23848 # This file is a shell script that caches the results of configure
23849 # tests run on this system so they can be shared between configure
23850 # scripts and configure runs, see configure's option --config-cache.
23851 # It is not useful on other systems. If it contains results you don't
23852 # want to keep, you may remove or edit it.
23853 #
23854 # config.status only pays attention to the cache file if you give it
23855 # the --recheck option to rerun configure.
23856 #
23857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23859 # following values.
23860
23861 _ACEOF
23862
23863 # The following way of writing the cache mishandles newlines in values,
23864 # but we know of no workaround that is simple, portable, and efficient.
23865 # So, we kill variables containing newlines.
23866 # Ultrix sh set writes to stderr and can't be redirected directly,
23867 # and sets the high bit in the cache file unless we assign to the vars.
23868 (
23869 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23870 eval ac_val=\$$ac_var
23871 case $ac_val in #(
23872 *${as_nl}*)
23873 case $ac_var in #(
23874 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23875 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23876 esac
23877 case $ac_var in #(
23878 _ | IFS | as_nl) ;; #(
23879 *) $as_unset $ac_var ;;
23880 esac ;;
23881 esac
23882 done
23883
23884 (set) 2>&1 |
23885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23886 *${as_nl}ac_space=\ *)
23887 # `set' does not quote correctly, so add quotes (double-quote
23888 # substitution turns \\\\ into \\, and sed turns \\ into \).
23889 sed -n \
23890 "s/'/'\\\\''/g;
23891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23892 ;; #(
23893 *)
23894 # `set' quotes correctly as required by POSIX, so do not add quotes.
23895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23896 ;;
23897 esac |
23898 sort
23899 ) |
23900 sed '
23901 /^ac_cv_env_/b end
23902 t clear
23903 :clear
23904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23905 t end
23906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23907 :end' >>confcache
23908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23909 if test -w "$cache_file"; then
23910 test "x$cache_file" != "x/dev/null" &&
23911 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23912 echo "$as_me: updating cache $cache_file" >&6;}
23913 cat confcache >$cache_file
23914 else
23915 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23916 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23917 fi
23918 fi
23919 rm -f confcache
23920
23921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23922 # Let make expand exec_prefix.
23923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23924
23925 DEFS=-DHAVE_CONFIG_H
23926
23927 ac_libobjs=
23928 ac_ltlibobjs=
23929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23930 # 1. Remove the extension, and $U if already installed.
23931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23932 ac_i=`echo "$ac_i" | sed "$ac_script"`
23933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23934 # will be set to the directory where LIBOBJS objects are built.
23935 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23936 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23937 done
23938 LIBOBJS=$ac_libobjs
23939
23940 LTLIBOBJS=$ac_ltlibobjs
23941
23942
23943
23944 : ${CONFIG_STATUS=./config.status}
23945 ac_clean_files_save=$ac_clean_files
23946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23949 cat >$CONFIG_STATUS <<_ACEOF
23950 #! $SHELL
23951 # Generated by $as_me.
23952 # Run this file to recreate the current configuration.
23953 # Compiler output produced by configure, useful for debugging
23954 # configure, is in config.log if it exists.
23955
23956 debug=false
23957 ac_cs_recheck=false
23958 ac_cs_silent=false
23959 SHELL=\${CONFIG_SHELL-$SHELL}
23960 _ACEOF
23961
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 ## --------------------- ##
23964 ## M4sh Initialization. ##
23965 ## --------------------- ##
23966
23967 # Be more Bourne compatible
23968 DUALCASE=1; export DUALCASE # for MKS sh
23969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23970 emulate sh
23971 NULLCMD=:
23972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23973 # is contrary to our usage. Disable this feature.
23974 alias -g '${1+"$@"}'='"$@"'
23975 setopt NO_GLOB_SUBST
23976 else
23977 case `(set -o) 2>/dev/null` in
23978 *posix*) set -o posix ;;
23979 esac
23980
23981 fi
23982
23983
23984
23985
23986 # PATH needs CR
23987 # Avoid depending upon Character Ranges.
23988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23991 as_cr_digits='0123456789'
23992 as_cr_alnum=$as_cr_Letters$as_cr_digits
23993
23994 # The user is always right.
23995 if test "${PATH_SEPARATOR+set}" != set; then
23996 echo "#! /bin/sh" >conf$$.sh
23997 echo "exit 0" >>conf$$.sh
23998 chmod +x conf$$.sh
23999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24000 PATH_SEPARATOR=';'
24001 else
24002 PATH_SEPARATOR=:
24003 fi
24004 rm -f conf$$.sh
24005 fi
24006
24007 # Support unset when possible.
24008 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24009 as_unset=unset
24010 else
24011 as_unset=false
24012 fi
24013
24014
24015 # IFS
24016 # We need space, tab and new line, in precisely that order. Quoting is
24017 # there to prevent editors from complaining about space-tab.
24018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24019 # splitting by setting IFS to empty value.)
24020 as_nl='
24021 '
24022 IFS=" "" $as_nl"
24023
24024 # Find who we are. Look in the path if we contain no directory separator.
24025 case $0 in
24026 *[\\/]* ) as_myself=$0 ;;
24027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24028 for as_dir in $PATH
24029 do
24030 IFS=$as_save_IFS
24031 test -z "$as_dir" && as_dir=.
24032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24033 done
24034 IFS=$as_save_IFS
24035
24036 ;;
24037 esac
24038 # We did not find ourselves, most probably we were run as `sh COMMAND'
24039 # in which case we are not to be found in the path.
24040 if test "x$as_myself" = x; then
24041 as_myself=$0
24042 fi
24043 if test ! -f "$as_myself"; then
24044 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24045 { (exit 1); exit 1; }
24046 fi
24047
24048 # Work around bugs in pre-3.0 UWIN ksh.
24049 for as_var in ENV MAIL MAILPATH
24050 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24051 done
24052 PS1='$ '
24053 PS2='> '
24054 PS4='+ '
24055
24056 # NLS nuisances.
24057 for as_var in \
24058 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24059 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24060 LC_TELEPHONE LC_TIME
24061 do
24062 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24063 eval $as_var=C; export $as_var
24064 else
24065 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24066 fi
24067 done
24068
24069 # Required to use basename.
24070 if expr a : '\(a\)' >/dev/null 2>&1 &&
24071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24072 as_expr=expr
24073 else
24074 as_expr=false
24075 fi
24076
24077 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24078 as_basename=basename
24079 else
24080 as_basename=false
24081 fi
24082
24083
24084 # Name of the executable.
24085 as_me=`$as_basename -- "$0" ||
24086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24087 X"$0" : 'X\(//\)$' \| \
24088 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24089 echo X/"$0" |
24090 sed '/^.*\/\([^/][^/]*\)\/*$/{
24091 s//\1/
24092 q
24093 }
24094 /^X\/\(\/\/\)$/{
24095 s//\1/
24096 q
24097 }
24098 /^X\/\(\/\).*/{
24099 s//\1/
24100 q
24101 }
24102 s/.*/./; q'`
24103
24104 # CDPATH.
24105 $as_unset CDPATH
24106
24107
24108
24109 as_lineno_1=$LINENO
24110 as_lineno_2=$LINENO
24111 test "x$as_lineno_1" != "x$as_lineno_2" &&
24112 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24113
24114 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24115 # uniformly replaced by the line number. The first 'sed' inserts a
24116 # line-number line after each line using $LINENO; the second 'sed'
24117 # does the real work. The second script uses 'N' to pair each
24118 # line-number line with the line containing $LINENO, and appends
24119 # trailing '-' during substitution so that $LINENO is not a special
24120 # case at line end.
24121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24122 # scripts with optimization help from Paolo Bonzini. Blame Lee
24123 # E. McMahon (1931-1989) for sed's syntax. :-)
24124 sed -n '
24125 p
24126 /[$]LINENO/=
24127 ' <$as_myself |
24128 sed '
24129 s/[$]LINENO.*/&-/
24130 t lineno
24131 b
24132 :lineno
24133 N
24134 :loop
24135 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24136 t loop
24137 s/-\n.*//
24138 ' >$as_me.lineno &&
24139 chmod +x "$as_me.lineno" ||
24140 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24141 { (exit 1); exit 1; }; }
24142
24143 # Don't try to exec as it changes $[0], causing all sort of problems
24144 # (the dirname of $[0] is not the place where we might find the
24145 # original and so on. Autoconf is especially sensitive to this).
24146 . "./$as_me.lineno"
24147 # Exit status is that of the last command.
24148 exit
24149 }
24150
24151
24152 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24153 as_dirname=dirname
24154 else
24155 as_dirname=false
24156 fi
24157
24158 ECHO_C= ECHO_N= ECHO_T=
24159 case `echo -n x` in
24160 -n*)
24161 case `echo 'x\c'` in
24162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24163 *) ECHO_C='\c';;
24164 esac;;
24165 *)
24166 ECHO_N='-n';;
24167 esac
24168
24169 if expr a : '\(a\)' >/dev/null 2>&1 &&
24170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24171 as_expr=expr
24172 else
24173 as_expr=false
24174 fi
24175
24176 rm -f conf$$ conf$$.exe conf$$.file
24177 if test -d conf$$.dir; then
24178 rm -f conf$$.dir/conf$$.file
24179 else
24180 rm -f conf$$.dir
24181 mkdir conf$$.dir
24182 fi
24183 echo >conf$$.file
24184 if ln -s conf$$.file conf$$ 2>/dev/null; then
24185 as_ln_s='ln -s'
24186 # ... but there are two gotchas:
24187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24189 # In both cases, we have to default to `cp -p'.
24190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24191 as_ln_s='cp -p'
24192 elif ln conf$$.file conf$$ 2>/dev/null; then
24193 as_ln_s=ln
24194 else
24195 as_ln_s='cp -p'
24196 fi
24197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24198 rmdir conf$$.dir 2>/dev/null
24199
24200 if mkdir -p . 2>/dev/null; then
24201 as_mkdir_p=:
24202 else
24203 test -d ./-p && rmdir ./-p
24204 as_mkdir_p=false
24205 fi
24206
24207 if test -x / >/dev/null 2>&1; then
24208 as_test_x='test -x'
24209 else
24210 if ls -dL / >/dev/null 2>&1; then
24211 as_ls_L_option=L
24212 else
24213 as_ls_L_option=
24214 fi
24215 as_test_x='
24216 eval sh -c '\''
24217 if test -d "$1"; then
24218 test -d "$1/.";
24219 else
24220 case $1 in
24221 -*)set "./$1";;
24222 esac;
24223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24224 ???[sx]*):;;*)false;;esac;fi
24225 '\'' sh
24226 '
24227 fi
24228 as_executable_p=$as_test_x
24229
24230 # Sed expression to map a string onto a valid CPP name.
24231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24232
24233 # Sed expression to map a string onto a valid variable name.
24234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24235
24236
24237 exec 6>&1
24238
24239 # Save the log message, to keep $[0] and so on meaningful, and to
24240 # report actual input values of CONFIG_FILES etc. instead of their
24241 # values after options handling.
24242 ac_log="
24243 This file was extended by $as_me, which was
24244 generated by GNU Autoconf 2.61. Invocation command line was
24245
24246 CONFIG_FILES = $CONFIG_FILES
24247 CONFIG_HEADERS = $CONFIG_HEADERS
24248 CONFIG_LINKS = $CONFIG_LINKS
24249 CONFIG_COMMANDS = $CONFIG_COMMANDS
24250 $ $0 $@
24251
24252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24253 "
24254
24255 _ACEOF
24256
24257 cat >>$CONFIG_STATUS <<_ACEOF
24258 # Files that config.status was made for.
24259 config_files="$ac_config_files"
24260 config_headers="$ac_config_headers"
24261 config_commands="$ac_config_commands"
24262
24263 _ACEOF
24264
24265 cat >>$CONFIG_STATUS <<\_ACEOF
24266 ac_cs_usage="\
24267 \`$as_me' instantiates files from templates according to the
24268 current configuration.
24269
24270 Usage: $0 [OPTIONS] [FILE]...
24271
24272 -h, --help print this help, then exit
24273 -V, --version print version number and configuration settings, then exit
24274 -q, --quiet do not print progress messages
24275 -d, --debug don't remove temporary files
24276 --recheck update $as_me by reconfiguring in the same conditions
24277 --file=FILE[:TEMPLATE]
24278 instantiate the configuration file FILE
24279 --header=FILE[:TEMPLATE]
24280 instantiate the configuration header FILE
24281
24282 Configuration files:
24283 $config_files
24284
24285 Configuration headers:
24286 $config_headers
24287
24288 Configuration commands:
24289 $config_commands
24290
24291 Report bugs to <bug-autoconf@gnu.org>."
24292
24293 _ACEOF
24294 cat >>$CONFIG_STATUS <<_ACEOF
24295 ac_cs_version="\\
24296 config.status
24297 configured by $0, generated by GNU Autoconf 2.61,
24298 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24299
24300 Copyright (C) 2006 Free Software Foundation, Inc.
24301 This config.status script is free software; the Free Software Foundation
24302 gives unlimited permission to copy, distribute and modify it."
24303
24304 ac_pwd='$ac_pwd'
24305 srcdir='$srcdir'
24306 INSTALL='$INSTALL'
24307 _ACEOF
24308
24309 cat >>$CONFIG_STATUS <<\_ACEOF
24310 # If no file are specified by the user, then we need to provide default
24311 # value. By we need to know if files were specified by the user.
24312 ac_need_defaults=:
24313 while test $# != 0
24314 do
24315 case $1 in
24316 --*=*)
24317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24318 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24319 ac_shift=:
24320 ;;
24321 *)
24322 ac_option=$1
24323 ac_optarg=$2
24324 ac_shift=shift
24325 ;;
24326 esac
24327
24328 case $ac_option in
24329 # Handling of the options.
24330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24331 ac_cs_recheck=: ;;
24332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24333 echo "$ac_cs_version"; exit ;;
24334 --debug | --debu | --deb | --de | --d | -d )
24335 debug=: ;;
24336 --file | --fil | --fi | --f )
24337 $ac_shift
24338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24339 ac_need_defaults=false;;
24340 --header | --heade | --head | --hea )
24341 $ac_shift
24342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24343 ac_need_defaults=false;;
24344 --he | --h)
24345 # Conflict between --help and --header
24346 { echo "$as_me: error: ambiguous option: $1
24347 Try \`$0 --help' for more information." >&2
24348 { (exit 1); exit 1; }; };;
24349 --help | --hel | -h )
24350 echo "$ac_cs_usage"; exit ;;
24351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24353 ac_cs_silent=: ;;
24354
24355 # This is an error.
24356 -*) { echo "$as_me: error: unrecognized option: $1
24357 Try \`$0 --help' for more information." >&2
24358 { (exit 1); exit 1; }; } ;;
24359
24360 *) ac_config_targets="$ac_config_targets $1"
24361 ac_need_defaults=false ;;
24362
24363 esac
24364 shift
24365 done
24366
24367 ac_configure_extra_args=
24368
24369 if $ac_cs_silent; then
24370 exec 6>/dev/null
24371 ac_configure_extra_args="$ac_configure_extra_args --silent"
24372 fi
24373
24374 _ACEOF
24375 cat >>$CONFIG_STATUS <<_ACEOF
24376 if \$ac_cs_recheck; then
24377 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24378 CONFIG_SHELL=$SHELL
24379 export CONFIG_SHELL
24380 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24381 fi
24382
24383 _ACEOF
24384 cat >>$CONFIG_STATUS <<\_ACEOF
24385 exec 5>>config.log
24386 {
24387 echo
24388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24389 ## Running $as_me. ##
24390 _ASBOX
24391 echo "$ac_log"
24392 } >&5
24393
24394 _ACEOF
24395 cat >>$CONFIG_STATUS <<_ACEOF
24396 #
24397 # INIT-COMMANDS
24398 #
24399 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24400
24401 _ACEOF
24402
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24404
24405 # Handling of arguments.
24406 for ac_config_target in $ac_config_targets
24407 do
24408 case $ac_config_target in
24409 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24411 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24412 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24413 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24414 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24415 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24416 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24417 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24418 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24419 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24420 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24421
24422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24424 { (exit 1); exit 1; }; };;
24425 esac
24426 done
24427
24428
24429 # If the user did not use the arguments to specify the items to instantiate,
24430 # then the envvar interface is used. Set only those that are not.
24431 # We use the long form for the default assignment because of an extremely
24432 # bizarre bug on SunOS 4.1.3.
24433 if $ac_need_defaults; then
24434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24437 fi
24438
24439 # Have a temporary directory for convenience. Make it in the build tree
24440 # simply because there is no reason against having it here, and in addition,
24441 # creating and moving files from /tmp can sometimes cause problems.
24442 # Hook for its removal unless debugging.
24443 # Note that there is a small window in which the directory will not be cleaned:
24444 # after its creation but before its name has been assigned to `$tmp'.
24445 $debug ||
24446 {
24447 tmp=
24448 trap 'exit_status=$?
24449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24450 ' 0
24451 trap '{ (exit 1); exit 1; }' 1 2 13 15
24452 }
24453 # Create a (secure) tmp directory for tmp files.
24454
24455 {
24456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24457 test -n "$tmp" && test -d "$tmp"
24458 } ||
24459 {
24460 tmp=./conf$$-$RANDOM
24461 (umask 077 && mkdir "$tmp")
24462 } ||
24463 {
24464 echo "$me: cannot create a temporary directory in ." >&2
24465 { (exit 1); exit 1; }
24466 }
24467
24468 #
24469 # Set up the sed scripts for CONFIG_FILES section.
24470 #
24471
24472 # No need to generate the scripts if there are no CONFIG_FILES.
24473 # This happens for instance when ./config.status config.h
24474 if test -n "$CONFIG_FILES"; then
24475
24476 _ACEOF
24477
24478
24479
24480 ac_delim='%!_!# '
24481 for ac_last_try in false false false false false :; do
24482 cat >conf$$subs.sed <<_ACEOF
24483 SHELL!$SHELL$ac_delim
24484 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24485 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24486 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24487 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24488 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24489 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24490 exec_prefix!$exec_prefix$ac_delim
24491 prefix!$prefix$ac_delim
24492 program_transform_name!$program_transform_name$ac_delim
24493 bindir!$bindir$ac_delim
24494 sbindir!$sbindir$ac_delim
24495 libexecdir!$libexecdir$ac_delim
24496 datarootdir!$datarootdir$ac_delim
24497 datadir!$datadir$ac_delim
24498 sysconfdir!$sysconfdir$ac_delim
24499 sharedstatedir!$sharedstatedir$ac_delim
24500 localstatedir!$localstatedir$ac_delim
24501 includedir!$includedir$ac_delim
24502 oldincludedir!$oldincludedir$ac_delim
24503 docdir!$docdir$ac_delim
24504 infodir!$infodir$ac_delim
24505 htmldir!$htmldir$ac_delim
24506 dvidir!$dvidir$ac_delim
24507 pdfdir!$pdfdir$ac_delim
24508 psdir!$psdir$ac_delim
24509 libdir!$libdir$ac_delim
24510 localedir!$localedir$ac_delim
24511 mandir!$mandir$ac_delim
24512 DEFS!$DEFS$ac_delim
24513 ECHO_C!$ECHO_C$ac_delim
24514 ECHO_N!$ECHO_N$ac_delim
24515 ECHO_T!$ECHO_T$ac_delim
24516 LIBS!$LIBS$ac_delim
24517 build_alias!$build_alias$ac_delim
24518 host_alias!$host_alias$ac_delim
24519 target_alias!$target_alias$ac_delim
24520 MAINT!$MAINT$ac_delim
24521 build!$build$ac_delim
24522 build_cpu!$build_cpu$ac_delim
24523 build_vendor!$build_vendor$ac_delim
24524 build_os!$build_os$ac_delim
24525 host!$host$ac_delim
24526 host_cpu!$host_cpu$ac_delim
24527 host_vendor!$host_vendor$ac_delim
24528 host_os!$host_os$ac_delim
24529 CC!$CC$ac_delim
24530 CFLAGS!$CFLAGS$ac_delim
24531 LDFLAGS!$LDFLAGS$ac_delim
24532 CPPFLAGS!$CPPFLAGS$ac_delim
24533 ac_ct_CC!$ac_ct_CC$ac_delim
24534 EXEEXT!$EXEEXT$ac_delim
24535 OBJEXT!$OBJEXT$ac_delim
24536 CPP!$CPP$ac_delim
24537 GREP!$GREP$ac_delim
24538 EGREP!$EGREP$ac_delim
24539 LN_S!$LN_S$ac_delim
24540 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24541 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24542 INSTALL_DATA!$INSTALL_DATA$ac_delim
24543 RANLIB!$RANLIB$ac_delim
24544 INSTALL_INFO!$INSTALL_INFO$ac_delim
24545 GZIP_PROG!$GZIP_PROG$ac_delim
24546 LIBSOUND!$LIBSOUND$ac_delim
24547 PKG_CONFIG!$PKG_CONFIG$ac_delim
24548 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24549 ALSA_LIBS!$ALSA_LIBS$ac_delim
24550 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24551 SET_MAKE!$SET_MAKE$ac_delim
24552 XMKMF!$XMKMF$ac_delim
24553 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24554 GTK_LIBS!$GTK_LIBS$ac_delim
24555 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24556 XFT_LIBS!$XFT_LIBS$ac_delim
24557 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24558 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24559 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24560 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24561 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24562 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24563 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24564 ALLOCA!$ALLOCA$ac_delim
24565 liblockfile!$liblockfile$ac_delim
24566 LIBOBJS!$LIBOBJS$ac_delim
24567 NEED_SETGID!$NEED_SETGID$ac_delim
24568 KMEM_GROUP!$KMEM_GROUP$ac_delim
24569 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24570 GETOPT_H!$GETOPT_H$ac_delim
24571 GETOPTOBJS!$GETOPTOBJS$ac_delim
24572 version!$version$ac_delim
24573 configuration!$configuration$ac_delim
24574 canonical!$canonical$ac_delim
24575 srcdir!$srcdir$ac_delim
24576 lispdir!$lispdir$ac_delim
24577 locallisppath!$locallisppath$ac_delim
24578 lisppath!$lisppath$ac_delim
24579 x_default_search_path!$x_default_search_path$ac_delim
24580 _ACEOF
24581
24582 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24583 break
24584 elif $ac_last_try; then
24585 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24587 { (exit 1); exit 1; }; }
24588 else
24589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24590 fi
24591 done
24592
24593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24594 if test -n "$ac_eof"; then
24595 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24596 ac_eof=`expr $ac_eof + 1`
24597 fi
24598
24599 cat >>$CONFIG_STATUS <<_ACEOF
24600 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24602 _ACEOF
24603 sed '
24604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24605 s/^/s,@/; s/!/@,|#_!!_#|/
24606 :n
24607 t n
24608 s/'"$ac_delim"'$/,g/; t
24609 s/$/\\/; p
24610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24611 ' >>$CONFIG_STATUS <conf$$subs.sed
24612 rm -f conf$$subs.sed
24613 cat >>$CONFIG_STATUS <<_ACEOF
24614 CEOF$ac_eof
24615 _ACEOF
24616
24617
24618 ac_delim='%!_!# '
24619 for ac_last_try in false false false false false :; do
24620 cat >conf$$subs.sed <<_ACEOF
24621 etcdir!$etcdir$ac_delim
24622 archlibdir!$archlibdir$ac_delim
24623 bitmapdir!$bitmapdir$ac_delim
24624 gamedir!$gamedir$ac_delim
24625 gameuser!$gameuser$ac_delim
24626 c_switch_system!$c_switch_system$ac_delim
24627 c_switch_machine!$c_switch_machine$ac_delim
24628 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24629 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24630 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24631 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24632 machfile!$machfile$ac_delim
24633 opsysfile!$opsysfile$ac_delim
24634 carbon_appdir!$carbon_appdir$ac_delim
24635 LTLIBOBJS!$LTLIBOBJS$ac_delim
24636 _ACEOF
24637
24638 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24639 break
24640 elif $ac_last_try; then
24641 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24642 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24643 { (exit 1); exit 1; }; }
24644 else
24645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24646 fi
24647 done
24648
24649 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24650 if test -n "$ac_eof"; then
24651 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24652 ac_eof=`expr $ac_eof + 1`
24653 fi
24654
24655 cat >>$CONFIG_STATUS <<_ACEOF
24656 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24658 _ACEOF
24659 sed '
24660 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24661 s/^/s,@/; s/!/@,|#_!!_#|/
24662 :n
24663 t n
24664 s/'"$ac_delim"'$/,g/; t
24665 s/$/\\/; p
24666 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24667 ' >>$CONFIG_STATUS <conf$$subs.sed
24668 rm -f conf$$subs.sed
24669 cat >>$CONFIG_STATUS <<_ACEOF
24670 :end
24671 s/|#_!!_#|//g
24672 CEOF$ac_eof
24673 _ACEOF
24674
24675
24676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24678 # trailing colons and then remove the whole line if VPATH becomes empty
24679 # (actually we leave an empty line to preserve line numbers).
24680 if test "x$srcdir" = x.; then
24681 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24682 s/:*\$(srcdir):*/:/
24683 s/:*\${srcdir}:*/:/
24684 s/:*@srcdir@:*/:/
24685 s/^\([^=]*=[ ]*\):*/\1/
24686 s/:*$//
24687 s/^[^=]*=[ ]*$//
24688 }'
24689 fi
24690
24691 cat >>$CONFIG_STATUS <<\_ACEOF
24692 fi # test -n "$CONFIG_FILES"
24693
24694
24695 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24696 do
24697 case $ac_tag in
24698 :[FHLC]) ac_mode=$ac_tag; continue;;
24699 esac
24700 case $ac_mode$ac_tag in
24701 :[FHL]*:*);;
24702 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24703 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24704 { (exit 1); exit 1; }; };;
24705 :[FH]-) ac_tag=-:-;;
24706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24707 esac
24708 ac_save_IFS=$IFS
24709 IFS=:
24710 set x $ac_tag
24711 IFS=$ac_save_IFS
24712 shift
24713 ac_file=$1
24714 shift
24715
24716 case $ac_mode in
24717 :L) ac_source=$1;;
24718 :[FH])
24719 ac_file_inputs=
24720 for ac_f
24721 do
24722 case $ac_f in
24723 -) ac_f="$tmp/stdin";;
24724 *) # Look for the file first in the build tree, then in the source tree
24725 # (if the path is not absolute). The absolute path cannot be DOS-style,
24726 # because $ac_f cannot contain `:'.
24727 test -f "$ac_f" ||
24728 case $ac_f in
24729 [\\/$]*) false;;
24730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24731 esac ||
24732 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24733 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24734 { (exit 1); exit 1; }; };;
24735 esac
24736 ac_file_inputs="$ac_file_inputs $ac_f"
24737 done
24738
24739 # Let's still pretend it is `configure' which instantiates (i.e., don't
24740 # use $as_me), people would be surprised to read:
24741 # /* config.h. Generated by config.status. */
24742 configure_input="Generated from "`IFS=:
24743 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24744 if test x"$ac_file" != x-; then
24745 configure_input="$ac_file. $configure_input"
24746 { echo "$as_me:$LINENO: creating $ac_file" >&5
24747 echo "$as_me: creating $ac_file" >&6;}
24748 fi
24749
24750 case $ac_tag in
24751 *:-:* | *:-) cat >"$tmp/stdin";;
24752 esac
24753 ;;
24754 esac
24755
24756 ac_dir=`$as_dirname -- "$ac_file" ||
24757 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24758 X"$ac_file" : 'X\(//\)[^/]' \| \
24759 X"$ac_file" : 'X\(//\)$' \| \
24760 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24761 echo X"$ac_file" |
24762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24763 s//\1/
24764 q
24765 }
24766 /^X\(\/\/\)[^/].*/{
24767 s//\1/
24768 q
24769 }
24770 /^X\(\/\/\)$/{
24771 s//\1/
24772 q
24773 }
24774 /^X\(\/\).*/{
24775 s//\1/
24776 q
24777 }
24778 s/.*/./; q'`
24779 { as_dir="$ac_dir"
24780 case $as_dir in #(
24781 -*) as_dir=./$as_dir;;
24782 esac
24783 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24784 as_dirs=
24785 while :; do
24786 case $as_dir in #(
24787 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24788 *) as_qdir=$as_dir;;
24789 esac
24790 as_dirs="'$as_qdir' $as_dirs"
24791 as_dir=`$as_dirname -- "$as_dir" ||
24792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24793 X"$as_dir" : 'X\(//\)[^/]' \| \
24794 X"$as_dir" : 'X\(//\)$' \| \
24795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24796 echo X"$as_dir" |
24797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24798 s//\1/
24799 q
24800 }
24801 /^X\(\/\/\)[^/].*/{
24802 s//\1/
24803 q
24804 }
24805 /^X\(\/\/\)$/{
24806 s//\1/
24807 q
24808 }
24809 /^X\(\/\).*/{
24810 s//\1/
24811 q
24812 }
24813 s/.*/./; q'`
24814 test -d "$as_dir" && break
24815 done
24816 test -z "$as_dirs" || eval "mkdir $as_dirs"
24817 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24818 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24819 { (exit 1); exit 1; }; }; }
24820 ac_builddir=.
24821
24822 case "$ac_dir" in
24823 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24824 *)
24825 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24826 # A ".." for each directory in $ac_dir_suffix.
24827 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24828 case $ac_top_builddir_sub in
24829 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24830 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24831 esac ;;
24832 esac
24833 ac_abs_top_builddir=$ac_pwd
24834 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24835 # for backward compatibility:
24836 ac_top_builddir=$ac_top_build_prefix
24837
24838 case $srcdir in
24839 .) # We are building in place.
24840 ac_srcdir=.
24841 ac_top_srcdir=$ac_top_builddir_sub
24842 ac_abs_top_srcdir=$ac_pwd ;;
24843 [\\/]* | ?:[\\/]* ) # Absolute name.
24844 ac_srcdir=$srcdir$ac_dir_suffix;
24845 ac_top_srcdir=$srcdir
24846 ac_abs_top_srcdir=$srcdir ;;
24847 *) # Relative name.
24848 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24849 ac_top_srcdir=$ac_top_build_prefix$srcdir
24850 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24851 esac
24852 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24853
24854
24855 case $ac_mode in
24856 :F)
24857 #
24858 # CONFIG_FILE
24859 #
24860
24861 case $INSTALL in
24862 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24863 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24864 esac
24865 _ACEOF
24866
24867 cat >>$CONFIG_STATUS <<\_ACEOF
24868 # If the template does not know about datarootdir, expand it.
24869 # FIXME: This hack should be removed a few years after 2.60.
24870 ac_datarootdir_hack=; ac_datarootdir_seen=
24871
24872 case `sed -n '/datarootdir/ {
24873 p
24874 q
24875 }
24876 /@datadir@/p
24877 /@docdir@/p
24878 /@infodir@/p
24879 /@localedir@/p
24880 /@mandir@/p
24881 ' $ac_file_inputs` in
24882 *datarootdir*) ac_datarootdir_seen=yes;;
24883 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24884 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24885 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24886 _ACEOF
24887 cat >>$CONFIG_STATUS <<_ACEOF
24888 ac_datarootdir_hack='
24889 s&@datadir@&$datadir&g
24890 s&@docdir@&$docdir&g
24891 s&@infodir@&$infodir&g
24892 s&@localedir@&$localedir&g
24893 s&@mandir@&$mandir&g
24894 s&\\\${datarootdir}&$datarootdir&g' ;;
24895 esac
24896 _ACEOF
24897
24898 # Neutralize VPATH when `$srcdir' = `.'.
24899 # Shell code in configure.ac might set extrasub.
24900 # FIXME: do we really want to maintain this feature?
24901 cat >>$CONFIG_STATUS <<_ACEOF
24902 sed "$ac_vpsub
24903 $extrasub
24904 _ACEOF
24905 cat >>$CONFIG_STATUS <<\_ACEOF
24906 :t
24907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24908 s&@configure_input@&$configure_input&;t t
24909 s&@top_builddir@&$ac_top_builddir_sub&;t t
24910 s&@srcdir@&$ac_srcdir&;t t
24911 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24912 s&@top_srcdir@&$ac_top_srcdir&;t t
24913 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24914 s&@builddir@&$ac_builddir&;t t
24915 s&@abs_builddir@&$ac_abs_builddir&;t t
24916 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24917 s&@INSTALL@&$ac_INSTALL&;t t
24918 $ac_datarootdir_hack
24919 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24920
24921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24922 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24924 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24925 which seems to be undefined. Please make sure it is defined." >&5
24926 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24927 which seems to be undefined. Please make sure it is defined." >&2;}
24928
24929 rm -f "$tmp/stdin"
24930 case $ac_file in
24931 -) cat "$tmp/out"; rm -f "$tmp/out";;
24932 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24933 esac
24934 ;;
24935 :H)
24936 #
24937 # CONFIG_HEADER
24938 #
24939 _ACEOF
24940
24941 # Transform confdefs.h into a sed script `conftest.defines', that
24942 # substitutes the proper values into config.h.in to produce config.h.
24943 rm -f conftest.defines conftest.tail
24944 # First, append a space to every undef/define line, to ease matching.
24945 echo 's/$/ /' >conftest.defines
24946 # Then, protect against being on the right side of a sed subst, or in
24947 # an unquoted here document, in config.status. If some macros were
24948 # called several times there might be several #defines for the same
24949 # symbol, which is useless. But do not sort them, since the last
24950 # AC_DEFINE must be honored.
24951 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24952 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24953 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24954 # PARAMS is the parameter list in the macro definition--in most cases, it's
24955 # just an empty string.
24956 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24957 ac_dB='\\)[ (].*,\\1define\\2'
24958 ac_dC=' '
24959 ac_dD=' ,'
24960
24961 uniq confdefs.h |
24962 sed -n '
24963 t rset
24964 :rset
24965 s/^[ ]*#[ ]*define[ ][ ]*//
24966 t ok
24967 d
24968 :ok
24969 s/[\\&,]/\\&/g
24970 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24971 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24972 ' >>conftest.defines
24973
24974 # Remove the space that was appended to ease matching.
24975 # Then replace #undef with comments. This is necessary, for
24976 # example, in the case of _POSIX_SOURCE, which is predefined and required
24977 # on some systems where configure will not decide to define it.
24978 # (The regexp can be short, since the line contains either #define or #undef.)
24979 echo 's/ $//
24980 s,^[ #]*u.*,/* & */,' >>conftest.defines
24981
24982 # Break up conftest.defines:
24983 ac_max_sed_lines=50
24984
24985 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24986 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24987 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24988 # et cetera.
24989 ac_in='$ac_file_inputs'
24990 ac_out='"$tmp/out1"'
24991 ac_nxt='"$tmp/out2"'
24992
24993 while :
24994 do
24995 # Write a here document:
24996 cat >>$CONFIG_STATUS <<_ACEOF
24997 # First, check the format of the line:
24998 cat >"\$tmp/defines.sed" <<\\CEOF
24999 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25000 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25001 b
25002 :def
25003 _ACEOF
25004 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25005 echo 'CEOF
25006 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25007 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25008 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25009 grep . conftest.tail >/dev/null || break
25010 rm -f conftest.defines
25011 mv conftest.tail conftest.defines
25012 done
25013 rm -f conftest.defines conftest.tail
25014
25015 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25016 cat >>$CONFIG_STATUS <<\_ACEOF
25017 if test x"$ac_file" != x-; then
25018 echo "/* $configure_input */" >"$tmp/config.h"
25019 cat "$ac_result" >>"$tmp/config.h"
25020 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25022 echo "$as_me: $ac_file is unchanged" >&6;}
25023 else
25024 rm -f $ac_file
25025 mv "$tmp/config.h" $ac_file
25026 fi
25027 else
25028 echo "/* $configure_input */"
25029 cat "$ac_result"
25030 fi
25031 rm -f "$tmp/out12"
25032 ;;
25033
25034 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25035 echo "$as_me: executing $ac_file commands" >&6;}
25036 ;;
25037 esac
25038
25039
25040 case $ac_file$ac_mode in
25041 "default":C)
25042
25043 ### Make the necessary directories, if they don't exist.
25044 for dir in etc lisp ; do
25045 test -d ${dir} || mkdir ${dir}
25046 done
25047
25048 # Build src/Makefile from ${srcdir}/src/Makefile.c
25049 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25050 # This must be done after src/config.h is built, since we rely on that file.
25051
25052 # Now get this: Some word that is part of the ${srcdir} directory name
25053 # or the ${configuration} value might, just might, happen to be an
25054 # identifier like `sun4' or `i386' or something, and be predefined by
25055 # the C preprocessor to some helpful value like 1, or maybe the empty
25056 # string. Needless to say consequent macro substitutions are less
25057 # than conducive to the makefile finding the correct directory.
25058 undefs="`echo $top_srcdir $configuration $canonical |
25059 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25060 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25061 `"
25062
25063 echo creating src/epaths.h
25064 ${MAKE-make} epaths-force
25065
25066 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25067 # `..' to `. .' unless invoked with -traditional
25068
25069 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25070 CPPFLAGS="$CPPFLAGS -traditional"
25071 fi
25072
25073 echo creating lib-src/Makefile
25074 ( cd lib-src
25075 rm -f junk.c junk1.c junk2.c
25076 sed -e '/start of cpp stuff/q' \
25077 < Makefile.c > junk1.c
25078 sed -e '1,/start of cpp stuff/d'\
25079 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25080 < Makefile.c > junk.c
25081 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25082 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25083 cat junk1.c junk2.c > Makefile.new
25084 rm -f junk.c junk1.c junk2.c
25085 chmod 444 Makefile.new
25086 mv -f Makefile.new Makefile
25087 )
25088
25089 echo creating src/Makefile
25090 ( cd src
25091 rm -f junk.c junk1.c junk2.c
25092 sed -e '/start of cpp stuff/q' \
25093 < Makefile.c > junk1.c
25094 sed -e '1,/start of cpp stuff/d'\
25095 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25096 < Makefile.c > junk.c
25097 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25098 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25099 fi
25100 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25101 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25102 cat junk1.c junk2.c > Makefile.new
25103 rm -f junk.c junk1.c junk2.c
25104 chmod 444 Makefile.new
25105 mv -f Makefile.new Makefile
25106 )
25107
25108 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25109 echo creating src/.gdbinit
25110 echo source $srcdir/src/.gdbinit > src/.gdbinit
25111 fi
25112
25113 # This is how we know whether to re-run configure in certain cases.
25114 touch src/config.stamp
25115
25116 ;;
25117
25118 esac
25119 done # for ac_tag
25120
25121
25122 { (exit 0); exit 0; }
25123 _ACEOF
25124 chmod +x $CONFIG_STATUS
25125 ac_clean_files=$ac_clean_files_save
25126
25127
25128 # configure is writing to config.log, and then calls config.status.
25129 # config.status does its own redirection, appending to config.log.
25130 # Unfortunately, on DOS this fails, as config.log is still kept open
25131 # by configure, so config.status won't be able to write to it; its
25132 # output is simply discarded. So we exec the FD to /dev/null,
25133 # effectively closing config.log, so it can be properly (re)opened and
25134 # appended to by config.status. When coming back to configure, we
25135 # need to make the FD available again.
25136 if test "$no_create" != yes; then
25137 ac_cs_success=:
25138 ac_config_status_args=
25139 test "$silent" = yes &&
25140 ac_config_status_args="$ac_config_status_args --quiet"
25141 exec 5>/dev/null
25142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25143 exec 5>>config.log
25144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25145 # would make configure fail if this is the last instruction.
25146 $ac_cs_success || { (exit 1); exit 1; }
25147 fi
25148
25149