Fix a bug which happens when doing (c-parse-state) in a CPP construct:
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 RANLIB
701 INSTALL_INFO
702 GZIP_PROG
703 MAKEINFO
704 cannot_dump
705 LD_SWITCH_SYSTEM
706 C_SWITCH_MACHINE
707 C_SWITCH_SYSTEM
708 LIBS_SYSTEM
709 CRT_DIR
710 LIB_MATH
711 START_FILES
712 LIBSOUND
713 PKG_CONFIG
714 ALSA_CFLAGS
715 ALSA_LIBS
716 CFLAGS_SOUND
717 SET_MAKE
718 MKDEPDIR
719 DEPFLAGS
720 XMKMF
721 LD_SWITCH_X_SITE_AUX
722 LD_SWITCH_X_SITE_AUX_RPATH
723 NS_IMPL_GNUSTEP_INC
724 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
725 TEMACS_LDFLAGS2
726 NS_OBJ
727 NS_SUPPORT
728 LIB_STANDARD
729 HAVE_XSERVER
730 GMALLOC_OBJ
731 VMLIMIT_OBJ
732 RSVG_CFLAGS
733 RSVG_LIBS
734 GTK_CFLAGS
735 GTK_LIBS
736 GTK_OBJ
737 DBUS_CFLAGS
738 DBUS_LIBS
739 DBUS_OBJ
740 GCONF_CFLAGS
741 GCONF_LIBS
742 LIBSELINUX_LIBS
743 LIBXTR6
744 LIBXMU
745 FONTCONFIG_CFLAGS
746 FONTCONFIG_LIBS
747 XFT_CFLAGS
748 XFT_LIBS
749 LIBOTF_CFLAGS
750 LIBOTF_LIBS
751 M17N_FLT_CFLAGS
752 M17N_FLT_LIBS
753 FREETYPE_CFLAGS
754 FREETYPE_LIBS
755 LIBXPM
756 LIBJPEG
757 LIBPNG
758 LIBTIFF
759 LIBGIF
760 LIBGPM
761 LIBXSM
762 ALLOCA
763 liblockfile
764 LIBS_MAIL
765 BLESSMAIL_TARGET
766 LIBOBJS
767 NEED_SETGID
768 KMEM_GROUP
769 GETLOADAVG_LIBS
770 GETOPT_H
771 GETOPTOBJS
772 LIBS_TERMCAP
773 TERMCAP_OBJ
774 LIBHESIOD
775 LIBRESOLV
776 COM_ERRLIB
777 CRYPTOLIB
778 KRB5LIB
779 DESLIB
780 KRB4LIB
781 version
782 configuration
783 canonical
784 srcdir
785 lispdir
786 locallisppath
787 lisppath
788 x_default_search_path
789 etcdir
790 archlibdir
791 bitmapdir
792 gamedir
793 gameuser
794 unexec
795 LD_SWITCH_X_SITE
796 C_SWITCH_X_SITE
797 C_SWITCH_X_SYSTEM
798 X_TOOLKIT_TYPE
799 machfile
800 opsysfile
801 ns_appdir
802 ns_appbindir
803 ns_appresdir
804 ns_appsrc
805 GNU_OBJC_CFLAGS
806 OTHER_FILES
807 FONT_OBJ
808 XMENU_OBJ
809 XOBJ
810 WIDGET_OBJ
811 TOOLKIT_LIBW
812 LIBXT_OTHER
813 OLDXMENU_TARGET
814 OLDXMENU
815 LIBXMENU
816 LIBX_OTHER
817 OLDXMENU_DEPS
818 RALLOC_OBJ
819 CYGWIN_OBJ
820 PRE_ALLOC_OBJ
821 POST_ALLOC_OBJ
822 LD_SWITCH_SYSTEM_TEMACS
823 LD_SWITCH_SYSTEM_EXTRA
824 YMF_PASS_LDFLAGS
825 LINKER
826 LIB_GCC
827 MOUSE_SUPPORT
828 TOOLTIP_SUPPORT
829 WINDOW_SUPPORT
830 LTLIBOBJS'
831 ac_subst_files='deps_frag
832 ns_frag'
833 ac_user_opts='
834 enable_option_checking
835 with_pop
836 with_kerberos
837 with_kerberos5
838 with_hesiod
839 with_mmdf
840 with_mail_unlink
841 with_mailhost
842 with_sound
843 with_sync_input
844 with_x_toolkit
845 with_xpm
846 with_jpeg
847 with_tiff
848 with_gif
849 with_png
850 with_rsvg
851 with_xft
852 with_libotf
853 with_m17n_flt
854 with_toolkit_scroll_bars
855 with_xaw3d
856 with_xim
857 with_ns
858 with_gpm
859 with_dbus
860 with_gconf
861 with_selinux
862 with_makeinfo
863 with_pkg_config_prog
864 with_crt_dir
865 with_gnustep_conf
866 enable_ns_self_contained
867 enable_asserts
868 enable_maintainer_mode
869 enable_locallisppath
870 enable_checking
871 enable_profiling
872 enable_autodepend
873 enable_largefile
874 with_x
875 '
876 ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CPP
885 XMKMF'
886
887
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
909
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
945 fi
946
947 case $ac_option in
948 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *) ac_optarg=yes ;;
950 esac
951
952 # Accept the important Cygnus configure options, so we can diagnose typos.
953
954 case $ac_dashdash$ac_option in
955 --)
956 ac_dashdash=yes ;;
957
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
962
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
967
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
974
975 --config-cache | -C)
976 cache_file=config.cache ;;
977
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
982
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
989
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1238
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1277 ;;
1278
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1303 fi
1304
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 esac
1312 fi
1313
1314 # Check all directory arguments for consistency.
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1319 do
1320 eval ac_val=\$$ac_var
1321 # Remove trailing slashes.
1322 case $ac_val in
1323 */ )
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1326 esac
1327 # Be sure to have absolute directory names.
1328 case $ac_val in
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1331 esac
1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1334 done
1335
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1339 build=$build_alias
1340 host=$host_alias
1341 target=$target_alias
1342
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1368
1369
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
1397 srcdir=$ac_confdir
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 srcdir=..
1400 fi
1401 else
1402 ac_srcdir_defaulted=no
1403 fi
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1413 pwd)`
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417 fi
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1421 case $srcdir in
1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423 esac
1424 for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 done
1430
1431 #
1432 # Report the --help message.
1433 #
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
1438 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1439
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1444
1445 Defaults for the options are specified in brackets.
1446
1447 Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 [PREFIX]
1463
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1468
1469 For better control, use the options below.
1470
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1491 _ACEOF
1492
1493 cat <<\_ACEOF
1494
1495 Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1499
1500 X features:
1501 --x-includes=DIR X include files are in DIR
1502 --x-libraries=DIR X library files are in DIR
1503
1504 System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 _ACEOF
1508 fi
1509
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1513 esac
1514 cat <<\_ACEOF
1515
1516 Optional Features:
1517 --disable-option-checking ignore unrecognized --enable/--with options
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --disable-ns-self-contained
1521 disable self contained build under NeXTstep
1522 --enable-asserts compile code with asserts enabled
1523 --enable-maintainer-mode
1524 enable make rules and dependencies not useful (and
1525 sometimes confusing) to the casual installer
1526 --enable-locallisppath=PATH
1527 directories Emacs should search for lisp files
1528 specific to this site
1529 --enable-checking[=LIST]
1530 enable expensive run-time checks. With LIST, enable
1531 only specific categories of checks. Categories are:
1532 all,yes,no. Flags are: stringbytes, stringoverrun,
1533 stringfreelist, xmallocoverrun, conslist
1534 --enable-profiling build emacs with profiling support. This might not
1535 work on all platforms
1536 --enable-autodepend automatically generate dependencies to .h-files.
1537 Requires GNU Make and Gcc. Enabled if GNU Make and
1538 Gcc is found
1539 --disable-largefile omit support for large files
1540
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --without-pop don't support POP mail retrieval with movemail
1545 --with-kerberos support Kerberos-authenticated POP
1546 --with-kerberos5 support Kerberos version 5 authenticated POP
1547 --with-hesiod support Hesiod to get the POP server host
1548 --with-mmdf support MMDF mailboxes
1549 --with-mail-unlink unlink, rather than empty, mail spool after reading
1550 --with-mailhost=HOSTNAME
1551 string giving default POP mail host
1552 --without-sound don't compile with sound support
1553 --without-sync-input process async input synchronously
1554 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1555 athena, motif, no)
1556 --without-xpm don't compile with XPM image support
1557 --without-jpeg don't compile with JPEG image support
1558 --without-tiff don't compile with TIFF image support
1559 --without-gif don't compile with GIF image support
1560 --without-png don't compile with PNG image support
1561 --without-rsvg don't compile with SVG image support
1562 --without-xft don't use XFT for anti aliased fonts
1563 --without-libotf don't use libotf for OpenType font support
1564 --without-m17n-flt don't use m17n-flt for text shaping
1565 --without-toolkit-scroll-bars
1566 don't use Motif or Xaw3d scroll bars
1567 --without-xaw3d don't use Xaw3d
1568 --without-xim don't use X11 XIM
1569 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1570 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1571 console
1572 --without-dbus don't compile with D-Bus support
1573 --without-gconf don't compile with GConf support
1574 --without-selinux don't compile with SELinux support
1575 --without-makeinfo don't require makeinfo for building manuals
1576 --with-pkg-config-prog=PATH
1577 path to pkg-config for finding GTK and librsvg
1578 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1579 /usr/lib, or /usr/lib64 on some platforms.
1580 --with-gnustep-conf=PATH
1581 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1582 or /etc/GNUstep/GNUstep.conf
1583 --with-x use the X Window System
1584
1585 Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
1590 LIBS libraries to pass to the linker, e.g. -l<library>
1591 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1592 you have headers in a nonstandard directory <include dir>
1593 CPP C preprocessor
1594 XMKMF Path to xmkmf, Makefile generator for X Window System
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 _ACEOF
1600 ac_status=$?
1601 fi
1602
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1609 ac_builddir=.
1610
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1626
1627 case $srcdir in
1628 .) # We are building in place.
1629 ac_srcdir=.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1656 fi
1657
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660 cat <<\_ACEOF
1661 emacs configure 24.0.50
1662 generated by GNU Autoconf 2.62
1663
1664 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1665 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1668 _ACEOF
1669 exit
1670 fi
1671 cat >config.log <<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1674
1675 It was created by emacs $as_me 24.0.50, which was
1676 generated by GNU Autoconf 2.62. Invocation command line was
1677
1678 $ $0 $@
1679
1680 _ACEOF
1681 exec 5>>config.log
1682 {
1683 cat <<_ASUNAME
1684 ## --------- ##
1685 ## Platform. ##
1686 ## --------- ##
1687
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704
1705 _ASUNAME
1706
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 $as_echo "PATH: $as_dir"
1713 done
1714 IFS=$as_save_IFS
1715
1716 } >&5
1717
1718 cat >&5 <<_ACEOF
1719
1720
1721 ## ----------- ##
1722 ## Core tests. ##
1723 ## ----------- ##
1724
1725 _ACEOF
1726
1727
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1733 ac_configure_args=
1734 ac_configure_args0=
1735 ac_configure_args1=
1736 ac_must_keep_next=false
1737 for ac_pass in 1 2
1738 do
1739 for ac_arg
1740 do
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
1746 *\'*)
1747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 2)
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
1754 ac_must_keep_next=false # Got value, back to normal.
1755 else
1756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1764 ;;
1765 -* ) ac_must_keep_next=true ;;
1766 esac
1767 fi
1768 ac_configure_args="$ac_configure_args '$ac_arg'"
1769 ;;
1770 esac
1771 done
1772 done
1773 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1775
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1783 {
1784 echo
1785
1786 cat <<\_ASBOX
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1790 _ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
1793 (
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1805 *) $as_unset $ac_var ;;
1806 esac ;;
1807 esac
1808 done
1809 (set) 2>&1 |
1810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
1812 sed -n \
1813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 ;; #(
1816 *)
1817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 ;;
1819 esac |
1820 sort
1821 )
1822 echo
1823
1824 cat <<\_ASBOX
1825 ## ----------------- ##
1826 ## Output variables. ##
1827 ## ----------------- ##
1828 _ASBOX
1829 echo
1830 for ac_var in $ac_subst_vars
1831 do
1832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 $as_echo "$ac_var='\''$ac_val'\''"
1837 done | sort
1838 echo
1839
1840 if test -n "$ac_subst_files"; then
1841 cat <<\_ASBOX
1842 ## ------------------- ##
1843 ## File substitutions. ##
1844 ## ------------------- ##
1845 _ASBOX
1846 echo
1847 for ac_var in $ac_subst_files
1848 do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in
1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 esac
1853 $as_echo "$ac_var='\''$ac_val'\''"
1854 done | sort
1855 echo
1856 fi
1857
1858 if test -s confdefs.h; then
1859 cat <<\_ASBOX
1860 ## ----------- ##
1861 ## confdefs.h. ##
1862 ## ----------- ##
1863 _ASBOX
1864 echo
1865 cat confdefs.h
1866 echo
1867 fi
1868 test "$ac_signal" != 0 &&
1869 $as_echo "$as_me: caught signal $ac_signal"
1870 $as_echo "$as_me: exit $exit_status"
1871 } >&5
1872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 exit $exit_status
1875 ' 0
1876 for ac_signal in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1878 done
1879 ac_signal=0
1880
1881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1882 rm -f -r conftest* confdefs.h
1883
1884 # Predefined preprocessor variables.
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_NAME "$PACKAGE_NAME"
1888 _ACEOF
1889
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_STRING "$PACKAGE_STRING"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1908 _ACEOF
1909
1910
1911 # Let the site file select an alternate cache file if it wants to.
1912 # Prefer an explicitly selected file to automatically selected ones.
1913 ac_site_file1=NONE
1914 ac_site_file2=NONE
1915 if test -n "$CONFIG_SITE"; then
1916 ac_site_file1=$CONFIG_SITE
1917 elif test "x$prefix" != xNONE; then
1918 ac_site_file1=$prefix/share/config.site
1919 ac_site_file2=$prefix/etc/config.site
1920 else
1921 ac_site_file1=$ac_default_prefix/share/config.site
1922 ac_site_file2=$ac_default_prefix/etc/config.site
1923 fi
1924 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1925 do
1926 test "x$ac_site_file" = xNONE && continue
1927 if test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1932 fi
1933 done
1934
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 $as_echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1944 esac
1945 fi
1946 else
1947 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 $as_echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1950 fi
1951
1952 ac_header_list="$ac_header_list sys/time.h"
1953 ac_header_list="$ac_header_list unistd.h"
1954 ac_func_list="$ac_func_list alarm"
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1982 else
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1986 fi
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 fi;;
1992 esac
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1995 case $ac_new_val in
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1998 esac
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002 esac
2003 fi
2004 done
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2011 fi
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2045
2046
2047
2048 test "$program_prefix" != NONE &&
2049 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2050 # Use a double $ so make ignores it.
2051 test "$program_suffix" != NONE &&
2052 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2053 # Double any \ or $.
2054 # By default was `s,x,x', remove it if useless.
2055 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2056 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2057
2058
2059 lispdir='${datadir}/emacs/${version}/lisp'
2060 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2061 '${datadir}/emacs/site-lisp'
2062 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2063 etcdir='${datadir}/emacs/${version}/etc'
2064 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2065 docdir='${datadir}/emacs/${version}/etc'
2066 gamedir='${localstatedir}/games/emacs'
2067
2068 gameuser=games
2069
2070
2071
2072
2073 # Check whether --with-pop was given.
2074 if test "${with_pop+set}" = set; then
2075 withval=$with_pop;
2076 else
2077 with_pop=yes
2078 fi
2079
2080 if test "$with_pop" = yes; then
2081 cat >>confdefs.h <<\_ACEOF
2082 #define MAIL_USE_POP 1
2083 _ACEOF
2084
2085 fi
2086
2087
2088
2089 # Check whether --with-kerberos was given.
2090 if test "${with_kerberos+set}" = set; then
2091 withval=$with_kerberos;
2092 else
2093 with_kerberos=no
2094 fi
2095
2096 if test "$with_kerberos" != no; then
2097 cat >>confdefs.h <<\_ACEOF
2098 #define KERBEROS 1
2099 _ACEOF
2100
2101 fi
2102
2103
2104
2105 # Check whether --with-kerberos5 was given.
2106 if test "${with_kerberos5+set}" = set; then
2107 withval=$with_kerberos5;
2108 else
2109 with_kerberos5=no
2110 fi
2111
2112 if test "${with_kerberos5}" != no; then
2113 if test "${with_kerberos}" = no; then
2114 with_kerberos=yes
2115 cat >>confdefs.h <<\_ACEOF
2116 #define KERBEROS 1
2117 _ACEOF
2118
2119 fi
2120
2121 cat >>confdefs.h <<\_ACEOF
2122 #define KERBEROS5 1
2123 _ACEOF
2124
2125 fi
2126
2127
2128 # Check whether --with-hesiod was given.
2129 if test "${with_hesiod+set}" = set; then
2130 withval=$with_hesiod;
2131 else
2132 with_hesiod=no
2133 fi
2134
2135 if test "$with_hesiod" != no; then
2136
2137 cat >>confdefs.h <<\_ACEOF
2138 #define HESIOD 1
2139 _ACEOF
2140
2141 fi
2142
2143
2144 # Check whether --with-mmdf was given.
2145 if test "${with_mmdf+set}" = set; then
2146 withval=$with_mmdf;
2147 else
2148 with_mmdf=no
2149 fi
2150
2151 if test "$with_mmdf" != no; then
2152
2153 cat >>confdefs.h <<\_ACEOF
2154 #define MAIL_USE_MMDF 1
2155 _ACEOF
2156
2157 fi
2158
2159
2160 # Check whether --with-mail-unlink was given.
2161 if test "${with_mail_unlink+set}" = set; then
2162 withval=$with_mail_unlink;
2163 else
2164 with_mail_unlink=no
2165 fi
2166
2167 if test "$with_mail_unlink" != no; then
2168
2169 cat >>confdefs.h <<\_ACEOF
2170 #define MAIL_UNLINK_SPOOL 1
2171 _ACEOF
2172
2173 fi
2174
2175
2176 # Check whether --with-mailhost was given.
2177 if test "${with_mailhost+set}" = set; then
2178 withval=$with_mailhost;
2179 cat >>confdefs.h <<_ACEOF
2180 #define MAILHOST "$withval"
2181 _ACEOF
2182
2183 fi
2184
2185
2186
2187 # Check whether --with-sound was given.
2188 if test "${with_sound+set}" = set; then
2189 withval=$with_sound;
2190 else
2191 with_sound=yes
2192 fi
2193
2194
2195
2196 # Check whether --with-sync-input was given.
2197 if test "${with_sync_input+set}" = set; then
2198 withval=$with_sync_input;
2199 else
2200 with_sync_input=yes
2201 fi
2202
2203 if test "$with_sync_input" = yes; then
2204
2205 cat >>confdefs.h <<\_ACEOF
2206 #define SYNC_INPUT 1
2207 _ACEOF
2208
2209 fi
2210
2211
2212 # Check whether --with-x-toolkit was given.
2213 if test "${with_x_toolkit+set}" = set; then
2214 withval=$with_x_toolkit; case "${withval}" in
2215 y | ye | yes ) val=gtk ;;
2216 n | no ) val=no ;;
2217 l | lu | luc | luci | lucid ) val=lucid ;;
2218 a | at | ath | athe | athen | athena ) val=athena ;;
2219 m | mo | mot | moti | motif ) val=motif ;;
2220 g | gt | gtk ) val=gtk ;;
2221 * )
2222 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2223 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2224 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2225 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2226 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2227 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2228 { (exit 1); exit 1; }; }
2229 ;;
2230 esac
2231 with_x_toolkit=$val
2232
2233 fi
2234
2235
2236
2237 # Check whether --with-xpm was given.
2238 if test "${with_xpm+set}" = set; then
2239 withval=$with_xpm;
2240 else
2241 with_xpm=yes
2242 fi
2243
2244
2245 # Check whether --with-jpeg was given.
2246 if test "${with_jpeg+set}" = set; then
2247 withval=$with_jpeg;
2248 else
2249 with_jpeg=yes
2250 fi
2251
2252
2253 # Check whether --with-tiff was given.
2254 if test "${with_tiff+set}" = set; then
2255 withval=$with_tiff;
2256 else
2257 with_tiff=yes
2258 fi
2259
2260
2261 # Check whether --with-gif was given.
2262 if test "${with_gif+set}" = set; then
2263 withval=$with_gif;
2264 else
2265 with_gif=yes
2266 fi
2267
2268
2269 # Check whether --with-png was given.
2270 if test "${with_png+set}" = set; then
2271 withval=$with_png;
2272 else
2273 with_png=yes
2274 fi
2275
2276
2277 # Check whether --with-rsvg was given.
2278 if test "${with_rsvg+set}" = set; then
2279 withval=$with_rsvg;
2280 else
2281 with_rsvg=yes
2282 fi
2283
2284
2285
2286 # Check whether --with-xft was given.
2287 if test "${with_xft+set}" = set; then
2288 withval=$with_xft;
2289 else
2290 with_xft=yes
2291 fi
2292
2293
2294 # Check whether --with-libotf was given.
2295 if test "${with_libotf+set}" = set; then
2296 withval=$with_libotf;
2297 else
2298 with_libotf=yes
2299 fi
2300
2301
2302 # Check whether --with-m17n-flt was given.
2303 if test "${with_m17n_flt+set}" = set; then
2304 withval=$with_m17n_flt;
2305 else
2306 with_m17n_flt=yes
2307 fi
2308
2309
2310
2311 # Check whether --with-toolkit-scroll-bars was given.
2312 if test "${with_toolkit_scroll_bars+set}" = set; then
2313 withval=$with_toolkit_scroll_bars;
2314 else
2315 with_toolkit_scroll_bars=yes
2316 fi
2317
2318
2319 # Check whether --with-xaw3d was given.
2320 if test "${with_xaw3d+set}" = set; then
2321 withval=$with_xaw3d;
2322 else
2323 with_xaw3d=yes
2324 fi
2325
2326
2327 # Check whether --with-xim was given.
2328 if test "${with_xim+set}" = set; then
2329 withval=$with_xim;
2330 else
2331 with_xim=yes
2332 fi
2333
2334
2335 # Check whether --with-ns was given.
2336 if test "${with_ns+set}" = set; then
2337 withval=$with_ns;
2338 else
2339 with_ns=no
2340 fi
2341
2342
2343
2344 # Check whether --with-gpm was given.
2345 if test "${with_gpm+set}" = set; then
2346 withval=$with_gpm;
2347 else
2348 with_gpm=yes
2349 fi
2350
2351
2352 # Check whether --with-dbus was given.
2353 if test "${with_dbus+set}" = set; then
2354 withval=$with_dbus;
2355 else
2356 with_dbus=yes
2357 fi
2358
2359
2360 # Check whether --with-gconf was given.
2361 if test "${with_gconf+set}" = set; then
2362 withval=$with_gconf;
2363 else
2364 with_gconf=yes
2365 fi
2366
2367
2368 # Check whether --with-selinux was given.
2369 if test "${with_selinux+set}" = set; then
2370 withval=$with_selinux;
2371 else
2372 with_selinux=yes
2373 fi
2374
2375
2376 ## For the times when you want to build Emacs but don't have
2377 ## a suitable makeinfo, and can live without the manuals.
2378
2379 # Check whether --with-makeinfo was given.
2380 if test "${with_makeinfo+set}" = set; then
2381 withval=$with_makeinfo;
2382 else
2383 with_makeinfo=yes
2384 fi
2385
2386
2387
2388 # Check whether --with-pkg-config-prog was given.
2389 if test "${with_pkg_config_prog+set}" = set; then
2390 withval=$with_pkg_config_prog;
2391 fi
2392
2393 if test "X${with_pkg_config_prog}" != X; then
2394 if test "${with_pkg_config_prog}" != yes; then
2395 PKG_CONFIG="${with_pkg_config_prog}"
2396 fi
2397 fi
2398
2399 CRT_DIR=
2400
2401 # Check whether --with-crt-dir was given.
2402 if test "${with_crt_dir+set}" = set; then
2403 withval=$with_crt_dir;
2404 fi
2405
2406 CRT_DIR="${with_crt_dir}"
2407
2408
2409 # Check whether --with-gnustep-conf was given.
2410 if test "${with_gnustep_conf+set}" = set; then
2411 withval=$with_gnustep_conf;
2412 fi
2413
2414 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2415 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2416 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2417 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2418
2419 # Check whether --enable-ns-self-contained was given.
2420 if test "${enable_ns_self_contained+set}" = set; then
2421 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2422 else
2423 EN_NS_SELF_CONTAINED=yes
2424 fi
2425
2426
2427 # Check whether --enable-asserts was given.
2428 if test "${enable_asserts+set}" = set; then
2429 enableval=$enable_asserts; USE_XASSERTS=$enableval
2430 else
2431 USE_XASSERTS=no
2432 fi
2433
2434
2435 # Check whether --enable-maintainer-mode was given.
2436 if test "${enable_maintainer_mode+set}" = set; then
2437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2438 else
2439 USE_MAINTAINER_MODE=no
2440 fi
2441
2442 if test $USE_MAINTAINER_MODE = yes; then
2443 MAINT=
2444 else
2445 MAINT=#
2446 fi
2447
2448
2449 # Check whether --enable-locallisppath was given.
2450 if test "${enable_locallisppath+set}" = set; then
2451 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2452 locallisppath=
2453 elif test "${enableval}" != "yes"; then
2454 locallisppath=${enableval}
2455 fi
2456 fi
2457
2458
2459 # Check whether --enable-checking was given.
2460 if test "${enable_checking+set}" = set; then
2461 enableval=$enable_checking; ac_checking_flags="${enableval}"
2462 fi
2463
2464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2465 for check in $ac_checking_flags
2466 do
2467 case $check in
2468 # these set all the flags to specific states
2469 yes) ac_enable_checking=1 ;;
2470 no) ac_enable_checking= ;
2471 ac_gc_check_stringbytes= ;
2472 ac_gc_check_string_overrun= ;
2473 ac_gc_check_string_free_list= ;
2474 ac_xmalloc_overrun= ;
2475 ac_gc_check_cons_list= ;;
2476 all) ac_enable_checking=1 ;
2477 ac_gc_check_stringbytes=1 ;
2478 ac_gc_check_string_overrun=1 ;
2479 ac_gc_check_string_free_list=1 ;
2480 ac_xmalloc_overrun=1 ;
2481 ac_gc_check_cons_list=1 ;;
2482 # these enable particular checks
2483 stringbytes) ac_gc_check_stringbytes=1 ;;
2484 stringoverrun) ac_gc_check_string_overrun=1 ;;
2485 stringfreelist) ac_gc_check_string_free_list=1 ;;
2486 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2487 conslist) ac_gc_check_cons_list=1 ;;
2488 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2489 $as_echo "$as_me: error: unknown check category $check" >&2;}
2490 { (exit 1); exit 1; }; } ;;
2491 esac
2492 done
2493 IFS="$ac_save_IFS"
2494
2495 if test x$ac_enable_checking != x ; then
2496
2497 cat >>confdefs.h <<\_ACEOF
2498 #define ENABLE_CHECKING 1
2499 _ACEOF
2500
2501 fi
2502 if test x$ac_gc_check_stringbytes != x ; then
2503
2504 cat >>confdefs.h <<\_ACEOF
2505 #define GC_CHECK_STRING_BYTES 1
2506 _ACEOF
2507
2508 fi
2509 if test x$ac_gc_check_stringoverrun != x ; then
2510
2511 cat >>confdefs.h <<\_ACEOF
2512 #define GC_CHECK_STRING_OVERRUN 1
2513 _ACEOF
2514
2515 fi
2516 if test x$ac_gc_check_string_free_list != x ; then
2517
2518 cat >>confdefs.h <<\_ACEOF
2519 #define GC_CHECK_STRING_FREE_LIST 1
2520 _ACEOF
2521
2522 fi
2523 if test x$ac_xmalloc_overrun != x ; then
2524
2525 cat >>confdefs.h <<\_ACEOF
2526 #define XMALLOC_OVERRUN_CHECK 1
2527 _ACEOF
2528
2529 fi
2530 if test x$ac_gc_check_cons_list != x ; then
2531
2532 cat >>confdefs.h <<\_ACEOF
2533 #define GC_CHECK_CONS_LIST 1
2534 _ACEOF
2535
2536 fi
2537
2538 # Check whether --enable-profiling was given.
2539 if test "${enable_profiling+set}" = set; then
2540 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2541 fi
2542
2543 if test x$ac_enable_profiling != x ; then
2544 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2545 PROFILING_LDFLAGS="-pg"
2546 else
2547 PROFILING_CFLAGS=
2548 PROFILING_LDFLAGS=
2549 fi
2550
2551 # Check whether --enable-autodepend was given.
2552 if test "${enable_autodepend+set}" = set; then
2553 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2554 else
2555 ac_enable_autodepend=yes
2556 fi
2557
2558
2559 #### Make srcdir absolute, if it isn't already. It's important to
2560 #### avoid running the path through pwd unnecessarily, since pwd can
2561 #### give you automounter prefixes, which can go away. We do all this
2562 #### so Emacs can find its files when run uninstalled.
2563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2564 unset CDPATH
2565 case "${srcdir}" in
2566 /* ) ;;
2567 . )
2568 ## We may be able to use the $PWD environment variable to make this
2569 ## absolute. But sometimes PWD is inaccurate.
2570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2571 ## but that tested only for a well-formed and valid PWD,
2572 ## it did not object when PWD was well-formed and valid but just wrong.
2573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2574 then
2575 srcdir="$PWD"
2576 else
2577 srcdir="`(cd ${srcdir}; pwd)`"
2578 fi
2579 ;;
2580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2581 esac
2582
2583 #### Check if the source directory already has a configured system in it.
2584 if test `pwd` != `(cd ${srcdir} && pwd)` \
2585 && test -f "${srcdir}/src/config.h" ; then
2586 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2587 as a build directory right now; it has been configured in its own
2588 right. To configure in another directory as well, you MUST
2589 use GNU make. If you do not have GNU make, then you must
2590 now do \`make distclean' in ${srcdir},
2591 and then run $0 again." >&5
2592 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2593 as a build directory right now; it has been configured in its own
2594 right. To configure in another directory as well, you MUST
2595 use GNU make. If you do not have GNU make, then you must
2596 now do \`make distclean' in ${srcdir},
2597 and then run $0 again." >&2;}
2598 fi
2599
2600 #### Given the configuration name, set machfile and opsysfile to the
2601 #### names of the m/*.h and s/*.h files we should use.
2602
2603 ### Canonicalize the configuration name.
2604
2605 ac_aux_dir=
2606 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 if test -f "$ac_dir/install-sh"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/install-sh -c"
2610 break
2611 elif test -f "$ac_dir/install.sh"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/install.sh -c"
2614 break
2615 elif test -f "$ac_dir/shtool"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/shtool install -c"
2618 break
2619 fi
2620 done
2621 if test -z "$ac_aux_dir"; then
2622 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2623 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2624 { (exit 1); exit 1; }; }
2625 fi
2626
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634
2635
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2639 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2640 { (exit 1); exit 1; }; }
2641
2642 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2643 $as_echo_n "checking build system type... " >&6; }
2644 if test "${ac_cv_build+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646 else
2647 ac_build_alias=$build_alias
2648 test "x$ac_build_alias" = x &&
2649 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2650 test "x$ac_build_alias" = x &&
2651 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2652 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2653 { (exit 1); exit 1; }; }
2654 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2656 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2657 { (exit 1); exit 1; }; }
2658
2659 fi
2660 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2663 *-*-*) ;;
2664 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2665 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2666 { (exit 1); exit 1; }; };;
2667 esac
2668 build=$ac_cv_build
2669 ac_save_IFS=$IFS; IFS='-'
2670 set x $ac_cv_build
2671 shift
2672 build_cpu=$1
2673 build_vendor=$2
2674 shift; shift
2675 # Remember, the first character of IFS is used to create $*,
2676 # except with old shells:
2677 build_os=$*
2678 IFS=$ac_save_IFS
2679 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680
2681
2682 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2683 $as_echo_n "checking host system type... " >&6; }
2684 if test "${ac_cv_host+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test "x$host_alias" = x; then
2688 ac_cv_host=$ac_cv_build
2689 else
2690 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2691 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2692 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2693 { (exit 1); exit 1; }; }
2694 fi
2695
2696 fi
2697 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2699 case $ac_cv_host in
2700 *-*-*) ;;
2701 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2702 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2703 { (exit 1); exit 1; }; };;
2704 esac
2705 host=$ac_cv_host
2706 ac_save_IFS=$IFS; IFS='-'
2707 set x $ac_cv_host
2708 shift
2709 host_cpu=$1
2710 host_vendor=$2
2711 shift; shift
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2714 host_os=$*
2715 IFS=$ac_save_IFS
2716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2717
2718
2719 canonical=$host
2720 configuration=${host_alias-${build_alias-$host}}
2721
2722
2723
2724 ### If you add support for a new configuration, add code to this
2725 ### switch statement to recognize your configuration name and select
2726 ### the appropriate operating system and machine description files.
2727
2728 ### You would hope that you could choose an m/*.h file pretty much
2729 ### based on the machine portion of the configuration name, and an s-
2730 ### file based on the operating system portion. However, it turns out
2731 ### that each m/*.h file is pretty manufacturer-specific - for
2732 ### example mips.h is MIPS
2733 ### So we basically have to have a special case for each
2734 ### configuration name.
2735 ###
2736 ### As far as handling version numbers on operating systems is
2737 ### concerned, make sure things will fail in a fixable way. If
2738 ### /etc/MACHINES doesn't say anything about version numbers, be
2739 ### prepared to handle anything reasonably. If version numbers
2740 ### matter, be sure /etc/MACHINES says something about it.
2741 ###
2742 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2743 ### "System V Release 4"; he writes, "The old convention encouraged
2744 ### confusion between `system' and `release' levels'."
2745
2746 machine='' opsys='' unported=no
2747 case "${canonical}" in
2748
2749 ## FreeBSD ports
2750 *-*-freebsd* )
2751 opsys=freebsd
2752 case "${canonical}" in
2753 alpha*-*-freebsd*) machine=alpha ;;
2754 arm*-*-freebsd*) machine=arm ;;
2755 ia64-*-freebsd*) machine=ia64 ;;
2756 sparc-*-freebsd*) machine=sparc ;;
2757 sparc64-*-freebsd*) machine=sparc ;;
2758 powerpc-*-freebsd*) machine=macppc ;;
2759 i[3456]86-*-freebsd*) machine=intel386 ;;
2760 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2761 esac
2762 ;;
2763
2764 ## FreeBSD kernel + glibc based userland
2765 *-*-kfreebsd*gnu* )
2766 opsys=gnu-kfreebsd
2767 case "${canonical}" in
2768 alpha*-*-kfreebsd*) machine=alpha ;;
2769 ia64-*-kfreebsd*) machine=ia64 ;;
2770 sparc-*-kfreebsd*) machine=sparc ;;
2771 sparc64-*-kfreebsd*) machine=sparc ;;
2772 powerpc-*-kfreebsd*) machine=macppc ;;
2773 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2774 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2775 esac
2776 ;;
2777
2778 ## NetBSD ports
2779 *-*-netbsd* )
2780 opsys=netbsd
2781 case "${canonical}" in
2782 alpha*-*-netbsd*) machine=alpha ;;
2783 i[3456]86-*-netbsd*) machine=intel386 ;;
2784 mips-*-netbsd*) machine=mips ;;
2785 mipsel-*-netbsd*) machine=mips ;;
2786 mipseb-*-netbsd*) machine=mips ;;
2787 powerpc-*-netbsd*) machine=macppc ;;
2788 sparc*-*-netbsd*) machine=sparc ;;
2789 vax-*-netbsd*) machine=vax ;;
2790 arm-*-netbsd*) machine=arm ;;
2791 x86_64-*-netbsd*) machine=amdx86-64 ;;
2792 hppa-*-netbsd*) machine=hp800 ;;
2793 m68k-*-netbsd*) machine=m68k ;;
2794 esac
2795 ;;
2796
2797 ## OpenBSD ports
2798 *-*-openbsd* )
2799 opsys=openbsd
2800 case "${canonical}" in
2801 alpha*-*-openbsd*) machine=alpha ;;
2802 arm-*-openbsd*) machine=arm ;;
2803 i386-*-openbsd*) machine=intel386 ;;
2804 powerpc-*-openbsd*) machine=macppc ;;
2805 sparc*-*-openbsd*) machine=sparc ;;
2806 vax-*-openbsd*) machine=vax ;;
2807 x86_64-*-openbsd*) machine=amdx86-64 ;;
2808 hppa-*-openbsd*) machine=hp800 ;;
2809 esac
2810 ;;
2811
2812 alpha*-*-linux-gnu* )
2813 machine=alpha opsys=gnu-linux
2814 ;;
2815
2816 arm*-*-linux-gnu* )
2817 machine=arm opsys=gnu-linux
2818 ;;
2819
2820 ## Apple Darwin / Mac OS X
2821 *-apple-darwin* )
2822 case "${canonical}" in
2823 i[3456]86-* ) machine=intel386 ;;
2824 powerpc-* ) machine=macppc ;;
2825 x86_64-* ) machine=amdx86-64 ;;
2826 * ) unported=yes ;;
2827 esac
2828 opsys=darwin
2829 # Define CPP as follows to make autoconf work correctly.
2830 CPP="${CC-cc} -E -no-cpp-precomp"
2831 # Use fink packages if available.
2832 if test -d /sw/include && test -d /sw/lib; then
2833 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2834 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2835 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2836 fi
2837 ;;
2838
2839 ## HP 9000 series 700 and 800, running HP/UX
2840 hppa*-hp-hpux10.2* )
2841 machine=hp800 opsys=hpux10-20
2842 ;;
2843 hppa*-hp-hpux1[1-9]* )
2844 machine=hp800 opsys=hpux11
2845 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2846 ;;
2847
2848 hppa*-*-linux-gnu* )
2849 machine=hp800 opsys=gnu-linux
2850 ;;
2851
2852 ## IBM machines
2853 s390-*-linux-gnu* )
2854 machine=ibms390 opsys=gnu-linux
2855 ;;
2856 s390x-*-linux-gnu* )
2857 machine=ibms390x opsys=gnu-linux
2858 ;;
2859 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2860 machine=ibmrs6000 opsys=aix4-2
2861 ;;
2862 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2863 machine=ibmrs6000 opsys=aix4-2
2864 ;;
2865 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2866 machine=ibmrs6000 opsys=aix4-2
2867 ;;
2868 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2869 machine=ibmrs6000 opsys=aix4-2
2870 ;;
2871
2872 ## Macintosh PowerPC
2873 powerpc*-*-linux-gnu* )
2874 machine=macppc opsys=gnu-linux
2875 ;;
2876
2877 ## Silicon Graphics machines
2878 ## Iris 4D
2879 mips-sgi-irix6.5 )
2880 machine=iris4d opsys=irix6-5
2881 # Without defining _LANGUAGE_C, things get masked out in the headers
2882 # so that, for instance, grepping for `free' in stdlib.h fails and
2883 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2884 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2885 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2886 ;;
2887
2888 ## Suns
2889 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2890 machine=sparc opsys=gnu-linux
2891 ;;
2892
2893 *-sun-solaris* \
2894 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2895 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2896 case "${canonical}" in
2897 i[3456]86-*-* ) machine=intel386 ;;
2898 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2899 sparc* ) machine=sparc ;;
2900 * ) unported=yes ;;
2901 esac
2902 case "${canonical}" in
2903 *-sunos5.6* | *-solaris2.6* )
2904 opsys=sol2-6
2905 NON_GNU_CPP=/usr/ccs/lib/cpp
2906 RANLIB="ar -ts"
2907 ;;
2908 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2909 opsys=sol2-6
2910 emacs_check_sunpro_c=yes
2911 NON_GNU_CPP=/usr/ccs/lib/cpp
2912 ;;
2913 *-sunos5* | *-solaris* )
2914 opsys=sol2-10
2915 emacs_check_sunpro_c=yes
2916 NON_GNU_CPP=/usr/ccs/lib/cpp
2917 ;;
2918 esac
2919 ## Watch out for a compiler that we know will not work.
2920 case "${canonical}" in
2921 *-solaris* | *-sunos5* )
2922 if [ "x$CC" = x/usr/ucb/cc ]; then
2923 ## /usr/ucb/cc doesn't work;
2924 ## we should find some other compiler that does work.
2925 unset CC
2926 fi
2927 ;;
2928 *) ;;
2929 esac
2930 ;;
2931
2932 ## IA-64
2933 ia64*-*-linux* )
2934 machine=ia64 opsys=gnu-linux
2935 ;;
2936
2937 ## Intel 386 machines where we don't care about the manufacturer
2938 i[3456]86-*-* )
2939 machine=intel386
2940 case "${canonical}" in
2941 *-cygwin ) opsys=cygwin ;;
2942 *-darwin* ) opsys=darwin
2943 CPP="${CC-cc} -E -no-cpp-precomp"
2944 ;;
2945 *-linux-gnu* ) opsys=gnu-linux ;;
2946 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2947 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2948 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2949 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2950 esac
2951 ;;
2952
2953 ## m68k Linux-based GNU system
2954 m68k-*-linux-gnu* )
2955 machine=m68k opsys=gnu-linux
2956 ;;
2957
2958 ## Mips Linux-based GNU system
2959 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2960 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2961 machine=mips opsys=gnu-linux
2962 ;;
2963
2964 ## AMD x86-64 Linux-based GNU system
2965 x86_64-*-linux-gnu* )
2966 machine=amdx86-64 opsys=gnu-linux
2967 ;;
2968
2969 ## Tensilica Xtensa Linux-based GNU system
2970 xtensa*-*-linux-gnu* )
2971 machine=xtensa opsys=gnu-linux
2972 ;;
2973
2974 ## SuperH Linux-based GNU system
2975 sh[34]*-*-linux-gnu* )
2976 machine=sh3 opsys=gnu-linux
2977 ;;
2978
2979 * )
2980 unported=yes
2981 ;;
2982 esac
2983
2984 ### If the code above didn't choose an operating system, just choose
2985 ### an operating system based on the configuration name. You really
2986 ### only want to use this when you have no idea what the right
2987 ### operating system is; if you know what operating systems a machine
2988 ### runs, it's cleaner to make it explicit in the case statement
2989 ### above.
2990 if test x"${opsys}" = x; then
2991 case "${canonical}" in
2992 *-gnu* ) opsys=gnu ;;
2993 * )
2994 unported=yes
2995 ;;
2996 esac
2997 fi
2998
2999
3000
3001 if test $unported = yes; then
3002 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3003 Check \`etc/MACHINES' for recognized configuration names." >&5
3004 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3005 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009 machfile="m/${machine}.h"
3010 opsysfile="s/${opsys}.h"
3011
3012
3013 #### Choose a compiler.
3014 test -n "$CC" && cc_specified=yes
3015
3016 # Save the value of CFLAGS that the user specified.
3017 SPECIFIED_CFLAGS="$CFLAGS"
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046 done
3047 done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:$LINENO: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_CC"; then
3064 ac_ct_CC=$CC
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc; ac_word=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC="gcc"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3096 else
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101 if test "x$ac_ct_CC" = x; then
3102 CC=""
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3107 whose name does not start with the host triplet. If you think this
3108 configuration is useful to you, please write to autoconf@gnu.org." >&5
3109 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3110 whose name does not start with the host triplet. If you think this
3111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 CC=$ac_ct_CC
3115 fi
3116 else
3117 CC="$ac_cv_prog_CC"
3118 fi
3119
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}cc; ac_word=$2
3124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_CC="${ac_tool_prefix}cc"
3140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154 { $as_echo "$as_me:$LINENO: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 fi
3161 if test -z "$CC"; then
3162 # Extract the first word of "cc", so it can be a program name with args.
3163 set dummy cc; ac_word=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 ac_prog_rejected=no
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3181 ac_prog_rejected=yes
3182 continue
3183 fi
3184 ac_cv_prog_CC="cc"
3185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 if test $ac_prog_rejected = yes; then
3193 # We found a bogon in the path, so make sure we never use it.
3194 set dummy $ac_cv_prog_CC
3195 shift
3196 if test $# != 0; then
3197 # We chose a different compiler from the bogus one.
3198 # However, it has the same basename, so the bogon will be chosen
3199 # first if we set CC to just the basename; use the full file name.
3200 shift
3201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3202 fi
3203 fi
3204 fi
3205 fi
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211 { $as_echo "$as_me:$LINENO: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215
3216 fi
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog in cl.exe
3220 do
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 CC=$ac_cv_prog_CC
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3252 else
3253 { $as_echo "$as_me:$LINENO: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257
3258 test -n "$CC" && break
3259 done
3260 fi
3261 if test -z "$CC"; then
3262 ac_ct_CC=$CC
3263 for ac_prog in cl.exe
3264 do
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$ac_ct_CC"; then
3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_ac_ct_CC="$ac_prog"
3283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3293 if test -n "$ac_ct_CC"; then
3294 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295 $as_echo "$ac_ct_CC" >&6; }
3296 else
3297 { $as_echo "$as_me:$LINENO: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 test -n "$ac_ct_CC" && break
3303 done
3304
3305 if test "x$ac_ct_CC" = x; then
3306 CC=""
3307 else
3308 case $cross_compiling:$ac_tool_warned in
3309 yes:)
3310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3311 whose name does not start with the host triplet. If you think this
3312 configuration is useful to you, please write to autoconf@gnu.org." >&5
3313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3314 whose name does not start with the host triplet. If you think this
3315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 fi
3321
3322 fi
3323
3324
3325 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3330
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3333 set X $ac_compile
3334 ac_compiler=$2
3335 { (ac_try="$ac_compiler --version >&5"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_compiler --version >&5") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }
3346 { (ac_try="$ac_compiler -v >&5"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler -v >&5") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try="$ac_compiler -V >&5"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -V >&5") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 ac_clean_files_save=$ac_clean_files
3385 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3386 # Try to create an executable without -o first, disregard a.out.
3387 # It will help us diagnose broken compilers, and finding out an intuition
3388 # of exeext.
3389 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3390 $as_echo_n "checking for C compiler default output file name... " >&6; }
3391 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3392
3393 # The possible output files:
3394 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3395
3396 ac_rmfiles=
3397 for ac_file in $ac_files
3398 do
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3402 esac
3403 done
3404 rm -f $ac_rmfiles
3405
3406 if { (ac_try="$ac_link_default"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_link_default") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; then
3417 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3418 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3419 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3420 # so that the user can short-circuit this test for compilers unknown to
3421 # Autoconf.
3422 for ac_file in $ac_files ''
3423 do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3427 ;;
3428 [ab].out )
3429 # We found the default executable, but exeext='' is most
3430 # certainly right.
3431 break;;
3432 *.* )
3433 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3434 then :; else
3435 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 fi
3437 # We set ac_cv_exeext here because the later test for it is not
3438 # safe: cross compilers may not add the suffix if given an `-o'
3439 # argument, so we may need to know it at that point already.
3440 # Even if this section looks crufty: it has the advantage of
3441 # actually working.
3442 break;;
3443 * )
3444 break;;
3445 esac
3446 done
3447 test "$ac_cv_exeext" = no && ac_cv_exeext=
3448
3449 else
3450 ac_file=''
3451 fi
3452
3453 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3454 $as_echo "$ac_file" >&6; }
3455 if test -z "$ac_file"; then
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: C compiler cannot create executables
3462 See \`config.log' for more details." >&2;}
3463 { (exit 77); exit 77; }; }
3464 fi
3465
3466 ac_exeext=$ac_cv_exeext
3467
3468 # Check that the compiler produces executables we can run. If not, either
3469 # the compiler is broken, or we cross compile.
3470 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3471 $as_echo_n "checking whether the C compiler works... " >&6; }
3472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3473 # If not cross compiling, check that we can run a simple program.
3474 if test "$cross_compiling" != yes; then
3475 if { ac_try='./$ac_file'
3476 { (case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_try") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 cross_compiling=no
3487 else
3488 if test "$cross_compiling" = maybe; then
3489 cross_compiling=yes
3490 else
3491 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details." >&5
3494 $as_echo "$as_me: error: cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3498 fi
3499 fi
3500 fi
3501 { $as_echo "$as_me:$LINENO: result: yes" >&5
3502 $as_echo "yes" >&6; }
3503
3504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505 ac_clean_files=$ac_clean_files_save
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3511 $as_echo "$cross_compiling" >&6; }
3512
3513 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { (ac_try="$ac_link"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_link") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; then
3526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe'), while it won't with
3529 # `rm'.
3530 for ac_file in conftest.exe conftest conftest.*; do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 break;;
3536 * ) break;;
3537 esac
3538 done
3539 else
3540 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3545 fi
3546
3547 rm -f conftest$ac_cv_exeext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3549 $as_echo "$ac_cv_exeext" >&6; }
3550
3551 rm -f conftest.$ac_ext
3552 EXEEXT=$ac_cv_exeext
3553 ac_exeext=$EXEEXT
3554 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if test "${ac_cv_objext+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3558 else
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.o conftest.obj
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_compile") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 break;;
3592 esac
3593 done
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details." >&5
3600 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
3603 fi
3604
3605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3606 fi
3607 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3608 $as_echo "$ac_cv_objext" >&6; }
3609 OBJEXT=$ac_cv_objext
3610 ac_objext=$OBJEXT
3611 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3612 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3614 $as_echo_n "(cached) " >&6
3615 else
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622
3623 int
3624 main ()
3625 {
3626 #ifndef __GNUC__
3627 choke me
3628 #endif
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3652 ac_compiler_gnu=yes
3653 else
3654 $as_echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_compiler_gnu=no
3658 fi
3659
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662
3663 fi
3664 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3667 GCC=yes
3668 else
3669 GCC=
3670 fi
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3674 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3675 if test "${ac_cv_prog_cc_g+set}" = set; then
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3680 ac_cv_prog_cc_g=no
3681 CFLAGS="-g"
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3715 ac_cv_prog_cc_g=yes
3716 else
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 CFLAGS=""
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h. */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3727
3728 int
3729 main ()
3730 {
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext
3737 if { (ac_try="$ac_compile"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3743 $as_echo "$ac_try_echo") >&5
3744 (eval "$ac_compile") 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } && {
3751 test -z "$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 } && test -s conftest.$ac_objext; then
3754 :
3755 else
3756 $as_echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3760 CFLAGS="-g"
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext
3777 if { (ac_try="$ac_compile"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3783 $as_echo "$ac_try_echo") >&5
3784 (eval "$ac_compile") 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } && {
3791 test -z "$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 } && test -s conftest.$ac_objext; then
3794 ac_cv_prog_cc_g=yes
3795 else
3796 $as_echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799
3800 fi
3801
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 fi
3804
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3810 fi
3811 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3812 $as_echo "$ac_cv_prog_cc_g" >&6; }
3813 if test "$ac_test_CFLAGS" = set; then
3814 CFLAGS=$ac_save_CFLAGS
3815 elif test $ac_cv_prog_cc_g = yes; then
3816 if test "$GCC" = yes; then
3817 CFLAGS="-g -O2"
3818 else
3819 CFLAGS="-g"
3820 fi
3821 else
3822 if test "$GCC" = yes; then
3823 CFLAGS="-O2"
3824 else
3825 CFLAGS=
3826 fi
3827 fi
3828 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3830 if test "${ac_cv_prog_cc_c89+set}" = set; then
3831 $as_echo_n "(cached) " >&6
3832 else
3833 ac_cv_prog_cc_c89=no
3834 ac_save_CC=$CC
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841 #include <stdarg.h>
3842 #include <stdio.h>
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849 char **p;
3850 int i;
3851 {
3852 return p[i];
3853 }
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3855 {
3856 char *s;
3857 va_list v;
3858 va_start (v,p);
3859 s = g (p, va_arg (v,int));
3860 va_end (v);
3861 return s;
3862 }
3863
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3884 int
3885 main ()
3886 {
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 do
3895 CC="$ac_save_CC $ac_arg"
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_prog_cc_c89=$ac_arg
3915 else
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919
3920 fi
3921
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3927
3928 fi
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3942
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949
3950
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3954 fi
3955
3956 ## If not using gcc, and on Solaris, and no CPP specified, see if
3957 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3958 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3959 test x"$CPP" = x; then
3960 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3961 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3962
3963 if test "${emacs_cv_sunpro_c+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972
3973 int
3974 main ()
3975 {
3976 #ifndef __SUNPRO_C
3977 fail;
3978 #endif
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_link") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest$ac_exeext && {
4002 test "$cross_compiling" = yes ||
4003 $as_test_x conftest$ac_exeext
4004 }; then
4005 emacs_cv_sunpro_c=yes
4006 else
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 emacs_cv_sunpro_c=no
4011 fi
4012
4013 rm -rf conftest.dSYM
4014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4015 conftest$ac_exeext conftest.$ac_ext
4016 fi
4017
4018 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4019 $as_echo "$emacs_cv_sunpro_c" >&6; }
4020
4021 if test x"$emacs_cv_sunpro_c" = xyes; then
4022 NON_GNU_CPP="$CC -E -Xs"
4023 fi
4024 fi
4025
4026 #### Some systems specify a CPP to use unless we are using GCC.
4027 #### Now that we know whether we are using GCC, we can decide whether
4028 #### to use that one.
4029 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4030 then
4031 CPP="$NON_GNU_CPP"
4032 fi
4033
4034 #### Some systems specify a CC to use unless we are using GCC.
4035 #### Now that we know whether we are using GCC, we can decide whether
4036 #### to use that one.
4037 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4038 test x$cc_specified != xyes
4039 then
4040 CC="$NON_GNU_CC"
4041 fi
4042
4043 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4044 then
4045 CC="$CC $GCC_TEST_OPTIONS"
4046 fi
4047
4048 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4049 then
4050 CC="$CC $NON_GCC_TEST_OPTIONS"
4051 fi
4052
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4063 fi
4064 if test -z "$CPP"; then
4065 if test "${ac_cv_prog_CPP+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4067 else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4070 do
4071 ac_preproc_ok=false
4072 for ac_c_preproc_warn_flag in '' yes
4073 do
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 #ifdef __STDC__
4087 # include <limits.h>
4088 #else
4089 # include <assert.h>
4090 #endif
4091 Syntax error
4092 _ACEOF
4093 if { (ac_try="$ac_cpp conftest.$ac_ext"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4099 $as_echo "$ac_try_echo") >&5
4100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } >/dev/null && {
4107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4108 test ! -s conftest.err
4109 }; then
4110 :
4111 else
4112 $as_echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115 # Broken: fails on valid input.
4116 continue
4117 fi
4118
4119 rm -f conftest.err conftest.$ac_ext
4120
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <ac_nonexistent.h>
4130 _ACEOF
4131 if { (ac_try="$ac_cpp conftest.$ac_ext"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4137 $as_echo "$ac_try_echo") >&5
4138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } >/dev/null && {
4145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 }; then
4148 # Broken: success on invalid input.
4149 continue
4150 else
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 # Passes both tests.
4155 ac_preproc_ok=:
4156 break
4157 fi
4158
4159 rm -f conftest.err conftest.$ac_ext
4160
4161 done
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4165 break
4166 fi
4167
4168 done
4169 ac_cv_prog_CPP=$CPP
4170
4171 fi
4172 CPP=$ac_cv_prog_CPP
4173 else
4174 ac_cv_prog_CPP=$CPP
4175 fi
4176 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4178 ac_preproc_ok=false
4179 for ac_c_preproc_warn_flag in '' yes
4180 do
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #ifdef __STDC__
4194 # include <limits.h>
4195 #else
4196 # include <assert.h>
4197 #endif
4198 Syntax error
4199 _ACEOF
4200 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 }; then
4217 :
4218 else
4219 $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 # Broken: fails on valid input.
4223 continue
4224 fi
4225
4226 rm -f conftest.err conftest.$ac_ext
4227
4228 # OK, works on sane cases. Now check whether nonexistent headers
4229 # can be detected and how.
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4237 _ACEOF
4238 if { (ac_try="$ac_cpp conftest.$ac_ext"
4239 case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } >/dev/null && {
4252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4253 test ! -s conftest.err
4254 }; then
4255 # Broken: success on invalid input.
4256 continue
4257 else
4258 $as_echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261 # Passes both tests.
4262 ac_preproc_ok=:
4263 break
4264 fi
4265
4266 rm -f conftest.err conftest.$ac_ext
4267
4268 done
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then
4272 :
4273 else
4274 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4275 See \`config.log' for more details." >&5
4276 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log' for more details." >&2;}
4278 { (exit 1); exit 1; }; }
4279 fi
4280
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287
4288 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4290 if test "${ac_cv_path_GREP+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -z "$GREP"; then
4294 ac_path_GREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in grep ggrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4305 # Check for GNU ac_path_GREP and select it if it is found.
4306 # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4308 *GNU*)
4309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4310 *)
4311 ac_count=0
4312 $as_echo_n 0123456789 >"conftest.in"
4313 while :
4314 do
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'GREP' >> "conftest.nl"
4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 ac_count=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_GREP="$ac_path_GREP"
4325 ac_path_GREP_max=$ac_count
4326 fi
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4329 done
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4332
4333 $ac_path_GREP_found && break 3
4334 done
4335 done
4336 done
4337 IFS=$as_save_IFS
4338 if test -z "$ac_cv_path_GREP"; then
4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4340 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4341 { (exit 1); exit 1; }; }
4342 fi
4343 else
4344 ac_cv_path_GREP=$GREP
4345 fi
4346
4347 fi
4348 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4349 $as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP="$ac_cv_path_GREP"
4351
4352
4353 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4354 $as_echo_n "checking for egrep... " >&6; }
4355 if test "${ac_cv_path_EGREP+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4359 then ac_cv_path_EGREP="$GREP -E"
4360 else
4361 if test -z "$EGREP"; then
4362 ac_path_EGREP_found=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_prog in egrep; do
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4373 # Check for GNU ac_path_EGREP and select it if it is found.
4374 # Check for GNU $ac_path_EGREP
4375 case `"$ac_path_EGREP" --version 2>&1` in
4376 *GNU*)
4377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4378 *)
4379 ac_count=0
4380 $as_echo_n 0123456789 >"conftest.in"
4381 while :
4382 do
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo 'EGREP' >> "conftest.nl"
4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389 ac_count=`expr $ac_count + 1`
4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_EGREP="$ac_path_EGREP"
4393 ac_path_EGREP_max=$ac_count
4394 fi
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4397 done
4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399 esac
4400
4401 $ac_path_EGREP_found && break 3
4402 done
4403 done
4404 done
4405 IFS=$as_save_IFS
4406 if test -z "$ac_cv_path_EGREP"; then
4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4408 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4409 { (exit 1); exit 1; }; }
4410 fi
4411 else
4412 ac_cv_path_EGREP=$EGREP
4413 fi
4414
4415 fi
4416 fi
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP="$ac_cv_path_EGREP"
4420
4421
4422 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <stdlib.h>
4434 #include <stdarg.h>
4435 #include <string.h>
4436 #include <float.h>
4437
4438 int
4439 main ()
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_stdc=yes
4465 else
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 ac_cv_header_stdc=no
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <string.h>
4483
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then
4487 :
4488 else
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f conftest*
4492
4493 fi
4494
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <stdlib.h>
4504
4505 _ACEOF
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "free" >/dev/null 2>&1; then
4508 :
4509 else
4510 ac_cv_header_stdc=no
4511 fi
4512 rm -f conftest*
4513
4514 fi
4515
4516 if test $ac_cv_header_stdc = yes; then
4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4518 if test "$cross_compiling" = yes; then
4519 :
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <ctype.h>
4528 #include <stdlib.h>
4529 #if ((' ' & 0x0FF) == 0x020)
4530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4532 #else
4533 # define ISLOWER(c) \
4534 (('a' <= (c) && (c) <= 'i') \
4535 || ('j' <= (c) && (c) <= 'r') \
4536 || ('s' <= (c) && (c) <= 'z'))
4537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #endif
4539
4540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4541 int
4542 main ()
4543 {
4544 int i;
4545 for (i = 0; i < 256; i++)
4546 if (XOR (islower (i), ISLOWER (i))
4547 || toupper (i) != TOUPPER (i))
4548 return 2;
4549 return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4559 $as_echo "$ac_try_echo") >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 :
4575 else
4576 $as_echo "$as_me: program exited with status $ac_status" >&5
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 ( exit $ac_status )
4581 ac_cv_header_stdc=no
4582 fi
4583 rm -rf conftest.dSYM
4584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4585 fi
4586
4587
4588 fi
4589 fi
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4591 $as_echo "$ac_cv_header_stdc" >&6; }
4592 if test $ac_cv_header_stdc = yes; then
4593
4594 cat >>confdefs.h <<\_ACEOF
4595 #define STDC_HEADERS 1
4596 _ACEOF
4597
4598 fi
4599
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4611 inttypes.h stdint.h unistd.h
4612 do
4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 $as_echo_n "checking for $ac_header... " >&6; }
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4626
4627 #include <$ac_header>
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (ac_try="$ac_compile"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compile") 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest.$ac_objext; then
4647 eval "$as_ac_Header=yes"
4648 else
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 eval "$as_ac_Header=no"
4653 fi
4654
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 fi
4657 ac_res=`eval 'as_val=${'$as_ac_Header'}
4658 $as_echo "$as_val"'`
4659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4660 $as_echo "$ac_res" >&6; }
4661 if test `eval 'as_val=${'$as_ac_Header'}
4662 $as_echo "$as_val"'` = yes; then
4663 cat >>confdefs.h <<_ACEOF
4664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665 _ACEOF
4666
4667 fi
4668
4669 done
4670
4671
4672
4673 if test "${ac_cv_header_minix_config_h+set}" = set; then
4674 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4675 $as_echo_n "checking for minix/config.h... " >&6; }
4676 if test "${ac_cv_header_minix_config_h+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4678 fi
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4680 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4681 else
4682 # Is the header compilable?
4683 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4684 $as_echo_n "checking minix/config.h usability... " >&6; }
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 #include <minix/config.h>
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (ac_try="$ac_compile"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702 (eval "$ac_compile") 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 ac_header_compiler=yes
4713 else
4714 $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 ac_header_compiler=no
4718 fi
4719
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 $as_echo "$ac_header_compiler" >&6; }
4723
4724 # Is the header present?
4725 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4726 $as_echo_n "checking minix/config.h presence... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #include <minix/config.h>
4734 _ACEOF
4735 if { (ac_try="$ac_cpp conftest.$ac_ext"
4736 case "(($ac_try" in
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4739 esac
4740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev/null && {
4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 }; then
4752 ac_header_preproc=yes
4753 else
4754 $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_header_preproc=no
4758 fi
4759
4760 rm -f conftest.err conftest.$ac_ext
4761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4762 $as_echo "$ac_header_preproc" >&6; }
4763
4764 # So? What about this header?
4765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4766 yes:no: )
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4771 ac_header_preproc=yes
4772 ;;
4773 no:yes:* )
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4786
4787 ;;
4788 esac
4789 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4790 $as_echo_n "checking for minix/config.h... " >&6; }
4791 if test "${ac_cv_header_minix_config_h+set}" = set; then
4792 $as_echo_n "(cached) " >&6
4793 else
4794 ac_cv_header_minix_config_h=$ac_header_preproc
4795 fi
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4797 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4798
4799 fi
4800 if test $ac_cv_header_minix_config_h = yes; then
4801 MINIX=yes
4802 else
4803 MINIX=
4804 fi
4805
4806
4807 if test "$MINIX" = yes; then
4808
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _POSIX_SOURCE 1
4811 _ACEOF
4812
4813
4814 cat >>confdefs.h <<\_ACEOF
4815 #define _POSIX_1_SOURCE 2
4816 _ACEOF
4817
4818
4819 cat >>confdefs.h <<\_ACEOF
4820 #define _MINIX 1
4821 _ACEOF
4822
4823 fi
4824
4825
4826
4827 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4828 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4829 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838
4839 # define __EXTENSIONS__ 1
4840 $ac_includes_default
4841 int
4842 main ()
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_compile") 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
4867 ac_cv_safe_to_define___extensions__=yes
4868 else
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_cv_safe_to_define___extensions__=no
4873 fi
4874
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4878 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4879 test $ac_cv_safe_to_define___extensions__ = yes &&
4880 cat >>confdefs.h <<\_ACEOF
4881 #define __EXTENSIONS__ 1
4882 _ACEOF
4883
4884 cat >>confdefs.h <<\_ACEOF
4885 #define _ALL_SOURCE 1
4886 _ACEOF
4887
4888 cat >>confdefs.h <<\_ACEOF
4889 #define _GNU_SOURCE 1
4890 _ACEOF
4891
4892 cat >>confdefs.h <<\_ACEOF
4893 #define _POSIX_PTHREAD_SEMANTICS 1
4894 _ACEOF
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _TANDEM_SOURCE 1
4898 _ACEOF
4899
4900
4901
4902 ### Use -Wno-pointer-sign if the compiler supports it
4903 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4904 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4905 SAVE_CFLAGS="$CFLAGS"
4906 CFLAGS="$CFLAGS -Wno-pointer-sign"
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913
4914 int
4915 main ()
4916 {
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4924 case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4927 esac
4928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4929 $as_echo "$ac_try_echo") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4940 has_option=yes
4941 else
4942 $as_echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 has_option=no
4946 fi
4947
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 if test $has_option = yes; then
4950 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4951 fi
4952 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4953 $as_echo "$has_option" >&6; }
4954 CFLAGS="$SAVE_CFLAGS"
4955 unset has_option
4956 unset SAVE_CFLAGS
4957
4958 ### Use -Wdeclaration-after-statement if the compiler supports it
4959 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4960 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4961 SAVE_CFLAGS="$CFLAGS"
4962 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969
4970 int
4971 main ()
4972 {
4973
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (ac_try="$ac_compile"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985 $as_echo "$ac_try_echo") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4996 has_option=yes
4997 else
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 has_option=no
5002 fi
5003
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 if test $has_option = yes; then
5006 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5007 fi
5008 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5009 $as_echo "$has_option" >&6; }
5010 CFLAGS="$SAVE_CFLAGS"
5011 unset has_option
5012 unset SAVE_CFLAGS
5013
5014 #### Some other nice autoconf tests.
5015
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5023 # On Suns, sometimes $CPP names a directory.
5024 if test -n "$CPP" && test -d "$CPP"; then
5025 CPP=
5026 fi
5027 if test -z "$CPP"; then
5028 if test "${ac_cv_prog_CPP+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5030 else
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5033 do
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054 Syntax error
5055 _ACEOF
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev/null && {
5070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 }; then
5073 :
5074 else
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 # Broken: fails on valid input.
5079 continue
5080 fi
5081
5082 rm -f conftest.err conftest.$ac_ext
5083
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <ac_nonexistent.h>
5093 _ACEOF
5094 if { (ac_try="$ac_cpp conftest.$ac_ext"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5102 ac_status=$?
5103 grep -v '^ *+' conftest.er1 >conftest.err
5104 rm -f conftest.er1
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5110 }; then
5111 # Broken: success on invalid input.
5112 continue
5113 else
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121
5122 rm -f conftest.err conftest.$ac_ext
5123
5124 done
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then
5128 break
5129 fi
5130
5131 done
5132 ac_cv_prog_CPP=$CPP
5133
5134 fi
5135 CPP=$ac_cv_prog_CPP
5136 else
5137 ac_cv_prog_CPP=$CPP
5138 fi
5139 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5140 $as_echo "$CPP" >&6; }
5141 ac_preproc_ok=false
5142 for ac_c_preproc_warn_flag in '' yes
5143 do
5144 # Use a header file that comes with gcc, so configuring glibc
5145 # with a fresh cross-compiler works.
5146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 # <limits.h> exists even on freestanding compilers.
5148 # On the NeXT, cc -E runs the code through the compiler's parser,
5149 # not just through cpp. "Syntax error" is here to catch this case.
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #ifdef __STDC__
5157 # include <limits.h>
5158 #else
5159 # include <assert.h>
5160 #endif
5161 Syntax error
5162 _ACEOF
5163 if { (ac_try="$ac_cpp conftest.$ac_ext"
5164 case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167 esac
5168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169 $as_echo "$ac_try_echo") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 }; then
5180 :
5181 else
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 # Broken: fails on valid input.
5186 continue
5187 fi
5188
5189 rm -f conftest.err conftest.$ac_ext
5190
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5202 case "(($ac_try" in
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5205 esac
5206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5207 $as_echo "$ac_try_echo") >&5
5208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5209 ac_status=$?
5210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
5213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev/null && {
5215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5217 }; then
5218 # Broken: success on invalid input.
5219 continue
5220 else
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224 # Passes both tests.
5225 ac_preproc_ok=:
5226 break
5227 fi
5228
5229 rm -f conftest.err conftest.$ac_ext
5230
5231 done
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then
5235 :
5236 else
5237 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&5
5239 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5240 See \`config.log' for more details." >&2;}
5241 { (exit 1); exit 1; }; }
5242 fi
5243
5244 ac_ext=c
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5249
5250 # Find a good install program. We prefer a C program (faster),
5251 # so one script is as good as another. But avoid the broken or
5252 # incompatible versions:
5253 # SysV /etc/install, /usr/sbin/install
5254 # SunOS /usr/etc/install
5255 # IRIX /sbin/install
5256 # AIX /bin/install
5257 # AmigaOS /C/install, which installs bootblocks on floppy discs
5258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5261 # OS/2's system install, which has a completely different semantic
5262 # ./install, which can be erroneously created by make from ./install.sh.
5263 # Reject install programs that cannot install multiple files.
5264 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5265 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5266 if test -z "$INSTALL"; then
5267 if test "${ac_cv_path_install+set}" = set; then
5268 $as_echo_n "(cached) " >&6
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 # Account for people who put trailing slashes in PATH elements.
5276 case $as_dir/ in
5277 ./ | .// | /cC/* | \
5278 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5279 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5280 /usr/ucb/* ) ;;
5281 *)
5282 # OSF1 and SCO ODT 3.0 have their own names for install.
5283 # Don't use installbsd from OSF since it installs stuff as root
5284 # by default.
5285 for ac_prog in ginstall scoinst install; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5288 if test $ac_prog = install &&
5289 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5290 # AIX install. It has an incompatible calling convention.
5291 :
5292 elif test $ac_prog = install &&
5293 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5294 # program-specific install script used by HP pwplus--don't use.
5295 :
5296 else
5297 rm -rf conftest.one conftest.two conftest.dir
5298 echo one > conftest.one
5299 echo two > conftest.two
5300 mkdir conftest.dir
5301 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5302 test -s conftest.one && test -s conftest.two &&
5303 test -s conftest.dir/conftest.one &&
5304 test -s conftest.dir/conftest.two
5305 then
5306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5307 break 3
5308 fi
5309 fi
5310 fi
5311 done
5312 done
5313 ;;
5314 esac
5315
5316 done
5317 IFS=$as_save_IFS
5318
5319 rm -rf conftest.one conftest.two conftest.dir
5320
5321 fi
5322 if test "${ac_cv_path_install+set}" = set; then
5323 INSTALL=$ac_cv_path_install
5324 else
5325 # As a last resort, use the slow shell script. Don't cache a
5326 # value for INSTALL within a source directory, because that will
5327 # break other packages using the cache if that directory is
5328 # removed, or if the value is a relative name.
5329 INSTALL=$ac_install_sh
5330 fi
5331 fi
5332 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5333 $as_echo "$INSTALL" >&6; }
5334
5335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5336 # It thinks the first close brace ends the variable substitution.
5337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5338
5339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5340
5341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5342
5343 if test "x$RANLIB" = x; then
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_RANLIB+set}" = set; then
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$RANLIB"; then
5353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 RANLIB=$ac_cv_prog_RANLIB
5373 if test -n "$RANLIB"; then
5374 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5375 $as_echo "$RANLIB" >&6; }
5376 else
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_RANLIB"; then
5384 ac_ct_RANLIB=$RANLIB
5385 # Extract the first word of "ranlib", so it can be a program name with args.
5386 set dummy ranlib; ac_word=$2
5387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$ac_ct_RANLIB"; then
5393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_RANLIB="ranlib"
5403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5413 if test -n "$ac_ct_RANLIB"; then
5414 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5415 $as_echo "$ac_ct_RANLIB" >&6; }
5416 else
5417 { $as_echo "$as_me:$LINENO: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421 if test "x$ac_ct_RANLIB" = x; then
5422 RANLIB=":"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet. If you think this
5428 configuration is useful to you, please write to autoconf@gnu.org." >&5
5429 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430 whose name does not start with the host triplet. If you think this
5431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 RANLIB=$ac_ct_RANLIB
5435 fi
5436 else
5437 RANLIB="$ac_cv_prog_RANLIB"
5438 fi
5439
5440 fi
5441
5442 ## Although we're running on an amd64 kernel, we're actually compiling for
5443 ## the x86 architecture. The user should probably have provided an
5444 ## explicit --build to `configure', but if everything else than the kernel
5445 ## is running in i386 mode, we can help them out.
5446 if test "$machine" = "amdx86-64"; then
5447 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5448 $as_echo_n "checking whether i386 is declared... " >&6; }
5449 if test "${ac_cv_have_decl_i386+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 int
5460 main ()
5461 {
5462 #ifndef i386
5463 (void) i386;
5464 #endif
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (ac_try="$ac_compile"
5472 case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475 esac
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 ac_cv_have_decl_i386=yes
5489 else
5490 $as_echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_cv_have_decl_i386=no
5494 fi
5495
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 fi
5498 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5499 $as_echo "$ac_cv_have_decl_i386" >&6; }
5500
5501 if test "$ac_cv_have_decl_i386" = "yes"; then
5502 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5503 machine=intel386
5504 machfile="m/${machine}.h"
5505 fi
5506 fi
5507
5508 # Extract the first word of "install-info", so it can be a program name with args.
5509 set dummy install-info; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5514 else
5515 case $INSTALL_INFO in
5516 [\\/]* | ?:[\\/]*)
5517 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5518 ;;
5519 *)
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 ;;
5536 esac
5537 fi
5538 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5539 if test -n "$INSTALL_INFO"; then
5540 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5541 $as_echo "$INSTALL_INFO" >&6; }
5542 else
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548 # Extract the first word of "install-info", so it can be a program name with args.
5549 set dummy install-info; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5554 else
5555 case $INSTALL_INFO in
5556 [\\/]* | ?:[\\/]*)
5557 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5558 ;;
5559 *)
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in /usr/sbin
5562 do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575 ;;
5576 esac
5577 fi
5578 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5579 if test -n "$INSTALL_INFO"; then
5580 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5581 $as_echo "$INSTALL_INFO" >&6; }
5582 else
5583 { $as_echo "$as_me:$LINENO: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588 # Extract the first word of "install-info", so it can be a program name with args.
5589 set dummy install-info; ac_word=$2
5590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 case $INSTALL_INFO in
5596 [\\/]* | ?:[\\/]*)
5597 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5598 ;;
5599 *)
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in /sbin
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5616 ;;
5617 esac
5618 fi
5619 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5620 if test -n "$INSTALL_INFO"; then
5621 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5622 $as_echo "$INSTALL_INFO" >&6; }
5623 else
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 # Extract the first word of "gzip", so it can be a program name with args.
5630 set dummy gzip; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5634 $as_echo_n "(cached) " >&6
5635 else
5636 case $GZIP_PROG in
5637 [\\/]* | ?:[\\/]*)
5638 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5639 ;;
5640 *)
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 ;;
5657 esac
5658 fi
5659 GZIP_PROG=$ac_cv_path_GZIP_PROG
5660 if test -n "$GZIP_PROG"; then
5661 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5662 $as_echo "$GZIP_PROG" >&6; }
5663 else
5664 { $as_echo "$as_me:$LINENO: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669
5670
5671 ## Need makeinfo >= 4.6 (?) to build the manuals.
5672 # Extract the first word of "makeinfo", so it can be a program name with args.
5673 set dummy makeinfo; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5678 else
5679 case $MAKEINFO in
5680 [\\/]* | ?:[\\/]*)
5681 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5682 ;;
5683 *)
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5700 ;;
5701 esac
5702 fi
5703 MAKEINFO=$ac_cv_path_MAKEINFO
5704 if test -n "$MAKEINFO"; then
5705 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5706 $as_echo "$MAKEINFO" >&6; }
5707 else
5708 { $as_echo "$as_me:$LINENO: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 if test "$MAKEINFO" != "no" && \
5714 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5715 MAKEINFO=no
5716 fi
5717
5718 ## Makeinfo is unusual. For a released Emacs, the manuals are
5719 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5720 ## therefore in the category of "special tools" not normally required, which
5721 ## configure does not have to check for (eg autoconf itself).
5722 ## In a Bazaar checkout on the other hand, the manuals are not included.
5723 ## So makeinfo is a requirement to build from Bazaar, and configure
5724 ## should test for it as it does for any other build requirement.
5725 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5726 ## with pre-built manuals, from a Bazaar checkout.
5727 if test "$MAKEINFO" = "no"; then
5728 if test "x${with_makeinfo}" = "xno"; then
5729 MAKEINFO=off
5730 elif test ! -e $srcdir/info/emacs; then
5731 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5732 source tree does not seem to have pre-built manuals in the \`info' directory.
5733 Either install a suitable version of makeinfo, or re-run configure
5734 with the \`--without-makeinfo' option to build without the manuals. " >&5
5735 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5736 source tree does not seem to have pre-built manuals in the \`info' directory.
5737 Either install a suitable version of makeinfo, or re-run configure
5738 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5739 { (exit 1); exit 1; }; }
5740 fi
5741 fi
5742
5743
5744 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5745 then
5746 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5747 fi
5748
5749 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5750 then
5751 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5752 fi
5753
5754
5755 late_LDFLAGS=$LDFLAGS
5756 if test "$GCC" = yes; then
5757 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5758 else
5759 LDFLAGS="$LDFLAGS -znocombreloc"
5760 fi
5761
5762 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5763 $as_echo_n "checking for -znocombreloc... " >&6; }
5764 cat >conftest.$ac_ext <<_ACEOF
5765 main(){return 0;}
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_link") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest$ac_exeext && {
5785 test "$cross_compiling" = yes ||
5786 $as_test_x conftest$ac_exeext
5787 }; then
5788 { $as_echo "$as_me:$LINENO: result: yes" >&5
5789 $as_echo "yes" >&6; }
5790 else
5791 $as_echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 LDFLAGS=$late_LDFLAGS
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799 rm -rf conftest.dSYM
5800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5801 conftest$ac_exeext conftest.$ac_ext
5802
5803 #### Extract some information from the operating system and machine files.
5804
5805 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5806 - which libraries the lib-src programs will want, and
5807 - whether the GNU malloc routines are usable..." >&5
5808 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5809 - which libraries the lib-src programs will want, and
5810 - whether the GNU malloc routines are usable..." >&6;}
5811
5812 ### First figure out CFLAGS (which we use for running the compiler here)
5813 ### and REAL_CFLAGS (which we use for real compilation).
5814 ### The two are the same except on a few systems, where they are made
5815 ### different to work around various lossages. For example,
5816 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5817 ### as implying static linking.
5818
5819 ### If the CFLAGS env var is specified, we use that value
5820 ### instead of the default.
5821
5822 ### It's not important that this name contain the PID; you can't run
5823 ### two configures in the same directory and have anything work
5824 ### anyway.
5825 tempcname="conftest.c"
5826
5827 echo '
5828 #include "'${srcdir}'/src/'${opsysfile}'"
5829 #include "'${srcdir}'/src/'${machfile}'"
5830
5831 configure___ LIBX=-lX11
5832
5833 configure___ unexec=UNEXEC
5834
5835 #ifdef CANNOT_DUMP
5836 configure___ cannot_dump=yes
5837 #else
5838 configure___ cannot_dump=no
5839 #endif
5840
5841 #ifdef SYSTEM_MALLOC
5842 configure___ system_malloc=yes
5843 #else
5844 configure___ system_malloc=no
5845 #endif
5846
5847 #ifdef USE_MMAP_FOR_BUFFERS
5848 configure___ use_mmap_for_buffers=yes
5849 #else
5850 configure___ use_mmap_for_buffers=no
5851 #endif
5852
5853 #ifndef C_OPTIMIZE_SWITCH
5854 #ifdef __GNUC__
5855 #define C_OPTIMIZE_SWITCH -O2
5856 #else
5857 #define C_OPTIMIZE_SWITCH -O
5858 #endif
5859 #endif
5860
5861 #ifndef C_WARNINGS_SWITCH
5862 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5863 #endif
5864
5865 #ifdef THIS_IS_CONFIGURE
5866
5867 /* Get the CFLAGS for tests in configure. */
5868 #ifdef __GNUC__
5869 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5870 #else
5871 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5872 #endif
5873
5874 #else /* not THIS_IS_CONFIGURE */
5875
5876 /* Get the CFLAGS for real compilation. */
5877 #ifdef __GNUC__
5878 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5879 #else
5880 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5881 #endif
5882
5883 #endif /* not THIS_IS_CONFIGURE */
5884 ' > ${tempcname}
5885
5886 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5887
5888 # The value of CPP is a quoted variable reference, so we need to do this
5889 # to get its actual value...
5890 CPP=`eval "echo $CPP"`
5891 eval `${CPP} -Isrc ${tempcname} \
5892 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5893 if test "x$SPECIFIED_CFLAGS" = x; then
5894 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5895 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5896 else
5897 REAL_CFLAGS="$CFLAGS"
5898 fi
5899 rm ${tempcname}
5900
5901
5902
5903
5904
5905 LD_SWITCH_SYSTEM=
5906 case "$opsys" in
5907 freebsd)
5908 ## Let `ld' find image libs and similar things in /usr/local/lib.
5909 ## The system compiler, GCC, has apparently been modified to not
5910 ## look there, contrary to what a stock GCC would do.
5911 LD_SWITCH_SYSTEM=-L/usr/local/lib
5912 ;;
5913
5914 gnu-linux)
5915 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5916 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5917 ;;
5918
5919 netbsd)
5920 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5921 ;;
5922
5923 openbsd)
5924 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5925 ## otherwise Emacs dumps core on elf systems.
5926 LD_SWITCH_SYSTEM="-Z"
5927 ;;
5928 esac
5929
5930
5931 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5932
5933 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5934 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5935 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5936 ## values in configure and the Makefiles. How helpful.
5937 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5938 case "$opsys" in
5939 gnu-linux)
5940 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5941 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5942
5943 netbsd|openbsd)
5944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5945 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5946 esac
5947
5948
5949 C_SWITCH_MACHINE=
5950 if test "$machine" = "alpha"; then
5951 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5952 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5953 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 int
5964 main ()
5965 {
5966 #ifndef __ELF__
5967 (void) __ELF__;
5968 #endif
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_cv_have_decl___ELF__=yes
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997 ac_cv_have_decl___ELF__=no
5998 fi
5999
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 fi
6002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6003 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6004
6005 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6006 ## With ELF, make sure that all common symbols get allocated to in the
6007 ## data section. Otherwise, the dump of temacs may miss variables in
6008 ## the shared library that have been initialized. For example, with
6009 ## GNU libc, __malloc_initialized would normally be resolved to the
6010 ## shared library's .bss section, which is fatal.
6011 if test "x$GCC" = "xyes"; then
6012 C_SWITCH_MACHINE="-fno-common"
6013 else
6014 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6015 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6016 { (exit 1); exit 1; }; }
6017 fi
6018 fi
6019 fi
6020
6021
6022
6023 C_SWITCH_SYSTEM=
6024 ## Some programs in src produce warnings saying certain subprograms
6025 ## are too complex and need a MAXMEM value greater than 2000 for
6026 ## additional optimization. --nils@exp-math.uni-essen.de
6027 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6028 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6029 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6030 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6031
6032
6033
6034 LIBS_SYSTEM=
6035 case "$opsys" in
6036 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6037 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6038
6039 freebsd) LIBS_SYSTEM="-lutil" ;;
6040
6041 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6042
6043 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6044
6045 ## Motif needs -lgen.
6046 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6047 esac
6048
6049
6050
6051 ### Make sure subsequent tests use flags consistent with the build flags.
6052
6053 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6054 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6055 else
6056 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6057 fi
6058
6059
6060
6061 # Check whether --enable-largefile was given.
6062 if test "${enable_largefile+set}" = set; then
6063 enableval=$enable_largefile;
6064 fi
6065
6066 if test "$enable_largefile" != no; then
6067
6068 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6069 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6070 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6072 else
6073 ac_cv_sys_largefile_CC=no
6074 if test "$GCC" != yes; then
6075 ac_save_CC=$CC
6076 while :; do
6077 # IRIX 6.2 and later do not support large files by default,
6078 # so use the C compiler's -n32 option if that helps.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6093 ? 1 : -1];
6094 int
6095 main ()
6096 {
6097
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 break
6121 else
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext
6129 CC="$CC -n32"
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_sys_largefile_CC=' -n32'; break
6149 else
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153
6154 fi
6155
6156 rm -f core conftest.err conftest.$ac_objext
6157 break
6158 done
6159 CC=$ac_save_CC
6160 rm -f conftest.$ac_ext
6161 fi
6162 fi
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6164 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6165 if test "$ac_cv_sys_largefile_CC" != no; then
6166 CC=$CC$ac_cv_sys_largefile_CC
6167 fi
6168
6169 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6170 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6171 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173 else
6174 while :; do
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 /* Check that off_t can represent 2**63 - 1 correctly.
6183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6184 since some C++ compilers masquerading as C compilers
6185 incorrectly reject 9223372036854775807. */
6186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6188 && LARGE_OFF_T % 2147483647 == 1)
6189 ? 1 : -1];
6190 int
6191 main ()
6192 {
6193
6194 ;
6195 return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6200 case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203 esac
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.$ac_objext; then
6216 ac_cv_sys_file_offset_bits=no; break
6217 else
6218 $as_echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221
6222 fi
6223
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 cat >conftest.$ac_ext <<_ACEOF
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #define _FILE_OFFSET_BITS 64
6232 #include <sys/types.h>
6233 /* Check that off_t can represent 2**63 - 1 correctly.
6234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6235 since some C++ compilers masquerading as C compilers
6236 incorrectly reject 9223372036854775807. */
6237 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6239 && LARGE_OFF_T % 2147483647 == 1)
6240 ? 1 : -1];
6241 int
6242 main ()
6243 {
6244
6245 ;
6246 return 0;
6247 }
6248 _ACEOF
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6251 case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254 esac
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_cv_sys_file_offset_bits=64; break
6268 else
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272
6273 fi
6274
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 ac_cv_sys_file_offset_bits=unknown
6277 break
6278 done
6279 fi
6280 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6281 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6282 case $ac_cv_sys_file_offset_bits in #(
6283 no | unknown) ;;
6284 *)
6285 cat >>confdefs.h <<_ACEOF
6286 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6287 _ACEOF
6288 ;;
6289 esac
6290 rm -rf conftest*
6291 if test $ac_cv_sys_file_offset_bits = unknown; then
6292 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6293 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6294 if test "${ac_cv_sys_large_files+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6296 else
6297 while :; do
6298 cat >conftest.$ac_ext <<_ACEOF
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 /* Check that off_t can represent 2**63 - 1 correctly.
6306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6307 since some C++ compilers masquerading as C compilers
6308 incorrectly reject 9223372036854775807. */
6309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6311 && LARGE_OFF_T % 2147483647 == 1)
6312 ? 1 : -1];
6313 int
6314 main ()
6315 {
6316
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.$ac_objext; then
6339 ac_cv_sys_large_files=no; break
6340 else
6341 $as_echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344
6345 fi
6346
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348 cat >conftest.$ac_ext <<_ACEOF
6349 /* confdefs.h. */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #define _LARGE_FILES 1
6355 #include <sys/types.h>
6356 /* Check that off_t can represent 2**63 - 1 correctly.
6357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6358 since some C++ compilers masquerading as C compilers
6359 incorrectly reject 9223372036854775807. */
6360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6362 && LARGE_OFF_T % 2147483647 == 1)
6363 ? 1 : -1];
6364 int
6365 main ()
6366 {
6367
6368 ;
6369 return 0;
6370 }
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (ac_try="$ac_compile"
6374 case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377 esac
6378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6379 $as_echo "$ac_try_echo") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_cv_sys_large_files=1; break
6391 else
6392 $as_echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395
6396 fi
6397
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cv_sys_large_files=unknown
6400 break
6401 done
6402 fi
6403 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6404 $as_echo "$ac_cv_sys_large_files" >&6; }
6405 case $ac_cv_sys_large_files in #(
6406 no | unknown) ;;
6407 *)
6408 cat >>confdefs.h <<_ACEOF
6409 #define _LARGE_FILES $ac_cv_sys_large_files
6410 _ACEOF
6411 ;;
6412 esac
6413 rm -rf conftest*
6414 fi
6415 fi
6416
6417
6418
6419 ## If user specified a crt-dir, use that unconditionally.
6420 if test "X$CRT_DIR" = "X"; then
6421
6422 case "$canonical" in
6423 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6424 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6425 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6426 ## For anything else (eg /usr/lib32), it is up the user to specify
6427 ## the location (bug#5655).
6428 ## Test for crtn.o, not just the directory, because sometimes the
6429 ## directory exists but does not have the relevant files (bug#1287).
6430 ## FIXME better to test for binary compatibility somehow.
6431 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6432 ;;
6433
6434 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6435 esac
6436
6437 case "$opsys" in
6438 hpux10-20) CRT_DIR=/lib ;;
6439 esac
6440
6441 ## Default is /usr/lib.
6442 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6443
6444 else
6445
6446 ## Some platforms don't use any of these files, so it is not
6447 ## appropriate to put this test outside the if block.
6448 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6449 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6450 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6451 { (exit 1); exit 1; }; }
6452
6453 fi
6454
6455
6456
6457 LIB_MATH=-lm
6458 LIB_STANDARD=
6459 START_FILES=
6460
6461 case $opsys in
6462 cygwin )
6463 LIB_MATH=
6464 START_FILES='ecrt0.o'
6465 ;;
6466 darwin )
6467 ## Adding -lm confuses the dynamic linker, so omit it.
6468 LIB_MATH=
6469 START_FILES='pre-crt0.o'
6470 ;;
6471 freebsd )
6472 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6473 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6474 ;;
6475 gnu-linux | gnu-kfreebsd )
6476 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6477 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6478 ;;
6479 hpux10-20 | hpux11 )
6480 LIB_STANDARD=-lc
6481 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6482 ;;
6483 netbsd | openbsd )
6484 if test -f $CRT_DIR/crti.o; then
6485 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6486 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6487 else
6488 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6489 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6490 fi
6491 ;;
6492 esac
6493
6494
6495
6496
6497
6498
6499
6500 if test "${with_sound}" != "no"; then
6501 # Sound support for GNU/Linux and the free BSDs.
6502
6503
6504
6505 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6506 do
6507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 $as_echo_n "checking for $ac_header... " >&6; }
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 $as_echo_n "(cached) " >&6
6513 fi
6514 ac_res=`eval 'as_val=${'$as_ac_Header'}
6515 $as_echo "$as_val"'`
6516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6518 else
6519 # Is the header compilable?
6520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6521 $as_echo_n "checking $ac_header usability... " >&6; }
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6529 #include <$ac_header>
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6533 case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_header_compiler=yes
6550 else
6551 $as_echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 ac_header_compiler=no
6555 fi
6556
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 $as_echo "$ac_header_compiler" >&6; }
6560
6561 # Is the header present?
6562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 $as_echo_n "checking $ac_header presence... " >&6; }
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6571 _ACEOF
6572 if { (ac_try="$ac_cpp conftest.$ac_ext"
6573 case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6578 $as_echo "$ac_try_echo") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6589 ac_header_preproc=yes
6590 else
6591 $as_echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_preproc=no
6595 fi
6596
6597 rm -f conftest.err conftest.$ac_ext
6598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 $as_echo "$ac_header_preproc" >&6; }
6600
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6609 ;;
6610 no:yes:* )
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623
6624 ;;
6625 esac
6626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 $as_echo_n "checking for $ac_header... " >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629 $as_echo_n "(cached) " >&6
6630 else
6631 eval "$as_ac_Header=\$ac_header_preproc"
6632 fi
6633 ac_res=`eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'`
6635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6637
6638 fi
6639 if test `eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6643 _ACEOF
6644
6645 fi
6646
6647 done
6648
6649 # Emulation library used on NetBSD.
6650 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6651 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6652 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6653 $as_echo_n "(cached) " >&6
6654 else
6655 ac_check_lib_save_LIBS=$LIBS
6656 LIBS="-lossaudio $LIBS"
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663
6664 /* Override any GCC internal prototype to avoid an error.
6665 Use char because int might match the return type of a GCC
6666 builtin and then its argument prototype would still apply. */
6667 #ifdef __cplusplus
6668 extern "C"
6669 #endif
6670 char _oss_ioctl ();
6671 int
6672 main ()
6673 {
6674 return _oss_ioctl ();
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_link") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest$ac_exeext && {
6697 test "$cross_compiling" = yes ||
6698 $as_test_x conftest$ac_exeext
6699 }; then
6700 ac_cv_lib_ossaudio__oss_ioctl=yes
6701 else
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 ac_cv_lib_ossaudio__oss_ioctl=no
6706 fi
6707
6708 rm -rf conftest.dSYM
6709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6710 conftest$ac_exeext conftest.$ac_ext
6711 LIBS=$ac_check_lib_save_LIBS
6712 fi
6713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6714 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6715 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6716 LIBSOUND=-lossaudio
6717 else
6718 LIBSOUND=
6719 fi
6720
6721
6722
6723 ALSA_REQUIRED=1.0.0
6724 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6725
6726 succeeded=no
6727
6728 # Extract the first word of "pkg-config", so it can be a program name with args.
6729 set dummy pkg-config; ac_word=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6734 else
6735 case $PKG_CONFIG in
6736 [\\/]* | ?:[\\/]*)
6737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6738 ;;
6739 *)
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6756 ;;
6757 esac
6758 fi
6759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6760 if test -n "$PKG_CONFIG"; then
6761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6762 $as_echo "$PKG_CONFIG" >&6; }
6763 else
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768
6769
6770 if test "$PKG_CONFIG" = "no" ; then
6771 HAVE_ALSA=no
6772 else
6773 PKG_CONFIG_MIN_VERSION=0.9.0
6774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6775 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6776 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6777
6778 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6779 { $as_echo "$as_me:$LINENO: result: yes" >&5
6780 $as_echo "yes" >&6; }
6781 succeeded=yes
6782
6783 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6784 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6785 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6787 $as_echo "$ALSA_CFLAGS" >&6; }
6788
6789 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6790 $as_echo_n "checking ALSA_LIBS... " >&6; }
6791 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6793 $as_echo "$ALSA_LIBS" >&6; }
6794 else
6795 { $as_echo "$as_me:$LINENO: result: no" >&5
6796 $as_echo "no" >&6; }
6797 ALSA_CFLAGS=""
6798 ALSA_LIBS=""
6799 ## If we have a custom action on failure, don't print errors, but
6800 ## do set a variable so people can do so.
6801 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6802
6803 fi
6804
6805
6806
6807 else
6808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6810 fi
6811 fi
6812
6813 if test $succeeded = yes; then
6814 HAVE_ALSA=yes
6815 else
6816 HAVE_ALSA=no
6817 fi
6818
6819 if test $HAVE_ALSA = yes; then
6820 SAVE_CFLAGS="$CFLAGS"
6821 SAVE_LDFLAGS="$LDFLAGS"
6822 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6823 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <asoundlib.h>
6831 int
6832 main ()
6833 {
6834 snd_lib_error_set_handler (0);
6835 ;
6836 return 0;
6837 }
6838 _ACEOF
6839 rm -f conftest.$ac_objext
6840 if { (ac_try="$ac_compile"
6841 case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844 esac
6845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6846 $as_echo "$ac_try_echo") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 emacs_alsa_normal=yes
6858 else
6859 $as_echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 emacs_alsa_normal=no
6863 fi
6864
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 if test "$emacs_alsa_normal" != yes; then
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <alsa/asoundlib.h>
6874 int
6875 main ()
6876 {
6877 snd_lib_error_set_handler (0);
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 emacs_alsa_subdir=yes
6901 else
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 emacs_alsa_subdir=no
6906 fi
6907
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 if test "$emacs_alsa_subdir" != yes; then
6910 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6911 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6912 { (exit 1); exit 1; }; }
6913 fi
6914 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6915 fi
6916
6917 CFLAGS="$SAVE_CFLAGS"
6918 LDFLAGS="$SAVE_LDFLAGS"
6919 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6920 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6921
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_ALSA 1
6924 _ACEOF
6925
6926 fi
6927
6928 fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6956 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6957 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6958 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6959 sys/utsname.h pwd.h utmp.h
6960 do
6961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6964 $as_echo_n "checking for $ac_header... " >&6; }
6965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966 $as_echo_n "(cached) " >&6
6967 fi
6968 ac_res=`eval 'as_val=${'$as_ac_Header'}
6969 $as_echo "$as_val"'`
6970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6971 $as_echo "$ac_res" >&6; }
6972 else
6973 # Is the header compilable?
6974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6975 $as_echo_n "checking $ac_header usability... " >&6; }
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 $ac_includes_default
6983 #include <$ac_header>
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (ac_try="$ac_compile"
6987 case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990 esac
6991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.$ac_objext; then
7003 ac_header_compiler=yes
7004 else
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008 ac_header_compiler=no
7009 fi
7010
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7013 $as_echo "$ac_header_compiler" >&6; }
7014
7015 # Is the header present?
7016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7017 $as_echo_n "checking $ac_header presence... " >&6; }
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <$ac_header>
7025 _ACEOF
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } >/dev/null && {
7040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 }; then
7043 ac_header_preproc=yes
7044 else
7045 $as_echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7047
7048 ac_header_preproc=no
7049 fi
7050
7051 rm -f conftest.err conftest.$ac_ext
7052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7053 $as_echo "$ac_header_preproc" >&6; }
7054
7055 # So? What about this header?
7056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7057 yes:no: )
7058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7062 ac_header_preproc=yes
7063 ;;
7064 no:yes:* )
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7077
7078 ;;
7079 esac
7080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 $as_echo_n "checking for $ac_header... " >&6; }
7082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7083 $as_echo_n "(cached) " >&6
7084 else
7085 eval "$as_ac_Header=\$ac_header_preproc"
7086 fi
7087 ac_res=`eval 'as_val=${'$as_ac_Header'}
7088 $as_echo "$as_val"'`
7089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7090 $as_echo "$ac_res" >&6; }
7091
7092 fi
7093 if test `eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'` = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7097 _ACEOF
7098
7099 fi
7100
7101 done
7102
7103
7104 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7105 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/personality.h>
7113 int
7114 main ()
7115 {
7116 personality (PER_LINUX32)
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 emacs_cv_personality_linux32=yes
7140 else
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 emacs_cv_personality_linux32=no
7145 fi
7146
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7149 $as_echo "$emacs_cv_personality_linux32" >&6; }
7150
7151 if test $emacs_cv_personality_linux32 = yes; then
7152
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_PERSONALITY_LINUX32 1
7155 _ACEOF
7156
7157 fi
7158
7159
7160 for ac_header in term.h
7161 do
7162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7163 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 $as_echo_n "checking for $ac_header... " >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166 $as_echo_n "(cached) " >&6
7167 else
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7175 _ACEOF
7176 if { (ac_try="$ac_cpp conftest.$ac_ext"
7177 case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7182 $as_echo "$ac_try_echo") >&5
7183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } >/dev/null && {
7190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 }; then
7193 eval "$as_ac_Header=yes"
7194 else
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 eval "$as_ac_Header=no"
7199 fi
7200
7201 rm -f conftest.err conftest.$ac_ext
7202 fi
7203 ac_res=`eval 'as_val=${'$as_ac_Header'}
7204 $as_echo "$as_val"'`
7205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_ac_Header'}
7208 $as_echo "$as_val"'` = yes; then
7209 cat >>confdefs.h <<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 _ACEOF
7212
7213 fi
7214
7215 done
7216
7217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7218 $as_echo_n "checking for ANSI C header files... " >&6; }
7219 if test "${ac_cv_header_stdc+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7221 else
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 #include <stdlib.h>
7229 #include <stdarg.h>
7230 #include <string.h>
7231 #include <float.h>
7232
7233 int
7234 main ()
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_header_stdc=yes
7260 else
7261 $as_echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_header_stdc=no
7265 fi
7266
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268
7269 if test $ac_cv_header_stdc = yes; then
7270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <string.h>
7278
7279 _ACEOF
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "memchr" >/dev/null 2>&1; then
7282 :
7283 else
7284 ac_cv_header_stdc=no
7285 fi
7286 rm -f conftest*
7287
7288 fi
7289
7290 if test $ac_cv_header_stdc = yes; then
7291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 #include <stdlib.h>
7299
7300 _ACEOF
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 $EGREP "free" >/dev/null 2>&1; then
7303 :
7304 else
7305 ac_cv_header_stdc=no
7306 fi
7307 rm -f conftest*
7308
7309 fi
7310
7311 if test $ac_cv_header_stdc = yes; then
7312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7313 if test "$cross_compiling" = yes; then
7314 :
7315 else
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 #include <ctype.h>
7323 #include <stdlib.h>
7324 #if ((' ' & 0x0FF) == 0x020)
7325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7327 #else
7328 # define ISLOWER(c) \
7329 (('a' <= (c) && (c) <= 'i') \
7330 || ('j' <= (c) && (c) <= 'r') \
7331 || ('s' <= (c) && (c) <= 'z'))
7332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7333 #endif
7334
7335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7336 int
7337 main ()
7338 {
7339 int i;
7340 for (i = 0; i < 256; i++)
7341 if (XOR (islower (i), ISLOWER (i))
7342 || toupper (i) != TOUPPER (i))
7343 return 2;
7344 return 0;
7345 }
7346 _ACEOF
7347 rm -f conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7349 case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352 esac
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_link") 2>&5
7356 ac_status=$?
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7359 { (case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_try") 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369 :
7370 else
7371 $as_echo "$as_me: program exited with status $ac_status" >&5
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 ( exit $ac_status )
7376 ac_cv_header_stdc=no
7377 fi
7378 rm -rf conftest.dSYM
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7380 fi
7381
7382
7383 fi
7384 fi
7385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7386 $as_echo "$ac_cv_header_stdc" >&6; }
7387 if test $ac_cv_header_stdc = yes; then
7388
7389 cat >>confdefs.h <<\_ACEOF
7390 #define STDC_HEADERS 1
7391 _ACEOF
7392
7393 fi
7394
7395 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7396 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7397 if test "${ac_cv_header_time+set}" = set; then
7398 $as_echo_n "(cached) " >&6
7399 else
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7408 #include <time.h>
7409
7410 int
7411 main ()
7412 {
7413 if ((struct tm *) 0)
7414 return 0;
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 ac_cv_header_time=yes
7438 else
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 ac_cv_header_time=no
7443 fi
7444
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7448 $as_echo "$ac_cv_header_time" >&6; }
7449 if test $ac_cv_header_time = yes; then
7450
7451 cat >>confdefs.h <<\_ACEOF
7452 #define TIME_WITH_SYS_TIME 1
7453 _ACEOF
7454
7455 fi
7456
7457 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7458 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7459 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7469 int
7470 main ()
7471 {
7472 #ifndef sys_siglist
7473 (void) sys_siglist;
7474 #endif
7475
7476 ;
7477 return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7489 ac_status=$?
7490 grep -v '^ *+' conftest.er1 >conftest.err
7491 rm -f conftest.er1
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 ac_cv_have_decl_sys_siglist=yes
7499 else
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7502
7503 ac_cv_have_decl_sys_siglist=no
7504 fi
7505
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 fi
7508 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7509 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7510 if test $ac_cv_have_decl_sys_siglist = yes; then
7511
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_SYS_SIGLIST 1
7514 _ACEOF
7515
7516
7517 else
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 0
7520 _ACEOF
7521
7522
7523 fi
7524
7525
7526 if test $ac_cv_have_decl_sys_siglist != yes; then
7527 # For Tru64, at least:
7528 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7529 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7530 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7540 int
7541 main ()
7542 {
7543 #ifndef __sys_siglist
7544 (void) __sys_siglist;
7545 #endif
7546
7547 ;
7548 return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7553 case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556 esac
7557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7558 $as_echo "$ac_try_echo") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_have_decl___sys_siglist=yes
7570 else
7571 $as_echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 ac_cv_have_decl___sys_siglist=no
7575 fi
7576
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7580 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7581 if test $ac_cv_have_decl___sys_siglist = yes; then
7582
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 1
7585 _ACEOF
7586
7587
7588 else
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 0
7591 _ACEOF
7592
7593
7594 fi
7595
7596
7597 if test $ac_cv_have_decl___sys_siglist = yes; then
7598
7599 cat >>confdefs.h <<\_ACEOF
7600 #define sys_siglist __sys_siglist
7601 _ACEOF
7602
7603 fi
7604 fi
7605 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7606 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7607 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7617 #include <sys/wait.h>
7618 #ifndef WEXITSTATUS
7619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7620 #endif
7621 #ifndef WIFEXITED
7622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7623 #endif
7624
7625 int
7626 main ()
7627 {
7628 int s;
7629 wait (&s);
7630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7631 ;
7632 return 0;
7633 }
7634 _ACEOF
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 ac_cv_header_sys_wait_h=yes
7654 else
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 ac_cv_header_sys_wait_h=no
7659 fi
7660
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 fi
7663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7664 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7665 if test $ac_cv_header_sys_wait_h = yes; then
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_SYS_WAIT_H 1
7669 _ACEOF
7670
7671 fi
7672
7673
7674 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7675 $as_echo_n "checking for struct utimbuf... " >&6; }
7676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #ifdef TIME_WITH_SYS_TIME
7686 #include <sys/time.h>
7687 #include <time.h>
7688 #else
7689 #ifdef HAVE_SYS_TIME_H
7690 #include <sys/time.h>
7691 #else
7692 #include <time.h>
7693 #endif
7694 #endif
7695 #ifdef HAVE_UTIME_H
7696 #include <utime.h>
7697 #endif
7698 int
7699 main ()
7700 {
7701 static struct utimbuf x; x.actime = x.modtime;
7702 ;
7703 return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7708 case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711 esac
7712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest.$ac_objext; then
7724 emacs_cv_struct_utimbuf=yes
7725 else
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 emacs_cv_struct_utimbuf=no
7730 fi
7731
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7735 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7736 if test $emacs_cv_struct_utimbuf = yes; then
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define HAVE_STRUCT_UTIMBUF 1
7740 _ACEOF
7741
7742 fi
7743
7744 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7745 $as_echo_n "checking return type of signal handlers... " >&6; }
7746 if test "${ac_cv_type_signal+set}" = set; then
7747 $as_echo_n "(cached) " >&6
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <sys/types.h>
7756 #include <signal.h>
7757
7758 int
7759 main ()
7760 {
7761 return *(signal (0, 0)) (0) == 1;
7762 ;
7763 return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7773 $as_echo "$ac_try_echo") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_type_signal=int
7785 else
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789 ac_cv_type_signal=void
7790 fi
7791
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7795 $as_echo "$ac_cv_type_signal" >&6; }
7796
7797 cat >>confdefs.h <<_ACEOF
7798 #define RETSIGTYPE $ac_cv_type_signal
7799 _ACEOF
7800
7801
7802
7803 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7804 $as_echo_n "checking for speed_t... " >&6; }
7805 if test "${emacs_cv_speed_t+set}" = set; then
7806 $as_echo_n "(cached) " >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <termios.h>
7815 int
7816 main ()
7817 {
7818 speed_t x = 1;
7819 ;
7820 return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (ac_try="$ac_compile"
7825 case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7828 esac
7829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7830 $as_echo "$ac_try_echo") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7832 ac_status=$?
7833 grep -v '^ *+' conftest.er1 >conftest.err
7834 rm -f conftest.er1
7835 cat conftest.err >&5
7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.$ac_objext; then
7841 emacs_cv_speed_t=yes
7842 else
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 emacs_cv_speed_t=no
7847 fi
7848
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 fi
7851 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7852 $as_echo "$emacs_cv_speed_t" >&6; }
7853 if test $emacs_cv_speed_t = yes; then
7854
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_SPEED_T 1
7857 _ACEOF
7858
7859 fi
7860
7861 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7862 $as_echo_n "checking for struct timeval... " >&6; }
7863 if test "${emacs_cv_struct_timeval+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7865 else
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #ifdef TIME_WITH_SYS_TIME
7873 #include <sys/time.h>
7874 #include <time.h>
7875 #else
7876 #ifdef HAVE_SYS_TIME_H
7877 #include <sys/time.h>
7878 #else
7879 #include <time.h>
7880 #endif
7881 #endif
7882 int
7883 main ()
7884 {
7885 static struct timeval x; x.tv_sec = x.tv_usec;
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 emacs_cv_struct_timeval=yes
7909 else
7910 $as_echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 emacs_cv_struct_timeval=no
7914 fi
7915
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 fi
7918 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7919 $as_echo "$emacs_cv_struct_timeval" >&6; }
7920 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7921 if test $emacs_cv_struct_timeval = yes; then
7922
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_TIMEVAL 1
7925 _ACEOF
7926
7927 fi
7928
7929 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7930 $as_echo_n "checking for struct exception... " >&6; }
7931 if test "${emacs_cv_struct_exception+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7933 else
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 #include <math.h>
7941 int
7942 main ()
7943 {
7944 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7945 ;
7946 return 0;
7947 }
7948 _ACEOF
7949 rm -f conftest.$ac_objext
7950 if { (ac_try="$ac_compile"
7951 case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954 esac
7955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7956 $as_echo "$ac_try_echo") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7958 ac_status=$?
7959 grep -v '^ *+' conftest.er1 >conftest.err
7960 rm -f conftest.er1
7961 cat conftest.err >&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7967 emacs_cv_struct_exception=yes
7968 else
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 emacs_cv_struct_exception=no
7973 fi
7974
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 fi
7977 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7978 $as_echo "$emacs_cv_struct_exception" >&6; }
7979 HAVE_EXCEPTION=$emacs_cv_struct_exception
7980 if test $emacs_cv_struct_exception != yes; then
7981
7982 cat >>confdefs.h <<\_ACEOF
7983 #define NO_MATHERR 1
7984 _ACEOF
7985
7986 fi
7987
7988
7989 for ac_header in sys/socket.h
7990 do
7991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7994 $as_echo_n "checking for $ac_header... " >&6; }
7995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7996 $as_echo_n "(cached) " >&6
7997 fi
7998 ac_res=`eval 'as_val=${'$as_ac_Header'}
7999 $as_echo "$as_val"'`
8000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8001 $as_echo "$ac_res" >&6; }
8002 else
8003 # Is the header compilable?
8004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8005 $as_echo_n "checking $ac_header usability... " >&6; }
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #include <$ac_header>
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_header_compiler=yes
8034 else
8035 $as_echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 ac_header_compiler=no
8039 fi
8040
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8043 $as_echo "$ac_header_compiler" >&6; }
8044
8045 # Is the header present?
8046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8047 $as_echo_n "checking $ac_header presence... " >&6; }
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <$ac_header>
8055 _ACEOF
8056 if { (ac_try="$ac_cpp conftest.$ac_ext"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8064 ac_status=$?
8065 grep -v '^ *+' conftest.er1 >conftest.err
8066 rm -f conftest.er1
8067 cat conftest.err >&5
8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } >/dev/null && {
8070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8072 }; then
8073 ac_header_preproc=yes
8074 else
8075 $as_echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ac_header_preproc=no
8079 fi
8080
8081 rm -f conftest.err conftest.$ac_ext
8082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8083 $as_echo "$ac_header_preproc" >&6; }
8084
8085 # So? What about this header?
8086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8087 yes:no: )
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8092 ac_header_preproc=yes
8093 ;;
8094 no:yes:* )
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8107
8108 ;;
8109 esac
8110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 $as_echo_n "checking for $ac_header... " >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 $as_echo_n "(cached) " >&6
8114 else
8115 eval "$as_ac_Header=\$ac_header_preproc"
8116 fi
8117 ac_res=`eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120 $as_echo "$ac_res" >&6; }
8121
8122 fi
8123 if test `eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'` = yes; then
8125 cat >>confdefs.h <<_ACEOF
8126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127 _ACEOF
8128
8129 fi
8130
8131 done
8132
8133
8134 for ac_header in net/if.h
8135 do
8136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8138 $as_echo_n "checking for $ac_header... " >&6; }
8139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8140 $as_echo_n "(cached) " >&6
8141 else
8142 cat >conftest.$ac_ext <<_ACEOF
8143 /* confdefs.h. */
8144 _ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 $ac_includes_default
8149 #if HAVE_SYS_SOCKET_H
8150 #include <sys/socket.h>
8151 #endif
8152
8153 #include <$ac_header>
8154 _ACEOF
8155 rm -f conftest.$ac_objext
8156 if { (ac_try="$ac_compile"
8157 case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160 esac
8161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8162 $as_echo "$ac_try_echo") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 eval "$as_ac_Header=yes"
8174 else
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 eval "$as_ac_Header=no"
8179 fi
8180
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 fi
8183 ac_res=`eval 'as_val=${'$as_ac_Header'}
8184 $as_echo "$as_val"'`
8185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8186 $as_echo "$ac_res" >&6; }
8187 if test `eval 'as_val=${'$as_ac_Header'}
8188 $as_echo "$as_val"'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8191 _ACEOF
8192
8193 fi
8194
8195 done
8196
8197
8198 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8199 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8200 if test "${ac_cv_struct_tm+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <sys/types.h>
8210 #include <time.h>
8211
8212 int
8213 main ()
8214 {
8215 struct tm tm;
8216 int *p = &tm.tm_sec;
8217 return !p;
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8224 case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227 esac
8228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.$ac_objext; then
8240 ac_cv_struct_tm=time.h
8241 else
8242 $as_echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_struct_tm=sys/time.h
8246 fi
8247
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 fi
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8251 $as_echo "$ac_cv_struct_tm" >&6; }
8252 if test $ac_cv_struct_tm = sys/time.h; then
8253
8254 cat >>confdefs.h <<\_ACEOF
8255 #define TM_IN_SYS_TIME 1
8256 _ACEOF
8257
8258 fi
8259
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8261 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8262 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h. */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <sys/types.h>
8272 #include <$ac_cv_struct_tm>
8273
8274
8275 int
8276 main ()
8277 {
8278 static struct tm ac_aggr;
8279 if (ac_aggr.tm_zone)
8280 return 0;
8281 ;
8282 return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8290 esac
8291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8292 $as_echo "$ac_try_echo") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_tm_tm_zone=yes
8304 else
8305 $as_echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8315 #include <$ac_cv_struct_tm>
8316
8317
8318 int
8319 main ()
8320 {
8321 static struct tm ac_aggr;
8322 if (sizeof ac_aggr.tm_zone)
8323 return 0;
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8330 case "(($ac_try" in
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8333 esac
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_tm_tm_zone=yes
8347 else
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 ac_cv_member_struct_tm_tm_zone=no
8352 fi
8353
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8360 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8361 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_STRUCT_TM_TM_ZONE 1
8365 _ACEOF
8366
8367
8368 fi
8369
8370 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8371
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_TM_ZONE 1
8374 _ACEOF
8375
8376 else
8377 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8378 $as_echo_n "checking whether tzname is declared... " >&6; }
8379 if test "${ac_cv_have_decl_tzname+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <time.h>
8389
8390 int
8391 main ()
8392 {
8393 #ifndef tzname
8394 (void) tzname;
8395 #endif
8396
8397 ;
8398 return 0;
8399 }
8400 _ACEOF
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8403 case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406 esac
8407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8408 $as_echo "$ac_try_echo") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_have_decl_tzname=yes
8420 else
8421 $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 ac_cv_have_decl_tzname=no
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8430 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8431 if test $ac_cv_have_decl_tzname = yes; then
8432
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_TZNAME 1
8435 _ACEOF
8436
8437
8438 else
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 0
8441 _ACEOF
8442
8443
8444 fi
8445
8446
8447 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8448 $as_echo_n "checking for tzname... " >&6; }
8449 if test "${ac_cv_var_tzname+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8451 else
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 #include <time.h>
8459 #if !HAVE_DECL_TZNAME
8460 extern char *tzname[];
8461 #endif
8462
8463 int
8464 main ()
8465 {
8466 return tzname[0][0];
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8473 case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476 esac
8477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest$ac_exeext && {
8489 test "$cross_compiling" = yes ||
8490 $as_test_x conftest$ac_exeext
8491 }; then
8492 ac_cv_var_tzname=yes
8493 else
8494 $as_echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_cv_var_tzname=no
8498 fi
8499
8500 rm -rf conftest.dSYM
8501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8502 conftest$ac_exeext conftest.$ac_ext
8503 fi
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8505 $as_echo "$ac_cv_var_tzname" >&6; }
8506 if test $ac_cv_var_tzname = yes; then
8507
8508 cat >>confdefs.h <<\_ACEOF
8509 #define HAVE_TZNAME 1
8510 _ACEOF
8511
8512 fi
8513 fi
8514
8515 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8516 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8517 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8518 $as_echo_n "(cached) " >&6
8519 else
8520 cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h. */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 #include <time.h>
8527
8528 int
8529 main ()
8530 {
8531 static struct tm ac_aggr;
8532 if (ac_aggr.tm_gmtoff)
8533 return 0;
8534 ;
8535 return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8540 case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543 esac
8544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8545 $as_echo "$ac_try_echo") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_member_struct_tm_tm_gmtoff=yes
8557 else
8558 $as_echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h. */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 #include <time.h>
8568
8569 int
8570 main ()
8571 {
8572 static struct tm ac_aggr;
8573 if (sizeof ac_aggr.tm_gmtoff)
8574 return 0;
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8581 case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584 esac
8585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587 (eval "$ac_compile") 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest.$ac_objext; then
8597 ac_cv_member_struct_tm_tm_gmtoff=yes
8598 else
8599 $as_echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 ac_cv_member_struct_tm_tm_gmtoff=no
8603 fi
8604
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 fi
8607
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8611 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8612 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8613
8614 cat >>confdefs.h <<\_ACEOF
8615 #define HAVE_TM_GMTOFF 1
8616 _ACEOF
8617
8618 fi
8619
8620 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8621 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8622 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8623 $as_echo_n "(cached) " >&6
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #if HAVE_SYS_SOCKET_H
8633 #include <sys/socket.h>
8634 #endif
8635 #if HAVE_NET_IF_H
8636 #include <net/if.h>
8637 #endif
8638
8639 int
8640 main ()
8641 {
8642 static struct ifreq ac_aggr;
8643 if (ac_aggr.ifr_flags)
8644 return 0;
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8651 case "(($ac_try" in
8652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8654 esac
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_member_struct_ifreq_ifr_flags=yes
8668 else
8669 $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h. */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #if HAVE_SYS_SOCKET_H
8680 #include <sys/socket.h>
8681 #endif
8682 #if HAVE_NET_IF_H
8683 #include <net/if.h>
8684 #endif
8685
8686 int
8687 main ()
8688 {
8689 static struct ifreq ac_aggr;
8690 if (sizeof ac_aggr.ifr_flags)
8691 return 0;
8692 ;
8693 return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701 esac
8702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8703 $as_echo "$ac_try_echo") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_flags=yes
8715 else
8716 $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 ac_cv_member_struct_ifreq_ifr_flags=no
8720 fi
8721
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8728 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8730
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8733 _ACEOF
8734
8735
8736 fi
8737 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8738 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8739 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 #if HAVE_SYS_SOCKET_H
8750 #include <sys/socket.h>
8751 #endif
8752 #if HAVE_NET_IF_H
8753 #include <net/if.h>
8754 #endif
8755
8756 int
8757 main ()
8758 {
8759 static struct ifreq ac_aggr;
8760 if (ac_aggr.ifr_hwaddr)
8761 return 0;
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8768 case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771 esac
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8785 else
8786 $as_echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h. */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 #if HAVE_SYS_SOCKET_H
8797 #include <sys/socket.h>
8798 #endif
8799 #if HAVE_NET_IF_H
8800 #include <net/if.h>
8801 #endif
8802
8803 int
8804 main ()
8805 {
8806 static struct ifreq ac_aggr;
8807 if (sizeof ac_aggr.ifr_hwaddr)
8808 return 0;
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8815 case "(($ac_try" in
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8818 esac
8819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8820 $as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
8831 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8832 else
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8837 fi
8838
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 fi
8844 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8845 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8846 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8847
8848 cat >>confdefs.h <<_ACEOF
8849 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8850 _ACEOF
8851
8852
8853 fi
8854 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8855 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8856 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8857 $as_echo_n "(cached) " >&6
8858 else
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 #if HAVE_SYS_SOCKET_H
8867 #include <sys/socket.h>
8868 #endif
8869 #if HAVE_NET_IF_H
8870 #include <net/if.h>
8871 #endif
8872
8873 int
8874 main ()
8875 {
8876 static struct ifreq ac_aggr;
8877 if (ac_aggr.ifr_netmask)
8878 return 0;
8879 ;
8880 return 0;
8881 }
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_member_struct_ifreq_ifr_netmask=yes
8902 else
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8913 #if HAVE_SYS_SOCKET_H
8914 #include <sys/socket.h>
8915 #endif
8916 #if HAVE_NET_IF_H
8917 #include <net/if.h>
8918 #endif
8919
8920 int
8921 main ()
8922 {
8923 static struct ifreq ac_aggr;
8924 if (sizeof ac_aggr.ifr_netmask)
8925 return 0;
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8932 case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935 esac
8936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_c_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
8948 ac_cv_member_struct_ifreq_ifr_netmask=yes
8949 else
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 ac_cv_member_struct_ifreq_ifr_netmask=no
8954 fi
8955
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 fi
8958
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 fi
8961 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8962 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8963 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8964
8965 cat >>confdefs.h <<_ACEOF
8966 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8967 _ACEOF
8968
8969
8970 fi
8971 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8972 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8973 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8975 else
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8985 #endif
8986 #if HAVE_NET_IF_H
8987 #include <net/if.h>
8988 #endif
8989
8990 int
8991 main ()
8992 {
8993 static struct ifreq ac_aggr;
8994 if (ac_aggr.ifr_broadaddr)
8995 return 0;
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext
9001 if { (ac_try="$ac_compile"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9019 else
9020 $as_echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9030 #if HAVE_SYS_SOCKET_H
9031 #include <sys/socket.h>
9032 #endif
9033 #if HAVE_NET_IF_H
9034 #include <net/if.h>
9035 #endif
9036
9037 int
9038 main ()
9039 {
9040 static struct ifreq ac_aggr;
9041 if (sizeof ac_aggr.ifr_broadaddr)
9042 return 0;
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9049 case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9052 esac
9053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9054 $as_echo "$ac_try_echo") >&5
9055 (eval "$ac_compile") 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && {
9062 test -z "$ac_c_werror_flag" ||
9063 test ! -s conftest.err
9064 } && test -s conftest.$ac_objext; then
9065 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9066 else
9067 $as_echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9071 fi
9072
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 fi
9075
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 fi
9078 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9079 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9080 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9081
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9084 _ACEOF
9085
9086
9087 fi
9088 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9089 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9090 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #if HAVE_SYS_SOCKET_H
9101 #include <sys/socket.h>
9102 #endif
9103 #if HAVE_NET_IF_H
9104 #include <net/if.h>
9105 #endif
9106
9107 int
9108 main ()
9109 {
9110 static struct ifreq ac_aggr;
9111 if (ac_aggr.ifr_addr)
9112 return 0;
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 rm -f conftest.$ac_objext
9118 if { (ac_try="$ac_compile"
9119 case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122 esac
9123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9124 $as_echo "$ac_try_echo") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_member_struct_ifreq_ifr_addr=yes
9136 else
9137 $as_echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 #if HAVE_SYS_SOCKET_H
9148 #include <sys/socket.h>
9149 #endif
9150 #if HAVE_NET_IF_H
9151 #include <net/if.h>
9152 #endif
9153
9154 int
9155 main ()
9156 {
9157 static struct ifreq ac_aggr;
9158 if (sizeof ac_aggr.ifr_addr)
9159 return 0;
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 rm -f conftest.$ac_objext
9165 if { (ac_try="$ac_compile"
9166 case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169 esac
9170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.$ac_objext; then
9182 ac_cv_member_struct_ifreq_ifr_addr=yes
9183 else
9184 $as_echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9186
9187 ac_cv_member_struct_ifreq_ifr_addr=no
9188 fi
9189
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 fi
9192
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9196 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9197 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9198
9199 cat >>confdefs.h <<_ACEOF
9200 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9201 _ACEOF
9202
9203
9204 fi
9205
9206
9207
9208 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9209 $as_echo_n "checking for function prototypes... " >&6; }
9210 if test "$ac_cv_prog_cc_c89" != no; then
9211 { $as_echo "$as_me:$LINENO: result: yes" >&5
9212 $as_echo "yes" >&6; }
9213
9214 cat >>confdefs.h <<\_ACEOF
9215 #define PROTOTYPES 1
9216 _ACEOF
9217
9218
9219 cat >>confdefs.h <<\_ACEOF
9220 #define __PROTOTYPES 1
9221 _ACEOF
9222
9223 else
9224 { $as_echo "$as_me:$LINENO: result: no" >&5
9225 $as_echo "no" >&6; }
9226 fi
9227
9228 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9229 $as_echo_n "checking for working volatile... " >&6; }
9230 if test "${ac_cv_c_volatile+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239
9240 int
9241 main ()
9242 {
9243
9244 volatile int x;
9245 int * volatile y = (int *) 0;
9246 return !x && !y;
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext
9252 if { (ac_try="$ac_compile"
9253 case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258 $as_echo "$ac_try_echo") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_cv_c_volatile=yes
9270 else
9271 $as_echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 ac_cv_c_volatile=no
9275 fi
9276
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 fi
9279 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9280 $as_echo "$ac_cv_c_volatile" >&6; }
9281 if test $ac_cv_c_volatile = no; then
9282
9283 cat >>confdefs.h <<\_ACEOF
9284 #define volatile /**/
9285 _ACEOF
9286
9287 fi
9288
9289 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9291 if test "${ac_cv_c_const+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9293 else
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300
9301 int
9302 main ()
9303 {
9304 /* FIXME: Include the comments suggested by Paul. */
9305 #ifndef __cplusplus
9306 /* Ultrix mips cc rejects this. */
9307 typedef int charset[2];
9308 const charset cs;
9309 /* SunOS 4.1.1 cc rejects this. */
9310 char const *const *pcpcc;
9311 char **ppc;
9312 /* NEC SVR4.0.2 mips cc rejects this. */
9313 struct point {int x, y;};
9314 static struct point const zero = {0,0};
9315 /* AIX XL C 1.02.0.0 rejects this.
9316 It does not let you subtract one const X* pointer from another in
9317 an arm of an if-expression whose if-part is not a constant
9318 expression */
9319 const char *g = "string";
9320 pcpcc = &g + (g ? g-g : 0);
9321 /* HPUX 7.0 cc rejects these. */
9322 ++pcpcc;
9323 ppc = (char**) pcpcc;
9324 pcpcc = (char const *const *) ppc;
9325 { /* SCO 3.2v4 cc rejects this. */
9326 char *t;
9327 char const *s = 0 ? (char *) 0 : (char const *) 0;
9328
9329 *t++ = 0;
9330 if (s) return 0;
9331 }
9332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9333 int x[] = {25, 17};
9334 const int *foo = &x[0];
9335 ++foo;
9336 }
9337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9338 typedef const int *iptr;
9339 iptr p = 0;
9340 ++p;
9341 }
9342 { /* AIX XL C 1.02.0.0 rejects this saying
9343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9344 struct s { int j; const int *ap[3]; };
9345 struct s *b; b->j = 5;
9346 }
9347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9348 const int foo = 10;
9349 if (!foo) return 0;
9350 }
9351 return !cs[0] && !zero.x;
9352 #endif
9353
9354 ;
9355 return 0;
9356 }
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9360 case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363 esac
9364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9365 $as_echo "$ac_try_echo") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9367 ac_status=$?
9368 grep -v '^ *+' conftest.er1 >conftest.err
9369 rm -f conftest.er1
9370 cat conftest.err >&5
9371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.$ac_objext; then
9376 ac_cv_c_const=yes
9377 else
9378 $as_echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_c_const=no
9382 fi
9383
9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9385 fi
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9387 $as_echo "$ac_cv_c_const" >&6; }
9388 if test $ac_cv_c_const = no; then
9389
9390 cat >>confdefs.h <<\_ACEOF
9391 #define const /**/
9392 _ACEOF
9393
9394 fi
9395
9396 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9397 $as_echo_n "checking for void * support... " >&6; }
9398 if test "${emacs_cv_void_star+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9400 else
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h. */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407
9408 int
9409 main ()
9410 {
9411 void * foo;
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext
9417 if { (ac_try="$ac_compile"
9418 case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421 esac
9422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423 $as_echo "$ac_try_echo") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9434 emacs_cv_void_star=yes
9435 else
9436 $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 emacs_cv_void_star=no
9440 fi
9441
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 fi
9444 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9445 $as_echo "$emacs_cv_void_star" >&6; }
9446 if test $emacs_cv_void_star = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define POINTER_TYPE void
9449 _ACEOF
9450
9451 else
9452 cat >>confdefs.h <<\_ACEOF
9453 #define POINTER_TYPE char
9454 _ACEOF
9455
9456 fi
9457
9458
9459
9460
9461
9462 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9463 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9464 set x ${MAKE-make}
9465 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9466 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9467 $as_echo_n "(cached) " >&6
9468 else
9469 cat >conftest.make <<\_ACEOF
9470 SHELL = /bin/sh
9471 all:
9472 @echo '@@@%%%=$(MAKE)=@@@%%%'
9473 _ACEOF
9474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9475 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9476 *@@@%%%=?*=@@@%%%*)
9477 eval ac_cv_prog_make_${ac_make}_set=yes;;
9478 *)
9479 eval ac_cv_prog_make_${ac_make}_set=no;;
9480 esac
9481 rm -f conftest.make
9482 fi
9483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9484 { $as_echo "$as_me:$LINENO: result: yes" >&5
9485 $as_echo "yes" >&6; }
9486 SET_MAKE=
9487 else
9488 { $as_echo "$as_me:$LINENO: result: no" >&5
9489 $as_echo "no" >&6; }
9490 SET_MAKE="MAKE=${MAKE-make}"
9491 fi
9492
9493
9494 DEPFLAGS=
9495 MKDEPDIR=":"
9496 deps_frag=deps.mk
9497 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9498 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9499 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9500 HAVE_GNU_MAKE=no
9501 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9502 if test "x$testval" != x; then
9503 HAVE_GNU_MAKE=yes
9504 else
9505 ac_enable_autodepend=no
9506 fi
9507 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9508 $as_echo "$HAVE_GNU_MAKE" >&6; }
9509 if test $HAVE_GNU_MAKE = yes; then
9510 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9511 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9512 SAVE_CFLAGS="$CFLAGS"
9513 CFLAGS="$CFLAGS -MMD -MF deps.d"
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520
9521 int
9522 main ()
9523 {
9524
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.$ac_objext; then
9547 :
9548 else
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_enable_autodepend=no
9553 fi
9554
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 CFLAGS="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend=no
9558 rm -rf deps.d
9559 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9561 fi
9562 if test $ac_enable_autodepend = yes; then
9563 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9564 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR}'
9565 deps_frag=autodeps.mk
9566 fi
9567 fi
9568 deps_frag=$srcdir/src/$deps_frag
9569
9570
9571
9572
9573
9574 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then
9577 $as_echo_n "(cached) " >&6
9578 else
9579 ac_cv_sys_long_file_names=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9586 # /var/tmp likewise
9587 # /usr/tmp likewise
9588 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9591 case $ac_dir in #(
9592 . | /* | ?:[\\/]*) ;; #(
9593 *) continue;;
9594 esac
9595 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9596 ac_xdir=$ac_dir/cf$$
9597 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9598 ac_tf1=$ac_xdir/conftest9012345
9599 ac_tf2=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names=no
9602 rm -f -r "$ac_xdir" 2>/dev/null
9603 test $ac_cv_sys_long_file_names = no && break
9604 done
9605 fi
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9609
9610 cat >>confdefs.h <<\_ACEOF
9611 #define HAVE_LONG_FILE_NAMES 1
9612 _ACEOF
9613
9614 fi
9615
9616
9617 #### Choose a window system.
9618
9619 { $as_echo "$as_me:$LINENO: checking for X" >&5
9620 $as_echo_n "checking for X... " >&6; }
9621
9622
9623 # Check whether --with-x was given.
9624 if test "${with_x+set}" = set; then
9625 withval=$with_x;
9626 fi
9627
9628 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9629 if test "x$with_x" = xno; then
9630 # The user explicitly disabled X.
9631 have_x=disabled
9632 else
9633 case $x_includes,$x_libraries in #(
9634 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9635 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9636 { (exit 1); exit 1; }; };; #(
9637 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9638 $as_echo_n "(cached) " >&6
9639 else
9640 # One or both of the vars are not set, and there is no cached value.
9641 ac_x_includes=no ac_x_libraries=no
9642 rm -f -r conftest.dir
9643 if mkdir conftest.dir; then
9644 cd conftest.dir
9645 cat >Imakefile <<'_ACEOF'
9646 incroot:
9647 @echo incroot='${INCROOT}'
9648 usrlibdir:
9649 @echo usrlibdir='${USRLIBDIR}'
9650 libdir:
9651 @echo libdir='${LIBDIR}'
9652 _ACEOF
9653 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9655 for ac_var in incroot usrlibdir libdir; do
9656 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9657 done
9658 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9659 for ac_extension in a so sl dylib la dll; do
9660 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9661 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9662 ac_im_usrlibdir=$ac_im_libdir; break
9663 fi
9664 done
9665 # Screen out bogus values from the imake configuration. They are
9666 # bogus both because they are the default anyway, and because
9667 # using them would break gcc on systems where it needs fixed includes.
9668 case $ac_im_incroot in
9669 /usr/include) ac_x_includes= ;;
9670 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9671 esac
9672 case $ac_im_usrlibdir in
9673 /usr/lib | /lib) ;;
9674 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9675 esac
9676 fi
9677 cd ..
9678 rm -f -r conftest.dir
9679 fi
9680
9681 # Standard set of common directories for X headers.
9682 # Check X11 before X11Rn because it is often a symlink to the current release.
9683 ac_x_header_dirs='
9684 /usr/X11/include
9685 /usr/X11R6/include
9686 /usr/X11R5/include
9687 /usr/X11R4/include
9688
9689 /usr/include/X11
9690 /usr/include/X11R6
9691 /usr/include/X11R5
9692 /usr/include/X11R4
9693
9694 /usr/local/X11/include
9695 /usr/local/X11R6/include
9696 /usr/local/X11R5/include
9697 /usr/local/X11R4/include
9698
9699 /usr/local/include/X11
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9703
9704 /usr/X386/include
9705 /usr/x386/include
9706 /usr/XFree86/include/X11
9707
9708 /usr/include
9709 /usr/local/include
9710 /usr/unsupported/include
9711 /usr/athena/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9714
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9717
9718 if test "$ac_x_includes" = no; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9728 _ACEOF
9729 if { (ac_try="$ac_cpp conftest.$ac_ext"
9730 case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733 esac
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null && {
9743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 }; then
9746 # We can compile using X headers with no special include directory.
9747 ac_x_includes=
9748 else
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 for ac_dir in $ac_x_header_dirs; do
9753 if test -r "$ac_dir/X11/Xlib.h"; then
9754 ac_x_includes=$ac_dir
9755 break
9756 fi
9757 done
9758 fi
9759
9760 rm -f conftest.err conftest.$ac_ext
9761 fi # $ac_x_includes = no
9762
9763 if test "$ac_x_libraries" = no; then
9764 # Check for the libraries.
9765 # See if we find them without any special options.
9766 # Don't add to $LIBS permanently.
9767 ac_save_LIBS=$LIBS
9768 LIBS="-lX11 $LIBS"
9769 cat >conftest.$ac_ext <<_ACEOF
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <X11/Xlib.h>
9776 int
9777 main ()
9778 {
9779 XrmInitialize ()
9780 ;
9781 return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9786 case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789 esac
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest$ac_exeext
9804 }; then
9805 LIBS=$ac_save_LIBS
9806 # We can link X programs with no special library path.
9807 ac_x_libraries=
9808 else
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 LIBS=$ac_save_LIBS
9813 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9814 do
9815 # Don't even attempt the hair of trying to link an X program!
9816 for ac_extension in a so sl dylib la dll; do
9817 if test -r "$ac_dir/libX11.$ac_extension"; then
9818 ac_x_libraries=$ac_dir
9819 break 2
9820 fi
9821 done
9822 done
9823 fi
9824
9825 rm -rf conftest.dSYM
9826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827 conftest$ac_exeext conftest.$ac_ext
9828 fi # $ac_x_libraries = no
9829
9830 case $ac_x_includes,$ac_x_libraries in #(
9831 no,* | *,no | *\'*)
9832 # Didn't find X, or a directory has "'" in its name.
9833 ac_cv_have_x="have_x=no";; #(
9834 *)
9835 # Record where we found X for the cache.
9836 ac_cv_have_x="have_x=yes\
9837 ac_x_includes='$ac_x_includes'\
9838 ac_x_libraries='$ac_x_libraries'"
9839 esac
9840 fi
9841 ;; #(
9842 *) have_x=yes;;
9843 esac
9844 eval "$ac_cv_have_x"
9845 fi # $with_x != no
9846
9847 if test "$have_x" != yes; then
9848 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9849 $as_echo "$have_x" >&6; }
9850 no_x=yes
9851 else
9852 # If each of the values was on the command line, it overrides each guess.
9853 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9854 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9855 # Update the cache value to reflect the command line values.
9856 ac_cv_have_x="have_x=yes\
9857 ac_x_includes='$x_includes'\
9858 ac_x_libraries='$x_libraries'"
9859 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9860 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9861 fi
9862
9863 if test "$no_x" = yes; then
9864 window_system=none
9865 else
9866 window_system=x11
9867 fi
9868
9869 ## Workaround for bug in autoconf <= 2.62.
9870 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9871 ## No need to do anything special for these standard directories.
9872 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9873
9874 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9875
9876 fi
9877
9878 LD_SWITCH_X_SITE_AUX=
9879 LD_SWITCH_X_SITE_AUX_RPATH=
9880 if test "${x_libraries}" != NONE; then
9881 if test -n "${x_libraries}"; then
9882 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9883 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9884 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9885 fi
9886 x_default_search_path=""
9887 x_search_path=${x_libraries}
9888 if test -z "${x_search_path}"; then
9889 x_search_path=/usr/lib
9890 fi
9891 for x_library in `echo ${x_search_path}: | \
9892 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9893 x_search_path="\
9894 ${x_library}/X11/%L/%T/%N%C%S:\
9895 ${x_library}/X11/%l/%T/%N%C%S:\
9896 ${x_library}/X11/%T/%N%C%S:\
9897 ${x_library}/X11/%L/%T/%N%S:\
9898 ${x_library}/X11/%l/%T/%N%S:\
9899 ${x_library}/X11/%T/%N%S"
9900 if test x"${x_default_search_path}" = x; then
9901 x_default_search_path=${x_search_path}
9902 else
9903 x_default_search_path="${x_search_path}:${x_default_search_path}"
9904 fi
9905 done
9906 fi
9907
9908
9909
9910 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9911 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9912 fi
9913
9914 if test x"${x_includes}" = x; then
9915 bitmapdir=/usr/include/X11/bitmaps
9916 else
9917 # accumulate include directories that have X11 bitmap subdirectories
9918 bmd_acc="dummyval"
9919 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9920 if test -d "${bmd}/X11/bitmaps"; then
9921 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9922 fi
9923 if test -d "${bmd}/bitmaps"; then
9924 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9925 fi
9926 done
9927 if test ${bmd_acc} != "dummyval"; then
9928 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9929 fi
9930 fi
9931
9932 HAVE_NS=no
9933 NS_IMPL_COCOA=no
9934 NS_IMPL_GNUSTEP=no
9935 NS_IMPL_GNUSTEP_INC=
9936 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS=
9937 tmp_CPPFLAGS="$CPPFLAGS"
9938 tmp_CFLAGS="$CFLAGS"
9939 CPPFLAGS="$CPPFLAGS -x objective-c"
9940 CFLAGS="$CFLAGS -x objective-c"
9941 TEMACS_LDFLAGS2="\${LDFLAGS}"
9942 if test "${with_ns}" != no; then
9943 if test "${opsys}" = darwin; then
9944 NS_IMPL_COCOA=yes
9945 ns_appdir=`pwd`/nextstep/Emacs.app/
9946 ns_appbindir=${ns_appdir}Contents/MacOS/
9947 ns_appresdir=${ns_appdir}Contents/Resources
9948 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9949 elif test -f $GNUSTEP_CONFIG_FILE; then
9950 NS_IMPL_GNUSTEP=yes
9951 ns_appdir=`pwd`/nextstep/Emacs.app/
9952 ns_appbindir=${ns_appdir}
9953 ns_appresdir=${ns_appdir}Resources
9954 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9955 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9956 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9957 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9958 ## Pull in stuff from GNUstep-make.
9959 ## FIXME? Cleaner to use AC_SUBST_FILE for this?
9960 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9961 GUI_LIB=gnu
9962 include $GNUSTEP_MAKEFILES/Additional/base.make
9963 include $GNUSTEP_MAKEFILES/Additional/gui.make
9964 shared=no
9965 "
9966 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9967 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9968 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9969 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9970 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9971 LIB_STANDARD=
9972 START_FILES=
9973 TEMACS_LDFLAGS2=
9974 fi
9975 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9976 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9977 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9978 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9979 $as_echo_n "(cached) " >&6
9980 fi
9981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9982 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9983 else
9984 # Is the header compilable?
9985 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9986 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 #include <AppKit/AppKit.h>
9995 _ACEOF
9996 rm -f conftest.$ac_objext
9997 if { (ac_try="$ac_compile"
9998 case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004 (eval "$ac_compile") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest.$ac_objext; then
10014 ac_header_compiler=yes
10015 else
10016 $as_echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_header_compiler=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10024 $as_echo "$ac_header_compiler" >&6; }
10025
10026 # Is the header present?
10027 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10028 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10029 cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h. */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10035 #include <AppKit/AppKit.h>
10036 _ACEOF
10037 if { (ac_try="$ac_cpp conftest.$ac_ext"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041 esac
10042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$ac_try_echo") >&5
10044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } >/dev/null && {
10051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 }; then
10054 ac_header_preproc=yes
10055 else
10056 $as_echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_header_preproc=no
10060 fi
10061
10062 rm -f conftest.err conftest.$ac_ext
10063 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10064 $as_echo "$ac_header_preproc" >&6; }
10065
10066 # So? What about this header?
10067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10068 yes:no: )
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10073 ac_header_preproc=yes
10074 ;;
10075 no:yes:* )
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10079 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10081 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10083 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10085 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10087 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10088
10089 ;;
10090 esac
10091 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10092 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10093 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10094 $as_echo_n "(cached) " >&6
10095 else
10096 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10097 fi
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10099 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10100
10101 fi
10102 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10103 HAVE_NS=yes
10104 else
10105 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10106 files are missing or cannot be compiled." >&5
10107 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10108 files are missing or cannot be compiled." >&2;}
10109 { (exit 1); exit 1; }; }
10110 fi
10111
10112
10113 NS_HAVE_NSINTEGER=yes
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h. */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Foundation/NSObjCRuntime.h>
10121 int
10122 main ()
10123 {
10124 NSInteger i;
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10147 ns_have_nsinteger=yes
10148 else
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ns_have_nsinteger=no
10153 fi
10154
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 if test $ns_have_nsinteger = no; then
10157 NS_HAVE_NSINTEGER=no
10158 fi
10159 fi
10160
10161
10162
10163
10164 ns_frag=/dev/null
10165 NS_OBJ=
10166 NS_SUPPORT=
10167 if test "${HAVE_NS}" = yes; then
10168 window_system=nextstep
10169 with_xft=no
10170 # set up packaging dirs
10171 exec_prefix=${ns_appbindir}
10172 libexecdir=${ns_appbindir}/libexec
10173 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10174 prefix=${ns_appresdir}
10175 fi
10176 ns_frag=$srcdir/src/ns.mk
10177 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10178 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10179 fi
10180 CFLAGS="$tmp_CFLAGS"
10181 CPPFLAGS="$tmp_CPPFLAGS"
10182
10183
10184
10185
10186
10187 case "${window_system}" in
10188 x11 )
10189 HAVE_X_WINDOWS=yes
10190 HAVE_X11=yes
10191 case "${with_x_toolkit}" in
10192 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10193 motif ) USE_X_TOOLKIT=MOTIF ;;
10194 gtk ) with_gtk=yes
10195 USE_X_TOOLKIT=none ;;
10196 no ) USE_X_TOOLKIT=none ;;
10197 * ) USE_X_TOOLKIT=maybe ;;
10198 esac
10199 ;;
10200 nextstep | none )
10201 HAVE_X_WINDOWS=no
10202 HAVE_X11=no
10203 USE_X_TOOLKIT=none
10204 ;;
10205 esac
10206
10207 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10208 # Extract the first word of "X", so it can be a program name with args.
10209 set dummy X; ac_word=$2
10210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10213 $as_echo_n "(cached) " >&6
10214 else
10215 if test -n "$HAVE_XSERVER"; then
10216 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10217 else
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10220 do
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_prog_HAVE_XSERVER="true"
10226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10228 fi
10229 done
10230 done
10231 IFS=$as_save_IFS
10232
10233 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10234 fi
10235 fi
10236 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10237 if test -n "$HAVE_XSERVER"; then
10238 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10239 $as_echo "$HAVE_XSERVER" >&6; }
10240 else
10241 { $as_echo "$as_me:$LINENO: result: no" >&5
10242 $as_echo "no" >&6; }
10243 fi
10244
10245
10246 if test "$HAVE_XSERVER" = true ||
10247 test -n "$DISPLAY" ||
10248 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10249 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10250 were found. You should install the relevant development files for X
10251 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10252 sure you have development files for image handling, i.e.
10253 tiff, gif, jpeg, png and xpm.
10254 If you are sure you want Emacs compiled without X window support, pass
10255 --without-x
10256 to configure." >&5
10257 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10258 were found. You should install the relevant development files for X
10259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10260 sure you have development files for image handling, i.e.
10261 tiff, gif, jpeg, png and xpm.
10262 If you are sure you want Emacs compiled without X window support, pass
10263 --without-x
10264 to configure." >&2;}
10265 { (exit 1); exit 1; }; }
10266 fi
10267 fi
10268
10269 ### If we're using X11, we should use the X menu package.
10270 HAVE_MENUS=no
10271 case ${HAVE_X11} in
10272 yes ) HAVE_MENUS=yes ;;
10273 esac
10274
10275 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10276 # Assume not, until told otherwise.
10277 GNU_MALLOC=yes
10278 doug_lea_malloc=yes
10279 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10280 $as_echo_n "checking for malloc_get_state... " >&6; }
10281 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10282 $as_echo_n "(cached) " >&6
10283 else
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10292 #define malloc_get_state innocuous_malloc_get_state
10293
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char malloc_get_state (); below.
10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10297 <limits.h> exists even on freestanding compilers. */
10298
10299 #ifdef __STDC__
10300 # include <limits.h>
10301 #else
10302 # include <assert.h>
10303 #endif
10304
10305 #undef malloc_get_state
10306
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char malloc_get_state ();
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10318 choke me
10319 #endif
10320
10321 int
10322 main ()
10323 {
10324 return malloc_get_state ();
10325 ;
10326 return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334 esac
10335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10336 $as_echo "$ac_try_echo") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext && {
10347 test "$cross_compiling" = yes ||
10348 $as_test_x conftest$ac_exeext
10349 }; then
10350 ac_cv_func_malloc_get_state=yes
10351 else
10352 $as_echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 ac_cv_func_malloc_get_state=no
10356 fi
10357
10358 rm -rf conftest.dSYM
10359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10360 conftest$ac_exeext conftest.$ac_ext
10361 fi
10362 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10363 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10364 if test $ac_cv_func_malloc_get_state = yes; then
10365 :
10366 else
10367 doug_lea_malloc=no
10368 fi
10369
10370 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10371 $as_echo_n "checking for malloc_set_state... " >&6; }
10372 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10373 $as_echo_n "(cached) " >&6
10374 else
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define malloc_set_state innocuous_malloc_set_state
10384
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char malloc_set_state (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10389
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10395
10396 #undef malloc_set_state
10397
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char malloc_set_state ();
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10409 choke me
10410 #endif
10411
10412 int
10413 main ()
10414 {
10415 return malloc_set_state ();
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_link") 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest$ac_exeext && {
10438 test "$cross_compiling" = yes ||
10439 $as_test_x conftest$ac_exeext
10440 }; then
10441 ac_cv_func_malloc_set_state=yes
10442 else
10443 $as_echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_cv_func_malloc_set_state=no
10447 fi
10448
10449 rm -rf conftest.dSYM
10450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10451 conftest$ac_exeext conftest.$ac_ext
10452 fi
10453 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10454 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10455 if test $ac_cv_func_malloc_set_state = yes; then
10456 :
10457 else
10458 doug_lea_malloc=no
10459 fi
10460
10461 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10462 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10463 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10464 $as_echo_n "(cached) " >&6
10465 else
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h. */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 extern void (* __after_morecore_hook)();
10473 int
10474 main ()
10475 {
10476 __after_morecore_hook = 0
10477 ;
10478 return 0;
10479 }
10480 _ACEOF
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486 esac
10487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_link") 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest$ac_exeext && {
10499 test "$cross_compiling" = yes ||
10500 $as_test_x conftest$ac_exeext
10501 }; then
10502 emacs_cv_var___after_morecore_hook=yes
10503 else
10504 $as_echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507 emacs_cv_var___after_morecore_hook=no
10508 fi
10509
10510 rm -rf conftest.dSYM
10511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512 conftest$ac_exeext conftest.$ac_ext
10513 fi
10514 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10515 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10516 if test $emacs_cv_var___after_morecore_hook = no; then
10517 doug_lea_malloc=no
10518 fi
10519
10520 if test "${system_malloc}" = "yes"; then
10521 GNU_MALLOC=no
10522 GNU_MALLOC_reason="
10523 (The GNU allocators don't work with this system configuration.)"
10524 GMALLOC_OBJ=
10525 VMLIMIT_OBJ=
10526 else
10527 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10528 VMLIMIT_OBJ=vm-limit.o
10529 fi
10530
10531
10532
10533 if test "$doug_lea_malloc" = "yes" ; then
10534 if test "$GNU_MALLOC" = yes ; then
10535 GNU_MALLOC_reason="
10536 (Using Doug Lea's new malloc from the GNU C Library.)"
10537 fi
10538
10539 cat >>confdefs.h <<\_ACEOF
10540 #define DOUG_LEA_MALLOC 1
10541 _ACEOF
10542
10543
10544 ## Use mmap directly for allocating larger buffers.
10545 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10546 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10547 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10548 case "$opsys" in
10549 gnu*) REL_ALLOC=no ;;
10550 esac
10551 fi
10552
10553 if test x"${REL_ALLOC}" = x; then
10554 REL_ALLOC=${GNU_MALLOC}
10555 fi
10556
10557
10558
10559
10560 for ac_header in stdlib.h unistd.h
10561 do
10562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10565 $as_echo_n "checking for $ac_header... " >&6; }
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 $as_echo_n "(cached) " >&6
10568 fi
10569 ac_res=`eval 'as_val=${'$as_ac_Header'}
10570 $as_echo "$as_val"'`
10571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10572 $as_echo "$ac_res" >&6; }
10573 else
10574 # Is the header compilable?
10575 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10576 $as_echo_n "checking $ac_header usability... " >&6; }
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h. */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 $ac_includes_default
10584 #include <$ac_header>
10585 _ACEOF
10586 rm -f conftest.$ac_objext
10587 if { (ac_try="$ac_compile"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593 $as_echo "$ac_try_echo") >&5
10594 (eval "$ac_compile") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest.$ac_objext; then
10604 ac_header_compiler=yes
10605 else
10606 $as_echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_compiler=no
10610 fi
10611
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10614 $as_echo "$ac_header_compiler" >&6; }
10615
10616 # Is the header present?
10617 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10618 $as_echo_n "checking $ac_header presence... " >&6; }
10619 cat >conftest.$ac_ext <<_ACEOF
10620 /* confdefs.h. */
10621 _ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 #include <$ac_header>
10626 _ACEOF
10627 if { (ac_try="$ac_cpp conftest.$ac_ext"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10633 $as_echo "$ac_try_echo") >&5
10634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } >/dev/null && {
10641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10642 test ! -s conftest.err
10643 }; then
10644 ac_header_preproc=yes
10645 else
10646 $as_echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 ac_header_preproc=no
10650 fi
10651
10652 rm -f conftest.err conftest.$ac_ext
10653 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10654 $as_echo "$ac_header_preproc" >&6; }
10655
10656 # So? What about this header?
10657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10658 yes:no: )
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10663 ac_header_preproc=yes
10664 ;;
10665 no:yes:* )
10666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10667 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10669 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10671 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10673 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10675 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10677 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10678
10679 ;;
10680 esac
10681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 $as_echo_n "checking for $ac_header... " >&6; }
10683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 $as_echo_n "(cached) " >&6
10685 else
10686 eval "$as_ac_Header=\$ac_header_preproc"
10687 fi
10688 ac_res=`eval 'as_val=${'$as_ac_Header'}
10689 $as_echo "$as_val"'`
10690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10691 $as_echo "$ac_res" >&6; }
10692
10693 fi
10694 if test `eval 'as_val=${'$as_ac_Header'}
10695 $as_echo "$as_val"'` = yes; then
10696 cat >>confdefs.h <<_ACEOF
10697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10698 _ACEOF
10699
10700 fi
10701
10702 done
10703
10704
10705 for ac_func in getpagesize
10706 do
10707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 $as_echo_n "checking for $ac_func... " >&6; }
10710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10711 $as_echo_n "(cached) " >&6
10712 else
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10721 #define $ac_func innocuous_$ac_func
10722
10723 /* System header to define __stub macros and hopefully few prototypes,
10724 which can conflict with char $ac_func (); below.
10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726 <limits.h> exists even on freestanding compilers. */
10727
10728 #ifdef __STDC__
10729 # include <limits.h>
10730 #else
10731 # include <assert.h>
10732 #endif
10733
10734 #undef $ac_func
10735
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char $ac_func ();
10743 /* The GNU C library defines this for functions which it implements
10744 to always fail with ENOSYS. Some functions are actually named
10745 something starting with __ and the normal name is an alias. */
10746 #if defined __stub_$ac_func || defined __stub___$ac_func
10747 choke me
10748 #endif
10749
10750 int
10751 main ()
10752 {
10753 return $ac_func ();
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763 esac
10764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10765 $as_echo "$ac_try_echo") >&5
10766 (eval "$ac_link") 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && {
10773 test -z "$ac_c_werror_flag" ||
10774 test ! -s conftest.err
10775 } && test -s conftest$ac_exeext && {
10776 test "$cross_compiling" = yes ||
10777 $as_test_x conftest$ac_exeext
10778 }; then
10779 eval "$as_ac_var=yes"
10780 else
10781 $as_echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 eval "$as_ac_var=no"
10785 fi
10786
10787 rm -rf conftest.dSYM
10788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10789 conftest$ac_exeext conftest.$ac_ext
10790 fi
10791 ac_res=`eval 'as_val=${'$as_ac_var'}
10792 $as_echo "$as_val"'`
10793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10794 $as_echo "$ac_res" >&6; }
10795 if test `eval 'as_val=${'$as_ac_var'}
10796 $as_echo "$as_val"'` = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10799 _ACEOF
10800
10801 fi
10802 done
10803
10804 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10805 $as_echo_n "checking for working mmap... " >&6; }
10806 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10807 $as_echo_n "(cached) " >&6
10808 else
10809 if test "$cross_compiling" = yes; then
10810 ac_cv_func_mmap_fixed_mapped=no
10811 else
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 $ac_includes_default
10819 /* malloc might have been renamed as rpl_malloc. */
10820 #undef malloc
10821
10822 /* Thanks to Mike Haertel and Jim Avera for this test.
10823 Here is a matrix of mmap possibilities:
10824 mmap private not fixed
10825 mmap private fixed at somewhere currently unmapped
10826 mmap private fixed at somewhere already mapped
10827 mmap shared not fixed
10828 mmap shared fixed at somewhere currently unmapped
10829 mmap shared fixed at somewhere already mapped
10830 For private mappings, we should verify that changes cannot be read()
10831 back from the file, nor mmap's back from the file at a different
10832 address. (There have been systems where private was not correctly
10833 implemented like the infamous i386 svr4.0, and systems where the
10834 VM page cache was not coherent with the file system buffer cache
10835 like early versions of FreeBSD and possibly contemporary NetBSD.)
10836 For shared mappings, we should conversely verify that changes get
10837 propagated back to all the places they're supposed to be.
10838
10839 Grep wants private fixed already mapped.
10840 The main things grep needs to know about mmap are:
10841 * does it exist and is it safe to write into the mmap'd area
10842 * how to use it (BSD variants) */
10843
10844 #include <fcntl.h>
10845 #include <sys/mman.h>
10846
10847 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10848 char *malloc ();
10849 #endif
10850
10851 /* This mess was copied from the GNU getpagesize.h. */
10852 #ifndef HAVE_GETPAGESIZE
10853 /* Assume that all systems that can run configure have sys/param.h. */
10854 # ifndef HAVE_SYS_PARAM_H
10855 # define HAVE_SYS_PARAM_H 1
10856 # endif
10857
10858 # ifdef _SC_PAGESIZE
10859 # define getpagesize() sysconf(_SC_PAGESIZE)
10860 # else /* no _SC_PAGESIZE */
10861 # ifdef HAVE_SYS_PARAM_H
10862 # include <sys/param.h>
10863 # ifdef EXEC_PAGESIZE
10864 # define getpagesize() EXEC_PAGESIZE
10865 # else /* no EXEC_PAGESIZE */
10866 # ifdef NBPG
10867 # define getpagesize() NBPG * CLSIZE
10868 # ifndef CLSIZE
10869 # define CLSIZE 1
10870 # endif /* no CLSIZE */
10871 # else /* no NBPG */
10872 # ifdef NBPC
10873 # define getpagesize() NBPC
10874 # else /* no NBPC */
10875 # ifdef PAGESIZE
10876 # define getpagesize() PAGESIZE
10877 # endif /* PAGESIZE */
10878 # endif /* no NBPC */
10879 # endif /* no NBPG */
10880 # endif /* no EXEC_PAGESIZE */
10881 # else /* no HAVE_SYS_PARAM_H */
10882 # define getpagesize() 8192 /* punt totally */
10883 # endif /* no HAVE_SYS_PARAM_H */
10884 # endif /* no _SC_PAGESIZE */
10885
10886 #endif /* no HAVE_GETPAGESIZE */
10887
10888 int
10889 main ()
10890 {
10891 char *data, *data2, *data3;
10892 int i, pagesize;
10893 int fd;
10894
10895 pagesize = getpagesize ();
10896
10897 /* First, make a file with some known garbage in it. */
10898 data = (char *) malloc (pagesize);
10899 if (!data)
10900 return 1;
10901 for (i = 0; i < pagesize; ++i)
10902 *(data + i) = rand ();
10903 umask (0);
10904 fd = creat ("conftest.mmap", 0600);
10905 if (fd < 0)
10906 return 1;
10907 if (write (fd, data, pagesize) != pagesize)
10908 return 1;
10909 close (fd);
10910
10911 /* Next, try to mmap the file at a fixed address which already has
10912 something else allocated at it. If we can, also make sure that
10913 we see the same garbage. */
10914 fd = open ("conftest.mmap", O_RDWR);
10915 if (fd < 0)
10916 return 1;
10917 data2 = (char *) malloc (2 * pagesize);
10918 if (!data2)
10919 return 1;
10920 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10921 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10922 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10923 return 1;
10924 for (i = 0; i < pagesize; ++i)
10925 if (*(data + i) != *(data2 + i))
10926 return 1;
10927
10928 /* Finally, make sure that changes to the mapped area do not
10929 percolate back to the file as seen by read(). (This is a bug on
10930 some variants of i386 svr4.0.) */
10931 for (i = 0; i < pagesize; ++i)
10932 *(data2 + i) = *(data2 + i) + 1;
10933 data3 = (char *) malloc (pagesize);
10934 if (!data3)
10935 return 1;
10936 if (read (fd, data3, pagesize) != pagesize)
10937 return 1;
10938 for (i = 0; i < pagesize; ++i)
10939 if (*(data + i) != *(data3 + i))
10940 return 1;
10941 close (fd);
10942 return 0;
10943 }
10944 _ACEOF
10945 rm -f conftest$ac_exeext
10946 if { (ac_try="$ac_link"
10947 case "(($ac_try" in
10948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949 *) ac_try_echo=$ac_try;;
10950 esac
10951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10952 $as_echo "$ac_try_echo") >&5
10953 (eval "$ac_link") 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10957 { (case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960 esac
10961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10962 $as_echo "$ac_try_echo") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_cv_func_mmap_fixed_mapped=yes
10968 else
10969 $as_echo "$as_me: program exited with status $ac_status" >&5
10970 $as_echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10972
10973 ( exit $ac_status )
10974 ac_cv_func_mmap_fixed_mapped=no
10975 fi
10976 rm -rf conftest.dSYM
10977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10978 fi
10979
10980
10981 fi
10982 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10983 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10984 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10985
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_MMAP 1
10988 _ACEOF
10989
10990 fi
10991 rm -f conftest.mmap
10992
10993 if test $use_mmap_for_buffers = yes; then
10994 REL_ALLOC=no
10995 fi
10996
10997 LIBS="$LIBS_SYSTEM $LIBS"
10998
10999
11000 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11001 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11002 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11003 $as_echo_n "(cached) " >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-ldnet $LIBS"
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char dnet_ntoa ();
11021 int
11022 main ()
11023 {
11024 return dnet_ntoa ();
11025 ;
11026 return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034 esac
11035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036 $as_echo "$ac_try_echo") >&5
11037 (eval "$ac_link") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_c_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest$ac_exeext && {
11047 test "$cross_compiling" = yes ||
11048 $as_test_x conftest$ac_exeext
11049 }; then
11050 ac_cv_lib_dnet_dnet_ntoa=yes
11051 else
11052 $as_echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_cv_lib_dnet_dnet_ntoa=no
11056 fi
11057
11058 rm -rf conftest.dSYM
11059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11064 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11065 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define HAVE_LIBDNET 1
11068 _ACEOF
11069
11070 LIBS="-ldnet $LIBS"
11071
11072 fi
11073
11074
11075 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11076 $as_echo_n "checking for main in -lXbsd... " >&6; }
11077 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11079 else
11080 ac_check_lib_save_LIBS=$LIBS
11081 LIBS="-lXbsd $LIBS"
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088
11089
11090 int
11091 main ()
11092 {
11093 return main ();
11094 ;
11095 return 0;
11096 }
11097 _ACEOF
11098 rm -f conftest.$ac_objext conftest$ac_exeext
11099 if { (ac_try="$ac_link"
11100 case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103 esac
11104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105 $as_echo "$ac_try_echo") >&5
11106 (eval "$ac_link") 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest$ac_exeext && {
11116 test "$cross_compiling" = yes ||
11117 $as_test_x conftest$ac_exeext
11118 }; then
11119 ac_cv_lib_Xbsd_main=yes
11120 else
11121 $as_echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_cv_lib_Xbsd_main=no
11125 fi
11126
11127 rm -rf conftest.dSYM
11128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11129 conftest$ac_exeext conftest.$ac_ext
11130 LIBS=$ac_check_lib_save_LIBS
11131 fi
11132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11133 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11134 if test $ac_cv_lib_Xbsd_main = yes; then
11135 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11136 fi
11137
11138
11139
11140 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11141 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11142 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11143 $as_echo_n "(cached) " >&6
11144 else
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lpthreads $LIBS"
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char cma_open ();
11161 int
11162 main ()
11163 {
11164 return cma_open ();
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174 esac
11175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11176 $as_echo "$ac_try_echo") >&5
11177 (eval "$ac_link") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest$ac_exeext && {
11187 test "$cross_compiling" = yes ||
11188 $as_test_x conftest$ac_exeext
11189 }; then
11190 ac_cv_lib_pthreads_cma_open=yes
11191 else
11192 $as_echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195 ac_cv_lib_pthreads_cma_open=no
11196 fi
11197
11198 rm -rf conftest.dSYM
11199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_lib_save_LIBS
11202 fi
11203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11204 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11205 if test $ac_cv_lib_pthreads_cma_open = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_LIBPTHREADS 1
11208 _ACEOF
11209
11210 LIBS="-lpthreads $LIBS"
11211
11212 fi
11213
11214
11215 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11216 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11217 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11218 ## added to LIBS in configure would never contain the pthreads part,
11219 ## but the value used in Makefiles might. FIXME?
11220 ##
11221 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11222 ## be harmless on older versions of X where it happens to exist.
11223 test "$opsys" = "aix4-2" && \
11224 test $ac_cv_lib_pthreads_cma_open = yes && \
11225 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11226
11227
11228 case ${host_os} in
11229 aix*)
11230 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11231 $as_echo_n "checking for -bbigtoc option... " >&6; }
11232 if test "${gdb_cv_bigtoc+set}" = set; then
11233 $as_echo_n "(cached) " >&6
11234 else
11235
11236 case $GCC in
11237 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11238 *) gdb_cv_bigtoc=-bbigtoc ;;
11239 esac
11240
11241 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h. */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248
11249 int
11250 main ()
11251 {
11252 int i;
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264 $as_echo "$ac_try_echo") >&5
11265 (eval "$ac_link") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext && {
11275 test "$cross_compiling" = yes ||
11276 $as_test_x conftest$ac_exeext
11277 }; then
11278 :
11279 else
11280 $as_echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 gdb_cv_bigtoc=
11284 fi
11285
11286 rm -rf conftest.dSYM
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11289
11290 fi
11291 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11292 $as_echo "$gdb_cv_bigtoc" >&6; }
11293 ;;
11294 esac
11295
11296 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11297 # used for the tests that follow. We set them back to REAL_CFLAGS and
11298 # REAL_CPPFLAGS later on.
11299
11300 REAL_CPPFLAGS="$CPPFLAGS"
11301
11302 if test "${HAVE_X11}" = "yes"; then
11303 DEFS="$C_SWITCH_X_SITE $DEFS"
11304 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11305 LIBS="$LIBX $LIBS"
11306 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11307 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11308
11309 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11310 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11311 # but it's more convenient here to set LD_RUN_PATH
11312 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11313 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11314 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11315 export LD_RUN_PATH
11316 fi
11317
11318 if test "${opsys}" = "gnu-linux"; then
11319 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11320 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327
11328 int
11329 main ()
11330 {
11331 XOpenDisplay ("foo");
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341 esac
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344 (eval "$ac_link") 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest$ac_exeext && {
11354 test "$cross_compiling" = yes ||
11355 $as_test_x conftest$ac_exeext
11356 }; then
11357 xlinux_first_failure=no
11358 else
11359 $as_echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 xlinux_first_failure=yes
11363 fi
11364
11365 rm -rf conftest.dSYM
11366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11367 conftest$ac_exeext conftest.$ac_ext
11368 if test "${xlinux_first_failure}" = "yes"; then
11369 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11370 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11371 OLD_CPPFLAGS="$CPPFLAGS"
11372 OLD_LIBS="$LIBS"
11373 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11374 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11375 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11376 LIBS="$LIBS -b i486-linuxaout"
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h. */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383
11384 int
11385 main ()
11386 {
11387 XOpenDisplay ("foo");
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (ac_try="$ac_link"
11394 case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397 esac
11398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11399 $as_echo "$ac_try_echo") >&5
11400 (eval "$ac_link") 2>conftest.er1
11401 ac_status=$?
11402 grep -v '^ *+' conftest.er1 >conftest.err
11403 rm -f conftest.er1
11404 cat conftest.err >&5
11405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); } && {
11407 test -z "$ac_c_werror_flag" ||
11408 test ! -s conftest.err
11409 } && test -s conftest$ac_exeext && {
11410 test "$cross_compiling" = yes ||
11411 $as_test_x conftest$ac_exeext
11412 }; then
11413 xlinux_second_failure=no
11414 else
11415 $as_echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 xlinux_second_failure=yes
11419 fi
11420
11421 rm -rf conftest.dSYM
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11424 if test "${xlinux_second_failure}" = "yes"; then
11425 # If we get the same failure with -b, there is no use adding -b.
11426 # So take it out. This plays safe.
11427 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11428 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11429 CPPFLAGS="$OLD_CPPFLAGS"
11430 LIBS="$OLD_LIBS"
11431 { $as_echo "$as_me:$LINENO: result: no" >&5
11432 $as_echo "no" >&6; }
11433 else
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11436 fi
11437 else
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11440 fi
11441 fi
11442
11443 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11444 # header files included from there.
11445 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11446 $as_echo_n "checking for Xkb... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <X11/Xlib.h>
11454 #include <X11/XKBlib.h>
11455 int
11456 main ()
11457 {
11458 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470 $as_echo "$ac_try_echo") >&5
11471 (eval "$ac_link") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest$ac_exeext && {
11481 test "$cross_compiling" = yes ||
11482 $as_test_x conftest$ac_exeext
11483 }; then
11484 emacs_xkb=yes
11485 else
11486 $as_echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 emacs_xkb=no
11490 fi
11491
11492 rm -rf conftest.dSYM
11493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11494 conftest$ac_exeext conftest.$ac_ext
11495 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11496 $as_echo "$emacs_xkb" >&6; }
11497 if test $emacs_xkb = yes; then
11498
11499 cat >>confdefs.h <<\_ACEOF
11500 #define HAVE_XKBGETKEYBOARD 1
11501 _ACEOF
11502
11503 fi
11504
11505
11506
11507
11508
11509 for ac_func in XrmSetDatabase XScreenResourceString \
11510 XScreenNumberOfScreen XSetWMProtocols
11511 do
11512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11514 $as_echo_n "checking for $ac_func... " >&6; }
11515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11516 $as_echo_n "(cached) " >&6
11517 else
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11526 #define $ac_func innocuous_$ac_func
11527
11528 /* System header to define __stub macros and hopefully few prototypes,
11529 which can conflict with char $ac_func (); below.
11530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531 <limits.h> exists even on freestanding compilers. */
11532
11533 #ifdef __STDC__
11534 # include <limits.h>
11535 #else
11536 # include <assert.h>
11537 #endif
11538
11539 #undef $ac_func
11540
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char $ac_func ();
11548 /* The GNU C library defines this for functions which it implements
11549 to always fail with ENOSYS. Some functions are actually named
11550 something starting with __ and the normal name is an alias. */
11551 #if defined __stub_$ac_func || defined __stub___$ac_func
11552 choke me
11553 #endif
11554
11555 int
11556 main ()
11557 {
11558 return $ac_func ();
11559 ;
11560 return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext conftest$ac_exeext
11564 if { (ac_try="$ac_link"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568 esac
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571 (eval "$ac_link") 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest$ac_exeext && {
11581 test "$cross_compiling" = yes ||
11582 $as_test_x conftest$ac_exeext
11583 }; then
11584 eval "$as_ac_var=yes"
11585 else
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11588
11589 eval "$as_ac_var=no"
11590 fi
11591
11592 rm -rf conftest.dSYM
11593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11594 conftest$ac_exeext conftest.$ac_ext
11595 fi
11596 ac_res=`eval 'as_val=${'$as_ac_var'}
11597 $as_echo "$as_val"'`
11598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11599 $as_echo "$ac_res" >&6; }
11600 if test `eval 'as_val=${'$as_ac_var'}
11601 $as_echo "$as_val"'` = yes; then
11602 cat >>confdefs.h <<_ACEOF
11603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11604 _ACEOF
11605
11606 fi
11607 done
11608
11609 fi
11610
11611 if test "${window_system}" = "x11"; then
11612 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11613 $as_echo_n "checking X11 version 6... " >&6; }
11614 if test "${emacs_cv_x11_version_6+set}" = set; then
11615 $as_echo_n "(cached) " >&6
11616 else
11617 cat >conftest.$ac_ext <<_ACEOF
11618 /* confdefs.h. */
11619 _ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11623 #include <X11/Xlib.h>
11624 int
11625 main ()
11626 {
11627 #if XlibSpecificationRelease < 6
11628 fail;
11629 #endif
11630
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (ac_try="$ac_link"
11637 case "(($ac_try" in
11638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639 *) ac_try_echo=$ac_try;;
11640 esac
11641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642 $as_echo "$ac_try_echo") >&5
11643 (eval "$ac_link") 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest$ac_exeext && {
11653 test "$cross_compiling" = yes ||
11654 $as_test_x conftest$ac_exeext
11655 }; then
11656 emacs_cv_x11_version_6=yes
11657 else
11658 $as_echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11660
11661 emacs_cv_x11_version_6=no
11662 fi
11663
11664 rm -rf conftest.dSYM
11665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11666 conftest$ac_exeext conftest.$ac_ext
11667 fi
11668
11669 if test $emacs_cv_x11_version_6 = yes; then
11670 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11671 $as_echo "6 or newer" >&6; }
11672
11673 cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_X11R6 1
11675 _ACEOF
11676
11677 else
11678 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11679 $as_echo "before 6" >&6; }
11680 fi
11681 fi
11682
11683
11684 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11685 HAVE_RSVG=no
11686 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11687 if test "${with_rsvg}" != "no"; then
11688 RSVG_REQUIRED=2.11.0
11689 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11690
11691
11692 succeeded=no
11693
11694 # Extract the first word of "pkg-config", so it can be a program name with args.
11695 set dummy pkg-config; ac_word=$2
11696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11700 else
11701 case $PKG_CONFIG in
11702 [\\/]* | ?:[\\/]*)
11703 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11704 ;;
11705 *)
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717 done
11718 done
11719 IFS=$as_save_IFS
11720
11721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11722 ;;
11723 esac
11724 fi
11725 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11726 if test -n "$PKG_CONFIG"; then
11727 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11728 $as_echo "$PKG_CONFIG" >&6; }
11729 else
11730 { $as_echo "$as_me:$LINENO: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735
11736 if test "$PKG_CONFIG" = "no" ; then
11737 :
11738 else
11739 PKG_CONFIG_MIN_VERSION=0.9.0
11740 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11741 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11742 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11743
11744 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11745 { $as_echo "$as_me:$LINENO: result: yes" >&5
11746 $as_echo "yes" >&6; }
11747 succeeded=yes
11748
11749 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11750 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11751 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11752 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11753 $as_echo "$RSVG_CFLAGS" >&6; }
11754
11755 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11756 $as_echo_n "checking RSVG_LIBS... " >&6; }
11757 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11758 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11759 $as_echo "$RSVG_LIBS" >&6; }
11760 else
11761 { $as_echo "$as_me:$LINENO: result: no" >&5
11762 $as_echo "no" >&6; }
11763 RSVG_CFLAGS=""
11764 RSVG_LIBS=""
11765 ## If we have a custom action on failure, don't print errors, but
11766 ## do set a variable so people can do so.
11767 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11768
11769 fi
11770
11771
11772
11773 else
11774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11776 fi
11777 fi
11778
11779 if test $succeeded = yes; then
11780 :
11781 else
11782 :
11783 fi
11784
11785
11786
11787
11788 if test ".${RSVG_CFLAGS}" != "."; then
11789 HAVE_RSVG=yes
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_RSVG 1
11793 _ACEOF
11794
11795 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11796 LIBS="$RSVG_LIBS $LIBS"
11797 fi
11798 fi
11799 fi
11800
11801
11802 HAVE_GTK=no
11803 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11804 GLIB_REQUIRED=2.6
11805 GTK_REQUIRED=2.6
11806 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11807
11808
11809 succeeded=no
11810
11811 # Extract the first word of "pkg-config", so it can be a program name with args.
11812 set dummy pkg-config; ac_word=$2
11813 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11816 $as_echo_n "(cached) " >&6
11817 else
11818 case $PKG_CONFIG in
11819 [\\/]* | ?:[\\/]*)
11820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11821 ;;
11822 *)
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11833 fi
11834 done
11835 done
11836 IFS=$as_save_IFS
11837
11838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11839 ;;
11840 esac
11841 fi
11842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11843 if test -n "$PKG_CONFIG"; then
11844 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11845 $as_echo "$PKG_CONFIG" >&6; }
11846 else
11847 { $as_echo "$as_me:$LINENO: result: no" >&5
11848 $as_echo "no" >&6; }
11849 fi
11850
11851
11852
11853 if test "$PKG_CONFIG" = "no" ; then
11854 pkg_check_gtk=no
11855 else
11856 PKG_CONFIG_MIN_VERSION=0.9.0
11857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11858 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11859 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11860
11861 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11862 { $as_echo "$as_me:$LINENO: result: yes" >&5
11863 $as_echo "yes" >&6; }
11864 succeeded=yes
11865
11866 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11867 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11868 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11869 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11870 $as_echo "$GTK_CFLAGS" >&6; }
11871
11872 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11873 $as_echo_n "checking GTK_LIBS... " >&6; }
11874 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11875 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11876 $as_echo "$GTK_LIBS" >&6; }
11877 else
11878 { $as_echo "$as_me:$LINENO: result: no" >&5
11879 $as_echo "no" >&6; }
11880 GTK_CFLAGS=""
11881 GTK_LIBS=""
11882 ## If we have a custom action on failure, don't print errors, but
11883 ## do set a variable so people can do so.
11884 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11885
11886 fi
11887
11888
11889
11890 else
11891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11893 fi
11894 fi
11895
11896 if test $succeeded = yes; then
11897 pkg_check_gtk=yes
11898 else
11899 pkg_check_gtk=no
11900 fi
11901
11902 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11903 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11904 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11905 { (exit 1); exit 1; }; }
11906 fi
11907 fi
11908
11909
11910 GTK_OBJ=
11911 if test x"$pkg_check_gtk" = xyes; then
11912
11913
11914
11915 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11916 CFLAGS="$CFLAGS $GTK_CFLAGS"
11917 LIBS="$GTK_LIBS $LIBS"
11918 GTK_COMPILES=no
11919
11920 for ac_func in gtk_main
11921 do
11922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11924 $as_echo_n "checking for $ac_func... " >&6; }
11925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11926 $as_echo_n "(cached) " >&6
11927 else
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11936 #define $ac_func innocuous_$ac_func
11937
11938 /* System header to define __stub macros and hopefully few prototypes,
11939 which can conflict with char $ac_func (); below.
11940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11941 <limits.h> exists even on freestanding compilers. */
11942
11943 #ifdef __STDC__
11944 # include <limits.h>
11945 #else
11946 # include <assert.h>
11947 #endif
11948
11949 #undef $ac_func
11950
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 char $ac_func ();
11958 /* The GNU C library defines this for functions which it implements
11959 to always fail with ENOSYS. Some functions are actually named
11960 something starting with __ and the normal name is an alias. */
11961 #if defined __stub_$ac_func || defined __stub___$ac_func
11962 choke me
11963 #endif
11964
11965 int
11966 main ()
11967 {
11968 return $ac_func ();
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978 esac
11979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11980 $as_echo "$ac_try_echo") >&5
11981 (eval "$ac_link") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest$ac_exeext && {
11991 test "$cross_compiling" = yes ||
11992 $as_test_x conftest$ac_exeext
11993 }; then
11994 eval "$as_ac_var=yes"
11995 else
11996 $as_echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 eval "$as_ac_var=no"
12000 fi
12001
12002 rm -rf conftest.dSYM
12003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12004 conftest$ac_exeext conftest.$ac_ext
12005 fi
12006 ac_res=`eval 'as_val=${'$as_ac_var'}
12007 $as_echo "$as_val"'`
12008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12009 $as_echo "$ac_res" >&6; }
12010 if test `eval 'as_val=${'$as_ac_var'}
12011 $as_echo "$as_val"'` = yes; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12014 _ACEOF
12015 GTK_COMPILES=yes
12016 fi
12017 done
12018
12019 if test "${GTK_COMPILES}" != "yes"; then
12020 if test "$USE_X_TOOLKIT" != "maybe"; then
12021 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12022 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12023 { (exit 1); exit 1; }; };
12024 fi
12025 else
12026 HAVE_GTK=yes
12027
12028 cat >>confdefs.h <<\_ACEOF
12029 #define USE_GTK 1
12030 _ACEOF
12031
12032 GTK_OBJ=gtkutil.o
12033 USE_X_TOOLKIT=none
12034 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12035 :
12036 else
12037 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12038 closing open displays. This is no problem if you just use
12039 one display, but if you use more than one and close one of them
12040 Emacs may crash." >&5
12041 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12042 closing open displays. This is no problem if you just use
12043 one display, but if you use more than one and close one of them
12044 Emacs may crash." >&2;}
12045 sleep 3
12046 fi
12047 fi
12048
12049 fi
12050
12051
12052
12053 if test "${HAVE_GTK}" = "yes"; then
12054
12055 if test "$with_toolkit_scroll_bars" != no; then
12056 with_toolkit_scroll_bars=yes
12057 fi
12058
12059 HAVE_GTK_MULTIDISPLAY=no
12060
12061 for ac_func in gdk_display_open
12062 do
12063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12064 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12065 $as_echo_n "checking for $ac_func... " >&6; }
12066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12067 $as_echo_n "(cached) " >&6
12068 else
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12077 #define $ac_func innocuous_$ac_func
12078
12079 /* System header to define __stub macros and hopefully few prototypes,
12080 which can conflict with char $ac_func (); below.
12081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12082 <limits.h> exists even on freestanding compilers. */
12083
12084 #ifdef __STDC__
12085 # include <limits.h>
12086 #else
12087 # include <assert.h>
12088 #endif
12089
12090 #undef $ac_func
12091
12092 /* Override any GCC internal prototype to avoid an error.
12093 Use char because int might match the return type of a GCC
12094 builtin and then its argument prototype would still apply. */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 char $ac_func ();
12099 /* The GNU C library defines this for functions which it implements
12100 to always fail with ENOSYS. Some functions are actually named
12101 something starting with __ and the normal name is an alias. */
12102 #if defined __stub_$ac_func || defined __stub___$ac_func
12103 choke me
12104 #endif
12105
12106 int
12107 main ()
12108 {
12109 return $ac_func ();
12110 ;
12111 return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (ac_try="$ac_link"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_link") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest$ac_exeext && {
12132 test "$cross_compiling" = yes ||
12133 $as_test_x conftest$ac_exeext
12134 }; then
12135 eval "$as_ac_var=yes"
12136 else
12137 $as_echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 eval "$as_ac_var=no"
12141 fi
12142
12143 rm -rf conftest.dSYM
12144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12145 conftest$ac_exeext conftest.$ac_ext
12146 fi
12147 ac_res=`eval 'as_val=${'$as_ac_var'}
12148 $as_echo "$as_val"'`
12149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12150 $as_echo "$ac_res" >&6; }
12151 if test `eval 'as_val=${'$as_ac_var'}
12152 $as_echo "$as_val"'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155 _ACEOF
12156 HAVE_GTK_MULTIDISPLAY=yes
12157 fi
12158 done
12159
12160 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12161
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_GTK_MULTIDISPLAY 1
12164 _ACEOF
12165
12166 fi
12167
12168 HAVE_GTK_FILE_SELECTION=no
12169 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12170 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12171 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12172 $as_echo_n "(cached) " >&6
12173 else
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 $ac_includes_default
12181 #include <gtk/gtk.h>
12182
12183 int
12184 main ()
12185 {
12186 #ifndef GTK_TYPE_FILE_SELECTION
12187 (void) GTK_TYPE_FILE_SELECTION;
12188 #endif
12189
12190 ;
12191 return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199 esac
12200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12201 $as_echo "$ac_try_echo") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest.$ac_objext; then
12212 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12213 else
12214 $as_echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12218 fi
12219
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 fi
12222 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12223 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12224 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12225 HAVE_GTK_FILE_SELECTION=yes
12226 else
12227 HAVE_GTK_FILE_SELECTION=no
12228 fi
12229
12230 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12231
12232 for ac_func in gtk_file_selection_new
12233 do
12234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12236 $as_echo_n "checking for $ac_func... " >&6; }
12237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12238 $as_echo_n "(cached) " >&6
12239 else
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12248 #define $ac_func innocuous_$ac_func
12249
12250 /* System header to define __stub macros and hopefully few prototypes,
12251 which can conflict with char $ac_func (); below.
12252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12253 <limits.h> exists even on freestanding compilers. */
12254
12255 #ifdef __STDC__
12256 # include <limits.h>
12257 #else
12258 # include <assert.h>
12259 #endif
12260
12261 #undef $ac_func
12262
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 char $ac_func ();
12270 /* The GNU C library defines this for functions which it implements
12271 to always fail with ENOSYS. Some functions are actually named
12272 something starting with __ and the normal name is an alias. */
12273 #if defined __stub_$ac_func || defined __stub___$ac_func
12274 choke me
12275 #endif
12276
12277 int
12278 main ()
12279 {
12280 return $ac_func ();
12281 ;
12282 return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (ac_try="$ac_link"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12292 $as_echo "$ac_try_echo") >&5
12293 (eval "$ac_link") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } && {
12300 test -z "$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 } && test -s conftest$ac_exeext && {
12303 test "$cross_compiling" = yes ||
12304 $as_test_x conftest$ac_exeext
12305 }; then
12306 eval "$as_ac_var=yes"
12307 else
12308 $as_echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 eval "$as_ac_var=no"
12312 fi
12313
12314 rm -rf conftest.dSYM
12315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316 conftest$ac_exeext conftest.$ac_ext
12317 fi
12318 ac_res=`eval 'as_val=${'$as_ac_var'}
12319 $as_echo "$as_val"'`
12320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12321 $as_echo "$ac_res" >&6; }
12322 if test `eval 'as_val=${'$as_ac_var'}
12323 $as_echo "$as_val"'` = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12326 _ACEOF
12327 HAVE_GTK_FILE_SELECTION=yes
12328 else
12329 HAVE_GTK_FILE_SELECTION=no
12330 fi
12331 done
12332
12333 fi
12334
12335 HAVE_GTK_FILE_CHOOSER=no
12336 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12337 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12338 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12339 $as_echo_n "(cached) " >&6
12340 else
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 #include <gtk/gtk.h>
12349
12350 int
12351 main ()
12352 {
12353 #ifndef GTK_TYPE_FILE_CHOOSER
12354 (void) GTK_TYPE_FILE_CHOOSER;
12355 #endif
12356
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12368 $as_echo "$ac_try_echo") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest.$ac_objext; then
12379 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12380 else
12381 $as_echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12385 fi
12386
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 fi
12389 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12390 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12391 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12392 HAVE_GTK_FILE_CHOOSER=yes
12393 else
12394 HAVE_GTK_FILE_CHOOSER=no
12395 fi
12396
12397 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12398
12399 for ac_func in gtk_file_chooser_dialog_new
12400 do
12401 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12402 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12403 $as_echo_n "checking for $ac_func... " >&6; }
12404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12405 $as_echo_n "(cached) " >&6
12406 else
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12415 #define $ac_func innocuous_$ac_func
12416
12417 /* System header to define __stub macros and hopefully few prototypes,
12418 which can conflict with char $ac_func (); below.
12419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12420 <limits.h> exists even on freestanding compilers. */
12421
12422 #ifdef __STDC__
12423 # include <limits.h>
12424 #else
12425 # include <assert.h>
12426 #endif
12427
12428 #undef $ac_func
12429
12430 /* Override any GCC internal prototype to avoid an error.
12431 Use char because int might match the return type of a GCC
12432 builtin and then its argument prototype would still apply. */
12433 #ifdef __cplusplus
12434 extern "C"
12435 #endif
12436 char $ac_func ();
12437 /* The GNU C library defines this for functions which it implements
12438 to always fail with ENOSYS. Some functions are actually named
12439 something starting with __ and the normal name is an alias. */
12440 #if defined __stub_$ac_func || defined __stub___$ac_func
12441 choke me
12442 #endif
12443
12444 int
12445 main ()
12446 {
12447 return $ac_func ();
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457 esac
12458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12459 $as_echo "$ac_try_echo") >&5
12460 (eval "$ac_link") 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest$ac_exeext && {
12470 test "$cross_compiling" = yes ||
12471 $as_test_x conftest$ac_exeext
12472 }; then
12473 eval "$as_ac_var=yes"
12474 else
12475 $as_echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478 eval "$as_ac_var=no"
12479 fi
12480
12481 rm -rf conftest.dSYM
12482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12483 conftest$ac_exeext conftest.$ac_ext
12484 fi
12485 ac_res=`eval 'as_val=${'$as_ac_var'}
12486 $as_echo "$as_val"'`
12487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12488 $as_echo "$ac_res" >&6; }
12489 if test `eval 'as_val=${'$as_ac_var'}
12490 $as_echo "$as_val"'` = yes; then
12491 cat >>confdefs.h <<_ACEOF
12492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12493 _ACEOF
12494 HAVE_GTK_FILE_CHOOSER=yes
12495 else
12496 HAVE_GTK_FILE_CHOOSER=no
12497 fi
12498 done
12499
12500 fi
12501
12502 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12503 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12504
12505 cat >>confdefs.h <<\_ACEOF
12506 #define HAVE_GTK_FILE_BOTH 1
12507 _ACEOF
12508
12509 fi
12510
12511 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12512 HAVE_GTK_AND_PTHREAD=no
12513
12514 for ac_header in pthread.h
12515 do
12516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12518 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12519 $as_echo_n "checking for $ac_header... " >&6; }
12520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521 $as_echo_n "(cached) " >&6
12522 fi
12523 ac_res=`eval 'as_val=${'$as_ac_Header'}
12524 $as_echo "$as_val"'`
12525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12526 $as_echo "$ac_res" >&6; }
12527 else
12528 # Is the header compilable?
12529 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12530 $as_echo_n "checking $ac_header usability... " >&6; }
12531 cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h. */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12537 $ac_includes_default
12538 #include <$ac_header>
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (ac_try="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12545 esac
12546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.$ac_objext; then
12558 ac_header_compiler=yes
12559 else
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 ac_header_compiler=no
12564 fi
12565
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12568 $as_echo "$ac_header_compiler" >&6; }
12569
12570 # Is the header present?
12571 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12572 $as_echo_n "checking $ac_header presence... " >&6; }
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 #include <$ac_header>
12580 _ACEOF
12581 if { (ac_try="$ac_cpp conftest.$ac_ext"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585 esac
12586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12587 $as_echo "$ac_try_echo") >&5
12588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } >/dev/null && {
12595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12597 }; then
12598 ac_header_preproc=yes
12599 else
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 ac_header_preproc=no
12604 fi
12605
12606 rm -f conftest.err conftest.$ac_ext
12607 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12608 $as_echo "$ac_header_preproc" >&6; }
12609
12610 # So? What about this header?
12611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12612 yes:no: )
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12617 ac_header_preproc=yes
12618 ;;
12619 no:yes:* )
12620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12625 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12627 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12631 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12632
12633 ;;
12634 esac
12635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12636 $as_echo_n "checking for $ac_header... " >&6; }
12637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12638 $as_echo_n "(cached) " >&6
12639 else
12640 eval "$as_ac_Header=\$ac_header_preproc"
12641 fi
12642 ac_res=`eval 'as_val=${'$as_ac_Header'}
12643 $as_echo "$as_val"'`
12644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12645 $as_echo "$ac_res" >&6; }
12646
12647 fi
12648 if test `eval 'as_val=${'$as_ac_Header'}
12649 $as_echo "$as_val"'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12652 _ACEOF
12653
12654 fi
12655
12656 done
12657
12658 if test "$ac_cv_header_pthread_h"; then
12659 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12660 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12661 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12662 $as_echo_n "(cached) " >&6
12663 else
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lpthread $LIBS"
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char pthread_self ();
12680 int
12681 main ()
12682 {
12683 return pthread_self ();
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (ac_try="$ac_link"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693 esac
12694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12695 $as_echo "$ac_try_echo") >&5
12696 (eval "$ac_link") 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest$ac_exeext && {
12706 test "$cross_compiling" = yes ||
12707 $as_test_x conftest$ac_exeext
12708 }; then
12709 ac_cv_lib_pthread_pthread_self=yes
12710 else
12711 $as_echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714 ac_cv_lib_pthread_pthread_self=no
12715 fi
12716
12717 rm -rf conftest.dSYM
12718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12721 fi
12722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12723 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12724 if test $ac_cv_lib_pthread_pthread_self = yes; then
12725 HAVE_GTK_AND_PTHREAD=yes
12726 fi
12727
12728 fi
12729 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12730 case "${canonical}" in
12731 *-hpux*) ;;
12732 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12733 esac
12734
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_GTK_AND_PTHREAD 1
12737 _ACEOF
12738
12739 fi
12740 fi
12741 fi
12742
12743 HAVE_DBUS=no
12744 DBUS_OBJ=
12745 if test "${with_dbus}" = "yes"; then
12746
12747 succeeded=no
12748
12749 # Extract the first word of "pkg-config", so it can be a program name with args.
12750 set dummy pkg-config; ac_word=$2
12751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12752 $as_echo_n "checking for $ac_word... " >&6; }
12753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12754 $as_echo_n "(cached) " >&6
12755 else
12756 case $PKG_CONFIG in
12757 [\\/]* | ?:[\\/]*)
12758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12759 ;;
12760 *)
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12763 do
12764 IFS=$as_save_IFS
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 break 2
12771 fi
12772 done
12773 done
12774 IFS=$as_save_IFS
12775
12776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12777 ;;
12778 esac
12779 fi
12780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12781 if test -n "$PKG_CONFIG"; then
12782 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12783 $as_echo "$PKG_CONFIG" >&6; }
12784 else
12785 { $as_echo "$as_me:$LINENO: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788
12789
12790
12791 if test "$PKG_CONFIG" = "no" ; then
12792 HAVE_DBUS=no
12793 else
12794 PKG_CONFIG_MIN_VERSION=0.9.0
12795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12796 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12797 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12798
12799 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801 $as_echo "yes" >&6; }
12802 succeeded=yes
12803
12804 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12805 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12806 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12807 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12808 $as_echo "$DBUS_CFLAGS" >&6; }
12809
12810 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12811 $as_echo_n "checking DBUS_LIBS... " >&6; }
12812 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12813 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12814 $as_echo "$DBUS_LIBS" >&6; }
12815 else
12816 { $as_echo "$as_me:$LINENO: result: no" >&5
12817 $as_echo "no" >&6; }
12818 DBUS_CFLAGS=""
12819 DBUS_LIBS=""
12820 ## If we have a custom action on failure, don't print errors, but
12821 ## do set a variable so people can do so.
12822 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12823
12824 fi
12825
12826
12827
12828 else
12829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12831 fi
12832 fi
12833
12834 if test $succeeded = yes; then
12835 HAVE_DBUS=yes
12836 else
12837 HAVE_DBUS=no
12838 fi
12839
12840 if test "$HAVE_DBUS" = yes; then
12841 LIBS="$LIBS $DBUS_LIBS"
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_DBUS 1
12845 _ACEOF
12846
12847
12848 for ac_func in dbus_watch_get_unix_fd
12849 do
12850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12852 $as_echo_n "checking for $ac_func... " >&6; }
12853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12854 $as_echo_n "(cached) " >&6
12855 else
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12864 #define $ac_func innocuous_$ac_func
12865
12866 /* System header to define __stub macros and hopefully few prototypes,
12867 which can conflict with char $ac_func (); below.
12868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12869 <limits.h> exists even on freestanding compilers. */
12870
12871 #ifdef __STDC__
12872 # include <limits.h>
12873 #else
12874 # include <assert.h>
12875 #endif
12876
12877 #undef $ac_func
12878
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char $ac_func ();
12886 /* The GNU C library defines this for functions which it implements
12887 to always fail with ENOSYS. Some functions are actually named
12888 something starting with __ and the normal name is an alias. */
12889 #if defined __stub_$ac_func || defined __stub___$ac_func
12890 choke me
12891 #endif
12892
12893 int
12894 main ()
12895 {
12896 return $ac_func ();
12897 ;
12898 return 0;
12899 }
12900 _ACEOF
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12908 $as_echo "$ac_try_echo") >&5
12909 (eval "$ac_link") 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest$ac_exeext && {
12919 test "$cross_compiling" = yes ||
12920 $as_test_x conftest$ac_exeext
12921 }; then
12922 eval "$as_ac_var=yes"
12923 else
12924 $as_echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 eval "$as_ac_var=no"
12928 fi
12929
12930 rm -rf conftest.dSYM
12931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12932 conftest$ac_exeext conftest.$ac_ext
12933 fi
12934 ac_res=`eval 'as_val=${'$as_ac_var'}
12935 $as_echo "$as_val"'`
12936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12937 $as_echo "$ac_res" >&6; }
12938 if test `eval 'as_val=${'$as_ac_var'}
12939 $as_echo "$as_val"'` = yes; then
12940 cat >>confdefs.h <<_ACEOF
12941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12942 _ACEOF
12943
12944 fi
12945 done
12946
12947 DBUS_OBJ=dbusbind.o
12948 fi
12949 fi
12950
12951
12952 HAVE_GCONF=no
12953 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12954
12955 succeeded=no
12956
12957 # Extract the first word of "pkg-config", so it can be a program name with args.
12958 set dummy pkg-config; ac_word=$2
12959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12962 $as_echo_n "(cached) " >&6
12963 else
12964 case $PKG_CONFIG in
12965 [\\/]* | ?:[\\/]*)
12966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12967 ;;
12968 *)
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12971 do
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12979 fi
12980 done
12981 done
12982 IFS=$as_save_IFS
12983
12984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12985 ;;
12986 esac
12987 fi
12988 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12989 if test -n "$PKG_CONFIG"; then
12990 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12991 $as_echo "$PKG_CONFIG" >&6; }
12992 else
12993 { $as_echo "$as_me:$LINENO: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996
12997
12998
12999 if test "$PKG_CONFIG" = "no" ; then
13000 HAVE_GCONF=no
13001 else
13002 PKG_CONFIG_MIN_VERSION=0.9.0
13003 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13004 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13005 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13006
13007 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13008 { $as_echo "$as_me:$LINENO: result: yes" >&5
13009 $as_echo "yes" >&6; }
13010 succeeded=yes
13011
13012 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13013 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13014 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13015 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13016 $as_echo "$GCONF_CFLAGS" >&6; }
13017
13018 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13019 $as_echo_n "checking GCONF_LIBS... " >&6; }
13020 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13021 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13022 $as_echo "$GCONF_LIBS" >&6; }
13023 else
13024 { $as_echo "$as_me:$LINENO: result: no" >&5
13025 $as_echo "no" >&6; }
13026 GCONF_CFLAGS=""
13027 GCONF_LIBS=""
13028 ## If we have a custom action on failure, don't print errors, but
13029 ## do set a variable so people can do so.
13030 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13031
13032 fi
13033
13034
13035
13036 else
13037 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13038 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13039 fi
13040 fi
13041
13042 if test $succeeded = yes; then
13043 HAVE_GCONF=yes
13044 else
13045 HAVE_GCONF=no
13046 fi
13047
13048 if test "$HAVE_GCONF" = yes; then
13049
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_GCONF 1
13052 _ACEOF
13053
13054 fi
13055 fi
13056
13057 HAVE_LIBSELINUX=no
13058 LIBSELINUX_LIBS=
13059 if test "${with_selinux}" = "yes"; then
13060 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13061 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13062 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13063 $as_echo_n "(cached) " >&6
13064 else
13065 ac_check_lib_save_LIBS=$LIBS
13066 LIBS="-lselinux $LIBS"
13067 cat >conftest.$ac_ext <<_ACEOF
13068 /* confdefs.h. */
13069 _ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073
13074 /* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13077 #ifdef __cplusplus
13078 extern "C"
13079 #endif
13080 char lgetfilecon ();
13081 int
13082 main ()
13083 {
13084 return lgetfilecon ();
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (ac_try="$ac_link"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13096 $as_echo "$ac_try_echo") >&5
13097 (eval "$ac_link") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest$ac_exeext && {
13107 test "$cross_compiling" = yes ||
13108 $as_test_x conftest$ac_exeext
13109 }; then
13110 ac_cv_lib_selinux_lgetfilecon=yes
13111 else
13112 $as_echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115 ac_cv_lib_selinux_lgetfilecon=no
13116 fi
13117
13118 rm -rf conftest.dSYM
13119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13120 conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13122 fi
13123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13124 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13125 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13126 HAVE_LIBSELINUX=yes
13127 else
13128 HAVE_LIBSELINUX=no
13129 fi
13130
13131 if test "$HAVE_LIBSELINUX" = yes; then
13132
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_LIBSELINUX 1
13135 _ACEOF
13136
13137 LIBSELINUX_LIBS=-lselinux
13138 fi
13139 fi
13140
13141
13142 HAVE_XAW3D=no
13143 LUCID_LIBW=
13144 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13145 if test "$with_xaw3d" != no; then
13146 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13147 $as_echo_n "checking for xaw3d... " >&6; }
13148 if test "${emacs_cv_xaw3d+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13150 else
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157
13158 #include <X11/Intrinsic.h>
13159 #include <X11/Xaw3d/Simple.h>
13160 int
13161 main ()
13162 {
13163
13164 ;
13165 return 0;
13166 }
13167 _ACEOF
13168 rm -f conftest.$ac_objext conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173 esac
13174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13175 $as_echo "$ac_try_echo") >&5
13176 (eval "$ac_link") 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } && {
13183 test -z "$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 } && test -s conftest$ac_exeext && {
13186 test "$cross_compiling" = yes ||
13187 $as_test_x conftest$ac_exeext
13188 }; then
13189 emacs_cv_xaw3d=yes
13190 else
13191 $as_echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 emacs_cv_xaw3d=no
13195 fi
13196
13197 rm -rf conftest.dSYM
13198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13199 conftest$ac_exeext conftest.$ac_ext
13200 fi
13201
13202 else
13203 emacs_cv_xaw3d=no
13204 fi
13205 if test $emacs_cv_xaw3d = yes; then
13206 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13207 $as_echo "yes; using Lucid toolkit" >&6; }
13208 USE_X_TOOLKIT=LUCID
13209 HAVE_XAW3D=yes
13210 LUCID_LIBW=-lXaw3d
13211
13212 cat >>confdefs.h <<\_ACEOF
13213 #define HAVE_XAW3D 1
13214 _ACEOF
13215
13216 else
13217 { $as_echo "$as_me:$LINENO: result: no" >&5
13218 $as_echo "no" >&6; }
13219 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13220 $as_echo_n "checking for libXaw... " >&6; }
13221 if test "${emacs_cv_xaw+set}" = set; then
13222 $as_echo_n "(cached) " >&6
13223 else
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h. */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230
13231 #include <X11/Intrinsic.h>
13232 #include <X11/Xaw/Simple.h>
13233 int
13234 main ()
13235 {
13236
13237 ;
13238 return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext conftest$ac_exeext
13242 if { (ac_try="$ac_link"
13243 case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13246 esac
13247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13248 $as_echo "$ac_try_echo") >&5
13249 (eval "$ac_link") 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest$ac_exeext && {
13259 test "$cross_compiling" = yes ||
13260 $as_test_x conftest$ac_exeext
13261 }; then
13262 emacs_cv_xaw=yes
13263 else
13264 $as_echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 emacs_cv_xaw=no
13268 fi
13269
13270 rm -rf conftest.dSYM
13271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13272 conftest$ac_exeext conftest.$ac_ext
13273 fi
13274
13275 if test $emacs_cv_xaw = yes; then
13276 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13277 $as_echo "yes; using Lucid toolkit" >&6; }
13278 USE_X_TOOLKIT=LUCID
13279 LUCID_LIBW=-lXaw
13280 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13281 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13282 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13283 { (exit 1); exit 1; }; }
13284 else
13285 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13286 $as_echo "no; do not use toolkit by default" >&6; }
13287 USE_X_TOOLKIT=none
13288 fi
13289 fi
13290 fi
13291
13292 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13293
13294 LIBXTR6=
13295 if test "${USE_X_TOOLKIT}" != "none"; then
13296 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13297 $as_echo_n "checking X11 toolkit version... " >&6; }
13298 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13299 $as_echo_n "(cached) " >&6
13300 else
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include <X11/Intrinsic.h>
13308 int
13309 main ()
13310 {
13311 #if XtSpecificationRelease < 6
13312 fail;
13313 #endif
13314
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324 esac
13325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13326 $as_echo "$ac_try_echo") >&5
13327 (eval "$ac_link") 2>conftest.er1
13328 ac_status=$?
13329 grep -v '^ *+' conftest.er1 >conftest.err
13330 rm -f conftest.er1
13331 cat conftest.err >&5
13332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest$ac_exeext && {
13337 test "$cross_compiling" = yes ||
13338 $as_test_x conftest$ac_exeext
13339 }; then
13340 emacs_cv_x11_toolkit_version_6=yes
13341 else
13342 $as_echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 emacs_cv_x11_toolkit_version_6=no
13346 fi
13347
13348 rm -rf conftest.dSYM
13349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13350 conftest$ac_exeext conftest.$ac_ext
13351 fi
13352
13353 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13354 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13355 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13356 $as_echo "6 or newer" >&6; }
13357
13358 cat >>confdefs.h <<\_ACEOF
13359 #define HAVE_X11XTR6 1
13360 _ACEOF
13361
13362 LIBXTR6="-lSM -lICE"
13363 case "$opsys" in
13364 ## Use libw.a along with X11R6 Xt.
13365 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13366 esac
13367 else
13368 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13369 $as_echo "before 6" >&6; }
13370 fi
13371
13372 OLDLIBS="$LIBS"
13373 if test x$HAVE_X11XTR6 = xyes; then
13374 LIBS="-lXt -lSM -lICE $LIBS"
13375 else
13376 LIBS="-lXt $LIBS"
13377 fi
13378
13379 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13380 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13381 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13382 $as_echo_n "(cached) " >&6
13383 else
13384 ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-lXmu $LIBS"
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13396 #ifdef __cplusplus
13397 extern "C"
13398 #endif
13399 char XmuConvertStandardSelection ();
13400 int
13401 main ()
13402 {
13403 return XmuConvertStandardSelection ();
13404 ;
13405 return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (ac_try="$ac_link"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413 esac
13414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415 $as_echo "$ac_try_echo") >&5
13416 (eval "$ac_link") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest$ac_exeext && {
13426 test "$cross_compiling" = yes ||
13427 $as_test_x conftest$ac_exeext
13428 }; then
13429 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13430 else
13431 $as_echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13435 fi
13436
13437 rm -rf conftest.dSYM
13438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13441 fi
13442 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13443 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13444 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_LIBXMU 1
13447 _ACEOF
13448
13449 LIBS="-lXmu $LIBS"
13450
13451 fi
13452
13453 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13454 fi
13455
13456
13457 LIBXMU=-lXmu
13458 case "$machine" in
13459 ## These machines don't supply Xmu.
13460 hpux* | aix4-2 )
13461 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13462 ;;
13463 esac
13464
13465
13466 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13467 if test "${HAVE_X11}" = "yes"; then
13468 if test "${USE_X_TOOLKIT}" != "none"; then
13469
13470 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13471 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13472 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13473 $as_echo_n "(cached) " >&6
13474 else
13475 ac_check_lib_save_LIBS=$LIBS
13476 LIBS="-lXext $LIBS"
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483
13484 /* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13487 #ifdef __cplusplus
13488 extern "C"
13489 #endif
13490 char XShapeQueryExtension ();
13491 int
13492 main ()
13493 {
13494 return XShapeQueryExtension ();
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (ac_try="$ac_link"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504 esac
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507 (eval "$ac_link") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest$ac_exeext && {
13517 test "$cross_compiling" = yes ||
13518 $as_test_x conftest$ac_exeext
13519 }; then
13520 ac_cv_lib_Xext_XShapeQueryExtension=yes
13521 else
13522 $as_echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13524
13525 ac_cv_lib_Xext_XShapeQueryExtension=no
13526 fi
13527
13528 rm -rf conftest.dSYM
13529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13530 conftest$ac_exeext conftest.$ac_ext
13531 LIBS=$ac_check_lib_save_LIBS
13532 fi
13533 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13534 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13535 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_LIBXEXT 1
13538 _ACEOF
13539
13540 LIBS="-lXext $LIBS"
13541
13542 fi
13543
13544 fi
13545 fi
13546
13547 LIBXP=
13548 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13549 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13550 $as_echo_n "checking for Motif version 2.1... " >&6; }
13551 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13552 $as_echo_n "(cached) " >&6
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <Xm/Xm.h>
13561 int
13562 main ()
13563 {
13564 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13565 int x = 5;
13566 #else
13567 Motif version prior to 2.1.
13568 #endif
13569 ;
13570 return 0;
13571 }
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 emacs_cv_motif_version_2_1=yes
13592 else
13593 $as_echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 emacs_cv_motif_version_2_1=no
13597 fi
13598
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13602 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13603 if test $emacs_cv_motif_version_2_1 = yes; then
13604 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13605 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13606 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13607 $as_echo_n "(cached) " >&6
13608 else
13609 ac_check_lib_save_LIBS=$LIBS
13610 LIBS="-lXp $LIBS"
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h. */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617
13618 /* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
13621 #ifdef __cplusplus
13622 extern "C"
13623 #endif
13624 char XpCreateContext ();
13625 int
13626 main ()
13627 {
13628 return XpCreateContext ();
13629 ;
13630 return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest.$ac_objext conftest$ac_exeext
13634 if { (ac_try="$ac_link"
13635 case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13638 esac
13639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641 (eval "$ac_link") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest$ac_exeext && {
13651 test "$cross_compiling" = yes ||
13652 $as_test_x conftest$ac_exeext
13653 }; then
13654 ac_cv_lib_Xp_XpCreateContext=yes
13655 else
13656 $as_echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 ac_cv_lib_Xp_XpCreateContext=no
13660 fi
13661
13662 rm -rf conftest.dSYM
13663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13664 conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS
13666 fi
13667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13668 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13669 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13670 LIBXP=-lXp
13671 fi
13672
13673 else
13674 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13675 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13676 if test "${emacs_cv_lesstif+set}" = set; then
13677 $as_echo_n "(cached) " >&6
13678 else
13679 # We put this in CFLAGS temporarily to precede other -I options
13680 # that might be in CFLAGS temporarily.
13681 # We put this in CPPFLAGS where it precedes the other -I options.
13682 OLD_CPPFLAGS=$CPPFLAGS
13683 OLD_CFLAGS=$CFLAGS
13684 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13685 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h. */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13693 int
13694 main ()
13695 {
13696 int x = 5;
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest.$ac_objext
13702 if { (ac_try="$ac_compile"
13703 case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706 esac
13707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13708 $as_echo "$ac_try_echo") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 emacs_cv_lesstif=yes
13720 else
13721 $as_echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 emacs_cv_lesstif=no
13725 fi
13726
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 fi
13729 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13730 $as_echo "$emacs_cv_lesstif" >&6; }
13731 if test $emacs_cv_lesstif = yes; then
13732 # Make sure this -I option remains in CPPFLAGS after it is set
13733 # back to REAL_CPPFLAGS.
13734 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13735 # have those other -I options anyway. Ultimately, having this
13736 # directory ultimately in CPPFLAGS will be enough.
13737 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13738 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13739 else
13740 CFLAGS=$OLD_CFLAGS
13741 CPPFLAGS=$OLD_CPPFLAGS
13742 fi
13743 fi
13744 fi
13745
13746
13747
13748 USE_TOOLKIT_SCROLL_BARS=no
13749 if test "${with_toolkit_scroll_bars}" != "no"; then
13750 if test "${USE_X_TOOLKIT}" != "none"; then
13751 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define USE_TOOLKIT_SCROLL_BARS 1
13754 _ACEOF
13755
13756 HAVE_XAW3D=no
13757 USE_TOOLKIT_SCROLL_BARS=yes
13758 elif test "${HAVE_XAW3D}" = "yes"; then
13759 cat >>confdefs.h <<\_ACEOF
13760 #define USE_TOOLKIT_SCROLL_BARS 1
13761 _ACEOF
13762
13763 USE_TOOLKIT_SCROLL_BARS=yes
13764 fi
13765 elif test "${HAVE_GTK}" = "yes"; then
13766 cat >>confdefs.h <<\_ACEOF
13767 #define USE_TOOLKIT_SCROLL_BARS 1
13768 _ACEOF
13769
13770 USE_TOOLKIT_SCROLL_BARS=yes
13771 elif test "${HAVE_NS}" = "yes"; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define USE_TOOLKIT_SCROLL_BARS 1
13774 _ACEOF
13775
13776 USE_TOOLKIT_SCROLL_BARS=yes
13777 fi
13778 fi
13779
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786
13787 #include <X11/Xlib.h>
13788 #include <X11/Xresource.h>
13789 int
13790 main ()
13791 {
13792 XIMProc callback;
13793 ;
13794 return 0;
13795 }
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13804 $as_echo "$ac_try_echo") >&5
13805 (eval "$ac_compile") 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } && {
13812 test -z "$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13814 } && test -s conftest.$ac_objext; then
13815 HAVE_XIM=yes
13816
13817 cat >>confdefs.h <<\_ACEOF
13818 #define HAVE_XIM 1
13819 _ACEOF
13820
13821 else
13822 $as_echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 HAVE_XIM=no
13826 fi
13827
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829
13830
13831 if test "${with_xim}" != "no"; then
13832
13833 cat >>confdefs.h <<\_ACEOF
13834 #define USE_XIM 1
13835 _ACEOF
13836
13837 fi
13838
13839
13840 if test "${HAVE_XIM}" != "no"; then
13841 late_CFLAGS=$CFLAGS
13842 if test "$GCC" = yes; then
13843 CFLAGS="$CFLAGS --pedantic-errors"
13844 fi
13845 cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h. */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851
13852 #include <X11/Xlib.h>
13853 #include <X11/Xresource.h>
13854 int
13855 main ()
13856 {
13857 Display *display;
13858 XrmDatabase db;
13859 char *res_name;
13860 char *res_class;
13861 XIMProc callback;
13862 XPointer *client_data;
13863 #ifndef __GNUC__
13864 /* If we're not using GCC, it's probably not XFree86, and this is
13865 probably right, but we can't use something like --pedantic-errors. */
13866 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13867 char*, XIMProc, XPointer*);
13868 #endif
13869 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13870 client_data);
13871 ;
13872 return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880 esac
13881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13882 $as_echo "$ac_try_echo") >&5
13883 (eval "$ac_compile") 2>conftest.er1
13884 ac_status=$?
13885 grep -v '^ *+' conftest.er1 >conftest.err
13886 rm -f conftest.er1
13887 cat conftest.err >&5
13888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); } && {
13890 test -z "$ac_c_werror_flag" ||
13891 test ! -s conftest.err
13892 } && test -s conftest.$ac_objext; then
13893 emacs_cv_arg6_star=yes
13894 else
13895 $as_echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13897
13898
13899 fi
13900
13901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902
13903 if test "$emacs_cv_arg6_star" = yes; then
13904 cat >>confdefs.h <<\_ACEOF
13905 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13906 _ACEOF
13907
13908 else
13909 cat >>confdefs.h <<\_ACEOF
13910 #define XRegisterIMInstantiateCallback_arg6 XPointer
13911 _ACEOF
13912
13913 fi
13914 CFLAGS=$late_CFLAGS
13915 fi
13916
13917 ### Start of font-backend (under any platform) section.
13918 # (nothing here yet -- this is a placeholder)
13919 ### End of font-backend (under any platform) section.
13920
13921 ### Start of font-backend (under X11) section.
13922 if test "${HAVE_X11}" = "yes"; then
13923
13924 succeeded=no
13925
13926 # Extract the first word of "pkg-config", so it can be a program name with args.
13927 set dummy pkg-config; ac_word=$2
13928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13929 $as_echo_n "checking for $ac_word... " >&6; }
13930 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13931 $as_echo_n "(cached) " >&6
13932 else
13933 case $PKG_CONFIG in
13934 [\\/]* | ?:[\\/]*)
13935 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13936 ;;
13937 *)
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13940 do
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13948 fi
13949 done
13950 done
13951 IFS=$as_save_IFS
13952
13953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13954 ;;
13955 esac
13956 fi
13957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13958 if test -n "$PKG_CONFIG"; then
13959 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13960 $as_echo "$PKG_CONFIG" >&6; }
13961 else
13962 { $as_echo "$as_me:$LINENO: result: no" >&5
13963 $as_echo "no" >&6; }
13964 fi
13965
13966
13967
13968 if test "$PKG_CONFIG" = "no" ; then
13969 HAVE_FC=no
13970 else
13971 PKG_CONFIG_MIN_VERSION=0.9.0
13972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13973 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13974 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13975
13976 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13977 { $as_echo "$as_me:$LINENO: result: yes" >&5
13978 $as_echo "yes" >&6; }
13979 succeeded=yes
13980
13981 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13982 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13983 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13984 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13985 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13986
13987 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13988 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13989 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13990 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13991 $as_echo "$FONTCONFIG_LIBS" >&6; }
13992 else
13993 { $as_echo "$as_me:$LINENO: result: no" >&5
13994 $as_echo "no" >&6; }
13995 FONTCONFIG_CFLAGS=""
13996 FONTCONFIG_LIBS=""
13997 ## If we have a custom action on failure, don't print errors, but
13998 ## do set a variable so people can do so.
13999 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14000
14001 fi
14002
14003
14004
14005 else
14006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14008 fi
14009 fi
14010
14011 if test $succeeded = yes; then
14012 HAVE_FC=yes
14013 else
14014 HAVE_FC=no
14015 fi
14016
14017
14018 ## Use -lXft if available, unless `--with-xft=no'.
14019 HAVE_XFT=maybe
14020 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14021 with_xft="no";
14022 fi
14023 if test "x${with_xft}" != "xno"; then
14024
14025
14026 succeeded=no
14027
14028 # Extract the first word of "pkg-config", so it can be a program name with args.
14029 set dummy pkg-config; ac_word=$2
14030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14033 $as_echo_n "(cached) " >&6
14034 else
14035 case $PKG_CONFIG in
14036 [\\/]* | ?:[\\/]*)
14037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14038 ;;
14039 *)
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14042 do
14043 IFS=$as_save_IFS
14044 test -z "$as_dir" && as_dir=.
14045 for ac_exec_ext in '' $ac_executable_extensions; do
14046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14049 break 2
14050 fi
14051 done
14052 done
14053 IFS=$as_save_IFS
14054
14055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14056 ;;
14057 esac
14058 fi
14059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14060 if test -n "$PKG_CONFIG"; then
14061 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14062 $as_echo "$PKG_CONFIG" >&6; }
14063 else
14064 { $as_echo "$as_me:$LINENO: result: no" >&5
14065 $as_echo "no" >&6; }
14066 fi
14067
14068
14069
14070 if test "$PKG_CONFIG" = "no" ; then
14071 HAVE_XFT=no
14072 else
14073 PKG_CONFIG_MIN_VERSION=0.9.0
14074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14075 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14076 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14077
14078 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14079 { $as_echo "$as_me:$LINENO: result: yes" >&5
14080 $as_echo "yes" >&6; }
14081 succeeded=yes
14082
14083 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14084 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14085 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14086 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14087 $as_echo "$XFT_CFLAGS" >&6; }
14088
14089 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14090 $as_echo_n "checking XFT_LIBS... " >&6; }
14091 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14092 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14093 $as_echo "$XFT_LIBS" >&6; }
14094 else
14095 { $as_echo "$as_me:$LINENO: result: no" >&5
14096 $as_echo "no" >&6; }
14097 XFT_CFLAGS=""
14098 XFT_LIBS=""
14099 ## If we have a custom action on failure, don't print errors, but
14100 ## do set a variable so people can do so.
14101 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14102
14103 fi
14104
14105
14106
14107 else
14108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14110 fi
14111 fi
14112
14113 if test $succeeded = yes; then
14114 :
14115 else
14116 HAVE_XFT=no
14117 fi
14118
14119 ## Because xftfont.c uses XRenderQueryExtension, we also
14120 ## need to link to -lXrender.
14121 HAVE_XRENDER=no
14122 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14123 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14124 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14125 $as_echo_n "(cached) " >&6
14126 else
14127 ac_check_lib_save_LIBS=$LIBS
14128 LIBS="-lXrender $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 XRenderQueryExtension ();
14143 int
14144 main ()
14145 {
14146 return XRenderQueryExtension ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158 $as_echo "$ac_try_echo") >&5
14159 (eval "$ac_link") 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && {
14166 test -z "$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14168 } && test -s conftest$ac_exeext && {
14169 test "$cross_compiling" = yes ||
14170 $as_test_x conftest$ac_exeext
14171 }; then
14172 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14173 else
14174 $as_echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ac_cv_lib_Xrender_XRenderQueryExtension=no
14178 fi
14179
14180 rm -rf conftest.dSYM
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14184 fi
14185 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14186 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14187 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14188 HAVE_XRENDER=yes
14189 fi
14190
14191 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14192 OLD_CPPFLAGS="$CPPFLAGS"
14193 OLD_CFLAGS="$CFLAGS"
14194 OLD_LIBS="$LIBS"
14195 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14196 CFLAGS="$CFLAGS $XFT_CFLAGS"
14197 XFT_LIBS="-lXrender $XFT_LIBS"
14198 LIBS="$XFT_LIBS $LIBS"
14199 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14200 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14201 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14202 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14203 $as_echo_n "(cached) " >&6
14204 fi
14205 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14206 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14207 else
14208 # Is the header compilable?
14209 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14210 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14211 cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h. */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14218 #include <X11/Xft/Xft.h>
14219 _ACEOF
14220 rm -f conftest.$ac_objext
14221 if { (ac_try="$ac_compile"
14222 case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14225 esac
14226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest.$ac_objext; then
14238 ac_header_compiler=yes
14239 else
14240 $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 ac_header_compiler=no
14244 fi
14245
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14248 $as_echo "$ac_header_compiler" >&6; }
14249
14250 # Is the header present?
14251 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14252 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h. */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 #include <X11/Xft/Xft.h>
14260 _ACEOF
14261 if { (ac_try="$ac_cpp conftest.$ac_ext"
14262 case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265 esac
14266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14267 $as_echo "$ac_try_echo") >&5
14268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14269 ac_status=$?
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
14273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } >/dev/null && {
14275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 }; then
14278 ac_header_preproc=yes
14279 else
14280 $as_echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 ac_header_preproc=no
14284 fi
14285
14286 rm -f conftest.err conftest.$ac_ext
14287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14288 $as_echo "$ac_header_preproc" >&6; }
14289
14290 # So? What about this header?
14291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14292 yes:no: )
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14297 ac_header_preproc=yes
14298 ;;
14299 no:yes:* )
14300 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14301 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14302 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14303 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14304 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14305 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14306 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14307 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14308 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14309 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14310 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14311 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14312
14313 ;;
14314 esac
14315 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14316 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14317 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14318 $as_echo_n "(cached) " >&6
14319 else
14320 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14321 fi
14322 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14323 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14324
14325 fi
14326 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14327 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14328 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14329 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14330 $as_echo_n "(cached) " >&6
14331 else
14332 ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-lXft $XFT_LIBS $LIBS"
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340
14341 /* Override any GCC internal prototype to avoid an error.
14342 Use char because int might match the return type of a GCC
14343 builtin and then its argument prototype would still apply. */
14344 #ifdef __cplusplus
14345 extern "C"
14346 #endif
14347 char XftFontOpen ();
14348 int
14349 main ()
14350 {
14351 return XftFontOpen ();
14352 ;
14353 return 0;
14354 }
14355 _ACEOF
14356 rm -f conftest.$ac_objext conftest$ac_exeext
14357 if { (ac_try="$ac_link"
14358 case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14361 esac
14362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364 (eval "$ac_link") 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && {
14371 test -z "$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14373 } && test -s conftest$ac_exeext && {
14374 test "$cross_compiling" = yes ||
14375 $as_test_x conftest$ac_exeext
14376 }; then
14377 ac_cv_lib_Xft_XftFontOpen=yes
14378 else
14379 $as_echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_cv_lib_Xft_XftFontOpen=no
14383 fi
14384
14385 rm -rf conftest.dSYM
14386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14387 conftest$ac_exeext conftest.$ac_ext
14388 LIBS=$ac_check_lib_save_LIBS
14389 fi
14390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14391 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14392 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14393 HAVE_XFT=yes
14394 fi
14395
14396 fi
14397
14398
14399
14400 if test "${HAVE_XFT}" = "yes"; then
14401
14402 cat >>confdefs.h <<\_ACEOF
14403 #define HAVE_XFT 1
14404 _ACEOF
14405
14406
14407 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14408 else
14409 CPPFLAGS="$OLD_CPPFLAGS"
14410 CFLAGS="$OLD_CFLAGS"
14411 LIBS="$OLD_LIBS"
14412 fi # "${HAVE_XFT}" = "yes"
14413 fi # "$HAVE_XFT" != no
14414 fi # "x${with_xft}" != "xno"
14415
14416 if test "$HAVE_XFT" != "yes"; then
14417 HAVE_XFT=no
14418 fi
14419
14420
14421 HAVE_FREETYPE=no
14422 ## We used to allow building with FreeType and without Xft.
14423 ## However, the ftx font backend driver is not in good shape.
14424 if test "${HAVE_XFT}" = "yes"; then
14425 HAVE_FREETYPE=yes
14426 FONTCONFIG_CFLAGS=
14427 FONTCONFIG_LIBS=
14428 fi
14429
14430 HAVE_LIBOTF=no
14431 if test "${HAVE_FREETYPE}" = "yes"; then
14432
14433 cat >>confdefs.h <<\_ACEOF
14434 #define HAVE_FREETYPE 1
14435 _ACEOF
14436
14437 if test "${with_libotf}" != "no"; then
14438
14439 succeeded=no
14440
14441 # Extract the first word of "pkg-config", so it can be a program name with args.
14442 set dummy pkg-config; ac_word=$2
14443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14446 $as_echo_n "(cached) " >&6
14447 else
14448 case $PKG_CONFIG in
14449 [\\/]* | ?:[\\/]*)
14450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14451 ;;
14452 *)
14453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14454 for as_dir in $PATH
14455 do
14456 IFS=$as_save_IFS
14457 test -z "$as_dir" && as_dir=.
14458 for ac_exec_ext in '' $ac_executable_extensions; do
14459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14460 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14462 break 2
14463 fi
14464 done
14465 done
14466 IFS=$as_save_IFS
14467
14468 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14469 ;;
14470 esac
14471 fi
14472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14473 if test -n "$PKG_CONFIG"; then
14474 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14475 $as_echo "$PKG_CONFIG" >&6; }
14476 else
14477 { $as_echo "$as_me:$LINENO: result: no" >&5
14478 $as_echo "no" >&6; }
14479 fi
14480
14481
14482
14483 if test "$PKG_CONFIG" = "no" ; then
14484 HAVE_LIBOTF=no
14485 else
14486 PKG_CONFIG_MIN_VERSION=0.9.0
14487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14488 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14489 $as_echo_n "checking for libotf... " >&6; }
14490
14491 if $PKG_CONFIG --exists "libotf" 2>&5; then
14492 { $as_echo "$as_me:$LINENO: result: yes" >&5
14493 $as_echo "yes" >&6; }
14494 succeeded=yes
14495
14496 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14497 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14498 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14499 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14500 $as_echo "$LIBOTF_CFLAGS" >&6; }
14501
14502 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14503 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14504 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14505 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14506 $as_echo "$LIBOTF_LIBS" >&6; }
14507 else
14508 { $as_echo "$as_me:$LINENO: result: no" >&5
14509 $as_echo "no" >&6; }
14510 LIBOTF_CFLAGS=""
14511 LIBOTF_LIBS=""
14512 ## If we have a custom action on failure, don't print errors, but
14513 ## do set a variable so people can do so.
14514 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14515
14516 fi
14517
14518
14519
14520 else
14521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14523 fi
14524 fi
14525
14526 if test $succeeded = yes; then
14527 HAVE_LIBOTF=yes
14528 else
14529 HAVE_LIBOTF=no
14530 fi
14531
14532 if test "$HAVE_LIBOTF" = "yes"; then
14533
14534 cat >>confdefs.h <<\_ACEOF
14535 #define HAVE_LIBOTF 1
14536 _ACEOF
14537
14538 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14539 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14540 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14541 $as_echo_n "(cached) " >&6
14542 else
14543 ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-lotf $LIBS"
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h. */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14555 #ifdef __cplusplus
14556 extern "C"
14557 #endif
14558 char OTF_get_variation_glyphs ();
14559 int
14560 main ()
14561 {
14562 return OTF_get_variation_glyphs ();
14563 ;
14564 return 0;
14565 }
14566 _ACEOF
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572 esac
14573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14574 $as_echo "$ac_try_echo") >&5
14575 (eval "$ac_link") 2>conftest.er1
14576 ac_status=$?
14577 grep -v '^ *+' conftest.er1 >conftest.err
14578 rm -f conftest.er1
14579 cat conftest.err >&5
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest$ac_exeext && {
14585 test "$cross_compiling" = yes ||
14586 $as_test_x conftest$ac_exeext
14587 }; then
14588 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14589 else
14590 $as_echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14594 fi
14595
14596 rm -rf conftest.dSYM
14597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14598 conftest$ac_exeext conftest.$ac_ext
14599 LIBS=$ac_check_lib_save_LIBS
14600 fi
14601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14602 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14603 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14604 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14605 else
14606 HAVE_OTF_GET_VARIATION_GLYPHS=no
14607 fi
14608
14609 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14610
14611 cat >>confdefs.h <<\_ACEOF
14612 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14613 _ACEOF
14614
14615 fi
14616 fi
14617 fi
14618 fi
14619
14620 HAVE_M17N_FLT=no
14621 if test "${HAVE_LIBOTF}" = yes; then
14622 if test "${with_m17n_flt}" != "no"; then
14623
14624 succeeded=no
14625
14626 # Extract the first word of "pkg-config", so it can be a program name with args.
14627 set dummy pkg-config; ac_word=$2
14628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14631 $as_echo_n "(cached) " >&6
14632 else
14633 case $PKG_CONFIG in
14634 [\\/]* | ?:[\\/]*)
14635 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14636 ;;
14637 *)
14638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 for as_dir in $PATH
14640 do
14641 IFS=$as_save_IFS
14642 test -z "$as_dir" && as_dir=.
14643 for ac_exec_ext in '' $ac_executable_extensions; do
14644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14645 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14647 break 2
14648 fi
14649 done
14650 done
14651 IFS=$as_save_IFS
14652
14653 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14654 ;;
14655 esac
14656 fi
14657 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14658 if test -n "$PKG_CONFIG"; then
14659 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14660 $as_echo "$PKG_CONFIG" >&6; }
14661 else
14662 { $as_echo "$as_me:$LINENO: result: no" >&5
14663 $as_echo "no" >&6; }
14664 fi
14665
14666
14667
14668 if test "$PKG_CONFIG" = "no" ; then
14669 HAVE_M17N_FLT=no
14670 else
14671 PKG_CONFIG_MIN_VERSION=0.9.0
14672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14673 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14674 $as_echo_n "checking for m17n-flt... " >&6; }
14675
14676 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14677 { $as_echo "$as_me:$LINENO: result: yes" >&5
14678 $as_echo "yes" >&6; }
14679 succeeded=yes
14680
14681 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14682 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14683 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14684 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14685 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14686
14687 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14688 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14689 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14690 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14691 $as_echo "$M17N_FLT_LIBS" >&6; }
14692 else
14693 { $as_echo "$as_me:$LINENO: result: no" >&5
14694 $as_echo "no" >&6; }
14695 M17N_FLT_CFLAGS=""
14696 M17N_FLT_LIBS=""
14697 ## If we have a custom action on failure, don't print errors, but
14698 ## do set a variable so people can do so.
14699 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14700
14701 fi
14702
14703
14704
14705 else
14706 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14707 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14708 fi
14709 fi
14710
14711 if test $succeeded = yes; then
14712 HAVE_M17N_FLT=yes
14713 else
14714 HAVE_M17N_FLT=no
14715 fi
14716
14717 if test "$HAVE_M17N_FLT" = "yes"; then
14718
14719 cat >>confdefs.h <<\_ACEOF
14720 #define HAVE_M17N_FLT 1
14721 _ACEOF
14722
14723 fi
14724 fi
14725 fi
14726 else
14727 HAVE_XFT=no
14728 HAVE_FREETYPE=no
14729 HAVE_LIBOTF=no
14730 HAVE_M17N_FLT=no
14731 fi
14732
14733 ### End of font-backend (under X11) section.
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744 ### Use -lXpm if available, unless `--with-xpm=no'.
14745 HAVE_XPM=no
14746 LIBXPM=
14747 if test "${HAVE_X11}" = "yes"; then
14748 if test "${with_xpm}" != "no"; then
14749 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14750 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14751 $as_echo_n "checking for X11/xpm.h... " >&6; }
14752 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14753 $as_echo_n "(cached) " >&6
14754 fi
14755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14756 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14757 else
14758 # Is the header compilable?
14759 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14760 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h. */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 $ac_includes_default
14768 #include <X11/xpm.h>
14769 _ACEOF
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14775 esac
14776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14777 $as_echo "$ac_try_echo") >&5
14778 (eval "$ac_compile") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest.$ac_objext; then
14788 ac_header_compiler=yes
14789 else
14790 $as_echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_header_compiler=no
14794 fi
14795
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14798 $as_echo "$ac_header_compiler" >&6; }
14799
14800 # Is the header present?
14801 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14802 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14803 cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 #include <X11/xpm.h>
14810 _ACEOF
14811 if { (ac_try="$ac_cpp conftest.$ac_ext"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815 esac
14816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14817 $as_echo "$ac_try_echo") >&5
14818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } >/dev/null && {
14825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 }; then
14828 ac_header_preproc=yes
14829 else
14830 $as_echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_header_preproc=no
14834 fi
14835
14836 rm -f conftest.err conftest.$ac_ext
14837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14838 $as_echo "$ac_header_preproc" >&6; }
14839
14840 # So? What about this header?
14841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14842 yes:no: )
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14844 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14846 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14847 ac_header_preproc=yes
14848 ;;
14849 no:yes:* )
14850 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14851 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14852 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14853 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14854 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14855 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14856 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14857 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14858 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14859 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14860 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14861 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14862
14863 ;;
14864 esac
14865 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14866 $as_echo_n "checking for X11/xpm.h... " >&6; }
14867 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14868 $as_echo_n "(cached) " >&6
14869 else
14870 ac_cv_header_X11_xpm_h=$ac_header_preproc
14871 fi
14872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14873 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14874
14875 fi
14876 if test $ac_cv_header_X11_xpm_h = yes; then
14877 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14878 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14879 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14880 $as_echo_n "(cached) " >&6
14881 else
14882 ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lXpm -lX11 $LIBS"
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h. */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char XpmReadFileToPixmap ();
14898 int
14899 main ()
14900 {
14901 return XpmReadFileToPixmap ();
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (ac_try="$ac_link"
14908 case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911 esac
14912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14913 $as_echo "$ac_try_echo") >&5
14914 (eval "$ac_link") 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest$ac_exeext && {
14924 test "$cross_compiling" = yes ||
14925 $as_test_x conftest$ac_exeext
14926 }; then
14927 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14928 else
14929 $as_echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14933 fi
14934
14935 rm -rf conftest.dSYM
14936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14937 conftest$ac_exeext conftest.$ac_ext
14938 LIBS=$ac_check_lib_save_LIBS
14939 fi
14940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14941 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14942 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14943 HAVE_XPM=yes
14944 fi
14945
14946 fi
14947
14948
14949 if test "${HAVE_XPM}" = "yes"; then
14950 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14951 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include "X11/xpm.h"
14959 #ifndef XpmReturnAllocPixels
14960 no_return_alloc_pixels
14961 #endif
14962
14963 _ACEOF
14964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14965 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14966 HAVE_XPM=no
14967 else
14968 HAVE_XPM=yes
14969 fi
14970 rm -f conftest*
14971
14972
14973 if test "${HAVE_XPM}" = "yes"; then
14974 { $as_echo "$as_me:$LINENO: result: yes" >&5
14975 $as_echo "yes" >&6; }
14976 else
14977 { $as_echo "$as_me:$LINENO: result: no" >&5
14978 $as_echo "no" >&6; }
14979 fi
14980 fi
14981 fi
14982
14983 if test "${HAVE_XPM}" = "yes"; then
14984
14985 cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_XPM 1
14987 _ACEOF
14988
14989 LIBXPM=-lXpm
14990 fi
14991 fi
14992
14993
14994 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14995 HAVE_JPEG=no
14996 LIBJPEG=
14997 if test "${HAVE_X11}" = "yes"; then
14998 if test "${with_jpeg}" != "no"; then
14999 if test "${ac_cv_header_jerror_h+set}" = set; then
15000 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15001 $as_echo_n "checking for jerror.h... " >&6; }
15002 if test "${ac_cv_header_jerror_h+set}" = set; then
15003 $as_echo_n "(cached) " >&6
15004 fi
15005 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15006 $as_echo "$ac_cv_header_jerror_h" >&6; }
15007 else
15008 # Is the header compilable?
15009 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15010 $as_echo_n "checking jerror.h usability... " >&6; }
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15018 #include <jerror.h>
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15027 $as_echo "$ac_try_echo") >&5
15028 (eval "$ac_compile") 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } && {
15035 test -z "$ac_c_werror_flag" ||
15036 test ! -s conftest.err
15037 } && test -s conftest.$ac_objext; then
15038 ac_header_compiler=yes
15039 else
15040 $as_echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_header_compiler=no
15044 fi
15045
15046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15048 $as_echo "$ac_header_compiler" >&6; }
15049
15050 # Is the header present?
15051 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15052 $as_echo_n "checking jerror.h presence... " >&6; }
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h. */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 #include <jerror.h>
15060 _ACEOF
15061 if { (ac_try="$ac_cpp conftest.$ac_ext"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065 esac
15066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15067 $as_echo "$ac_try_echo") >&5
15068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } >/dev/null && {
15075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 }; then
15078 ac_header_preproc=yes
15079 else
15080 $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083 ac_header_preproc=no
15084 fi
15085
15086 rm -f conftest.err conftest.$ac_ext
15087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15088 $as_echo "$ac_header_preproc" >&6; }
15089
15090 # So? What about this header?
15091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15092 yes:no: )
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15094 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15096 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15097 ac_header_preproc=yes
15098 ;;
15099 no:yes:* )
15100 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15101 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15102 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15103 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15104 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15105 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15106 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15107 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15108 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15109 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15110 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15111 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15112
15113 ;;
15114 esac
15115 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15116 $as_echo_n "checking for jerror.h... " >&6; }
15117 if test "${ac_cv_header_jerror_h+set}" = set; then
15118 $as_echo_n "(cached) " >&6
15119 else
15120 ac_cv_header_jerror_h=$ac_header_preproc
15121 fi
15122 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15123 $as_echo "$ac_cv_header_jerror_h" >&6; }
15124
15125 fi
15126 if test $ac_cv_header_jerror_h = yes; then
15127 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15128 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15129 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15130 $as_echo_n "(cached) " >&6
15131 else
15132 ac_check_lib_save_LIBS=$LIBS
15133 LIBS="-ljpeg $LIBS"
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h. */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15140
15141 /* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15144 #ifdef __cplusplus
15145 extern "C"
15146 #endif
15147 char jpeg_destroy_compress ();
15148 int
15149 main ()
15150 {
15151 return jpeg_destroy_compress ();
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (ac_try="$ac_link"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15161 esac
15162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15163 $as_echo "$ac_try_echo") >&5
15164 (eval "$ac_link") 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext && {
15174 test "$cross_compiling" = yes ||
15175 $as_test_x conftest$ac_exeext
15176 }; then
15177 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15178 else
15179 $as_echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15183 fi
15184
15185 rm -rf conftest.dSYM
15186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187 conftest$ac_exeext conftest.$ac_ext
15188 LIBS=$ac_check_lib_save_LIBS
15189 fi
15190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15191 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15192 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15193 HAVE_JPEG=yes
15194 fi
15195
15196 fi
15197
15198
15199 fi
15200
15201
15202 if test "${HAVE_JPEG}" = "yes"; then
15203 cat >>confdefs.h <<\_ACEOF
15204 #define HAVE_JPEG 1
15205 _ACEOF
15206
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 #include <jpeglib.h>
15214 version=JPEG_LIB_VERSION
15215
15216 _ACEOF
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15219 cat >>confdefs.h <<\_ACEOF
15220 #define HAVE_JPEG 1
15221 _ACEOF
15222
15223 else
15224 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15225 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15226 HAVE_JPEG=no
15227 fi
15228 rm -f conftest*
15229
15230 fi
15231 if test "${HAVE_JPEG}" = "yes"; then
15232 LIBJPEG=-ljpeg
15233 fi
15234 fi
15235
15236
15237 ### Use -lpng if available, unless `--with-png=no'.
15238 HAVE_PNG=no
15239 LIBPNG=
15240 if test "${HAVE_X11}" = "yes"; then
15241 if test "${with_png}" != "no"; then
15242 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15243 # in /usr/include/libpng.
15244
15245
15246 for ac_header in png.h libpng/png.h
15247 do
15248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15251 $as_echo_n "checking for $ac_header... " >&6; }
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 $as_echo_n "(cached) " >&6
15254 fi
15255 ac_res=`eval 'as_val=${'$as_ac_Header'}
15256 $as_echo "$as_val"'`
15257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15258 $as_echo "$ac_res" >&6; }
15259 else
15260 # Is the header compilable?
15261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15262 $as_echo_n "checking $ac_header usability... " >&6; }
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 $ac_includes_default
15270 #include <$ac_header>
15271 _ACEOF
15272 rm -f conftest.$ac_objext
15273 if { (ac_try="$ac_compile"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277 esac
15278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279 $as_echo "$ac_try_echo") >&5
15280 (eval "$ac_compile") 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } && {
15287 test -z "$ac_c_werror_flag" ||
15288 test ! -s conftest.err
15289 } && test -s conftest.$ac_objext; then
15290 ac_header_compiler=yes
15291 else
15292 $as_echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 ac_header_compiler=no
15296 fi
15297
15298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15300 $as_echo "$ac_header_compiler" >&6; }
15301
15302 # Is the header present?
15303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15304 $as_echo_n "checking $ac_header presence... " >&6; }
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 #include <$ac_header>
15312 _ACEOF
15313 if { (ac_try="$ac_cpp conftest.$ac_ext"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317 esac
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15321 ac_status=$?
15322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } >/dev/null && {
15327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15329 }; then
15330 ac_header_preproc=yes
15331 else
15332 $as_echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_header_preproc=no
15336 fi
15337
15338 rm -f conftest.err conftest.$ac_ext
15339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15340 $as_echo "$ac_header_preproc" >&6; }
15341
15342 # So? What about this header?
15343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15344 yes:no: )
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15349 ac_header_preproc=yes
15350 ;;
15351 no:yes:* )
15352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15364
15365 ;;
15366 esac
15367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15368 $as_echo_n "checking for $ac_header... " >&6; }
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 $as_echo_n "(cached) " >&6
15371 else
15372 eval "$as_ac_Header=\$ac_header_preproc"
15373 fi
15374 ac_res=`eval 'as_val=${'$as_ac_Header'}
15375 $as_echo "$as_val"'`
15376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15377 $as_echo "$ac_res" >&6; }
15378
15379 fi
15380 if test `eval 'as_val=${'$as_ac_Header'}
15381 $as_echo "$as_val"'` = yes; then
15382 cat >>confdefs.h <<_ACEOF
15383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15384 _ACEOF
15385
15386 fi
15387
15388 done
15389
15390 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15391 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15392 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15393 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15394 $as_echo_n "(cached) " >&6
15395 else
15396 ac_check_lib_save_LIBS=$LIBS
15397 LIBS="-lpng -lz -lm $LIBS"
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char png_get_channels ();
15412 int
15413 main ()
15414 {
15415 return png_get_channels ();
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15427 $as_echo "$ac_try_echo") >&5
15428 (eval "$ac_link") 2>conftest.er1
15429 ac_status=$?
15430 grep -v '^ *+' conftest.er1 >conftest.err
15431 rm -f conftest.er1
15432 cat conftest.err >&5
15433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } && {
15435 test -z "$ac_c_werror_flag" ||
15436 test ! -s conftest.err
15437 } && test -s conftest$ac_exeext && {
15438 test "$cross_compiling" = yes ||
15439 $as_test_x conftest$ac_exeext
15440 }; then
15441 ac_cv_lib_png_png_get_channels=yes
15442 else
15443 $as_echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_cv_lib_png_png_get_channels=no
15447 fi
15448
15449 rm -rf conftest.dSYM
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15452 LIBS=$ac_check_lib_save_LIBS
15453 fi
15454 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15455 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15456 if test $ac_cv_lib_png_png_get_channels = yes; then
15457 HAVE_PNG=yes
15458 fi
15459
15460 fi
15461 fi
15462
15463 if test "${HAVE_PNG}" = "yes"; then
15464
15465 cat >>confdefs.h <<\_ACEOF
15466 #define HAVE_PNG 1
15467 _ACEOF
15468
15469 LIBPNG="-lpng -lz -lm"
15470 fi
15471 fi
15472
15473
15474 ### Use -ltiff if available, unless `--with-tiff=no'.
15475 HAVE_TIFF=no
15476 LIBTIFF=
15477 if test "${HAVE_X11}" = "yes"; then
15478 if test "${with_tiff}" != "no"; then
15479 if test "${ac_cv_header_tiffio_h+set}" = set; then
15480 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15481 $as_echo_n "checking for tiffio.h... " >&6; }
15482 if test "${ac_cv_header_tiffio_h+set}" = set; then
15483 $as_echo_n "(cached) " >&6
15484 fi
15485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15486 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15487 else
15488 # Is the header compilable?
15489 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15490 $as_echo_n "checking tiffio.h usability... " >&6; }
15491 cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h. */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 $ac_includes_default
15498 #include <tiffio.h>
15499 _ACEOF
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15505 esac
15506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15507 $as_echo "$ac_try_echo") >&5
15508 (eval "$ac_compile") 2>conftest.er1
15509 ac_status=$?
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
15513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } && {
15515 test -z "$ac_c_werror_flag" ||
15516 test ! -s conftest.err
15517 } && test -s conftest.$ac_objext; then
15518 ac_header_compiler=yes
15519 else
15520 $as_echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 ac_header_compiler=no
15524 fi
15525
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15528 $as_echo "$ac_header_compiler" >&6; }
15529
15530 # Is the header present?
15531 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15532 $as_echo_n "checking tiffio.h presence... " >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h. */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <tiffio.h>
15540 _ACEOF
15541 if { (ac_try="$ac_cpp conftest.$ac_ext"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545 esac
15546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15547 $as_echo "$ac_try_echo") >&5
15548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
15553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } >/dev/null && {
15555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15556 test ! -s conftest.err
15557 }; then
15558 ac_header_preproc=yes
15559 else
15560 $as_echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563 ac_header_preproc=no
15564 fi
15565
15566 rm -f conftest.err conftest.$ac_ext
15567 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15568 $as_echo "$ac_header_preproc" >&6; }
15569
15570 # So? What about this header?
15571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15572 yes:no: )
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15574 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15576 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15577 ac_header_preproc=yes
15578 ;;
15579 no:yes:* )
15580 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15581 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15582 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15583 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15584 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15585 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15586 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15587 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15588 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15589 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15590 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15591 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15592
15593 ;;
15594 esac
15595 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15596 $as_echo_n "checking for tiffio.h... " >&6; }
15597 if test "${ac_cv_header_tiffio_h+set}" = set; then
15598 $as_echo_n "(cached) " >&6
15599 else
15600 ac_cv_header_tiffio_h=$ac_header_preproc
15601 fi
15602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15603 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15604
15605 fi
15606 if test $ac_cv_header_tiffio_h = yes; then
15607 tifflibs="-lz -lm"
15608 # At least one tiff package requires the jpeg library.
15609 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15610 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15611 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15612 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15613 $as_echo_n "(cached) " >&6
15614 else
15615 ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-ltiff $tifflibs $LIBS"
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15623
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 char TIFFGetVersion ();
15631 int
15632 main ()
15633 {
15634 return TIFFGetVersion ();
15635 ;
15636 return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext conftest$ac_exeext
15640 if { (ac_try="$ac_link"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644 esac
15645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15646 $as_echo "$ac_try_echo") >&5
15647 (eval "$ac_link") 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } && {
15654 test -z "$ac_c_werror_flag" ||
15655 test ! -s conftest.err
15656 } && test -s conftest$ac_exeext && {
15657 test "$cross_compiling" = yes ||
15658 $as_test_x conftest$ac_exeext
15659 }; then
15660 ac_cv_lib_tiff_TIFFGetVersion=yes
15661 else
15662 $as_echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665 ac_cv_lib_tiff_TIFFGetVersion=no
15666 fi
15667
15668 rm -rf conftest.dSYM
15669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15672 fi
15673 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15674 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15675 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15676 HAVE_TIFF=yes
15677 fi
15678
15679 fi
15680
15681
15682 fi
15683
15684 if test "${HAVE_TIFF}" = "yes"; then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_TIFF 1
15688 _ACEOF
15689
15690 LIBTIFF=-ltiff
15691 fi
15692 fi
15693
15694
15695 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15696 HAVE_GIF=no
15697 LIBGIF=
15698 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15699 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15700 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15701 $as_echo_n "checking for gif_lib.h... " >&6; }
15702 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15703 $as_echo_n "(cached) " >&6
15704 fi
15705 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15706 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15707 else
15708 # Is the header compilable?
15709 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15710 $as_echo_n "checking gif_lib.h usability... " >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $ac_includes_default
15718 #include <gif_lib.h>
15719 _ACEOF
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725 esac
15726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15727 $as_echo "$ac_try_echo") >&5
15728 (eval "$ac_compile") 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } && {
15735 test -z "$ac_c_werror_flag" ||
15736 test ! -s conftest.err
15737 } && test -s conftest.$ac_objext; then
15738 ac_header_compiler=yes
15739 else
15740 $as_echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 ac_header_compiler=no
15744 fi
15745
15746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15748 $as_echo "$ac_header_compiler" >&6; }
15749
15750 # Is the header present?
15751 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15752 $as_echo_n "checking gif_lib.h presence... " >&6; }
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 #include <gif_lib.h>
15760 _ACEOF
15761 if { (ac_try="$ac_cpp conftest.$ac_ext"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } >/dev/null && {
15775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 }; then
15778 ac_header_preproc=yes
15779 else
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783 ac_header_preproc=no
15784 fi
15785
15786 rm -f conftest.err conftest.$ac_ext
15787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15788 $as_echo "$ac_header_preproc" >&6; }
15789
15790 # So? What about this header?
15791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15792 yes:no: )
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15794 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15796 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15797 ac_header_preproc=yes
15798 ;;
15799 no:yes:* )
15800 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15801 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15802 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15803 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15805 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15807 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15809 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15811 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15812
15813 ;;
15814 esac
15815 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15816 $as_echo_n "checking for gif_lib.h... " >&6; }
15817 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15818 $as_echo_n "(cached) " >&6
15819 else
15820 ac_cv_header_gif_lib_h=$ac_header_preproc
15821 fi
15822 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15823 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15824
15825 fi
15826 if test $ac_cv_header_gif_lib_h = yes; then
15827 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15828 # Earlier versions can crash Emacs.
15829 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15830 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15831 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15832 $as_echo_n "(cached) " >&6
15833 else
15834 ac_check_lib_save_LIBS=$LIBS
15835 LIBS="-lgif $LIBS"
15836 cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h. */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842
15843 /* Override any GCC internal prototype to avoid an error.
15844 Use char because int might match the return type of a GCC
15845 builtin and then its argument prototype would still apply. */
15846 #ifdef __cplusplus
15847 extern "C"
15848 #endif
15849 char EGifPutExtensionLast ();
15850 int
15851 main ()
15852 {
15853 return EGifPutExtensionLast ();
15854 ;
15855 return 0;
15856 }
15857 _ACEOF
15858 rm -f conftest.$ac_objext conftest$ac_exeext
15859 if { (ac_try="$ac_link"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863 esac
15864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15865 $as_echo "$ac_try_echo") >&5
15866 (eval "$ac_link") 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } && {
15873 test -z "$ac_c_werror_flag" ||
15874 test ! -s conftest.err
15875 } && test -s conftest$ac_exeext && {
15876 test "$cross_compiling" = yes ||
15877 $as_test_x conftest$ac_exeext
15878 }; then
15879 ac_cv_lib_gif_EGifPutExtensionLast=yes
15880 else
15881 $as_echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883
15884 ac_cv_lib_gif_EGifPutExtensionLast=no
15885 fi
15886
15887 rm -rf conftest.dSYM
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889 conftest$ac_exeext conftest.$ac_ext
15890 LIBS=$ac_check_lib_save_LIBS
15891 fi
15892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15893 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15894 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15895 HAVE_GIF=yes
15896 else
15897 HAVE_GIF=maybe
15898 fi
15899
15900 fi
15901
15902
15903
15904 if test "$HAVE_GIF" = yes; then
15905 LIBGIF=-lgif
15906 elif test "$HAVE_GIF" = maybe; then
15907 # If gif_lib.h but no libgif, try libungif.
15908 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15909 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15910 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15911 $as_echo_n "(cached) " >&6
15912 else
15913 ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-lungif $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921
15922 /* Override any GCC internal prototype to avoid an error.
15923 Use char because int might match the return type of a GCC
15924 builtin and then its argument prototype would still apply. */
15925 #ifdef __cplusplus
15926 extern "C"
15927 #endif
15928 char EGifPutExtensionLast ();
15929 int
15930 main ()
15931 {
15932 return EGifPutExtensionLast ();
15933 ;
15934 return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext conftest$ac_exeext
15938 if { (ac_try="$ac_link"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942 esac
15943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15944 $as_echo "$ac_try_echo") >&5
15945 (eval "$ac_link") 2>conftest.er1
15946 ac_status=$?
15947 grep -v '^ *+' conftest.er1 >conftest.err
15948 rm -f conftest.er1
15949 cat conftest.err >&5
15950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest$ac_exeext && {
15955 test "$cross_compiling" = yes ||
15956 $as_test_x conftest$ac_exeext
15957 }; then
15958 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15959 else
15960 $as_echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 ac_cv_lib_ungif_EGifPutExtensionLast=no
15964 fi
15965
15966 rm -rf conftest.dSYM
15967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15968 conftest$ac_exeext conftest.$ac_ext
15969 LIBS=$ac_check_lib_save_LIBS
15970 fi
15971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15972 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15973 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15974 HAVE_GIF=yes
15975 else
15976 HAVE_GIF=no
15977 fi
15978
15979 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15980 fi
15981
15982 if test "${HAVE_GIF}" = "yes"; then
15983
15984 cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_GIF 1
15986 _ACEOF
15987
15988 fi
15989 fi
15990
15991
15992 if test "${HAVE_X11}" = "yes"; then
15993 MISSING=""
15994 WITH_NO=""
15995 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15996 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15997 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15998 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15999 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16000 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16001 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16002 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16003 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16004 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16005
16006 if test "X${MISSING}" != X; then
16007 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16008 $MISSING
16009 Maybe some development libraries/packages are missing?
16010 If you don't want to link with them give
16011 $WITH_NO
16012 as options to configure" >&5
16013 $as_echo "$as_me: error: The following required libraries were not found:
16014 $MISSING
16015 Maybe some development libraries/packages are missing?
16016 If you don't want to link with them give
16017 $WITH_NO
16018 as options to configure" >&2;}
16019 { (exit 1); exit 1; }; }
16020 fi
16021 fi
16022
16023 ### Use -lgpm if available, unless `--with-gpm=no'.
16024 HAVE_GPM=no
16025 LIBGPM=
16026 MOUSE_SUPPORT=
16027 if test "${with_gpm}" != "no"; then
16028 if test "${ac_cv_header_gpm_h+set}" = set; then
16029 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16030 $as_echo_n "checking for gpm.h... " >&6; }
16031 if test "${ac_cv_header_gpm_h+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16033 fi
16034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16035 $as_echo "$ac_cv_header_gpm_h" >&6; }
16036 else
16037 # Is the header compilable?
16038 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16039 $as_echo_n "checking gpm.h usability... " >&6; }
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 #include <gpm.h>
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054 esac
16055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 $as_echo "$ac_try_echo") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest.$ac_objext; then
16067 ac_header_compiler=yes
16068 else
16069 $as_echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072 ac_header_compiler=no
16073 fi
16074
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 $as_echo "$ac_header_compiler" >&6; }
16078
16079 # Is the header present?
16080 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16081 $as_echo_n "checking gpm.h presence... " >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h. */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 #include <gpm.h>
16089 _ACEOF
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094 esac
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } >/dev/null && {
16104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 }; then
16107 ac_header_preproc=yes
16108 else
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 ac_header_preproc=no
16113 fi
16114
16115 rm -f conftest.err conftest.$ac_ext
16116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16117 $as_echo "$ac_header_preproc" >&6; }
16118
16119 # So? What about this header?
16120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16121 yes:no: )
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16123 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16125 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16126 ac_header_preproc=yes
16127 ;;
16128 no:yes:* )
16129 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16130 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16131 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16132 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16133 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16134 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16135 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16136 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16137 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16138 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16139 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16140 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16141
16142 ;;
16143 esac
16144 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16145 $as_echo_n "checking for gpm.h... " >&6; }
16146 if test "${ac_cv_header_gpm_h+set}" = set; then
16147 $as_echo_n "(cached) " >&6
16148 else
16149 ac_cv_header_gpm_h=$ac_header_preproc
16150 fi
16151 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16152 $as_echo "$ac_cv_header_gpm_h" >&6; }
16153
16154 fi
16155 if test $ac_cv_header_gpm_h = yes; then
16156 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16157 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16158 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16159 $as_echo_n "(cached) " >&6
16160 else
16161 ac_check_lib_save_LIBS=$LIBS
16162 LIBS="-lgpm $LIBS"
16163 cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h. */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h. */
16169
16170 /* Override any GCC internal prototype to avoid an error.
16171 Use char because int might match the return type of a GCC
16172 builtin and then its argument prototype would still apply. */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 char Gpm_Open ();
16177 int
16178 main ()
16179 {
16180 return Gpm_Open ();
16181 ;
16182 return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_link") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext && {
16203 test "$cross_compiling" = yes ||
16204 $as_test_x conftest$ac_exeext
16205 }; then
16206 ac_cv_lib_gpm_Gpm_Open=yes
16207 else
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ac_cv_lib_gpm_Gpm_Open=no
16212 fi
16213
16214 rm -rf conftest.dSYM
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16218 fi
16219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16220 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16221 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16222 HAVE_GPM=yes
16223 fi
16224
16225 fi
16226
16227
16228
16229 if test "${HAVE_GPM}" = "yes"; then
16230
16231 cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_GPM 1
16233 _ACEOF
16234
16235 LIBGPM=-lgpm
16236 ## May be reset below.
16237 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16238 fi
16239 fi
16240
16241
16242 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16243 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16244 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16245 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16247 fi
16248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16249 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16250 else
16251 # Is the header compilable?
16252 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16253 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16254 cat >conftest.$ac_ext <<_ACEOF
16255 /* confdefs.h. */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16260 $ac_includes_default
16261 #include <malloc/malloc.h>
16262 _ACEOF
16263 rm -f conftest.$ac_objext
16264 if { (ac_try="$ac_compile"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16268 esac
16269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16270 $as_echo "$ac_try_echo") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16281 ac_header_compiler=yes
16282 else
16283 $as_echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_header_compiler=no
16287 fi
16288
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16291 $as_echo "$ac_header_compiler" >&6; }
16292
16293 # Is the header present?
16294 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16295 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16296 cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h. */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16302 #include <malloc/malloc.h>
16303 _ACEOF
16304 if { (ac_try="$ac_cpp conftest.$ac_ext"
16305 case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308 esac
16309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16310 $as_echo "$ac_try_echo") >&5
16311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16312 ac_status=$?
16313 grep -v '^ *+' conftest.er1 >conftest.err
16314 rm -f conftest.er1
16315 cat conftest.err >&5
16316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } >/dev/null && {
16318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16319 test ! -s conftest.err
16320 }; then
16321 ac_header_preproc=yes
16322 else
16323 $as_echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326 ac_header_preproc=no
16327 fi
16328
16329 rm -f conftest.err conftest.$ac_ext
16330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16331 $as_echo "$ac_header_preproc" >&6; }
16332
16333 # So? What about this header?
16334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16335 yes:no: )
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16340 ac_header_preproc=yes
16341 ;;
16342 no:yes:* )
16343 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16344 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16345 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16346 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16347 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16348 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16349 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16350 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16351 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16352 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16353 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16354 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16355
16356 ;;
16357 esac
16358 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16359 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16360 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16361 $as_echo_n "(cached) " >&6
16362 else
16363 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16364 fi
16365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16366 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16367
16368 fi
16369 if test $ac_cv_header_malloc_malloc_h = yes; then
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_MALLOC_MALLOC_H 1
16373 _ACEOF
16374
16375 fi
16376
16377
16378
16379 C_SWITCH_X_SYSTEM=
16380 ### Use NeXTstep API to implement GUI.
16381 if test "${HAVE_NS}" = "yes"; then
16382
16383 cat >>confdefs.h <<\_ACEOF
16384 #define HAVE_NS 1
16385 _ACEOF
16386
16387 if test "${NS_IMPL_COCOA}" = "yes"; then
16388
16389 cat >>confdefs.h <<\_ACEOF
16390 #define NS_IMPL_COCOA 1
16391 _ACEOF
16392
16393 GNU_OBJC_CFLAGS=
16394 fi
16395 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16396
16397 cat >>confdefs.h <<\_ACEOF
16398 #define NS_IMPL_GNUSTEP 1
16399 _ACEOF
16400
16401 # See also .m.o rule in Makefile.in */
16402 # FIXME: are all these flags really needed? Document here why. */
16403 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16404 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16405 fi
16406 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16407
16408 cat >>confdefs.h <<\_ACEOF
16409 #define NS_HAVE_NSINTEGER 1
16410 _ACEOF
16411
16412 fi
16413 # We also have mouse menus.
16414 HAVE_MENUS=yes
16415 OTHER_FILES=ns-app
16416 fi
16417
16418
16419 ### Use session management (-lSM -lICE) if available
16420 HAVE_X_SM=no
16421 LIBXSM=
16422 if test "${HAVE_X11}" = "yes"; then
16423 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16424 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16425 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16426 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16427 $as_echo_n "(cached) " >&6
16428 fi
16429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16430 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16431 else
16432 # Is the header compilable?
16433 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16434 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h. */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 $ac_includes_default
16442 #include <X11/SM/SMlib.h>
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449 esac
16450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16451 $as_echo "$ac_try_echo") >&5
16452 (eval "$ac_compile") 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest.$ac_objext; then
16462 ac_header_compiler=yes
16463 else
16464 $as_echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 ac_header_compiler=no
16468 fi
16469
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16472 $as_echo "$ac_header_compiler" >&6; }
16473
16474 # Is the header present?
16475 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16476 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16477 cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <X11/SM/SMlib.h>
16484 _ACEOF
16485 if { (ac_try="$ac_cpp conftest.$ac_ext"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489 esac
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } >/dev/null && {
16499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16501 }; then
16502 ac_header_preproc=yes
16503 else
16504 $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507 ac_header_preproc=no
16508 fi
16509
16510 rm -f conftest.err conftest.$ac_ext
16511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16512 $as_echo "$ac_header_preproc" >&6; }
16513
16514 # So? What about this header?
16515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16516 yes:no: )
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16521 ac_header_preproc=yes
16522 ;;
16523 no:yes:* )
16524 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16525 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16526 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16527 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16528 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16529 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16530 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16531 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16532 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16533 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16534 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16535 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16536
16537 ;;
16538 esac
16539 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16540 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16541 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16542 $as_echo_n "(cached) " >&6
16543 else
16544 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16545 fi
16546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16547 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16548
16549 fi
16550 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16551 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16552 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16553 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16554 $as_echo_n "(cached) " >&6
16555 else
16556 ac_check_lib_save_LIBS=$LIBS
16557 LIBS="-lSM -lICE $LIBS"
16558 cat >conftest.$ac_ext <<_ACEOF
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564
16565 /* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
16568 #ifdef __cplusplus
16569 extern "C"
16570 #endif
16571 char SmcOpenConnection ();
16572 int
16573 main ()
16574 {
16575 return SmcOpenConnection ();
16576 ;
16577 return 0;
16578 }
16579 _ACEOF
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585 esac
16586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587 $as_echo "$ac_try_echo") >&5
16588 (eval "$ac_link") 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && {
16595 test -z "$ac_c_werror_flag" ||
16596 test ! -s conftest.err
16597 } && test -s conftest$ac_exeext && {
16598 test "$cross_compiling" = yes ||
16599 $as_test_x conftest$ac_exeext
16600 }; then
16601 ac_cv_lib_SM_SmcOpenConnection=yes
16602 else
16603 $as_echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606 ac_cv_lib_SM_SmcOpenConnection=no
16607 fi
16608
16609 rm -rf conftest.dSYM
16610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16611 conftest$ac_exeext conftest.$ac_ext
16612 LIBS=$ac_check_lib_save_LIBS
16613 fi
16614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16615 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16616 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16617 HAVE_X_SM=yes
16618 fi
16619
16620 fi
16621
16622
16623
16624 if test "${HAVE_X_SM}" = "yes"; then
16625
16626 cat >>confdefs.h <<\_ACEOF
16627 #define HAVE_X_SM 1
16628 _ACEOF
16629
16630 LIBXSM="-lSM -lICE"
16631 case "$LIBS" in
16632 *-lSM*) ;;
16633 *) LIBS="$LIBXSM $LIBS" ;;
16634 esac
16635 fi
16636 fi
16637
16638
16639 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16640 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16641 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16642 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16643 $as_echo_n "(cached) " >&6
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 #include <netdb.h>
16652 int
16653 main ()
16654 {
16655 return h_errno;
16656 ;
16657 return 0;
16658 }
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (ac_try="$ac_link"
16662 case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16665 esac
16666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16667 $as_echo "$ac_try_echo") >&5
16668 (eval "$ac_link") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest$ac_exeext && {
16678 test "$cross_compiling" = yes ||
16679 $as_test_x conftest$ac_exeext
16680 }; then
16681 emacs_cv_netdb_declares_h_errno=yes
16682 else
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 emacs_cv_netdb_declares_h_errno=no
16687 fi
16688
16689 rm -rf conftest.dSYM
16690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16691 conftest$ac_exeext conftest.$ac_ext
16692 fi
16693 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16694 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16695 if test $emacs_cv_netdb_declares_h_errno = yes; then
16696
16697 cat >>confdefs.h <<\_ACEOF
16698 #define HAVE_H_ERRNO 1
16699 _ACEOF
16700
16701 fi
16702
16703 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16704 # for constant arguments. Useless!
16705 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16706 $as_echo_n "checking for working alloca.h... " >&6; }
16707 if test "${ac_cv_working_alloca_h+set}" = set; then
16708 $as_echo_n "(cached) " >&6
16709 else
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h. */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <alloca.h>
16717 int
16718 main ()
16719 {
16720 char *p = (char *) alloca (2 * sizeof (int));
16721 if (p) return 0;
16722 ;
16723 return 0;
16724 }
16725 _ACEOF
16726 rm -f conftest.$ac_objext conftest$ac_exeext
16727 if { (ac_try="$ac_link"
16728 case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731 esac
16732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16733 $as_echo "$ac_try_echo") >&5
16734 (eval "$ac_link") 2>conftest.er1
16735 ac_status=$?
16736 grep -v '^ *+' conftest.er1 >conftest.err
16737 rm -f conftest.er1
16738 cat conftest.err >&5
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest$ac_exeext && {
16744 test "$cross_compiling" = yes ||
16745 $as_test_x conftest$ac_exeext
16746 }; then
16747 ac_cv_working_alloca_h=yes
16748 else
16749 $as_echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752 ac_cv_working_alloca_h=no
16753 fi
16754
16755 rm -rf conftest.dSYM
16756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16757 conftest$ac_exeext conftest.$ac_ext
16758 fi
16759 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16760 $as_echo "$ac_cv_working_alloca_h" >&6; }
16761 if test $ac_cv_working_alloca_h = yes; then
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_ALLOCA_H 1
16765 _ACEOF
16766
16767 fi
16768
16769 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16770 $as_echo_n "checking for alloca... " >&6; }
16771 if test "${ac_cv_func_alloca_works+set}" = set; then
16772 $as_echo_n "(cached) " >&6
16773 else
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 #ifdef __GNUC__
16781 # define alloca __builtin_alloca
16782 #else
16783 # ifdef _MSC_VER
16784 # include <malloc.h>
16785 # define alloca _alloca
16786 # else
16787 # ifdef HAVE_ALLOCA_H
16788 # include <alloca.h>
16789 # else
16790 # ifdef _AIX
16791 #pragma alloca
16792 # else
16793 # ifndef alloca /* predefined by HP cc +Olibcalls */
16794 char *alloca ();
16795 # endif
16796 # endif
16797 # endif
16798 # endif
16799 #endif
16800
16801 int
16802 main ()
16803 {
16804 char *p = (char *) alloca (1);
16805 if (p) return 0;
16806 ;
16807 return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815 esac
16816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16817 $as_echo "$ac_try_echo") >&5
16818 (eval "$ac_link") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest$ac_exeext && {
16828 test "$cross_compiling" = yes ||
16829 $as_test_x conftest$ac_exeext
16830 }; then
16831 ac_cv_func_alloca_works=yes
16832 else
16833 $as_echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836 ac_cv_func_alloca_works=no
16837 fi
16838
16839 rm -rf conftest.dSYM
16840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16841 conftest$ac_exeext conftest.$ac_ext
16842 fi
16843 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16844 $as_echo "$ac_cv_func_alloca_works" >&6; }
16845
16846 if test $ac_cv_func_alloca_works = yes; then
16847
16848 cat >>confdefs.h <<\_ACEOF
16849 #define HAVE_ALLOCA 1
16850 _ACEOF
16851
16852 else
16853 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16854 # that cause trouble. Some versions do not even contain alloca or
16855 # contain a buggy version. If you still want to use their alloca,
16856 # use ar to extract alloca.o from them instead of compiling alloca.c.
16857
16858 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16859
16860 cat >>confdefs.h <<\_ACEOF
16861 #define C_ALLOCA 1
16862 _ACEOF
16863
16864
16865 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16866 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16867 if test "${ac_cv_os_cray+set}" = set; then
16868 $as_echo_n "(cached) " >&6
16869 else
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h. */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 #if defined CRAY && ! defined CRAY2
16877 webecray
16878 #else
16879 wenotbecray
16880 #endif
16881
16882 _ACEOF
16883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16884 $EGREP "webecray" >/dev/null 2>&1; then
16885 ac_cv_os_cray=yes
16886 else
16887 ac_cv_os_cray=no
16888 fi
16889 rm -f conftest*
16890
16891 fi
16892 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16893 $as_echo "$ac_cv_os_cray" >&6; }
16894 if test $ac_cv_os_cray = yes; then
16895 for ac_func in _getb67 GETB67 getb67; do
16896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16897 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16898 $as_echo_n "checking for $ac_func... " >&6; }
16899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16900 $as_echo_n "(cached) " >&6
16901 else
16902 cat >conftest.$ac_ext <<_ACEOF
16903 /* confdefs.h. */
16904 _ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910 #define $ac_func innocuous_$ac_func
16911
16912 /* System header to define __stub macros and hopefully few prototypes,
16913 which can conflict with char $ac_func (); below.
16914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915 <limits.h> exists even on freestanding compilers. */
16916
16917 #ifdef __STDC__
16918 # include <limits.h>
16919 #else
16920 # include <assert.h>
16921 #endif
16922
16923 #undef $ac_func
16924
16925 /* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16928 #ifdef __cplusplus
16929 extern "C"
16930 #endif
16931 char $ac_func ();
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined __stub_$ac_func || defined __stub___$ac_func
16936 choke me
16937 #endif
16938
16939 int
16940 main ()
16941 {
16942 return $ac_func ();
16943 ;
16944 return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952 esac
16953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16954 $as_echo "$ac_try_echo") >&5
16955 (eval "$ac_link") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest$ac_exeext && {
16965 test "$cross_compiling" = yes ||
16966 $as_test_x conftest$ac_exeext
16967 }; then
16968 eval "$as_ac_var=yes"
16969 else
16970 $as_echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 eval "$as_ac_var=no"
16974 fi
16975
16976 rm -rf conftest.dSYM
16977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16978 conftest$ac_exeext conftest.$ac_ext
16979 fi
16980 ac_res=`eval 'as_val=${'$as_ac_var'}
16981 $as_echo "$as_val"'`
16982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16983 $as_echo "$ac_res" >&6; }
16984 if test `eval 'as_val=${'$as_ac_var'}
16985 $as_echo "$as_val"'` = yes; then
16986
16987 cat >>confdefs.h <<_ACEOF
16988 #define CRAY_STACKSEG_END $ac_func
16989 _ACEOF
16990
16991 break
16992 fi
16993
16994 done
16995 fi
16996
16997 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16998 $as_echo_n "checking stack direction for C alloca... " >&6; }
16999 if test "${ac_cv_c_stack_direction+set}" = set; then
17000 $as_echo_n "(cached) " >&6
17001 else
17002 if test "$cross_compiling" = yes; then
17003 ac_cv_c_stack_direction=0
17004 else
17005 cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 $ac_includes_default
17012 int
17013 find_stack_direction ()
17014 {
17015 static char *addr = 0;
17016 auto char dummy;
17017 if (addr == 0)
17018 {
17019 addr = &dummy;
17020 return find_stack_direction ();
17021 }
17022 else
17023 return (&dummy > addr) ? 1 : -1;
17024 }
17025
17026 int
17027 main ()
17028 {
17029 return find_stack_direction () < 0;
17030 }
17031 _ACEOF
17032 rm -f conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037 esac
17038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17039 $as_echo "$ac_try_echo") >&5
17040 (eval "$ac_link") 2>&5
17041 ac_status=$?
17042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17049 $as_echo "$ac_try_echo") >&5
17050 (eval "$ac_try") 2>&5
17051 ac_status=$?
17052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 ac_cv_c_stack_direction=1
17055 else
17056 $as_echo "$as_me: program exited with status $ac_status" >&5
17057 $as_echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 ( exit $ac_status )
17061 ac_cv_c_stack_direction=-1
17062 fi
17063 rm -rf conftest.dSYM
17064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17065 fi
17066
17067
17068 fi
17069 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17070 $as_echo "$ac_cv_c_stack_direction" >&6; }
17071
17072 cat >>confdefs.h <<_ACEOF
17073 #define STACK_DIRECTION $ac_cv_c_stack_direction
17074 _ACEOF
17075
17076
17077 fi
17078
17079
17080 if test x"$ac_cv_func_alloca_works" != xyes; then
17081 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17082 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17083 { (exit 1); exit 1; }; }
17084 fi
17085
17086 # fmod, logb, and frexp are found in -lm on most systems.
17087 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17088
17089 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17090 $as_echo_n "checking for sqrt in -lm... " >&6; }
17091 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17092 $as_echo_n "(cached) " >&6
17093 else
17094 ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-lm $LIBS"
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17106 #ifdef __cplusplus
17107 extern "C"
17108 #endif
17109 char sqrt ();
17110 int
17111 main ()
17112 {
17113 return sqrt ();
17114 ;
17115 return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123 esac
17124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17125 $as_echo "$ac_try_echo") >&5
17126 (eval "$ac_link") 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext && {
17136 test "$cross_compiling" = yes ||
17137 $as_test_x conftest$ac_exeext
17138 }; then
17139 ac_cv_lib_m_sqrt=yes
17140 else
17141 $as_echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 ac_cv_lib_m_sqrt=no
17145 fi
17146
17147 rm -rf conftest.dSYM
17148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17149 conftest$ac_exeext conftest.$ac_ext
17150 LIBS=$ac_check_lib_save_LIBS
17151 fi
17152 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17153 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17154 if test $ac_cv_lib_m_sqrt = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_LIBM 1
17157 _ACEOF
17158
17159 LIBS="-lm $LIBS"
17160
17161 fi
17162
17163
17164 # Check for mail-locking functions in a "mail" library. Probably this should
17165 # have the same check as for liblockfile below.
17166 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17167 $as_echo_n "checking for maillock in -lmail... " >&6; }
17168 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17169 $as_echo_n "(cached) " >&6
17170 else
17171 ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lmail $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h. */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17179
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char maillock ();
17187 int
17188 main ()
17189 {
17190 return maillock ();
17191 ;
17192 return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext && {
17213 test "$cross_compiling" = yes ||
17214 $as_test_x conftest$ac_exeext
17215 }; then
17216 ac_cv_lib_mail_maillock=yes
17217 else
17218 $as_echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 ac_cv_lib_mail_maillock=no
17222 fi
17223
17224 rm -rf conftest.dSYM
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17228 fi
17229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17230 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17231 if test $ac_cv_lib_mail_maillock = yes; then
17232 have_mail=yes
17233 else
17234 have_mail=no
17235 fi
17236
17237 if test $have_mail = yes; then
17238 LIBS_MAIL=-lmail
17239 LIBS="$LIBS_MAIL $LIBS"
17240
17241 cat >>confdefs.h <<\_ACEOF
17242 #define HAVE_LIBMAIL 1
17243 _ACEOF
17244
17245 else
17246 LIBS_MAIL=
17247 fi
17248 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17249 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17250 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17251 $as_echo_n "(cached) " >&6
17252 else
17253 ac_check_lib_save_LIBS=$LIBS
17254 LIBS="-llockfile $LIBS"
17255 cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261
17262 /* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
17265 #ifdef __cplusplus
17266 extern "C"
17267 #endif
17268 char maillock ();
17269 int
17270 main ()
17271 {
17272 return maillock ();
17273 ;
17274 return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17282 esac
17283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17284 $as_echo "$ac_try_echo") >&5
17285 (eval "$ac_link") 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest$ac_exeext && {
17295 test "$cross_compiling" = yes ||
17296 $as_test_x conftest$ac_exeext
17297 }; then
17298 ac_cv_lib_lockfile_maillock=yes
17299 else
17300 $as_echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303 ac_cv_lib_lockfile_maillock=no
17304 fi
17305
17306 rm -rf conftest.dSYM
17307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17308 conftest$ac_exeext conftest.$ac_ext
17309 LIBS=$ac_check_lib_save_LIBS
17310 fi
17311 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17312 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17313 if test $ac_cv_lib_lockfile_maillock = yes; then
17314 have_lockfile=yes
17315 else
17316 have_lockfile=no
17317 fi
17318
17319 if test $have_lockfile = yes; then
17320 LIBS_MAIL=-llockfile
17321 LIBS="$LIBS_MAIL $LIBS"
17322
17323 cat >>confdefs.h <<\_ACEOF
17324 #define HAVE_LIBLOCKFILE 1
17325 _ACEOF
17326
17327 else
17328 # If we have the shared liblockfile, assume we must use it for mail
17329 # locking (e.g. Debian). If we couldn't link against liblockfile
17330 # (no liblockfile.a installed), ensure that we don't need to.
17331 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17332 set dummy liblockfile.so; ac_word=$2
17333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17334 $as_echo_n "checking for $ac_word... " >&6; }
17335 if test "${ac_cv_prog_liblockfile+set}" = set; then
17336 $as_echo_n "(cached) " >&6
17337 else
17338 if test -n "$liblockfile"; then
17339 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17340 else
17341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17343 for as_dir in $as_dummy
17344 do
17345 IFS=$as_save_IFS
17346 test -z "$as_dir" && as_dir=.
17347 for ac_exec_ext in '' $ac_executable_extensions; do
17348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17349 ac_cv_prog_liblockfile="yes"
17350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17351 break 2
17352 fi
17353 done
17354 done
17355 IFS=$as_save_IFS
17356
17357 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17358 fi
17359 fi
17360 liblockfile=$ac_cv_prog_liblockfile
17361 if test -n "$liblockfile"; then
17362 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17363 $as_echo "$liblockfile" >&6; }
17364 else
17365 { $as_echo "$as_me:$LINENO: result: no" >&5
17366 $as_echo "no" >&6; }
17367 fi
17368
17369
17370 if test $ac_cv_prog_liblockfile = yes; then
17371 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17372 This probably means that movemail could lose mail.
17373 There may be a \`development' package to install containing liblockfile." >&5
17374 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17375 This probably means that movemail could lose mail.
17376 There may be a \`development' package to install containing liblockfile." >&2;}
17377 { (exit 1); exit 1; }; }
17378 fi
17379 fi
17380
17381 for ac_func in touchlock
17382 do
17383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17384 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17385 $as_echo_n "checking for $ac_func... " >&6; }
17386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17387 $as_echo_n "(cached) " >&6
17388 else
17389 cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h. */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17397 #define $ac_func innocuous_$ac_func
17398
17399 /* System header to define __stub macros and hopefully few prototypes,
17400 which can conflict with char $ac_func (); below.
17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402 <limits.h> exists even on freestanding compilers. */
17403
17404 #ifdef __STDC__
17405 # include <limits.h>
17406 #else
17407 # include <assert.h>
17408 #endif
17409
17410 #undef $ac_func
17411
17412 /* Override any GCC internal prototype to avoid an error.
17413 Use char because int might match the return type of a GCC
17414 builtin and then its argument prototype would still apply. */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 char $ac_func ();
17419 /* The GNU C library defines this for functions which it implements
17420 to always fail with ENOSYS. Some functions are actually named
17421 something starting with __ and the normal name is an alias. */
17422 #if defined __stub_$ac_func || defined __stub___$ac_func
17423 choke me
17424 #endif
17425
17426 int
17427 main ()
17428 {
17429 return $ac_func ();
17430 ;
17431 return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439 esac
17440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441 $as_echo "$ac_try_echo") >&5
17442 (eval "$ac_link") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext && {
17452 test "$cross_compiling" = yes ||
17453 $as_test_x conftest$ac_exeext
17454 }; then
17455 eval "$as_ac_var=yes"
17456 else
17457 $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 eval "$as_ac_var=no"
17461 fi
17462
17463 rm -rf conftest.dSYM
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17466 fi
17467 ac_res=`eval 'as_val=${'$as_ac_var'}
17468 $as_echo "$as_val"'`
17469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17470 $as_echo "$ac_res" >&6; }
17471 if test `eval 'as_val=${'$as_ac_var'}
17472 $as_echo "$as_val"'` = yes; then
17473 cat >>confdefs.h <<_ACEOF
17474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17475 _ACEOF
17476
17477 fi
17478 done
17479
17480
17481 for ac_header in maillock.h
17482 do
17483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17486 $as_echo_n "checking for $ac_header... " >&6; }
17487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17488 $as_echo_n "(cached) " >&6
17489 fi
17490 ac_res=`eval 'as_val=${'$as_ac_Header'}
17491 $as_echo "$as_val"'`
17492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17493 $as_echo "$ac_res" >&6; }
17494 else
17495 # Is the header compilable?
17496 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17497 $as_echo_n "checking $ac_header usability... " >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h. */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <$ac_header>
17506 _ACEOF
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512 esac
17513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17514 $as_echo "$ac_try_echo") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17525 ac_header_compiler=yes
17526 else
17527 $as_echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 ac_header_compiler=no
17531 fi
17532
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17535 $as_echo "$ac_header_compiler" >&6; }
17536
17537 # Is the header present?
17538 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17539 $as_echo_n "checking $ac_header presence... " >&6; }
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <$ac_header>
17547 _ACEOF
17548 if { (ac_try="$ac_cpp conftest.$ac_ext"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552 esac
17553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17554 $as_echo "$ac_try_echo") >&5
17555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } >/dev/null && {
17562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 }; then
17565 ac_header_preproc=yes
17566 else
17567 $as_echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 ac_header_preproc=no
17571 fi
17572
17573 rm -f conftest.err conftest.$ac_ext
17574 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17575 $as_echo "$ac_header_preproc" >&6; }
17576
17577 # So? What about this header?
17578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17579 yes:no: )
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17581 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17583 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17584 ac_header_preproc=yes
17585 ;;
17586 no:yes:* )
17587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17588 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17590 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17592 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17594 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17598 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17599
17600 ;;
17601 esac
17602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17603 $as_echo_n "checking for $ac_header... " >&6; }
17604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17605 $as_echo_n "(cached) " >&6
17606 else
17607 eval "$as_ac_Header=\$ac_header_preproc"
17608 fi
17609 ac_res=`eval 'as_val=${'$as_ac_Header'}
17610 $as_echo "$as_val"'`
17611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17612 $as_echo "$ac_res" >&6; }
17613
17614 fi
17615 if test `eval 'as_val=${'$as_ac_Header'}
17616 $as_echo "$as_val"'` = yes; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17619 _ACEOF
17620
17621 fi
17622
17623 done
17624
17625
17626
17627 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17628 ## interlock access to the mail spool. The alternative is a lock file named
17629 ## /usr/spool/mail/$USER.lock.
17630 mail_lock=no
17631 case "$opsys" in
17632 aix4-2) mail_lock="lockf" ;;
17633
17634 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17635
17636 ## On GNU/Linux systems, both methods are used by various mail programs.
17637 ## I assume most people are using newer mailers that have heard of flock.
17638 ## Change this if you need to.
17639 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17640 ## configure gets the right answers, and that means *NOT* using flock.
17641 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17642 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17643 ## Debian maintainer hasn't provided a clean fix for Emacs.
17644 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17645 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17646 ## correct logic. -- fx
17647 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17648 ## liblockfile is a Free Software replacement for libmail, used on
17649 ## Debian systems and elsewhere. -rfr.
17650 gnu-*)
17651 mail_lock="flock"
17652 if test $have_mail = yes || test $have_lockfile = yes; then
17653 test $ac_cv_header_maillock_h = yes && mail_lock=no
17654 fi
17655 ;;
17656 esac
17657
17658 BLESSMAIL_TARGET=
17659 case "$mail_lock" in
17660 flock)
17661 cat >>confdefs.h <<\_ACEOF
17662 #define MAIL_USE_FLOCK 1
17663 _ACEOF
17664 ;;
17665
17666 lockf)
17667 cat >>confdefs.h <<\_ACEOF
17668 #define MAIL_USE_LOCKF 1
17669 _ACEOF
17670 ;;
17671
17672 *) BLESSMAIL_TARGET="need-blessmail" ;;
17673 esac
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750 for ac_func in gethostname getdomainname dup2 \
17751 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17752 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17753 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17754 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17755 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17756 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17757 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17758 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17759 cfmakeraw cfsetspeed isnan copysign
17760 do
17761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17762 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17763 $as_echo_n "checking for $ac_func... " >&6; }
17764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17765 $as_echo_n "(cached) " >&6
17766 else
17767 cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h. */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17775 #define $ac_func innocuous_$ac_func
17776
17777 /* System header to define __stub macros and hopefully few prototypes,
17778 which can conflict with char $ac_func (); below.
17779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 <limits.h> exists even on freestanding compilers. */
17781
17782 #ifdef __STDC__
17783 # include <limits.h>
17784 #else
17785 # include <assert.h>
17786 #endif
17787
17788 #undef $ac_func
17789
17790 /* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17793 #ifdef __cplusplus
17794 extern "C"
17795 #endif
17796 char $ac_func ();
17797 /* The GNU C library defines this for functions which it implements
17798 to always fail with ENOSYS. Some functions are actually named
17799 something starting with __ and the normal name is an alias. */
17800 #if defined __stub_$ac_func || defined __stub___$ac_func
17801 choke me
17802 #endif
17803
17804 int
17805 main ()
17806 {
17807 return $ac_func ();
17808 ;
17809 return 0;
17810 }
17811 _ACEOF
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817 esac
17818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17819 $as_echo "$ac_try_echo") >&5
17820 (eval "$ac_link") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest$ac_exeext && {
17830 test "$cross_compiling" = yes ||
17831 $as_test_x conftest$ac_exeext
17832 }; then
17833 eval "$as_ac_var=yes"
17834 else
17835 $as_echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 eval "$as_ac_var=no"
17839 fi
17840
17841 rm -rf conftest.dSYM
17842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17843 conftest$ac_exeext conftest.$ac_ext
17844 fi
17845 ac_res=`eval 'as_val=${'$as_ac_var'}
17846 $as_echo "$as_val"'`
17847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17848 $as_echo "$ac_res" >&6; }
17849 if test `eval 'as_val=${'$as_ac_var'}
17850 $as_echo "$as_val"'` = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17853 _ACEOF
17854
17855 fi
17856 done
17857
17858
17859
17860 for ac_header in sys/un.h
17861 do
17862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17865 $as_echo_n "checking for $ac_header... " >&6; }
17866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17867 $as_echo_n "(cached) " >&6
17868 fi
17869 ac_res=`eval 'as_val=${'$as_ac_Header'}
17870 $as_echo "$as_val"'`
17871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17872 $as_echo "$ac_res" >&6; }
17873 else
17874 # Is the header compilable?
17875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17876 $as_echo_n "checking $ac_header usability... " >&6; }
17877 cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h. */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 $ac_includes_default
17884 #include <$ac_header>
17885 _ACEOF
17886 rm -f conftest.$ac_objext
17887 if { (ac_try="$ac_compile"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891 esac
17892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17893 $as_echo "$ac_try_echo") >&5
17894 (eval "$ac_compile") 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } && {
17901 test -z "$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17903 } && test -s conftest.$ac_objext; then
17904 ac_header_compiler=yes
17905 else
17906 $as_echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909 ac_header_compiler=no
17910 fi
17911
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17914 $as_echo "$ac_header_compiler" >&6; }
17915
17916 # Is the header present?
17917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17918 $as_echo_n "checking $ac_header presence... " >&6; }
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h. */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 #include <$ac_header>
17926 _ACEOF
17927 if { (ac_try="$ac_cpp conftest.$ac_ext"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } >/dev/null && {
17941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 }; then
17944 ac_header_preproc=yes
17945 else
17946 $as_echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 ac_header_preproc=no
17950 fi
17951
17952 rm -f conftest.err conftest.$ac_ext
17953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17954 $as_echo "$ac_header_preproc" >&6; }
17955
17956 # So? What about this header?
17957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17958 yes:no: )
17959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17963 ac_header_preproc=yes
17964 ;;
17965 no:yes:* )
17966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17969 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17973 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17978
17979 ;;
17980 esac
17981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17982 $as_echo_n "checking for $ac_header... " >&6; }
17983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17984 $as_echo_n "(cached) " >&6
17985 else
17986 eval "$as_ac_Header=\$ac_header_preproc"
17987 fi
17988 ac_res=`eval 'as_val=${'$as_ac_Header'}
17989 $as_echo "$as_val"'`
17990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17991 $as_echo "$ac_res" >&6; }
17992
17993 fi
17994 if test `eval 'as_val=${'$as_ac_Header'}
17995 $as_echo "$as_val"'` = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17998 _ACEOF
17999
18000 fi
18001
18002 done
18003
18004
18005
18006
18007
18008
18009 for ac_header in $ac_header_list
18010 do
18011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18014 $as_echo_n "checking for $ac_header... " >&6; }
18015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18016 $as_echo_n "(cached) " >&6
18017 fi
18018 ac_res=`eval 'as_val=${'$as_ac_Header'}
18019 $as_echo "$as_val"'`
18020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18021 $as_echo "$ac_res" >&6; }
18022 else
18023 # Is the header compilable?
18024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18025 $as_echo_n "checking $ac_header usability... " >&6; }
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 $ac_includes_default
18033 #include <$ac_header>
18034 _ACEOF
18035 rm -f conftest.$ac_objext
18036 if { (ac_try="$ac_compile"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18040 esac
18041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18042 $as_echo "$ac_try_echo") >&5
18043 (eval "$ac_compile") 2>conftest.er1
18044 ac_status=$?
18045 grep -v '^ *+' conftest.er1 >conftest.err
18046 rm -f conftest.er1
18047 cat conftest.err >&5
18048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } && {
18050 test -z "$ac_c_werror_flag" ||
18051 test ! -s conftest.err
18052 } && test -s conftest.$ac_objext; then
18053 ac_header_compiler=yes
18054 else
18055 $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058 ac_header_compiler=no
18059 fi
18060
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18063 $as_echo "$ac_header_compiler" >&6; }
18064
18065 # Is the header present?
18066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18067 $as_echo_n "checking $ac_header presence... " >&6; }
18068 cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h. */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 #include <$ac_header>
18075 _ACEOF
18076 if { (ac_try="$ac_cpp conftest.$ac_ext"
18077 case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18080 esac
18081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18082 $as_echo "$ac_try_echo") >&5
18083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } >/dev/null && {
18090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 }; then
18093 ac_header_preproc=yes
18094 else
18095 $as_echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ac_header_preproc=no
18099 fi
18100
18101 rm -f conftest.err conftest.$ac_ext
18102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18103 $as_echo "$ac_header_preproc" >&6; }
18104
18105 # So? What about this header?
18106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18107 yes:no: )
18108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18112 ac_header_preproc=yes
18113 ;;
18114 no:yes:* )
18115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18127
18128 ;;
18129 esac
18130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18131 $as_echo_n "checking for $ac_header... " >&6; }
18132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18133 $as_echo_n "(cached) " >&6
18134 else
18135 eval "$as_ac_Header=\$ac_header_preproc"
18136 fi
18137 ac_res=`eval 'as_val=${'$as_ac_Header'}
18138 $as_echo "$as_val"'`
18139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18140 $as_echo "$ac_res" >&6; }
18141
18142 fi
18143 if test `eval 'as_val=${'$as_ac_Header'}
18144 $as_echo "$as_val"'` = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18147 _ACEOF
18148
18149 fi
18150
18151 done
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161 for ac_func in $ac_func_list
18162 do
18163 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 $as_echo_n "checking for $ac_func... " >&6; }
18166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18167 $as_echo_n "(cached) " >&6
18168 else
18169 cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h. */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18178
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18183
18184 #ifdef __STDC__
18185 # include <limits.h>
18186 #else
18187 # include <assert.h>
18188 #endif
18189
18190 #undef $ac_func
18191
18192 /* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char $ac_func ();
18199 /* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202 #if defined __stub_$ac_func || defined __stub___$ac_func
18203 choke me
18204 #endif
18205
18206 int
18207 main ()
18208 {
18209 return $ac_func ();
18210 ;
18211 return 0;
18212 }
18213 _ACEOF
18214 rm -f conftest.$ac_objext conftest$ac_exeext
18215 if { (ac_try="$ac_link"
18216 case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219 esac
18220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18221 $as_echo "$ac_try_echo") >&5
18222 (eval "$ac_link") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest$ac_exeext && {
18232 test "$cross_compiling" = yes ||
18233 $as_test_x conftest$ac_exeext
18234 }; then
18235 eval "$as_ac_var=yes"
18236 else
18237 $as_echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18239
18240 eval "$as_ac_var=no"
18241 fi
18242
18243 rm -rf conftest.dSYM
18244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18245 conftest$ac_exeext conftest.$ac_ext
18246 fi
18247 ac_res=`eval 'as_val=${'$as_ac_var'}
18248 $as_echo "$as_val"'`
18249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18250 $as_echo "$ac_res" >&6; }
18251 if test `eval 'as_val=${'$as_ac_var'}
18252 $as_echo "$as_val"'` = yes; then
18253 cat >>confdefs.h <<_ACEOF
18254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18255 _ACEOF
18256
18257 fi
18258 done
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18277 $as_echo_n "checking for working mktime... " >&6; }
18278 if test "${ac_cv_func_working_mktime+set}" = set; then
18279 $as_echo_n "(cached) " >&6
18280 else
18281 if test "$cross_compiling" = yes; then
18282 ac_cv_func_working_mktime=no
18283 else
18284 cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h. */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 /* Test program from Paul Eggert and Tony Leneis. */
18291 #ifdef TIME_WITH_SYS_TIME
18292 # include <sys/time.h>
18293 # include <time.h>
18294 #else
18295 # ifdef HAVE_SYS_TIME_H
18296 # include <sys/time.h>
18297 # else
18298 # include <time.h>
18299 # endif
18300 #endif
18301
18302 #include <limits.h>
18303 #include <stdlib.h>
18304
18305 #ifdef HAVE_UNISTD_H
18306 # include <unistd.h>
18307 #endif
18308
18309 #ifndef HAVE_ALARM
18310 # define alarm(X) /* empty */
18311 #endif
18312
18313 /* Work around redefinition to rpl_putenv by other config tests. */
18314 #undef putenv
18315
18316 static time_t time_t_max;
18317 static time_t time_t_min;
18318
18319 /* Values we'll use to set the TZ environment variable. */
18320 static char *tz_strings[] = {
18321 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18322 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18323 };
18324 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18325
18326 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18327 Based on a problem report from Andreas Jaeger. */
18328 static int
18329 spring_forward_gap ()
18330 {
18331 /* glibc (up to about 1998-10-07) failed this test. */
18332 struct tm tm;
18333
18334 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18335 instead of "TZ=America/Vancouver" in order to detect the bug even
18336 on systems that don't support the Olson extension, or don't have the
18337 full zoneinfo tables installed. */
18338 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18339
18340 tm.tm_year = 98;
18341 tm.tm_mon = 3;
18342 tm.tm_mday = 5;
18343 tm.tm_hour = 2;
18344 tm.tm_min = 0;
18345 tm.tm_sec = 0;
18346 tm.tm_isdst = -1;
18347 return mktime (&tm) != (time_t) -1;
18348 }
18349
18350 static int
18351 mktime_test1 (now)
18352 time_t now;
18353 {
18354 struct tm *lt;
18355 return ! (lt = localtime (&now)) || mktime (lt) == now;
18356 }
18357
18358 static int
18359 mktime_test (now)
18360 time_t now;
18361 {
18362 return (mktime_test1 (now)
18363 && mktime_test1 ((time_t) (time_t_max - now))
18364 && mktime_test1 ((time_t) (time_t_min + now)));
18365 }
18366
18367 static int
18368 irix_6_4_bug ()
18369 {
18370 /* Based on code from Ariel Faigon. */
18371 struct tm tm;
18372 tm.tm_year = 96;
18373 tm.tm_mon = 3;
18374 tm.tm_mday = 0;
18375 tm.tm_hour = 0;
18376 tm.tm_min = 0;
18377 tm.tm_sec = 0;
18378 tm.tm_isdst = -1;
18379 mktime (&tm);
18380 return tm.tm_mon == 2 && tm.tm_mday == 31;
18381 }
18382
18383 static int
18384 bigtime_test (j)
18385 int j;
18386 {
18387 struct tm tm;
18388 time_t now;
18389 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18390 now = mktime (&tm);
18391 if (now != (time_t) -1)
18392 {
18393 struct tm *lt = localtime (&now);
18394 if (! (lt
18395 && lt->tm_year == tm.tm_year
18396 && lt->tm_mon == tm.tm_mon
18397 && lt->tm_mday == tm.tm_mday
18398 && lt->tm_hour == tm.tm_hour
18399 && lt->tm_min == tm.tm_min
18400 && lt->tm_sec == tm.tm_sec
18401 && lt->tm_yday == tm.tm_yday
18402 && lt->tm_wday == tm.tm_wday
18403 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18404 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18405 return 0;
18406 }
18407 return 1;
18408 }
18409
18410 static int
18411 year_2050_test ()
18412 {
18413 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18414 ignoring leap seconds. */
18415 unsigned long int answer = 2527315200UL;
18416
18417 struct tm tm;
18418 time_t t;
18419 tm.tm_year = 2050 - 1900;
18420 tm.tm_mon = 2 - 1;
18421 tm.tm_mday = 1;
18422 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18423 tm.tm_isdst = -1;
18424
18425 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18426 instead of "TZ=America/Vancouver" in order to detect the bug even
18427 on systems that don't support the Olson extension, or don't have the
18428 full zoneinfo tables installed. */
18429 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18430
18431 t = mktime (&tm);
18432
18433 /* Check that the result is either a failure, or close enough
18434 to the correct answer that we can assume the discrepancy is
18435 due to leap seconds. */
18436 return (t == (time_t) -1
18437 || (0 < t && answer - 120 <= t && t <= answer + 120));
18438 }
18439
18440 int
18441 main ()
18442 {
18443 time_t t, delta;
18444 int i, j;
18445
18446 /* This test makes some buggy mktime implementations loop.
18447 Give up after 60 seconds; a mktime slower than that
18448 isn't worth using anyway. */
18449 alarm (60);
18450
18451 for (;;)
18452 {
18453 t = (time_t_max << 1) + 1;
18454 if (t <= time_t_max)
18455 break;
18456 time_t_max = t;
18457 }
18458 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18459
18460 delta = time_t_max / 997; /* a suitable prime number */
18461 for (i = 0; i < N_STRINGS; i++)
18462 {
18463 if (tz_strings[i])
18464 putenv (tz_strings[i]);
18465
18466 for (t = 0; t <= time_t_max - delta; t += delta)
18467 if (! mktime_test (t))
18468 return 1;
18469 if (! (mktime_test ((time_t) 1)
18470 && mktime_test ((time_t) (60 * 60))
18471 && mktime_test ((time_t) (60 * 60 * 24))))
18472 return 1;
18473
18474 for (j = 1; ; j <<= 1)
18475 if (! bigtime_test (j))
18476 return 1;
18477 else if (INT_MAX / 2 < j)
18478 break;
18479 if (! bigtime_test (INT_MAX))
18480 return 1;
18481 }
18482 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18483 }
18484 _ACEOF
18485 rm -f conftest$ac_exeext
18486 if { (ac_try="$ac_link"
18487 case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490 esac
18491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18492 $as_echo "$ac_try_echo") >&5
18493 (eval "$ac_link") 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500 esac
18501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18502 $as_echo "$ac_try_echo") >&5
18503 (eval "$ac_try") 2>&5
18504 ac_status=$?
18505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_func_working_mktime=yes
18508 else
18509 $as_echo "$as_me: program exited with status $ac_status" >&5
18510 $as_echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513 ( exit $ac_status )
18514 ac_cv_func_working_mktime=no
18515 fi
18516 rm -rf conftest.dSYM
18517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18518 fi
18519
18520
18521 fi
18522 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18523 $as_echo "$ac_cv_func_working_mktime" >&6; }
18524 if test $ac_cv_func_working_mktime = no; then
18525 case " $LIBOBJS " in
18526 *" mktime.$ac_objext "* ) ;;
18527 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18528 ;;
18529 esac
18530
18531 fi
18532
18533 if test "$ac_cv_func_working_mktime" = no; then
18534
18535 cat >>confdefs.h <<\_ACEOF
18536 #define BROKEN_MKTIME 1
18537 _ACEOF
18538
18539 fi
18540
18541 ac_have_func=no # yes means we've found a way to get the load average.
18542
18543 # Make sure getloadavg.c is where it belongs, at configure-time.
18544 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18545 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18546 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18547 { (exit 1); exit 1; }; }
18548
18549 ac_save_LIBS=$LIBS
18550
18551 # Check for getloadavg, but be sure not to touch the cache variable.
18552 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18553 $as_echo_n "checking for getloadavg... " >&6; }
18554 if test "${ac_cv_func_getloadavg+set}" = set; then
18555 $as_echo_n "(cached) " >&6
18556 else
18557 cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h. */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18565 #define getloadavg innocuous_getloadavg
18566
18567 /* System header to define __stub macros and hopefully few prototypes,
18568 which can conflict with char getloadavg (); below.
18569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18570 <limits.h> exists even on freestanding compilers. */
18571
18572 #ifdef __STDC__
18573 # include <limits.h>
18574 #else
18575 # include <assert.h>
18576 #endif
18577
18578 #undef getloadavg
18579
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18583 #ifdef __cplusplus
18584 extern "C"
18585 #endif
18586 char getloadavg ();
18587 /* The GNU C library defines this for functions which it implements
18588 to always fail with ENOSYS. Some functions are actually named
18589 something starting with __ and the normal name is an alias. */
18590 #if defined __stub_getloadavg || defined __stub___getloadavg
18591 choke me
18592 #endif
18593
18594 int
18595 main ()
18596 {
18597 return getloadavg ();
18598 ;
18599 return 0;
18600 }
18601 _ACEOF
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18607 esac
18608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18609 $as_echo "$ac_try_echo") >&5
18610 (eval "$ac_link") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest$ac_exeext && {
18620 test "$cross_compiling" = yes ||
18621 $as_test_x conftest$ac_exeext
18622 }; then
18623 ac_cv_func_getloadavg=yes
18624 else
18625 $as_echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_cv_func_getloadavg=no
18629 fi
18630
18631 rm -rf conftest.dSYM
18632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18633 conftest$ac_exeext conftest.$ac_ext
18634 fi
18635 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18636 $as_echo "$ac_cv_func_getloadavg" >&6; }
18637 if test $ac_cv_func_getloadavg = yes; then
18638 exit 0
18639 else
18640 exit 1
18641 fi
18642 ) && ac_have_func=yes
18643
18644 # On HPUX9, an unprivileged user can get load averages through this function.
18645
18646 for ac_func in pstat_getdynamic
18647 do
18648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18649 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18650 $as_echo_n "checking for $ac_func... " >&6; }
18651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18652 $as_echo_n "(cached) " >&6
18653 else
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18662 #define $ac_func innocuous_$ac_func
18663
18664 /* System header to define __stub macros and hopefully few prototypes,
18665 which can conflict with char $ac_func (); below.
18666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18667 <limits.h> exists even on freestanding compilers. */
18668
18669 #ifdef __STDC__
18670 # include <limits.h>
18671 #else
18672 # include <assert.h>
18673 #endif
18674
18675 #undef $ac_func
18676
18677 /* Override any GCC internal prototype to avoid an error.
18678 Use char because int might match the return type of a GCC
18679 builtin and then its argument prototype would still apply. */
18680 #ifdef __cplusplus
18681 extern "C"
18682 #endif
18683 char $ac_func ();
18684 /* The GNU C library defines this for functions which it implements
18685 to always fail with ENOSYS. Some functions are actually named
18686 something starting with __ and the normal name is an alias. */
18687 #if defined __stub_$ac_func || defined __stub___$ac_func
18688 choke me
18689 #endif
18690
18691 int
18692 main ()
18693 {
18694 return $ac_func ();
18695 ;
18696 return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (ac_try="$ac_link"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704 esac
18705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18706 $as_echo "$ac_try_echo") >&5
18707 (eval "$ac_link") 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } && {
18714 test -z "$ac_c_werror_flag" ||
18715 test ! -s conftest.err
18716 } && test -s conftest$ac_exeext && {
18717 test "$cross_compiling" = yes ||
18718 $as_test_x conftest$ac_exeext
18719 }; then
18720 eval "$as_ac_var=yes"
18721 else
18722 $as_echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 eval "$as_ac_var=no"
18726 fi
18727
18728 rm -rf conftest.dSYM
18729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18730 conftest$ac_exeext conftest.$ac_ext
18731 fi
18732 ac_res=`eval 'as_val=${'$as_ac_var'}
18733 $as_echo "$as_val"'`
18734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18735 $as_echo "$ac_res" >&6; }
18736 if test `eval 'as_val=${'$as_ac_var'}
18737 $as_echo "$as_val"'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18740 _ACEOF
18741
18742 fi
18743 done
18744
18745
18746 # Solaris has libkstat which does not require root.
18747
18748 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18749 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18750 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18751 $as_echo_n "(cached) " >&6
18752 else
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lkstat $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char kstat_open ();
18769 int
18770 main ()
18771 {
18772 return kstat_open ();
18773 ;
18774 return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782 esac
18783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18784 $as_echo "$ac_try_echo") >&5
18785 (eval "$ac_link") 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } && {
18792 test -z "$ac_c_werror_flag" ||
18793 test ! -s conftest.err
18794 } && test -s conftest$ac_exeext && {
18795 test "$cross_compiling" = yes ||
18796 $as_test_x conftest$ac_exeext
18797 }; then
18798 ac_cv_lib_kstat_kstat_open=yes
18799 else
18800 $as_echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18802
18803 ac_cv_lib_kstat_kstat_open=no
18804 fi
18805
18806 rm -rf conftest.dSYM
18807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18810 fi
18811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18812 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18813 if test $ac_cv_lib_kstat_kstat_open = yes; then
18814 cat >>confdefs.h <<_ACEOF
18815 #define HAVE_LIBKSTAT 1
18816 _ACEOF
18817
18818 LIBS="-lkstat $LIBS"
18819
18820 fi
18821
18822 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18823
18824 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18825 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18826 # to get the right answer into the cache.
18827 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18828 if test $ac_have_func = no; then
18829 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18830 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18831 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18832 $as_echo_n "(cached) " >&6
18833 else
18834 ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-lelf $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h. */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18842
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char elf_begin ();
18850 int
18851 main ()
18852 {
18853 return elf_begin ();
18854 ;
18855 return 0;
18856 }
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_link") 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest$ac_exeext && {
18876 test "$cross_compiling" = yes ||
18877 $as_test_x conftest$ac_exeext
18878 }; then
18879 ac_cv_lib_elf_elf_begin=yes
18880 else
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_lib_elf_elf_begin=no
18885 fi
18886
18887 rm -rf conftest.dSYM
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18891 fi
18892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18893 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18894 if test $ac_cv_lib_elf_elf_begin = yes; then
18895 LIBS="-lelf $LIBS"
18896 fi
18897
18898 fi
18899 if test $ac_have_func = no; then
18900 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18901 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18902 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18903 $as_echo_n "(cached) " >&6
18904 else
18905 ac_check_lib_save_LIBS=$LIBS
18906 LIBS="-lkvm $LIBS"
18907 cat >conftest.$ac_ext <<_ACEOF
18908 /* confdefs.h. */
18909 _ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18913
18914 /* Override any GCC internal prototype to avoid an error.
18915 Use char because int might match the return type of a GCC
18916 builtin and then its argument prototype would still apply. */
18917 #ifdef __cplusplus
18918 extern "C"
18919 #endif
18920 char kvm_open ();
18921 int
18922 main ()
18923 {
18924 return kvm_open ();
18925 ;
18926 return 0;
18927 }
18928 _ACEOF
18929 rm -f conftest.$ac_objext conftest$ac_exeext
18930 if { (ac_try="$ac_link"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934 esac
18935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18936 $as_echo "$ac_try_echo") >&5
18937 (eval "$ac_link") 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } && {
18944 test -z "$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18946 } && test -s conftest$ac_exeext && {
18947 test "$cross_compiling" = yes ||
18948 $as_test_x conftest$ac_exeext
18949 }; then
18950 ac_cv_lib_kvm_kvm_open=yes
18951 else
18952 $as_echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18954
18955 ac_cv_lib_kvm_kvm_open=no
18956 fi
18957
18958 rm -rf conftest.dSYM
18959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18960 conftest$ac_exeext conftest.$ac_ext
18961 LIBS=$ac_check_lib_save_LIBS
18962 fi
18963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18964 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18965 if test $ac_cv_lib_kvm_kvm_open = yes; then
18966 LIBS="-lkvm $LIBS"
18967 fi
18968
18969 # Check for the 4.4BSD definition of getloadavg.
18970 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18971 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18972 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18973 $as_echo_n "(cached) " >&6
18974 else
18975 ac_check_lib_save_LIBS=$LIBS
18976 LIBS="-lutil $LIBS"
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18987 #ifdef __cplusplus
18988 extern "C"
18989 #endif
18990 char getloadavg ();
18991 int
18992 main ()
18993 {
18994 return getloadavg ();
18995 ;
18996 return 0;
18997 }
18998 _ACEOF
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (ac_try="$ac_link"
19001 case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19004 esac
19005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19006 $as_echo "$ac_try_echo") >&5
19007 (eval "$ac_link") 2>conftest.er1
19008 ac_status=$?
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
19012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest$ac_exeext && {
19017 test "$cross_compiling" = yes ||
19018 $as_test_x conftest$ac_exeext
19019 }; then
19020 ac_cv_lib_util_getloadavg=yes
19021 else
19022 $as_echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19024
19025 ac_cv_lib_util_getloadavg=no
19026 fi
19027
19028 rm -rf conftest.dSYM
19029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19030 conftest$ac_exeext conftest.$ac_ext
19031 LIBS=$ac_check_lib_save_LIBS
19032 fi
19033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19034 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19035 if test $ac_cv_lib_util_getloadavg = yes; then
19036 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19037 fi
19038
19039 fi
19040
19041 if test $ac_have_func = no; then
19042 # There is a commonly available library for RS/6000 AIX.
19043 # Since it is not a standard part of AIX, it might be installed locally.
19044 ac_getloadavg_LIBS=$LIBS
19045 LIBS="-L/usr/local/lib $LIBS"
19046 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19047 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19048 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19049 $as_echo_n "(cached) " >&6
19050 else
19051 ac_check_lib_save_LIBS=$LIBS
19052 LIBS="-lgetloadavg $LIBS"
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h. */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char getloadavg ();
19067 int
19068 main ()
19069 {
19070 return getloadavg ();
19071 ;
19072 return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19080 esac
19081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19082 $as_echo "$ac_try_echo") >&5
19083 (eval "$ac_link") 2>conftest.er1
19084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } && {
19090 test -z "$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19092 } && test -s conftest$ac_exeext && {
19093 test "$cross_compiling" = yes ||
19094 $as_test_x conftest$ac_exeext
19095 }; then
19096 ac_cv_lib_getloadavg_getloadavg=yes
19097 else
19098 $as_echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19100
19101 ac_cv_lib_getloadavg_getloadavg=no
19102 fi
19103
19104 rm -rf conftest.dSYM
19105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19106 conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19108 fi
19109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19110 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19111 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19112 LIBS="-lgetloadavg $LIBS"
19113 else
19114 LIBS=$ac_getloadavg_LIBS
19115 fi
19116
19117 fi
19118
19119 # Make sure it is really in the library, if we think we found it,
19120 # otherwise set up the replacement function.
19121
19122 for ac_func in getloadavg
19123 do
19124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19125 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19126 $as_echo_n "checking for $ac_func... " >&6; }
19127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19128 $as_echo_n "(cached) " >&6
19129 else
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19138 #define $ac_func innocuous_$ac_func
19139
19140 /* System header to define __stub macros and hopefully few prototypes,
19141 which can conflict with char $ac_func (); below.
19142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19143 <limits.h> exists even on freestanding compilers. */
19144
19145 #ifdef __STDC__
19146 # include <limits.h>
19147 #else
19148 # include <assert.h>
19149 #endif
19150
19151 #undef $ac_func
19152
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 char $ac_func ();
19160 /* The GNU C library defines this for functions which it implements
19161 to always fail with ENOSYS. Some functions are actually named
19162 something starting with __ and the normal name is an alias. */
19163 #if defined __stub_$ac_func || defined __stub___$ac_func
19164 choke me
19165 #endif
19166
19167 int
19168 main ()
19169 {
19170 return $ac_func ();
19171 ;
19172 return 0;
19173 }
19174 _ACEOF
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (ac_try="$ac_link"
19177 case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180 esac
19181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19182 $as_echo "$ac_try_echo") >&5
19183 (eval "$ac_link") 2>conftest.er1
19184 ac_status=$?
19185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
19188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest$ac_exeext && {
19193 test "$cross_compiling" = yes ||
19194 $as_test_x conftest$ac_exeext
19195 }; then
19196 eval "$as_ac_var=yes"
19197 else
19198 $as_echo "$as_me: failed program was:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19200
19201 eval "$as_ac_var=no"
19202 fi
19203
19204 rm -rf conftest.dSYM
19205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19206 conftest$ac_exeext conftest.$ac_ext
19207 fi
19208 ac_res=`eval 'as_val=${'$as_ac_var'}
19209 $as_echo "$as_val"'`
19210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19211 $as_echo "$ac_res" >&6; }
19212 if test `eval 'as_val=${'$as_ac_var'}
19213 $as_echo "$as_val"'` = yes; then
19214 cat >>confdefs.h <<_ACEOF
19215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19216 _ACEOF
19217
19218 else
19219 case " $LIBOBJS " in
19220 *" getloadavg.$ac_objext "* ) ;;
19221 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19222 ;;
19223 esac
19224
19225
19226 cat >>confdefs.h <<\_ACEOF
19227 #define C_GETLOADAVG 1
19228 _ACEOF
19229
19230 # Figure out what our getloadavg.c needs.
19231 ac_have_func=no
19232 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19233 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19234 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19236 $as_echo_n "(cached) " >&6
19237 fi
19238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19239 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19240 else
19241 # Is the header compilable?
19242 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19243 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 $ac_includes_default
19251 #include <sys/dg_sys_info.h>
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258 esac
19259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19260 $as_echo "$ac_try_echo") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_header_compiler=yes
19272 else
19273 $as_echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 ac_header_compiler=no
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19280 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19281 $as_echo "$ac_header_compiler" >&6; }
19282
19283 # Is the header present?
19284 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19285 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <sys/dg_sys_info.h>
19293 _ACEOF
19294 if { (ac_try="$ac_cpp conftest.$ac_ext"
19295 case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298 esac
19299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19300 $as_echo "$ac_try_echo") >&5
19301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19302 ac_status=$?
19303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
19306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } >/dev/null && {
19308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19309 test ! -s conftest.err
19310 }; then
19311 ac_header_preproc=yes
19312 else
19313 $as_echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 ac_header_preproc=no
19317 fi
19318
19319 rm -f conftest.err conftest.$ac_ext
19320 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19321 $as_echo "$ac_header_preproc" >&6; }
19322
19323 # So? What about this header?
19324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19325 yes:no: )
19326 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19329 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19330 ac_header_preproc=yes
19331 ;;
19332 no:yes:* )
19333 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19334 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19335 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19336 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19337 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19338 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19339 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19340 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19341 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19342 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19343 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19344 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19345
19346 ;;
19347 esac
19348 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19349 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19350 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19351 $as_echo_n "(cached) " >&6
19352 else
19353 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19354 fi
19355 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19356 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19357
19358 fi
19359 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19360 ac_have_func=yes
19361
19362 cat >>confdefs.h <<\_ACEOF
19363 #define DGUX 1
19364 _ACEOF
19365
19366
19367 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19368 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19369 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19370 $as_echo_n "(cached) " >&6
19371 else
19372 ac_check_lib_save_LIBS=$LIBS
19373 LIBS="-ldgc $LIBS"
19374 cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h. */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19384 #ifdef __cplusplus
19385 extern "C"
19386 #endif
19387 char dg_sys_info ();
19388 int
19389 main ()
19390 {
19391 return dg_sys_info ();
19392 ;
19393 return 0;
19394 }
19395 _ACEOF
19396 rm -f conftest.$ac_objext conftest$ac_exeext
19397 if { (ac_try="$ac_link"
19398 case "(($ac_try" in
19399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400 *) ac_try_echo=$ac_try;;
19401 esac
19402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19403 $as_echo "$ac_try_echo") >&5
19404 (eval "$ac_link") 2>conftest.er1
19405 ac_status=$?
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
19409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } && {
19411 test -z "$ac_c_werror_flag" ||
19412 test ! -s conftest.err
19413 } && test -s conftest$ac_exeext && {
19414 test "$cross_compiling" = yes ||
19415 $as_test_x conftest$ac_exeext
19416 }; then
19417 ac_cv_lib_dgc_dg_sys_info=yes
19418 else
19419 $as_echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_cv_lib_dgc_dg_sys_info=no
19423 fi
19424
19425 rm -rf conftest.dSYM
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19429 fi
19430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19431 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19432 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19433 cat >>confdefs.h <<_ACEOF
19434 #define HAVE_LIBDGC 1
19435 _ACEOF
19436
19437 LIBS="-ldgc $LIBS"
19438
19439 fi
19440
19441 fi
19442
19443
19444
19445 if test "${ac_cv_header_locale_h+set}" = set; then
19446 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19447 $as_echo_n "checking for locale.h... " >&6; }
19448 if test "${ac_cv_header_locale_h+set}" = set; then
19449 $as_echo_n "(cached) " >&6
19450 fi
19451 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19452 $as_echo "$ac_cv_header_locale_h" >&6; }
19453 else
19454 # Is the header compilable?
19455 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19456 $as_echo_n "checking locale.h usability... " >&6; }
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19464 #include <locale.h>
19465 _ACEOF
19466 rm -f conftest.$ac_objext
19467 if { (ac_try="$ac_compile"
19468 case "(($ac_try" in
19469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19470 *) ac_try_echo=$ac_try;;
19471 esac
19472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19473 $as_echo "$ac_try_echo") >&5
19474 (eval "$ac_compile") 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } && {
19481 test -z "$ac_c_werror_flag" ||
19482 test ! -s conftest.err
19483 } && test -s conftest.$ac_objext; then
19484 ac_header_compiler=yes
19485 else
19486 $as_echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 ac_header_compiler=no
19490 fi
19491
19492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19494 $as_echo "$ac_header_compiler" >&6; }
19495
19496 # Is the header present?
19497 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19498 $as_echo_n "checking locale.h presence... " >&6; }
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 #include <locale.h>
19506 _ACEOF
19507 if { (ac_try="$ac_cpp conftest.$ac_ext"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19513 $as_echo "$ac_try_echo") >&5
19514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } >/dev/null && {
19521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 }; then
19524 ac_header_preproc=yes
19525 else
19526 $as_echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_header_preproc=no
19530 fi
19531
19532 rm -f conftest.err conftest.$ac_ext
19533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19534 $as_echo "$ac_header_preproc" >&6; }
19535
19536 # So? What about this header?
19537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19538 yes:no: )
19539 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19540 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19542 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19543 ac_header_preproc=yes
19544 ;;
19545 no:yes:* )
19546 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19547 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19549 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19551 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19553 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19555 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19556 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19557 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19558
19559 ;;
19560 esac
19561 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19562 $as_echo_n "checking for locale.h... " >&6; }
19563 if test "${ac_cv_header_locale_h+set}" = set; then
19564 $as_echo_n "(cached) " >&6
19565 else
19566 ac_cv_header_locale_h=$ac_header_preproc
19567 fi
19568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19569 $as_echo "$ac_cv_header_locale_h" >&6; }
19570
19571 fi
19572
19573
19574
19575 for ac_func in setlocale
19576 do
19577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19578 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19579 $as_echo_n "checking for $ac_func... " >&6; }
19580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19581 $as_echo_n "(cached) " >&6
19582 else
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19591 #define $ac_func innocuous_$ac_func
19592
19593 /* System header to define __stub macros and hopefully few prototypes,
19594 which can conflict with char $ac_func (); below.
19595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19596 <limits.h> exists even on freestanding compilers. */
19597
19598 #ifdef __STDC__
19599 # include <limits.h>
19600 #else
19601 # include <assert.h>
19602 #endif
19603
19604 #undef $ac_func
19605
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char $ac_func ();
19613 /* The GNU C library defines this for functions which it implements
19614 to always fail with ENOSYS. Some functions are actually named
19615 something starting with __ and the normal name is an alias. */
19616 #if defined __stub_$ac_func || defined __stub___$ac_func
19617 choke me
19618 #endif
19619
19620 int
19621 main ()
19622 {
19623 return $ac_func ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19635 $as_echo "$ac_try_echo") >&5
19636 (eval "$ac_link") 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext && {
19646 test "$cross_compiling" = yes ||
19647 $as_test_x conftest$ac_exeext
19648 }; then
19649 eval "$as_ac_var=yes"
19650 else
19651 $as_echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 eval "$as_ac_var=no"
19655 fi
19656
19657 rm -rf conftest.dSYM
19658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19659 conftest$ac_exeext conftest.$ac_ext
19660 fi
19661 ac_res=`eval 'as_val=${'$as_ac_var'}
19662 $as_echo "$as_val"'`
19663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19664 $as_echo "$ac_res" >&6; }
19665 if test `eval 'as_val=${'$as_ac_var'}
19666 $as_echo "$as_val"'` = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19669 _ACEOF
19670
19671 fi
19672 done
19673
19674
19675 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19676 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19677 # Irix 4.0.5F has the header but not the library.
19678 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19679 ac_have_func=yes
19680
19681 cat >>confdefs.h <<\_ACEOF
19682 #define SVR4 1
19683 _ACEOF
19684
19685 fi
19686
19687 if test $ac_have_func = no; then
19688 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19689 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19690 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19691 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19692 $as_echo_n "(cached) " >&6
19693 fi
19694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19695 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19696 else
19697 # Is the header compilable?
19698 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19699 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19700 cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h. */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 $ac_includes_default
19707 #include <inq_stats/cpustats.h>
19708 _ACEOF
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19714 esac
19715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19716 $as_echo "$ac_try_echo") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } && {
19724 test -z "$ac_c_werror_flag" ||
19725 test ! -s conftest.err
19726 } && test -s conftest.$ac_objext; then
19727 ac_header_compiler=yes
19728 else
19729 $as_echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732 ac_header_compiler=no
19733 fi
19734
19735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19737 $as_echo "$ac_header_compiler" >&6; }
19738
19739 # Is the header present?
19740 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19741 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h. */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 #include <inq_stats/cpustats.h>
19749 _ACEOF
19750 if { (ac_try="$ac_cpp conftest.$ac_ext"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19754 esac
19755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19756 $as_echo "$ac_try_echo") >&5
19757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19758 ac_status=$?
19759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
19762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } >/dev/null && {
19764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 }; then
19767 ac_header_preproc=yes
19768 else
19769 $as_echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772 ac_header_preproc=no
19773 fi
19774
19775 rm -f conftest.err conftest.$ac_ext
19776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19777 $as_echo "$ac_header_preproc" >&6; }
19778
19779 # So? What about this header?
19780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19781 yes:no: )
19782 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19783 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19785 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19786 ac_header_preproc=yes
19787 ;;
19788 no:yes:* )
19789 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19790 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19791 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19792 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19793 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19794 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19795 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19796 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19797 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19798 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19799 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19800 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19801
19802 ;;
19803 esac
19804 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19805 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19806 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19807 $as_echo_n "(cached) " >&6
19808 else
19809 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19810 fi
19811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19812 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19813
19814 fi
19815 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19816 ac_have_func=yes
19817
19818 cat >>confdefs.h <<\_ACEOF
19819 #define UMAX 1
19820 _ACEOF
19821
19822
19823 cat >>confdefs.h <<\_ACEOF
19824 #define UMAX4_3 1
19825 _ACEOF
19826
19827 fi
19828
19829
19830 fi
19831
19832 if test $ac_have_func = no; then
19833 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19834 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19835 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19836 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19837 $as_echo_n "(cached) " >&6
19838 fi
19839 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19840 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19841 else
19842 # Is the header compilable?
19843 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19844 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 $ac_includes_default
19852 #include <sys/cpustats.h>
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859 esac
19860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19861 $as_echo "$ac_try_echo") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.$ac_objext; then
19872 ac_header_compiler=yes
19873 else
19874 $as_echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_header_compiler=no
19878 fi
19879
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19882 $as_echo "$ac_header_compiler" >&6; }
19883
19884 # Is the header present?
19885 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19886 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <sys/cpustats.h>
19894 _ACEOF
19895 if { (ac_try="$ac_cpp conftest.$ac_ext"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19899 esac
19900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19901 $as_echo "$ac_try_echo") >&5
19902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } >/dev/null && {
19909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19910 test ! -s conftest.err
19911 }; then
19912 ac_header_preproc=yes
19913 else
19914 $as_echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_header_preproc=no
19918 fi
19919
19920 rm -f conftest.err conftest.$ac_ext
19921 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19922 $as_echo "$ac_header_preproc" >&6; }
19923
19924 # So? What about this header?
19925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19926 yes:no: )
19927 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19928 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19930 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19931 ac_header_preproc=yes
19932 ;;
19933 no:yes:* )
19934 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19935 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19936 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19937 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19938 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19939 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19940 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19941 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19942 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19943 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19944 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19945 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19946
19947 ;;
19948 esac
19949 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19950 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19951 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19952 $as_echo_n "(cached) " >&6
19953 else
19954 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19955 fi
19956 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19957 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19958
19959 fi
19960 if test $ac_cv_header_sys_cpustats_h = yes; then
19961 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19962 #define UMAX 1
19963 _ACEOF
19964
19965 fi
19966
19967
19968 fi
19969
19970 if test $ac_have_func = no; then
19971
19972 for ac_header in mach/mach.h
19973 do
19974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19977 $as_echo_n "checking for $ac_header... " >&6; }
19978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19979 $as_echo_n "(cached) " >&6
19980 fi
19981 ac_res=`eval 'as_val=${'$as_ac_Header'}
19982 $as_echo "$as_val"'`
19983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19984 $as_echo "$ac_res" >&6; }
19985 else
19986 # Is the header compilable?
19987 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19988 $as_echo_n "checking $ac_header usability... " >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 $ac_includes_default
19996 #include <$ac_header>
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003 esac
20004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20005 $as_echo "$ac_try_echo") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_header_compiler=yes
20017 else
20018 $as_echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021 ac_header_compiler=no
20022 fi
20023
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20026 $as_echo "$ac_header_compiler" >&6; }
20027
20028 # Is the header present?
20029 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20030 $as_echo_n "checking $ac_header presence... " >&6; }
20031 cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h. */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 #include <$ac_header>
20038 _ACEOF
20039 if { (ac_try="$ac_cpp conftest.$ac_ext"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20045 $as_echo "$ac_try_echo") >&5
20046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } >/dev/null && {
20053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 }; then
20056 ac_header_preproc=yes
20057 else
20058 $as_echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 ac_header_preproc=no
20062 fi
20063
20064 rm -f conftest.err conftest.$ac_ext
20065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20066 $as_echo "$ac_header_preproc" >&6; }
20067
20068 # So? What about this header?
20069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20070 yes:no: )
20071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20072 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20075 ac_header_preproc=yes
20076 ;;
20077 no:yes:* )
20078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20079 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20081 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20083 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20085 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20089 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20090
20091 ;;
20092 esac
20093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 $as_echo_n "checking for $ac_header... " >&6; }
20095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20096 $as_echo_n "(cached) " >&6
20097 else
20098 eval "$as_ac_Header=\$ac_header_preproc"
20099 fi
20100 ac_res=`eval 'as_val=${'$as_ac_Header'}
20101 $as_echo "$as_val"'`
20102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20103 $as_echo "$ac_res" >&6; }
20104
20105 fi
20106 if test `eval 'as_val=${'$as_ac_Header'}
20107 $as_echo "$as_val"'` = yes; then
20108 cat >>confdefs.h <<_ACEOF
20109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20110 _ACEOF
20111
20112 fi
20113
20114 done
20115
20116 fi
20117
20118
20119 for ac_header in nlist.h
20120 do
20121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20124 $as_echo_n "checking for $ac_header... " >&6; }
20125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20126 $as_echo_n "(cached) " >&6
20127 fi
20128 ac_res=`eval 'as_val=${'$as_ac_Header'}
20129 $as_echo "$as_val"'`
20130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20131 $as_echo "$ac_res" >&6; }
20132 else
20133 # Is the header compilable?
20134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20135 $as_echo_n "checking $ac_header usability... " >&6; }
20136 cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h. */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 $ac_includes_default
20143 #include <$ac_header>
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20152 $as_echo "$ac_try_echo") >&5
20153 (eval "$ac_compile") 2>conftest.er1
20154 ac_status=$?
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
20158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } && {
20160 test -z "$ac_c_werror_flag" ||
20161 test ! -s conftest.err
20162 } && test -s conftest.$ac_objext; then
20163 ac_header_compiler=yes
20164 else
20165 $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 ac_header_compiler=no
20169 fi
20170
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20173 $as_echo "$ac_header_compiler" >&6; }
20174
20175 # Is the header present?
20176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20177 $as_echo_n "checking $ac_header presence... " >&6; }
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h. */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h. */
20184 #include <$ac_header>
20185 _ACEOF
20186 if { (ac_try="$ac_cpp conftest.$ac_ext"
20187 case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190 esac
20191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20192 $as_echo "$ac_try_echo") >&5
20193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev/null && {
20200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 }; then
20203 ac_header_preproc=yes
20204 else
20205 $as_echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208 ac_header_preproc=no
20209 fi
20210
20211 rm -f conftest.err conftest.$ac_ext
20212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20213 $as_echo "$ac_header_preproc" >&6; }
20214
20215 # So? What about this header?
20216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20217 yes:no: )
20218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20222 ac_header_preproc=yes
20223 ;;
20224 no:yes:* )
20225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20228 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20232 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20237
20238 ;;
20239 esac
20240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20241 $as_echo_n "checking for $ac_header... " >&6; }
20242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20243 $as_echo_n "(cached) " >&6
20244 else
20245 eval "$as_ac_Header=\$ac_header_preproc"
20246 fi
20247 ac_res=`eval 'as_val=${'$as_ac_Header'}
20248 $as_echo "$as_val"'`
20249 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20250 $as_echo "$ac_res" >&6; }
20251
20252 fi
20253 if test `eval 'as_val=${'$as_ac_Header'}
20254 $as_echo "$as_val"'` = yes; then
20255 cat >>confdefs.h <<_ACEOF
20256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20257 _ACEOF
20258 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20259 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20260 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20261 $as_echo_n "(cached) " >&6
20262 else
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <nlist.h>
20270
20271 int
20272 main ()
20273 {
20274 static struct nlist ac_aggr;
20275 if (ac_aggr.n_un.n_name)
20276 return 0;
20277 ;
20278 return 0;
20279 }
20280 _ACEOF
20281 rm -f conftest.$ac_objext
20282 if { (ac_try="$ac_compile"
20283 case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20288 $as_echo "$ac_try_echo") >&5
20289 (eval "$ac_compile") 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest.$ac_objext; then
20299 ac_cv_member_struct_nlist_n_un_n_name=yes
20300 else
20301 $as_echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 #include <nlist.h>
20311
20312 int
20313 main ()
20314 {
20315 static struct nlist ac_aggr;
20316 if (sizeof ac_aggr.n_un.n_name)
20317 return 0;
20318 ;
20319 return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327 esac
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 ac_cv_member_struct_nlist_n_un_n_name=yes
20341 else
20342 $as_echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_member_struct_nlist_n_un_n_name=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349 fi
20350
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20352 fi
20353 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20354 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20355 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20356
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20359 _ACEOF
20360
20361
20362 cat >>confdefs.h <<\_ACEOF
20363 #define NLIST_NAME_UNION 1
20364 _ACEOF
20365
20366 fi
20367
20368
20369 fi
20370
20371 done
20372
20373 fi
20374 done
20375
20376
20377 # Some definitions of getloadavg require that the program be installed setgid.
20378 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20379 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20380 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20381 $as_echo_n "(cached) " >&6
20382 else
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20390 #ifdef LDAV_PRIVILEGED
20391 Yowza Am I SETGID yet
20392 #endif
20393 _ACEOF
20394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20395 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20396 ac_cv_func_getloadavg_setgid=yes
20397 else
20398 ac_cv_func_getloadavg_setgid=no
20399 fi
20400 rm -f conftest*
20401
20402 fi
20403 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20404 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20405 if test $ac_cv_func_getloadavg_setgid = yes; then
20406 NEED_SETGID=true
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define GETLOADAVG_PRIVILEGED 1
20410 _ACEOF
20411
20412 else
20413 NEED_SETGID=false
20414 fi
20415
20416 if test $ac_cv_func_getloadavg_setgid = yes; then
20417 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20418 $as_echo_n "checking group of /dev/kmem... " >&6; }
20419 if test "${ac_cv_group_kmem+set}" = set; then
20420 $as_echo_n "(cached) " >&6
20421 else
20422 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20423 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20424 # If we got an error (system does not support symlinks), try without -L.
20425 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20426 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20427 | sed -ne 's/[ ][ ]*/ /g;
20428 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20429 / /s/.* //;p;'`
20430
20431 fi
20432 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20433 $as_echo "$ac_cv_group_kmem" >&6; }
20434 KMEM_GROUP=$ac_cv_group_kmem
20435 fi
20436 if test "x$ac_save_LIBS" = x; then
20437 GETLOADAVG_LIBS=$LIBS
20438 else
20439 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20440 fi
20441 LIBS=$ac_save_LIBS
20442
20443
20444
20445 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20446 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20447 if test "${ac_cv_sys_largefile_source+set}" = set; then
20448 $as_echo_n "(cached) " >&6
20449 else
20450 while :; do
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 #include <sys/types.h> /* for off_t */
20458 #include <stdio.h>
20459 int
20460 main ()
20461 {
20462 int (*fp) (FILE *, off_t, int) = fseeko;
20463 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20464 ;
20465 return 0;
20466 }
20467 _ACEOF
20468 rm -f conftest.$ac_objext conftest$ac_exeext
20469 if { (ac_try="$ac_link"
20470 case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473 esac
20474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20475 $as_echo "$ac_try_echo") >&5
20476 (eval "$ac_link") 2>conftest.er1
20477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } && {
20483 test -z "$ac_c_werror_flag" ||
20484 test ! -s conftest.err
20485 } && test -s conftest$ac_exeext && {
20486 test "$cross_compiling" = yes ||
20487 $as_test_x conftest$ac_exeext
20488 }; then
20489 ac_cv_sys_largefile_source=no; break
20490 else
20491 $as_echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494
20495 fi
20496
20497 rm -rf conftest.dSYM
20498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20499 conftest$ac_exeext conftest.$ac_ext
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h. */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #define _LARGEFILE_SOURCE 1
20507 #include <sys/types.h> /* for off_t */
20508 #include <stdio.h>
20509 int
20510 main ()
20511 {
20512 int (*fp) (FILE *, off_t, int) = fseeko;
20513 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20514 ;
20515 return 0;
20516 }
20517 _ACEOF
20518 rm -f conftest.$ac_objext conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523 esac
20524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20525 $as_echo "$ac_try_echo") >&5
20526 (eval "$ac_link") 2>conftest.er1
20527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } && {
20533 test -z "$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20535 } && test -s conftest$ac_exeext && {
20536 test "$cross_compiling" = yes ||
20537 $as_test_x conftest$ac_exeext
20538 }; then
20539 ac_cv_sys_largefile_source=1; break
20540 else
20541 $as_echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20543
20544
20545 fi
20546
20547 rm -rf conftest.dSYM
20548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20549 conftest$ac_exeext conftest.$ac_ext
20550 ac_cv_sys_largefile_source=unknown
20551 break
20552 done
20553 fi
20554 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20555 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20556 case $ac_cv_sys_largefile_source in #(
20557 no | unknown) ;;
20558 *)
20559 cat >>confdefs.h <<_ACEOF
20560 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20561 _ACEOF
20562 ;;
20563 esac
20564 rm -rf conftest*
20565
20566 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20567 # in glibc 2.1.3, but that breaks too many other things.
20568 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20569 if test $ac_cv_sys_largefile_source != unknown; then
20570
20571 cat >>confdefs.h <<\_ACEOF
20572 #define HAVE_FSEEKO 1
20573 _ACEOF
20574
20575 fi
20576
20577
20578 # Configure getopt.
20579 # getopt.m4 serial 10
20580
20581 # The getopt module assume you want GNU getopt, with getopt_long etc,
20582 # rather than vanilla POSIX getopt. This means your your code should
20583 # always include <getopt.h> for the getopt prototypes.
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595 # Prerequisites of lib/getopt*.
20596
20597
20598
20599
20600 GETOPT_H=
20601
20602 for ac_header in getopt.h
20603 do
20604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20607 $as_echo_n "checking for $ac_header... " >&6; }
20608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20609 $as_echo_n "(cached) " >&6
20610 fi
20611 ac_res=`eval 'as_val=${'$as_ac_Header'}
20612 $as_echo "$as_val"'`
20613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20614 $as_echo "$ac_res" >&6; }
20615 else
20616 # Is the header compilable?
20617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20618 $as_echo_n "checking $ac_header usability... " >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20626 #include <$ac_header>
20627 _ACEOF
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20633 esac
20634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20635 $as_echo "$ac_try_echo") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ac_header_compiler=yes
20647 else
20648 $as_echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651 ac_header_compiler=no
20652 fi
20653
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20656 $as_echo "$ac_header_compiler" >&6; }
20657
20658 # Is the header present?
20659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20660 $as_echo_n "checking $ac_header presence... " >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h. */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 #include <$ac_header>
20668 _ACEOF
20669 if { (ac_try="$ac_cpp conftest.$ac_ext"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20675 $as_echo "$ac_try_echo") >&5
20676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20677 ac_status=$?
20678 grep -v '^ *+' conftest.er1 >conftest.err
20679 rm -f conftest.er1
20680 cat conftest.err >&5
20681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } >/dev/null && {
20683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 }; then
20686 ac_header_preproc=yes
20687 else
20688 $as_echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20690
20691 ac_header_preproc=no
20692 fi
20693
20694 rm -f conftest.err conftest.$ac_ext
20695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20696 $as_echo "$ac_header_preproc" >&6; }
20697
20698 # So? What about this header?
20699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20700 yes:no: )
20701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20705 ac_header_preproc=yes
20706 ;;
20707 no:yes:* )
20708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20711 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20715 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20720
20721 ;;
20722 esac
20723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20724 $as_echo_n "checking for $ac_header... " >&6; }
20725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20726 $as_echo_n "(cached) " >&6
20727 else
20728 eval "$as_ac_Header=\$ac_header_preproc"
20729 fi
20730 ac_res=`eval 'as_val=${'$as_ac_Header'}
20731 $as_echo "$as_val"'`
20732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20733 $as_echo "$ac_res" >&6; }
20734
20735 fi
20736 if test `eval 'as_val=${'$as_ac_Header'}
20737 $as_echo "$as_val"'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20740 _ACEOF
20741
20742 else
20743 GETOPT_H=getopt.h
20744 fi
20745
20746 done
20747
20748 if test -z "$GETOPT_H"; then
20749
20750 for ac_func in getopt_long_only
20751 do
20752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20754 $as_echo_n "checking for $ac_func... " >&6; }
20755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20756 $as_echo_n "(cached) " >&6
20757 else
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h. */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20766 #define $ac_func innocuous_$ac_func
20767
20768 /* System header to define __stub macros and hopefully few prototypes,
20769 which can conflict with char $ac_func (); below.
20770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20771 <limits.h> exists even on freestanding compilers. */
20772
20773 #ifdef __STDC__
20774 # include <limits.h>
20775 #else
20776 # include <assert.h>
20777 #endif
20778
20779 #undef $ac_func
20780
20781 /* Override any GCC internal prototype to avoid an error.
20782 Use char because int might match the return type of a GCC
20783 builtin and then its argument prototype would still apply. */
20784 #ifdef __cplusplus
20785 extern "C"
20786 #endif
20787 char $ac_func ();
20788 /* The GNU C library defines this for functions which it implements
20789 to always fail with ENOSYS. Some functions are actually named
20790 something starting with __ and the normal name is an alias. */
20791 #if defined __stub_$ac_func || defined __stub___$ac_func
20792 choke me
20793 #endif
20794
20795 int
20796 main ()
20797 {
20798 return $ac_func ();
20799 ;
20800 return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20808 esac
20809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20810 $as_echo "$ac_try_echo") >&5
20811 (eval "$ac_link") 2>conftest.er1
20812 ac_status=$?
20813 grep -v '^ *+' conftest.er1 >conftest.err
20814 rm -f conftest.er1
20815 cat conftest.err >&5
20816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest$ac_exeext && {
20821 test "$cross_compiling" = yes ||
20822 $as_test_x conftest$ac_exeext
20823 }; then
20824 eval "$as_ac_var=yes"
20825 else
20826 $as_echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829 eval "$as_ac_var=no"
20830 fi
20831
20832 rm -rf conftest.dSYM
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext conftest.$ac_ext
20835 fi
20836 ac_res=`eval 'as_val=${'$as_ac_var'}
20837 $as_echo "$as_val"'`
20838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20839 $as_echo "$ac_res" >&6; }
20840 if test `eval 'as_val=${'$as_ac_var'}
20841 $as_echo "$as_val"'` = yes; then
20842 cat >>confdefs.h <<_ACEOF
20843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20844 _ACEOF
20845
20846 else
20847 GETOPT_H=getopt.h
20848 fi
20849 done
20850
20851 fi
20852
20853 if test -z "$GETOPT_H"; then
20854 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20855 $as_echo_n "checking whether optreset is declared... " >&6; }
20856 if test "${ac_cv_have_decl_optreset+set}" = set; then
20857 $as_echo_n "(cached) " >&6
20858 else
20859 cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h. */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <getopt.h>
20866
20867 int
20868 main ()
20869 {
20870 #ifndef optreset
20871 (void) optreset;
20872 #endif
20873
20874 ;
20875 return 0;
20876 }
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20883 esac
20884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20885 $as_echo "$ac_try_echo") >&5
20886 (eval "$ac_compile") 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } && {
20893 test -z "$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20895 } && test -s conftest.$ac_objext; then
20896 ac_cv_have_decl_optreset=yes
20897 else
20898 $as_echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ac_cv_have_decl_optreset=no
20902 fi
20903
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 fi
20906 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20907 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20908 if test $ac_cv_have_decl_optreset = yes; then
20909 GETOPT_H=getopt.h
20910 fi
20911
20912 fi
20913
20914 if test -z "$GETOPT_H"; then
20915 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20916 $as_echo_n "checking for working GNU getopt function... " >&6; }
20917 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20918 $as_echo_n "(cached) " >&6
20919 else
20920 if test "$cross_compiling" = yes; then
20921 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20922 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20923 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20924 $as_echo_n "(cached) " >&6
20925 else
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <getopt.h>
20933
20934 int
20935 main ()
20936 {
20937 #ifndef getopt_clip
20938 (void) getopt_clip;
20939 #endif
20940
20941 ;
20942 return 0;
20943 }
20944 _ACEOF
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20952 $as_echo "$ac_try_echo") >&5
20953 (eval "$ac_compile") 2>conftest.er1
20954 ac_status=$?
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
20958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest.$ac_objext; then
20963 ac_cv_have_decl_getopt_clip=yes
20964 else
20965 $as_echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 ac_cv_have_decl_getopt_clip=no
20969 fi
20970
20971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20972 fi
20973 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20974 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20975 if test $ac_cv_have_decl_getopt_clip = yes; then
20976 gl_cv_func_gnu_getopt=no
20977 else
20978 gl_cv_func_gnu_getopt=yes
20979 fi
20980
20981 else
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h. */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 #include <getopt.h>
20989 int
20990 main ()
20991 {
20992
20993 char *myargv[3];
20994 myargv[0] = "conftest";
20995 myargv[1] = "-+";
20996 myargv[2] = 0;
20997 return getopt (2, myargv, "+a") != '?';
20998
20999 ;
21000 return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008 esac
21009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21010 $as_echo "$ac_try_echo") >&5
21011 (eval "$ac_link") 2>&5
21012 ac_status=$?
21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018 esac
21019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21020 $as_echo "$ac_try_echo") >&5
21021 (eval "$ac_try") 2>&5
21022 ac_status=$?
21023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 gl_cv_func_gnu_getopt=yes
21026 else
21027 $as_echo "$as_me: program exited with status $ac_status" >&5
21028 $as_echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031 ( exit $ac_status )
21032 gl_cv_func_gnu_getopt=no
21033 fi
21034 rm -rf conftest.dSYM
21035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21036 fi
21037
21038
21039 fi
21040 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21041 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21042 if test "$gl_cv_func_gnu_getopt" = "no"; then
21043 GETOPT_H=getopt.h
21044 fi
21045 fi
21046
21047
21048
21049 if test -n "$GETOPT_H"; then
21050
21051
21052 GETOPT_H=getopt.h
21053
21054 cat >>confdefs.h <<\_ACEOF
21055 #define __GETOPT_PREFIX rpl_
21056 _ACEOF
21057
21058
21059
21060 :
21061 GETOPTOBJS='getopt.o getopt1.o'
21062
21063 fi
21064
21065
21066
21067
21068 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21069 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21070 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21071 $as_echo_n "(cached) " >&6
21072 else
21073 # Use it with a single arg.
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21081 int
21082 main ()
21083 {
21084 getpgrp (0);
21085 ;
21086 return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21094 esac
21095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21096 $as_echo "$ac_try_echo") >&5
21097 (eval "$ac_compile") 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && {
21104 test -z "$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 } && test -s conftest.$ac_objext; then
21107 ac_cv_func_getpgrp_void=no
21108 else
21109 $as_echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21111
21112 ac_cv_func_getpgrp_void=yes
21113 fi
21114
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116
21117 fi
21118 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21119 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21120 if test $ac_cv_func_getpgrp_void = yes; then
21121
21122 cat >>confdefs.h <<\_ACEOF
21123 #define GETPGRP_VOID 1
21124 _ACEOF
21125
21126 fi
21127
21128
21129
21130 for ac_func in strftime
21131 do
21132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21133 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21134 $as_echo_n "checking for $ac_func... " >&6; }
21135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21136 $as_echo_n "(cached) " >&6
21137 else
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h. */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21146 #define $ac_func innocuous_$ac_func
21147
21148 /* System header to define __stub macros and hopefully few prototypes,
21149 which can conflict with char $ac_func (); below.
21150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21151 <limits.h> exists even on freestanding compilers. */
21152
21153 #ifdef __STDC__
21154 # include <limits.h>
21155 #else
21156 # include <assert.h>
21157 #endif
21158
21159 #undef $ac_func
21160
21161 /* Override any GCC internal prototype to avoid an error.
21162 Use char because int might match the return type of a GCC
21163 builtin and then its argument prototype would still apply. */
21164 #ifdef __cplusplus
21165 extern "C"
21166 #endif
21167 char $ac_func ();
21168 /* The GNU C library defines this for functions which it implements
21169 to always fail with ENOSYS. Some functions are actually named
21170 something starting with __ and the normal name is an alias. */
21171 #if defined __stub_$ac_func || defined __stub___$ac_func
21172 choke me
21173 #endif
21174
21175 int
21176 main ()
21177 {
21178 return $ac_func ();
21179 ;
21180 return 0;
21181 }
21182 _ACEOF
21183 rm -f conftest.$ac_objext conftest$ac_exeext
21184 if { (ac_try="$ac_link"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21188 esac
21189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21190 $as_echo "$ac_try_echo") >&5
21191 (eval "$ac_link") 2>conftest.er1
21192 ac_status=$?
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
21196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } && {
21198 test -z "$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21200 } && test -s conftest$ac_exeext && {
21201 test "$cross_compiling" = yes ||
21202 $as_test_x conftest$ac_exeext
21203 }; then
21204 eval "$as_ac_var=yes"
21205 else
21206 $as_echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 eval "$as_ac_var=no"
21210 fi
21211
21212 rm -rf conftest.dSYM
21213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21214 conftest$ac_exeext conftest.$ac_ext
21215 fi
21216 ac_res=`eval 'as_val=${'$as_ac_var'}
21217 $as_echo "$as_val"'`
21218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21219 $as_echo "$ac_res" >&6; }
21220 if test `eval 'as_val=${'$as_ac_var'}
21221 $as_echo "$as_val"'` = yes; then
21222 cat >>confdefs.h <<_ACEOF
21223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21224 _ACEOF
21225
21226 else
21227 # strftime is in -lintl on SCO UNIX.
21228 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21229 $as_echo_n "checking for strftime in -lintl... " >&6; }
21230 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21231 $as_echo_n "(cached) " >&6
21232 else
21233 ac_check_lib_save_LIBS=$LIBS
21234 LIBS="-lintl $LIBS"
21235 cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h. */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241
21242 /* Override any GCC internal prototype to avoid an error.
21243 Use char because int might match the return type of a GCC
21244 builtin and then its argument prototype would still apply. */
21245 #ifdef __cplusplus
21246 extern "C"
21247 #endif
21248 char strftime ();
21249 int
21250 main ()
21251 {
21252 return strftime ();
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 rm -f conftest.$ac_objext conftest$ac_exeext
21258 if { (ac_try="$ac_link"
21259 case "(($ac_try" in
21260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21261 *) ac_try_echo=$ac_try;;
21262 esac
21263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21264 $as_echo "$ac_try_echo") >&5
21265 (eval "$ac_link") 2>conftest.er1
21266 ac_status=$?
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
21270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } && {
21272 test -z "$ac_c_werror_flag" ||
21273 test ! -s conftest.err
21274 } && test -s conftest$ac_exeext && {
21275 test "$cross_compiling" = yes ||
21276 $as_test_x conftest$ac_exeext
21277 }; then
21278 ac_cv_lib_intl_strftime=yes
21279 else
21280 $as_echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21282
21283 ac_cv_lib_intl_strftime=no
21284 fi
21285
21286 rm -rf conftest.dSYM
21287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21288 conftest$ac_exeext conftest.$ac_ext
21289 LIBS=$ac_check_lib_save_LIBS
21290 fi
21291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21292 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21293 if test $ac_cv_lib_intl_strftime = yes; then
21294 cat >>confdefs.h <<\_ACEOF
21295 #define HAVE_STRFTIME 1
21296 _ACEOF
21297
21298 LIBS="-lintl $LIBS"
21299 fi
21300
21301 fi
21302 done
21303
21304
21305 # UNIX98 PTYs.
21306
21307 for ac_func in grantpt
21308 do
21309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21311 $as_echo_n "checking for $ac_func... " >&6; }
21312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21313 $as_echo_n "(cached) " >&6
21314 else
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21323 #define $ac_func innocuous_$ac_func
21324
21325 /* System header to define __stub macros and hopefully few prototypes,
21326 which can conflict with char $ac_func (); below.
21327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21328 <limits.h> exists even on freestanding compilers. */
21329
21330 #ifdef __STDC__
21331 # include <limits.h>
21332 #else
21333 # include <assert.h>
21334 #endif
21335
21336 #undef $ac_func
21337
21338 /* Override any GCC internal prototype to avoid an error.
21339 Use char because int might match the return type of a GCC
21340 builtin and then its argument prototype would still apply. */
21341 #ifdef __cplusplus
21342 extern "C"
21343 #endif
21344 char $ac_func ();
21345 /* The GNU C library defines this for functions which it implements
21346 to always fail with ENOSYS. Some functions are actually named
21347 something starting with __ and the normal name is an alias. */
21348 #if defined __stub_$ac_func || defined __stub___$ac_func
21349 choke me
21350 #endif
21351
21352 int
21353 main ()
21354 {
21355 return $ac_func ();
21356 ;
21357 return 0;
21358 }
21359 _ACEOF
21360 rm -f conftest.$ac_objext conftest$ac_exeext
21361 if { (ac_try="$ac_link"
21362 case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21365 esac
21366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21367 $as_echo "$ac_try_echo") >&5
21368 (eval "$ac_link") 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest$ac_exeext && {
21378 test "$cross_compiling" = yes ||
21379 $as_test_x conftest$ac_exeext
21380 }; then
21381 eval "$as_ac_var=yes"
21382 else
21383 $as_echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386 eval "$as_ac_var=no"
21387 fi
21388
21389 rm -rf conftest.dSYM
21390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21391 conftest$ac_exeext conftest.$ac_ext
21392 fi
21393 ac_res=`eval 'as_val=${'$as_ac_var'}
21394 $as_echo "$as_val"'`
21395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21396 $as_echo "$ac_res" >&6; }
21397 if test `eval 'as_val=${'$as_ac_var'}
21398 $as_echo "$as_val"'` = yes; then
21399 cat >>confdefs.h <<_ACEOF
21400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21401 _ACEOF
21402
21403 fi
21404 done
21405
21406
21407 # PTY-related GNU extensions.
21408
21409 for ac_func in getpt
21410 do
21411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21413 $as_echo_n "checking for $ac_func... " >&6; }
21414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21415 $as_echo_n "(cached) " >&6
21416 else
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21425 #define $ac_func innocuous_$ac_func
21426
21427 /* System header to define __stub macros and hopefully few prototypes,
21428 which can conflict with char $ac_func (); below.
21429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21430 <limits.h> exists even on freestanding compilers. */
21431
21432 #ifdef __STDC__
21433 # include <limits.h>
21434 #else
21435 # include <assert.h>
21436 #endif
21437
21438 #undef $ac_func
21439
21440 /* Override any GCC internal prototype to avoid an error.
21441 Use char because int might match the return type of a GCC
21442 builtin and then its argument prototype would still apply. */
21443 #ifdef __cplusplus
21444 extern "C"
21445 #endif
21446 char $ac_func ();
21447 /* The GNU C library defines this for functions which it implements
21448 to always fail with ENOSYS. Some functions are actually named
21449 something starting with __ and the normal name is an alias. */
21450 #if defined __stub_$ac_func || defined __stub___$ac_func
21451 choke me
21452 #endif
21453
21454 int
21455 main ()
21456 {
21457 return $ac_func ();
21458 ;
21459 return 0;
21460 }
21461 _ACEOF
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (ac_try="$ac_link"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21467 esac
21468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21469 $as_echo "$ac_try_echo") >&5
21470 (eval "$ac_link") 2>conftest.er1
21471 ac_status=$?
21472 grep -v '^ *+' conftest.er1 >conftest.err
21473 rm -f conftest.er1
21474 cat conftest.err >&5
21475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest$ac_exeext && {
21480 test "$cross_compiling" = yes ||
21481 $as_test_x conftest$ac_exeext
21482 }; then
21483 eval "$as_ac_var=yes"
21484 else
21485 $as_echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488 eval "$as_ac_var=no"
21489 fi
21490
21491 rm -rf conftest.dSYM
21492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21493 conftest$ac_exeext conftest.$ac_ext
21494 fi
21495 ac_res=`eval 'as_val=${'$as_ac_var'}
21496 $as_echo "$as_val"'`
21497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21498 $as_echo "$ac_res" >&6; }
21499 if test `eval 'as_val=${'$as_ac_var'}
21500 $as_echo "$as_val"'` = yes; then
21501 cat >>confdefs.h <<_ACEOF
21502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21503 _ACEOF
21504
21505 fi
21506 done
21507
21508
21509 # Check this now, so that we will NOT find the above functions in ncurses.
21510 # That is because we have not set up to link ncurses in lib-src.
21511 # It's better to believe a function is not available
21512 # than to expect to find it in ncurses.
21513 # Also we need tputs and friends to be able to build at all.
21514 have_tputs_et_al=true
21515 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21516 $as_echo_n "checking for library containing tputs... " >&6; }
21517 if test "${ac_cv_search_tputs+set}" = set; then
21518 $as_echo_n "(cached) " >&6
21519 else
21520 ac_func_search_save_LIBS=$LIBS
21521 cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h. */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21527
21528 /* Override any GCC internal prototype to avoid an error.
21529 Use char because int might match the return type of a GCC
21530 builtin and then its argument prototype would still apply. */
21531 #ifdef __cplusplus
21532 extern "C"
21533 #endif
21534 char tputs ();
21535 int
21536 main ()
21537 {
21538 return tputs ();
21539 ;
21540 return 0;
21541 }
21542 _ACEOF
21543 for ac_lib in '' ncurses terminfo termcap; do
21544 if test -z "$ac_lib"; then
21545 ac_res="none required"
21546 else
21547 ac_res=-l$ac_lib
21548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21549 fi
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (ac_try="$ac_link"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21555 esac
21556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21557 $as_echo "$ac_try_echo") >&5
21558 (eval "$ac_link") 2>conftest.er1
21559 ac_status=$?
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
21563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext && {
21568 test "$cross_compiling" = yes ||
21569 $as_test_x conftest$ac_exeext
21570 }; then
21571 ac_cv_search_tputs=$ac_res
21572 else
21573 $as_echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576
21577 fi
21578
21579 rm -rf conftest.dSYM
21580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21581 conftest$ac_exeext
21582 if test "${ac_cv_search_tputs+set}" = set; then
21583 break
21584 fi
21585 done
21586 if test "${ac_cv_search_tputs+set}" = set; then
21587 :
21588 else
21589 ac_cv_search_tputs=no
21590 fi
21591 rm conftest.$ac_ext
21592 LIBS=$ac_func_search_save_LIBS
21593 fi
21594 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21595 $as_echo "$ac_cv_search_tputs" >&6; }
21596 ac_res=$ac_cv_search_tputs
21597 if test "$ac_res" != no; then
21598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21599
21600 else
21601 have_tputs_et_al=false
21602 fi
21603
21604 if test "$have_tputs_et_al" != true; then
21605 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21606 Maybe some development libraries/packages are missing? Try installing
21607 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21608 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21609 Maybe some development libraries/packages are missing? Try installing
21610 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21611 { (exit 1); exit 1; }; }
21612 fi
21613 # Must define this when any termcap library is found.
21614
21615 cat >>confdefs.h <<\_ACEOF
21616 #define HAVE_LIBNCURSES 1
21617 _ACEOF
21618
21619 ## FIXME This was the cpp logic, but I am not sure it is right.
21620 ## The above test has not necessarily found libncurses.
21621 HAVE_LIBNCURSES=yes
21622
21623 ## Use terminfo instead of termcap?
21624 ## Note only system files NOT using terminfo are:
21625 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21626 ## darwin|gnu without ncurses.
21627 TERMINFO=no
21628 LIBS_TERMCAP=
21629 case "$opsys" in
21630 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21631 ## hpux10-20: Use the system provided termcap(3) library.
21632 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21633 ## is necessary. Otherwise Emacs dumps core when run -nw.
21634 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21635
21636 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21637 ## The ncurses library has been moved out of the System framework in
21638 ## Mac OS X 10.2. So if configure detects it, set the command-line
21639 ## option to use it.
21640 darwin|gnu*)
21641 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21642 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21643 TERMINFO=yes
21644 LIBS_TERMCAP="-lncurses"
21645 fi
21646 ;;
21647
21648 freebsd)
21649 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21650 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21651 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21652 $as_echo_n "(cached) " >&6
21653 else
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <osreldate.h>
21661 int
21662 main ()
21663 {
21664 #if __FreeBSD_version < 400000
21665 fail;
21666 #endif
21667
21668 ;
21669 return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (ac_try="$ac_link"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677 esac
21678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21679 $as_echo "$ac_try_echo") >&5
21680 (eval "$ac_link") 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } && {
21687 test -z "$ac_c_werror_flag" ||
21688 test ! -s conftest.err
21689 } && test -s conftest$ac_exeext && {
21690 test "$cross_compiling" = yes ||
21691 $as_test_x conftest$ac_exeext
21692 }; then
21693 emacs_cv_freebsd_terminfo=yes
21694 else
21695 $as_echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 emacs_cv_freebsd_terminfo=no
21699 fi
21700
21701 rm -rf conftest.dSYM
21702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21703 conftest$ac_exeext conftest.$ac_ext
21704 fi
21705
21706
21707 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21708 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21709
21710 if test $emacs_cv_freebsd_terminfo = yes; then
21711 TERMINFO=yes
21712 LIBS_TERMCAP="-lncurses"
21713 else
21714 LIBS_TERMCAP="-ltermcap"
21715 fi
21716 ;;
21717
21718 netbsd)
21719 if test $ac_cv_search_tputs = -lterminfo; then
21720 TERMINFO=yes
21721 LIBS_TERMCAP="-lterminfo"
21722 else
21723 LIBS_TERMCAP="-ltermcap"
21724 fi
21725 ;;
21726
21727 esac
21728
21729 case "$opsys" in
21730 ## hpux: Make sure we get select from libc rather than from libcurses
21731 ## because libcurses on HPUX 10.10 has a broken version of select.
21732 ## We used to use -lc -lcurses, but this may be cleaner.
21733 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21734
21735 openbsd) LIBS_TERMCAP="-lncurses" ;;
21736
21737 ## Must use system termcap, if we use any termcap. It does special things.
21738 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21739 esac
21740
21741 TERMCAP_OBJ=tparam.o
21742 if test $TERMINFO = yes; then
21743
21744 cat >>confdefs.h <<\_ACEOF
21745 #define TERMINFO 1
21746 _ACEOF
21747
21748
21749 ## Default used to be -ltermcap. Add a case above if need something else.
21750 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21751
21752 TERMCAP_OBJ=terminfo.o
21753 fi
21754
21755
21756
21757
21758 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21759 resolv=no
21760 cat >conftest.$ac_ext <<_ACEOF
21761 /* confdefs.h. */
21762 _ACEOF
21763 cat confdefs.h >>conftest.$ac_ext
21764 cat >>conftest.$ac_ext <<_ACEOF
21765 /* end confdefs.h. */
21766 #include <netinet/in.h>
21767 #include <arpa/nameser.h>
21768 #include <resolv.h>
21769 int
21770 main ()
21771 {
21772 return res_init();
21773 ;
21774 return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21782 esac
21783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_link") 2>conftest.er1
21786 ac_status=$?
21787 grep -v '^ *+' conftest.er1 >conftest.err
21788 rm -f conftest.er1
21789 cat conftest.err >&5
21790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest$ac_exeext && {
21795 test "$cross_compiling" = yes ||
21796 $as_test_x conftest$ac_exeext
21797 }; then
21798 have_res_init=yes
21799 else
21800 $as_echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803 have_res_init=no
21804 fi
21805
21806 rm -rf conftest.dSYM
21807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808 conftest$ac_exeext conftest.$ac_ext
21809 if test "$have_res_init" = no; then
21810 OLIBS="$LIBS"
21811 LIBS="$LIBS -lresolv"
21812 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21813 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21814 cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h. */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 #include <netinet/in.h>
21821 #include <arpa/nameser.h>
21822 #include <resolv.h>
21823 int
21824 main ()
21825 {
21826 return res_init();
21827 ;
21828 return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>conftest.er1
21840 ac_status=$?
21841 grep -v '^ *+' conftest.er1 >conftest.err
21842 rm -f conftest.er1
21843 cat conftest.err >&5
21844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest$ac_exeext && {
21849 test "$cross_compiling" = yes ||
21850 $as_test_x conftest$ac_exeext
21851 }; then
21852 have_res_init=yes
21853 else
21854 $as_echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 have_res_init=no
21858 fi
21859
21860 rm -rf conftest.dSYM
21861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21862 conftest$ac_exeext conftest.$ac_ext
21863 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21864 $as_echo "$have_res_init" >&6; }
21865 if test "$have_res_init" = yes ; then
21866 resolv=yes
21867 fi
21868 LIBS="$OLIBS"
21869 fi
21870
21871 if test "$have_res_init" = yes; then
21872
21873 cat >>confdefs.h <<\_ACEOF
21874 #define HAVE_RES_INIT 1
21875 _ACEOF
21876
21877 fi
21878
21879 # Do we need the Hesiod library to provide the support routines?
21880 LIBHESIOD=
21881 if test "$with_hesiod" != no ; then
21882 # Don't set $LIBS here -- see comments above. FIXME which comments?
21883 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21884 $as_echo_n "checking for res_send... " >&6; }
21885 if test "${ac_cv_func_res_send+set}" = set; then
21886 $as_echo_n "(cached) " >&6
21887 else
21888 cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h. */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21896 #define res_send innocuous_res_send
21897
21898 /* System header to define __stub macros and hopefully few prototypes,
21899 which can conflict with char res_send (); below.
21900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21901 <limits.h> exists even on freestanding compilers. */
21902
21903 #ifdef __STDC__
21904 # include <limits.h>
21905 #else
21906 # include <assert.h>
21907 #endif
21908
21909 #undef res_send
21910
21911 /* Override any GCC internal prototype to avoid an error.
21912 Use char because int might match the return type of a GCC
21913 builtin and then its argument prototype would still apply. */
21914 #ifdef __cplusplus
21915 extern "C"
21916 #endif
21917 char res_send ();
21918 /* The GNU C library defines this for functions which it implements
21919 to always fail with ENOSYS. Some functions are actually named
21920 something starting with __ and the normal name is an alias. */
21921 #if defined __stub_res_send || defined __stub___res_send
21922 choke me
21923 #endif
21924
21925 int
21926 main ()
21927 {
21928 return res_send ();
21929 ;
21930 return 0;
21931 }
21932 _ACEOF
21933 rm -f conftest.$ac_objext conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21938 esac
21939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21940 $as_echo "$ac_try_echo") >&5
21941 (eval "$ac_link") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest$ac_exeext && {
21951 test "$cross_compiling" = yes ||
21952 $as_test_x conftest$ac_exeext
21953 }; then
21954 ac_cv_func_res_send=yes
21955 else
21956 $as_echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 ac_cv_func_res_send=no
21960 fi
21961
21962 rm -rf conftest.dSYM
21963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21964 conftest$ac_exeext conftest.$ac_ext
21965 fi
21966 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21967 $as_echo "$ac_cv_func_res_send" >&6; }
21968 if test $ac_cv_func_res_send = yes; then
21969 :
21970 else
21971 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21972 $as_echo_n "checking for __res_send... " >&6; }
21973 if test "${ac_cv_func___res_send+set}" = set; then
21974 $as_echo_n "(cached) " >&6
21975 else
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h. */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21984 #define __res_send innocuous___res_send
21985
21986 /* System header to define __stub macros and hopefully few prototypes,
21987 which can conflict with char __res_send (); below.
21988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21989 <limits.h> exists even on freestanding compilers. */
21990
21991 #ifdef __STDC__
21992 # include <limits.h>
21993 #else
21994 # include <assert.h>
21995 #endif
21996
21997 #undef __res_send
21998
21999 /* Override any GCC internal prototype to avoid an error.
22000 Use char because int might match the return type of a GCC
22001 builtin and then its argument prototype would still apply. */
22002 #ifdef __cplusplus
22003 extern "C"
22004 #endif
22005 char __res_send ();
22006 /* The GNU C library defines this for functions which it implements
22007 to always fail with ENOSYS. Some functions are actually named
22008 something starting with __ and the normal name is an alias. */
22009 #if defined __stub___res_send || defined __stub_____res_send
22010 choke me
22011 #endif
22012
22013 int
22014 main ()
22015 {
22016 return __res_send ();
22017 ;
22018 return 0;
22019 }
22020 _ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (ac_try="$ac_link"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22026 esac
22027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22028 $as_echo "$ac_try_echo") >&5
22029 (eval "$ac_link") 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } && {
22036 test -z "$ac_c_werror_flag" ||
22037 test ! -s conftest.err
22038 } && test -s conftest$ac_exeext && {
22039 test "$cross_compiling" = yes ||
22040 $as_test_x conftest$ac_exeext
22041 }; then
22042 ac_cv_func___res_send=yes
22043 else
22044 $as_echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.$ac_ext >&5
22046
22047 ac_cv_func___res_send=no
22048 fi
22049
22050 rm -rf conftest.dSYM
22051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22052 conftest$ac_exeext conftest.$ac_ext
22053 fi
22054 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22055 $as_echo "$ac_cv_func___res_send" >&6; }
22056 if test $ac_cv_func___res_send = yes; then
22057 :
22058 else
22059 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22060 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22061 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22062 $as_echo_n "(cached) " >&6
22063 else
22064 ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lresolv $LIBS"
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22072
22073 /* Override any GCC internal prototype to avoid an error.
22074 Use char because int might match the return type of a GCC
22075 builtin and then its argument prototype would still apply. */
22076 #ifdef __cplusplus
22077 extern "C"
22078 #endif
22079 char res_send ();
22080 int
22081 main ()
22082 {
22083 return res_send ();
22084 ;
22085 return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093 esac
22094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22095 $as_echo "$ac_try_echo") >&5
22096 (eval "$ac_link") 2>conftest.er1
22097 ac_status=$?
22098 grep -v '^ *+' conftest.er1 >conftest.err
22099 rm -f conftest.er1
22100 cat conftest.err >&5
22101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); } && {
22103 test -z "$ac_c_werror_flag" ||
22104 test ! -s conftest.err
22105 } && test -s conftest$ac_exeext && {
22106 test "$cross_compiling" = yes ||
22107 $as_test_x conftest$ac_exeext
22108 }; then
22109 ac_cv_lib_resolv_res_send=yes
22110 else
22111 $as_echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22113
22114 ac_cv_lib_resolv_res_send=no
22115 fi
22116
22117 rm -rf conftest.dSYM
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22120 LIBS=$ac_check_lib_save_LIBS
22121 fi
22122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22123 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22124 if test $ac_cv_lib_resolv_res_send = yes; then
22125 resolv=yes
22126 else
22127 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22128 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22129 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22130 $as_echo_n "(cached) " >&6
22131 else
22132 ac_check_lib_save_LIBS=$LIBS
22133 LIBS="-lresolv $LIBS"
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140
22141 /* Override any GCC internal prototype to avoid an error.
22142 Use char because int might match the return type of a GCC
22143 builtin and then its argument prototype would still apply. */
22144 #ifdef __cplusplus
22145 extern "C"
22146 #endif
22147 char __res_send ();
22148 int
22149 main ()
22150 {
22151 return __res_send ();
22152 ;
22153 return 0;
22154 }
22155 _ACEOF
22156 rm -f conftest.$ac_objext conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161 esac
22162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22163 $as_echo "$ac_try_echo") >&5
22164 (eval "$ac_link") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest$ac_exeext && {
22174 test "$cross_compiling" = yes ||
22175 $as_test_x conftest$ac_exeext
22176 }; then
22177 ac_cv_lib_resolv___res_send=yes
22178 else
22179 $as_echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 ac_cv_lib_resolv___res_send=no
22183 fi
22184
22185 rm -rf conftest.dSYM
22186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22187 conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22189 fi
22190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22191 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22192 if test $ac_cv_lib_resolv___res_send = yes; then
22193 resolv=yes
22194 fi
22195
22196 fi
22197
22198 fi
22199
22200 fi
22201
22202 if test "$resolv" = yes ; then
22203 RESOLVLIB=-lresolv
22204 else
22205 RESOLVLIB=
22206 fi
22207 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22208 $as_echo_n "checking for hes_getmailhost... " >&6; }
22209 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22210 $as_echo_n "(cached) " >&6
22211 else
22212 cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h. */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22220 #define hes_getmailhost innocuous_hes_getmailhost
22221
22222 /* System header to define __stub macros and hopefully few prototypes,
22223 which can conflict with char hes_getmailhost (); below.
22224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22225 <limits.h> exists even on freestanding compilers. */
22226
22227 #ifdef __STDC__
22228 # include <limits.h>
22229 #else
22230 # include <assert.h>
22231 #endif
22232
22233 #undef hes_getmailhost
22234
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22238 #ifdef __cplusplus
22239 extern "C"
22240 #endif
22241 char hes_getmailhost ();
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22246 choke me
22247 #endif
22248
22249 int
22250 main ()
22251 {
22252 return hes_getmailhost ();
22253 ;
22254 return 0;
22255 }
22256 _ACEOF
22257 rm -f conftest.$ac_objext conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262 esac
22263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22264 $as_echo "$ac_try_echo") >&5
22265 (eval "$ac_link") 2>conftest.er1
22266 ac_status=$?
22267 grep -v '^ *+' conftest.er1 >conftest.err
22268 rm -f conftest.er1
22269 cat conftest.err >&5
22270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); } && {
22272 test -z "$ac_c_werror_flag" ||
22273 test ! -s conftest.err
22274 } && test -s conftest$ac_exeext && {
22275 test "$cross_compiling" = yes ||
22276 $as_test_x conftest$ac_exeext
22277 }; then
22278 ac_cv_func_hes_getmailhost=yes
22279 else
22280 $as_echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283 ac_cv_func_hes_getmailhost=no
22284 fi
22285
22286 rm -rf conftest.dSYM
22287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22288 conftest$ac_exeext conftest.$ac_ext
22289 fi
22290 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22291 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22292 if test $ac_cv_func_hes_getmailhost = yes; then
22293 :
22294 else
22295 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22296 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22297 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22298 $as_echo_n "(cached) " >&6
22299 else
22300 ac_check_lib_save_LIBS=$LIBS
22301 LIBS="-lhesiod $RESOLVLIB $LIBS"
22302 cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h. */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22308
22309 /* Override any GCC internal prototype to avoid an error.
22310 Use char because int might match the return type of a GCC
22311 builtin and then its argument prototype would still apply. */
22312 #ifdef __cplusplus
22313 extern "C"
22314 #endif
22315 char hes_getmailhost ();
22316 int
22317 main ()
22318 {
22319 return hes_getmailhost ();
22320 ;
22321 return 0;
22322 }
22323 _ACEOF
22324 rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22329 esac
22330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22331 $as_echo "$ac_try_echo") >&5
22332 (eval "$ac_link") 2>conftest.er1
22333 ac_status=$?
22334 grep -v '^ *+' conftest.er1 >conftest.err
22335 rm -f conftest.er1
22336 cat conftest.err >&5
22337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest$ac_exeext && {
22342 test "$cross_compiling" = yes ||
22343 $as_test_x conftest$ac_exeext
22344 }; then
22345 ac_cv_lib_hesiod_hes_getmailhost=yes
22346 else
22347 $as_echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350 ac_cv_lib_hesiod_hes_getmailhost=no
22351 fi
22352
22353 rm -rf conftest.dSYM
22354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22355 conftest$ac_exeext conftest.$ac_ext
22356 LIBS=$ac_check_lib_save_LIBS
22357 fi
22358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22359 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22360 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22361 hesiod=yes
22362 else
22363 :
22364 fi
22365
22366 fi
22367
22368
22369 if test x"$hesiod" = xyes; then
22370
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_LIBHESIOD 1
22373 _ACEOF
22374
22375 LIBHESIOD=-lhesiod
22376 fi
22377 fi
22378
22379
22380 # Do we need libresolv (due to res_init or Hesiod)?
22381 if test "$resolv" = yes ; then
22382
22383 cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_LIBRESOLV 1
22385 _ACEOF
22386
22387 LIBRESOLV=-lresolv
22388 else
22389 LIBRESOLV=
22390 fi
22391
22392
22393 # These tell us which Kerberos-related libraries to use.
22394 COM_ERRLIB=
22395 CRYPTOLIB=
22396 KRB5LIB=
22397 DESLIB=
22398 KRB4LIB=
22399
22400 if test "${with_kerberos}" != no; then
22401 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22402 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22403 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22404 $as_echo_n "(cached) " >&6
22405 else
22406 ac_check_lib_save_LIBS=$LIBS
22407 LIBS="-lcom_err $LIBS"
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414
22415 /* Override any GCC internal prototype to avoid an error.
22416 Use char because int might match the return type of a GCC
22417 builtin and then its argument prototype would still apply. */
22418 #ifdef __cplusplus
22419 extern "C"
22420 #endif
22421 char com_err ();
22422 int
22423 main ()
22424 {
22425 return com_err ();
22426 ;
22427 return 0;
22428 }
22429 _ACEOF
22430 rm -f conftest.$ac_objext conftest$ac_exeext
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22437 $as_echo "$ac_try_echo") >&5
22438 (eval "$ac_link") 2>conftest.er1
22439 ac_status=$?
22440 grep -v '^ *+' conftest.er1 >conftest.err
22441 rm -f conftest.er1
22442 cat conftest.err >&5
22443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } && {
22445 test -z "$ac_c_werror_flag" ||
22446 test ! -s conftest.err
22447 } && test -s conftest$ac_exeext && {
22448 test "$cross_compiling" = yes ||
22449 $as_test_x conftest$ac_exeext
22450 }; then
22451 ac_cv_lib_com_err_com_err=yes
22452 else
22453 $as_echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ac_cv_lib_com_err_com_err=no
22457 fi
22458
22459 rm -rf conftest.dSYM
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461 conftest$ac_exeext conftest.$ac_ext
22462 LIBS=$ac_check_lib_save_LIBS
22463 fi
22464 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22465 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22466 if test $ac_cv_lib_com_err_com_err = yes; then
22467 have_com_err=yes
22468 else
22469 have_com_err=no
22470 fi
22471
22472 if test $have_com_err = yes; then
22473 COM_ERRLIB=-lcom_err
22474 LIBS="$COM_ERRLIB $LIBS"
22475
22476 cat >>confdefs.h <<\_ACEOF
22477 #define HAVE_LIBCOM_ERR 1
22478 _ACEOF
22479
22480 fi
22481 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22482 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22483 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22484 $as_echo_n "(cached) " >&6
22485 else
22486 ac_check_lib_save_LIBS=$LIBS
22487 LIBS="-lcrypto $LIBS"
22488 cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h. */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494
22495 /* Override any GCC internal prototype to avoid an error.
22496 Use char because int might match the return type of a GCC
22497 builtin and then its argument prototype would still apply. */
22498 #ifdef __cplusplus
22499 extern "C"
22500 #endif
22501 char mit_des_cbc_encrypt ();
22502 int
22503 main ()
22504 {
22505 return mit_des_cbc_encrypt ();
22506 ;
22507 return 0;
22508 }
22509 _ACEOF
22510 rm -f conftest.$ac_objext conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22515 esac
22516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22517 $as_echo "$ac_try_echo") >&5
22518 (eval "$ac_link") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest$ac_exeext && {
22528 test "$cross_compiling" = yes ||
22529 $as_test_x conftest$ac_exeext
22530 }; then
22531 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22532 else
22533 $as_echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22537 fi
22538
22539 rm -rf conftest.dSYM
22540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541 conftest$ac_exeext conftest.$ac_ext
22542 LIBS=$ac_check_lib_save_LIBS
22543 fi
22544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22545 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22546 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22547 have_crypto=yes
22548 else
22549 have_crypto=no
22550 fi
22551
22552 if test $have_crypto = yes; then
22553 CRYPTOLIB=-lcrypto
22554 LIBS="$CRYPTOLIB $LIBS"
22555
22556 cat >>confdefs.h <<\_ACEOF
22557 #define HAVE_LIBCRYPTO 1
22558 _ACEOF
22559
22560 fi
22561 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22562 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22563 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22564 $as_echo_n "(cached) " >&6
22565 else
22566 ac_check_lib_save_LIBS=$LIBS
22567 LIBS="-lk5crypto $LIBS"
22568 cat >conftest.$ac_ext <<_ACEOF
22569 /* confdefs.h. */
22570 _ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574
22575 /* Override any GCC internal prototype to avoid an error.
22576 Use char because int might match the return type of a GCC
22577 builtin and then its argument prototype would still apply. */
22578 #ifdef __cplusplus
22579 extern "C"
22580 #endif
22581 char mit_des_cbc_encrypt ();
22582 int
22583 main ()
22584 {
22585 return mit_des_cbc_encrypt ();
22586 ;
22587 return 0;
22588 }
22589 _ACEOF
22590 rm -f conftest.$ac_objext conftest$ac_exeext
22591 if { (ac_try="$ac_link"
22592 case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595 esac
22596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597 $as_echo "$ac_try_echo") >&5
22598 (eval "$ac_link") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest$ac_exeext && {
22608 test "$cross_compiling" = yes ||
22609 $as_test_x conftest$ac_exeext
22610 }; then
22611 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22612 else
22613 $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22617 fi
22618
22619 rm -rf conftest.dSYM
22620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22621 conftest$ac_exeext conftest.$ac_ext
22622 LIBS=$ac_check_lib_save_LIBS
22623 fi
22624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22625 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22626 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22627 have_k5crypto=yes
22628 else
22629 have_k5crypto=no
22630 fi
22631
22632 if test $have_k5crypto = yes; then
22633 CRYPTOLIB=-lk5crypto
22634 LIBS="$CRYPTOLIB $LIBS"
22635
22636 cat >>confdefs.h <<\_ACEOF
22637 #define HAVE_LIBK5CRYPTO 1
22638 _ACEOF
22639
22640 fi
22641 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22642 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22643 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22644 $as_echo_n "(cached) " >&6
22645 else
22646 ac_check_lib_save_LIBS=$LIBS
22647 LIBS="-lkrb5 $LIBS"
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h. */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654
22655 /* Override any GCC internal prototype to avoid an error.
22656 Use char because int might match the return type of a GCC
22657 builtin and then its argument prototype would still apply. */
22658 #ifdef __cplusplus
22659 extern "C"
22660 #endif
22661 char krb5_init_context ();
22662 int
22663 main ()
22664 {
22665 return krb5_init_context ();
22666 ;
22667 return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22675 esac
22676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22677 $as_echo "$ac_try_echo") >&5
22678 (eval "$ac_link") 2>conftest.er1
22679 ac_status=$?
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
22683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest$ac_exeext && {
22688 test "$cross_compiling" = yes ||
22689 $as_test_x conftest$ac_exeext
22690 }; then
22691 ac_cv_lib_krb5_krb5_init_context=yes
22692 else
22693 $as_echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22695
22696 ac_cv_lib_krb5_krb5_init_context=no
22697 fi
22698
22699 rm -rf conftest.dSYM
22700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22701 conftest$ac_exeext conftest.$ac_ext
22702 LIBS=$ac_check_lib_save_LIBS
22703 fi
22704 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22705 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22706 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22707 have_krb5=yes
22708 else
22709 have_krb5=no
22710 fi
22711
22712 if test $have_krb5=yes; then
22713 KRB5LIB=-lkrb5
22714 LIBS="$KRB5LIB $LIBS"
22715
22716 cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_LIBKRB5 1
22718 _ACEOF
22719
22720 fi
22721 if test "${with_kerberos5}" = no; then
22722 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22723 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22724 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22725 $as_echo_n "(cached) " >&6
22726 else
22727 ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-ldes425 $LIBS"
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735
22736 /* Override any GCC internal prototype to avoid an error.
22737 Use char because int might match the return type of a GCC
22738 builtin and then its argument prototype would still apply. */
22739 #ifdef __cplusplus
22740 extern "C"
22741 #endif
22742 char des_cbc_encrypt ();
22743 int
22744 main ()
22745 {
22746 return des_cbc_encrypt ();
22747 ;
22748 return 0;
22749 }
22750 _ACEOF
22751 rm -f conftest.$ac_objext conftest$ac_exeext
22752 if { (ac_try="$ac_link"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22756 esac
22757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22758 $as_echo "$ac_try_echo") >&5
22759 (eval "$ac_link") 2>conftest.er1
22760 ac_status=$?
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
22764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest$ac_exeext && {
22769 test "$cross_compiling" = yes ||
22770 $as_test_x conftest$ac_exeext
22771 }; then
22772 ac_cv_lib_des425_des_cbc_encrypt=yes
22773 else
22774 $as_echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22776
22777 ac_cv_lib_des425_des_cbc_encrypt=no
22778 fi
22779
22780 rm -rf conftest.dSYM
22781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22782 conftest$ac_exeext conftest.$ac_ext
22783 LIBS=$ac_check_lib_save_LIBS
22784 fi
22785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22786 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22787 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22788 have_des425=yes
22789 else
22790 have_des425=no
22791 fi
22792
22793 if test $have_des425 = yes; then
22794 DESLIB=-ldes425
22795 LIBS="$DESLIB $LIBS"
22796
22797 cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_LIBDES425 1
22799 _ACEOF
22800
22801 else
22802 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22803 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22804 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22805 $as_echo_n "(cached) " >&6
22806 else
22807 ac_check_lib_save_LIBS=$LIBS
22808 LIBS="-ldes $LIBS"
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h. */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815
22816 /* Override any GCC internal prototype to avoid an error.
22817 Use char because int might match the return type of a GCC
22818 builtin and then its argument prototype would still apply. */
22819 #ifdef __cplusplus
22820 extern "C"
22821 #endif
22822 char des_cbc_encrypt ();
22823 int
22824 main ()
22825 {
22826 return des_cbc_encrypt ();
22827 ;
22828 return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (ac_try="$ac_link"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22836 esac
22837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22838 $as_echo "$ac_try_echo") >&5
22839 (eval "$ac_link") 2>conftest.er1
22840 ac_status=$?
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
22844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest$ac_exeext && {
22849 test "$cross_compiling" = yes ||
22850 $as_test_x conftest$ac_exeext
22851 }; then
22852 ac_cv_lib_des_des_cbc_encrypt=yes
22853 else
22854 $as_echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857 ac_cv_lib_des_des_cbc_encrypt=no
22858 fi
22859
22860 rm -rf conftest.dSYM
22861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22862 conftest$ac_exeext conftest.$ac_ext
22863 LIBS=$ac_check_lib_save_LIBS
22864 fi
22865 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22866 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22867 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22868 have_des=yes
22869 else
22870 have_des=no
22871 fi
22872
22873 if test $have_des = yes; then
22874 DESLIB=-ldes
22875 LIBS="$DESLIB $LIBS"
22876
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_LIBDES 1
22879 _ACEOF
22880
22881 fi
22882 fi
22883 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22884 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22885 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22886 $as_echo_n "(cached) " >&6
22887 else
22888 ac_check_lib_save_LIBS=$LIBS
22889 LIBS="-lkrb4 $LIBS"
22890 cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h. */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896
22897 /* Override any GCC internal prototype to avoid an error.
22898 Use char because int might match the return type of a GCC
22899 builtin and then its argument prototype would still apply. */
22900 #ifdef __cplusplus
22901 extern "C"
22902 #endif
22903 char krb_get_cred ();
22904 int
22905 main ()
22906 {
22907 return krb_get_cred ();
22908 ;
22909 return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (ac_try="$ac_link"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22919 $as_echo "$ac_try_echo") >&5
22920 (eval "$ac_link") 2>conftest.er1
22921 ac_status=$?
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
22925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest$ac_exeext && {
22930 test "$cross_compiling" = yes ||
22931 $as_test_x conftest$ac_exeext
22932 }; then
22933 ac_cv_lib_krb4_krb_get_cred=yes
22934 else
22935 $as_echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 ac_cv_lib_krb4_krb_get_cred=no
22939 fi
22940
22941 rm -rf conftest.dSYM
22942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22943 conftest$ac_exeext conftest.$ac_ext
22944 LIBS=$ac_check_lib_save_LIBS
22945 fi
22946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22947 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22948 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22949 have_krb4=yes
22950 else
22951 have_krb4=no
22952 fi
22953
22954 if test $have_krb4 = yes; then
22955 KRB4LIB=-lkrb4
22956 LIBS="$KRB4LIB $LIBS"
22957
22958 cat >>confdefs.h <<\_ACEOF
22959 #define HAVE_LIBKRB4 1
22960 _ACEOF
22961
22962 else
22963 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22964 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22965 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22966 $as_echo_n "(cached) " >&6
22967 else
22968 ac_check_lib_save_LIBS=$LIBS
22969 LIBS="-lkrb $LIBS"
22970 cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h. */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976
22977 /* Override any GCC internal prototype to avoid an error.
22978 Use char because int might match the return type of a GCC
22979 builtin and then its argument prototype would still apply. */
22980 #ifdef __cplusplus
22981 extern "C"
22982 #endif
22983 char krb_get_cred ();
22984 int
22985 main ()
22986 {
22987 return krb_get_cred ();
22988 ;
22989 return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (ac_try="$ac_link"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22999 $as_echo "$ac_try_echo") >&5
23000 (eval "$ac_link") 2>conftest.er1
23001 ac_status=$?
23002 grep -v '^ *+' conftest.er1 >conftest.err
23003 rm -f conftest.er1
23004 cat conftest.err >&5
23005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } && {
23007 test -z "$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 } && test -s conftest$ac_exeext && {
23010 test "$cross_compiling" = yes ||
23011 $as_test_x conftest$ac_exeext
23012 }; then
23013 ac_cv_lib_krb_krb_get_cred=yes
23014 else
23015 $as_echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23017
23018 ac_cv_lib_krb_krb_get_cred=no
23019 fi
23020
23021 rm -rf conftest.dSYM
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23024 LIBS=$ac_check_lib_save_LIBS
23025 fi
23026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
23027 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23028 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23029 have_krb=yes
23030 else
23031 have_krb=no
23032 fi
23033
23034 if test $have_krb = yes; then
23035 KRB4LIB=-lkrb
23036 LIBS="$KRB4LIB $LIBS"
23037
23038 cat >>confdefs.h <<\_ACEOF
23039 #define HAVE_LIBKRB 1
23040 _ACEOF
23041
23042 fi
23043 fi
23044 fi
23045
23046 if test "${with_kerberos5}" != no; then
23047
23048 for ac_header in krb5.h
23049 do
23050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23053 $as_echo_n "checking for $ac_header... " >&6; }
23054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23055 $as_echo_n "(cached) " >&6
23056 fi
23057 ac_res=`eval 'as_val=${'$as_ac_Header'}
23058 $as_echo "$as_val"'`
23059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23060 $as_echo "$ac_res" >&6; }
23061 else
23062 # Is the header compilable?
23063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23064 $as_echo_n "checking $ac_header usability... " >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 $ac_includes_default
23072 #include <$ac_header>
23073 _ACEOF
23074 rm -f conftest.$ac_objext
23075 if { (ac_try="$ac_compile"
23076 case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23079 esac
23080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23081 $as_echo "$ac_try_echo") >&5
23082 (eval "$ac_compile") 2>conftest.er1
23083 ac_status=$?
23084 grep -v '^ *+' conftest.er1 >conftest.err
23085 rm -f conftest.er1
23086 cat conftest.err >&5
23087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); } && {
23089 test -z "$ac_c_werror_flag" ||
23090 test ! -s conftest.err
23091 } && test -s conftest.$ac_objext; then
23092 ac_header_compiler=yes
23093 else
23094 $as_echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23096
23097 ac_header_compiler=no
23098 fi
23099
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23102 $as_echo "$ac_header_compiler" >&6; }
23103
23104 # Is the header present?
23105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23106 $as_echo_n "checking $ac_header presence... " >&6; }
23107 cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h. */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <$ac_header>
23114 _ACEOF
23115 if { (ac_try="$ac_cpp conftest.$ac_ext"
23116 case "(($ac_try" in
23117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23118 *) ac_try_echo=$ac_try;;
23119 esac
23120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23121 $as_echo "$ac_try_echo") >&5
23122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23123 ac_status=$?
23124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
23127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } >/dev/null && {
23129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 }; then
23132 ac_header_preproc=yes
23133 else
23134 $as_echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137 ac_header_preproc=no
23138 fi
23139
23140 rm -f conftest.err conftest.$ac_ext
23141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23142 $as_echo "$ac_header_preproc" >&6; }
23143
23144 # So? What about this header?
23145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23146 yes:no: )
23147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23151 ac_header_preproc=yes
23152 ;;
23153 no:yes:* )
23154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23166
23167 ;;
23168 esac
23169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23170 $as_echo_n "checking for $ac_header... " >&6; }
23171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23172 $as_echo_n "(cached) " >&6
23173 else
23174 eval "$as_ac_Header=\$ac_header_preproc"
23175 fi
23176 ac_res=`eval 'as_val=${'$as_ac_Header'}
23177 $as_echo "$as_val"'`
23178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23179 $as_echo "$ac_res" >&6; }
23180
23181 fi
23182 if test `eval 'as_val=${'$as_ac_Header'}
23183 $as_echo "$as_val"'` = yes; then
23184 cat >>confdefs.h <<_ACEOF
23185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23186 _ACEOF
23187 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23188 $as_echo_n "checking for krb5_error.text... " >&6; }
23189 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23190 $as_echo_n "(cached) " >&6
23191 else
23192 cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h. */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23198 #include <krb5.h>
23199
23200 int
23201 main ()
23202 {
23203 static krb5_error ac_aggr;
23204 if (ac_aggr.text)
23205 return 0;
23206 ;
23207 return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23219 ac_status=$?
23220 grep -v '^ *+' conftest.er1 >conftest.err
23221 rm -f conftest.er1
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_cv_member_krb5_error_text=yes
23229 else
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23232
23233 cat >conftest.$ac_ext <<_ACEOF
23234 /* confdefs.h. */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h. */
23239 #include <krb5.h>
23240
23241 int
23242 main ()
23243 {
23244 static krb5_error ac_aggr;
23245 if (sizeof ac_aggr.text)
23246 return 0;
23247 ;
23248 return 0;
23249 }
23250 _ACEOF
23251 rm -f conftest.$ac_objext
23252 if { (ac_try="$ac_compile"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23256 esac
23257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23258 $as_echo "$ac_try_echo") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23260 ac_status=$?
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
23264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23269 ac_cv_member_krb5_error_text=yes
23270 else
23271 $as_echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23273
23274 ac_cv_member_krb5_error_text=no
23275 fi
23276
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23278 fi
23279
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23281 fi
23282 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23283 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23284 if test $ac_cv_member_krb5_error_text = yes; then
23285
23286 cat >>confdefs.h <<_ACEOF
23287 #define HAVE_KRB5_ERROR_TEXT 1
23288 _ACEOF
23289
23290
23291 fi
23292 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23293 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23294 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23295 $as_echo_n "(cached) " >&6
23296 else
23297 cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h. */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 #include <krb5.h>
23304
23305 int
23306 main ()
23307 {
23308 static krb5_error ac_aggr;
23309 if (ac_aggr.e_text)
23310 return 0;
23311 ;
23312 return 0;
23313 }
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320 esac
23321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23322 $as_echo "$ac_try_echo") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23324 ac_status=$?
23325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
23328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_cv_member_krb5_error_e_text=yes
23334 else
23335 $as_echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23337
23338 cat >conftest.$ac_ext <<_ACEOF
23339 /* confdefs.h. */
23340 _ACEOF
23341 cat confdefs.h >>conftest.$ac_ext
23342 cat >>conftest.$ac_ext <<_ACEOF
23343 /* end confdefs.h. */
23344 #include <krb5.h>
23345
23346 int
23347 main ()
23348 {
23349 static krb5_error ac_aggr;
23350 if (sizeof ac_aggr.e_text)
23351 return 0;
23352 ;
23353 return 0;
23354 }
23355 _ACEOF
23356 rm -f conftest.$ac_objext
23357 if { (ac_try="$ac_compile"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23361 esac
23362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23363 $as_echo "$ac_try_echo") >&5
23364 (eval "$ac_compile") 2>conftest.er1
23365 ac_status=$?
23366 grep -v '^ *+' conftest.er1 >conftest.err
23367 rm -f conftest.er1
23368 cat conftest.err >&5
23369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest.$ac_objext; then
23374 ac_cv_member_krb5_error_e_text=yes
23375 else
23376 $as_echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379 ac_cv_member_krb5_error_e_text=no
23380 fi
23381
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 fi
23384
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386 fi
23387 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23388 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23389 if test $ac_cv_member_krb5_error_e_text = yes; then
23390
23391 cat >>confdefs.h <<_ACEOF
23392 #define HAVE_KRB5_ERROR_E_TEXT 1
23393 _ACEOF
23394
23395
23396 fi
23397
23398 fi
23399
23400 done
23401
23402 else
23403
23404 for ac_header in des.h
23405 do
23406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23409 $as_echo_n "checking for $ac_header... " >&6; }
23410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23411 $as_echo_n "(cached) " >&6
23412 fi
23413 ac_res=`eval 'as_val=${'$as_ac_Header'}
23414 $as_echo "$as_val"'`
23415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23416 $as_echo "$ac_res" >&6; }
23417 else
23418 # Is the header compilable?
23419 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23420 $as_echo_n "checking $ac_header usability... " >&6; }
23421 cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h. */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 $ac_includes_default
23428 #include <$ac_header>
23429 _ACEOF
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23437 $as_echo "$ac_try_echo") >&5
23438 (eval "$ac_compile") 2>conftest.er1
23439 ac_status=$?
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
23443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
23448 ac_header_compiler=yes
23449 else
23450 $as_echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 ac_header_compiler=no
23454 fi
23455
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23458 $as_echo "$ac_header_compiler" >&6; }
23459
23460 # Is the header present?
23461 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23462 $as_echo_n "checking $ac_header presence... " >&6; }
23463 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h. */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 #include <$ac_header>
23470 _ACEOF
23471 if { (ac_try="$ac_cpp conftest.$ac_ext"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23475 esac
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23479 ac_status=$?
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
23483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } >/dev/null && {
23485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23486 test ! -s conftest.err
23487 }; then
23488 ac_header_preproc=yes
23489 else
23490 $as_echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 ac_header_preproc=no
23494 fi
23495
23496 rm -f conftest.err conftest.$ac_ext
23497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23498 $as_echo "$ac_header_preproc" >&6; }
23499
23500 # So? What about this header?
23501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23502 yes:no: )
23503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23504 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23507 ac_header_preproc=yes
23508 ;;
23509 no:yes:* )
23510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23511 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23513 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23515 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23517 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23521 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23522
23523 ;;
23524 esac
23525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23526 $as_echo_n "checking for $ac_header... " >&6; }
23527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23528 $as_echo_n "(cached) " >&6
23529 else
23530 eval "$as_ac_Header=\$ac_header_preproc"
23531 fi
23532 ac_res=`eval 'as_val=${'$as_ac_Header'}
23533 $as_echo "$as_val"'`
23534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23535 $as_echo "$ac_res" >&6; }
23536
23537 fi
23538 if test `eval 'as_val=${'$as_ac_Header'}
23539 $as_echo "$as_val"'` = yes; then
23540 cat >>confdefs.h <<_ACEOF
23541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23542 _ACEOF
23543
23544 else
23545
23546 for ac_header in kerberosIV/des.h
23547 do
23548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23550 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23551 $as_echo_n "checking for $ac_header... " >&6; }
23552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23553 $as_echo_n "(cached) " >&6
23554 fi
23555 ac_res=`eval 'as_val=${'$as_ac_Header'}
23556 $as_echo "$as_val"'`
23557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23558 $as_echo "$ac_res" >&6; }
23559 else
23560 # Is the header compilable?
23561 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23562 $as_echo_n "checking $ac_header usability... " >&6; }
23563 cat >conftest.$ac_ext <<_ACEOF
23564 /* confdefs.h. */
23565 _ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h. */
23569 $ac_includes_default
23570 #include <$ac_header>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23579 $as_echo "$ac_try_echo") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23581 ac_status=$?
23582 grep -v '^ *+' conftest.er1 >conftest.err
23583 rm -f conftest.er1
23584 cat conftest.err >&5
23585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.$ac_objext; then
23590 ac_header_compiler=yes
23591 else
23592 $as_echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595 ac_header_compiler=no
23596 fi
23597
23598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23600 $as_echo "$ac_header_compiler" >&6; }
23601
23602 # Is the header present?
23603 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23604 $as_echo_n "checking $ac_header presence... " >&6; }
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h. */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 #include <$ac_header>
23612 _ACEOF
23613 if { (ac_try="$ac_cpp conftest.$ac_ext"
23614 case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23617 esac
23618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23619 $as_echo "$ac_try_echo") >&5
23620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23621 ac_status=$?
23622 grep -v '^ *+' conftest.er1 >conftest.err
23623 rm -f conftest.er1
23624 cat conftest.err >&5
23625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } >/dev/null && {
23627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 }; then
23630 ac_header_preproc=yes
23631 else
23632 $as_echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23634
23635 ac_header_preproc=no
23636 fi
23637
23638 rm -f conftest.err conftest.$ac_ext
23639 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23640 $as_echo "$ac_header_preproc" >&6; }
23641
23642 # So? What about this header?
23643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23644 yes:no: )
23645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23646 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23649 ac_header_preproc=yes
23650 ;;
23651 no:yes:* )
23652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23653 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23655 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23657 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23659 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23663 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23664
23665 ;;
23666 esac
23667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23668 $as_echo_n "checking for $ac_header... " >&6; }
23669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23670 $as_echo_n "(cached) " >&6
23671 else
23672 eval "$as_ac_Header=\$ac_header_preproc"
23673 fi
23674 ac_res=`eval 'as_val=${'$as_ac_Header'}
23675 $as_echo "$as_val"'`
23676 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23677 $as_echo "$ac_res" >&6; }
23678
23679 fi
23680 if test `eval 'as_val=${'$as_ac_Header'}
23681 $as_echo "$as_val"'` = yes; then
23682 cat >>confdefs.h <<_ACEOF
23683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23684 _ACEOF
23685
23686 else
23687
23688 for ac_header in kerberos/des.h
23689 do
23690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23693 $as_echo_n "checking for $ac_header... " >&6; }
23694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23695 $as_echo_n "(cached) " >&6
23696 fi
23697 ac_res=`eval 'as_val=${'$as_ac_Header'}
23698 $as_echo "$as_val"'`
23699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23700 $as_echo "$ac_res" >&6; }
23701 else
23702 # Is the header compilable?
23703 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23704 $as_echo_n "checking $ac_header usability... " >&6; }
23705 cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h. */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23711 $ac_includes_default
23712 #include <$ac_header>
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23719 esac
23720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23721 $as_echo "$ac_try_echo") >&5
23722 (eval "$ac_compile") 2>conftest.er1
23723 ac_status=$?
23724 grep -v '^ *+' conftest.er1 >conftest.err
23725 rm -f conftest.er1
23726 cat conftest.err >&5
23727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); } && {
23729 test -z "$ac_c_werror_flag" ||
23730 test ! -s conftest.err
23731 } && test -s conftest.$ac_objext; then
23732 ac_header_compiler=yes
23733 else
23734 $as_echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737 ac_header_compiler=no
23738 fi
23739
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23742 $as_echo "$ac_header_compiler" >&6; }
23743
23744 # Is the header present?
23745 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23746 $as_echo_n "checking $ac_header presence... " >&6; }
23747 cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h. */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h. */
23753 #include <$ac_header>
23754 _ACEOF
23755 if { (ac_try="$ac_cpp conftest.$ac_ext"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23759 esac
23760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23761 $as_echo "$ac_try_echo") >&5
23762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23763 ac_status=$?
23764 grep -v '^ *+' conftest.er1 >conftest.err
23765 rm -f conftest.er1
23766 cat conftest.err >&5
23767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); } >/dev/null && {
23769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23770 test ! -s conftest.err
23771 }; then
23772 ac_header_preproc=yes
23773 else
23774 $as_echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ac_header_preproc=no
23778 fi
23779
23780 rm -f conftest.err conftest.$ac_ext
23781 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23782 $as_echo "$ac_header_preproc" >&6; }
23783
23784 # So? What about this header?
23785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23786 yes:no: )
23787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23788 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23791 ac_header_preproc=yes
23792 ;;
23793 no:yes:* )
23794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23795 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23797 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23799 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23801 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23803 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23805 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23806
23807 ;;
23808 esac
23809 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23810 $as_echo_n "checking for $ac_header... " >&6; }
23811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23812 $as_echo_n "(cached) " >&6
23813 else
23814 eval "$as_ac_Header=\$ac_header_preproc"
23815 fi
23816 ac_res=`eval 'as_val=${'$as_ac_Header'}
23817 $as_echo "$as_val"'`
23818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23819 $as_echo "$ac_res" >&6; }
23820
23821 fi
23822 if test `eval 'as_val=${'$as_ac_Header'}
23823 $as_echo "$as_val"'` = yes; then
23824 cat >>confdefs.h <<_ACEOF
23825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23826 _ACEOF
23827
23828 fi
23829
23830 done
23831
23832 fi
23833
23834 done
23835
23836 fi
23837
23838 done
23839
23840
23841 for ac_header in krb.h
23842 do
23843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23846 $as_echo_n "checking for $ac_header... " >&6; }
23847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23848 $as_echo_n "(cached) " >&6
23849 fi
23850 ac_res=`eval 'as_val=${'$as_ac_Header'}
23851 $as_echo "$as_val"'`
23852 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23853 $as_echo "$ac_res" >&6; }
23854 else
23855 # Is the header compilable?
23856 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23857 $as_echo_n "checking $ac_header usability... " >&6; }
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h. */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 $ac_includes_default
23865 #include <$ac_header>
23866 _ACEOF
23867 rm -f conftest.$ac_objext
23868 if { (ac_try="$ac_compile"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23872 esac
23873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23874 $as_echo "$ac_try_echo") >&5
23875 (eval "$ac_compile") 2>conftest.er1
23876 ac_status=$?
23877 grep -v '^ *+' conftest.er1 >conftest.err
23878 rm -f conftest.er1
23879 cat conftest.err >&5
23880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); } && {
23882 test -z "$ac_c_werror_flag" ||
23883 test ! -s conftest.err
23884 } && test -s conftest.$ac_objext; then
23885 ac_header_compiler=yes
23886 else
23887 $as_echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890 ac_header_compiler=no
23891 fi
23892
23893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23895 $as_echo "$ac_header_compiler" >&6; }
23896
23897 # Is the header present?
23898 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23899 $as_echo_n "checking $ac_header presence... " >&6; }
23900 cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h. */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23906 #include <$ac_header>
23907 _ACEOF
23908 if { (ac_try="$ac_cpp conftest.$ac_ext"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912 esac
23913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23914 $as_echo "$ac_try_echo") >&5
23915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23916 ac_status=$?
23917 grep -v '^ *+' conftest.er1 >conftest.err
23918 rm -f conftest.er1
23919 cat conftest.err >&5
23920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } >/dev/null && {
23922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 }; then
23925 ac_header_preproc=yes
23926 else
23927 $as_echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930 ac_header_preproc=no
23931 fi
23932
23933 rm -f conftest.err conftest.$ac_ext
23934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23935 $as_echo "$ac_header_preproc" >&6; }
23936
23937 # So? What about this header?
23938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23939 yes:no: )
23940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23941 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23944 ac_header_preproc=yes
23945 ;;
23946 no:yes:* )
23947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23948 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23950 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23952 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23954 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23958 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23959
23960 ;;
23961 esac
23962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23963 $as_echo_n "checking for $ac_header... " >&6; }
23964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23965 $as_echo_n "(cached) " >&6
23966 else
23967 eval "$as_ac_Header=\$ac_header_preproc"
23968 fi
23969 ac_res=`eval 'as_val=${'$as_ac_Header'}
23970 $as_echo "$as_val"'`
23971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23972 $as_echo "$ac_res" >&6; }
23973
23974 fi
23975 if test `eval 'as_val=${'$as_ac_Header'}
23976 $as_echo "$as_val"'` = yes; then
23977 cat >>confdefs.h <<_ACEOF
23978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23979 _ACEOF
23980
23981 else
23982
23983 for ac_header in kerberosIV/krb.h
23984 do
23985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23988 $as_echo_n "checking for $ac_header... " >&6; }
23989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23990 $as_echo_n "(cached) " >&6
23991 fi
23992 ac_res=`eval 'as_val=${'$as_ac_Header'}
23993 $as_echo "$as_val"'`
23994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23995 $as_echo "$ac_res" >&6; }
23996 else
23997 # Is the header compilable?
23998 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23999 $as_echo_n "checking $ac_header usability... " >&6; }
24000 cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h. */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24006 $ac_includes_default
24007 #include <$ac_header>
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013 *) ac_try_echo=$ac_try;;
24014 esac
24015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24016 $as_echo "$ac_try_echo") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24018 ac_status=$?
24019 grep -v '^ *+' conftest.er1 >conftest.err
24020 rm -f conftest.er1
24021 cat conftest.err >&5
24022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 ac_header_compiler=yes
24028 else
24029 $as_echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24031
24032 ac_header_compiler=no
24033 fi
24034
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24037 $as_echo "$ac_header_compiler" >&6; }
24038
24039 # Is the header present?
24040 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24041 $as_echo_n "checking $ac_header presence... " >&6; }
24042 cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h. */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h. */
24048 #include <$ac_header>
24049 _ACEOF
24050 if { (ac_try="$ac_cpp conftest.$ac_ext"
24051 case "(($ac_try" in
24052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053 *) ac_try_echo=$ac_try;;
24054 esac
24055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24056 $as_echo "$ac_try_echo") >&5
24057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24058 ac_status=$?
24059 grep -v '^ *+' conftest.er1 >conftest.err
24060 rm -f conftest.er1
24061 cat conftest.err >&5
24062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } >/dev/null && {
24064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24065 test ! -s conftest.err
24066 }; then
24067 ac_header_preproc=yes
24068 else
24069 $as_echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24071
24072 ac_header_preproc=no
24073 fi
24074
24075 rm -f conftest.err conftest.$ac_ext
24076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24077 $as_echo "$ac_header_preproc" >&6; }
24078
24079 # So? What about this header?
24080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24081 yes:no: )
24082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24083 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24086 ac_header_preproc=yes
24087 ;;
24088 no:yes:* )
24089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24090 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24092 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24094 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24096 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24100 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24101
24102 ;;
24103 esac
24104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24105 $as_echo_n "checking for $ac_header... " >&6; }
24106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24107 $as_echo_n "(cached) " >&6
24108 else
24109 eval "$as_ac_Header=\$ac_header_preproc"
24110 fi
24111 ac_res=`eval 'as_val=${'$as_ac_Header'}
24112 $as_echo "$as_val"'`
24113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24114 $as_echo "$ac_res" >&6; }
24115
24116 fi
24117 if test `eval 'as_val=${'$as_ac_Header'}
24118 $as_echo "$as_val"'` = yes; then
24119 cat >>confdefs.h <<_ACEOF
24120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24121 _ACEOF
24122
24123 else
24124
24125 for ac_header in kerberos/krb.h
24126 do
24127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24130 $as_echo_n "checking for $ac_header... " >&6; }
24131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24132 $as_echo_n "(cached) " >&6
24133 fi
24134 ac_res=`eval 'as_val=${'$as_ac_Header'}
24135 $as_echo "$as_val"'`
24136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24137 $as_echo "$ac_res" >&6; }
24138 else
24139 # Is the header compilable?
24140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24141 $as_echo_n "checking $ac_header usability... " >&6; }
24142 cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h. */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24148 $ac_includes_default
24149 #include <$ac_header>
24150 _ACEOF
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24156 esac
24157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24158 $as_echo "$ac_try_echo") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24160 ac_status=$?
24161 grep -v '^ *+' conftest.er1 >conftest.err
24162 rm -f conftest.er1
24163 cat conftest.err >&5
24164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24169 ac_header_compiler=yes
24170 else
24171 $as_echo "$as_me: failed program was:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24173
24174 ac_header_compiler=no
24175 fi
24176
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24179 $as_echo "$ac_header_compiler" >&6; }
24180
24181 # Is the header present?
24182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24183 $as_echo_n "checking $ac_header presence... " >&6; }
24184 cat >conftest.$ac_ext <<_ACEOF
24185 /* confdefs.h. */
24186 _ACEOF
24187 cat confdefs.h >>conftest.$ac_ext
24188 cat >>conftest.$ac_ext <<_ACEOF
24189 /* end confdefs.h. */
24190 #include <$ac_header>
24191 _ACEOF
24192 if { (ac_try="$ac_cpp conftest.$ac_ext"
24193 case "(($ac_try" in
24194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195 *) ac_try_echo=$ac_try;;
24196 esac
24197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24198 $as_echo "$ac_try_echo") >&5
24199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24200 ac_status=$?
24201 grep -v '^ *+' conftest.er1 >conftest.err
24202 rm -f conftest.er1
24203 cat conftest.err >&5
24204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); } >/dev/null && {
24206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24207 test ! -s conftest.err
24208 }; then
24209 ac_header_preproc=yes
24210 else
24211 $as_echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214 ac_header_preproc=no
24215 fi
24216
24217 rm -f conftest.err conftest.$ac_ext
24218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24219 $as_echo "$ac_header_preproc" >&6; }
24220
24221 # So? What about this header?
24222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24223 yes:no: )
24224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24228 ac_header_preproc=yes
24229 ;;
24230 no:yes:* )
24231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24234 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24238 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24243
24244 ;;
24245 esac
24246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24247 $as_echo_n "checking for $ac_header... " >&6; }
24248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24249 $as_echo_n "(cached) " >&6
24250 else
24251 eval "$as_ac_Header=\$ac_header_preproc"
24252 fi
24253 ac_res=`eval 'as_val=${'$as_ac_Header'}
24254 $as_echo "$as_val"'`
24255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24256 $as_echo "$ac_res" >&6; }
24257
24258 fi
24259 if test `eval 'as_val=${'$as_ac_Header'}
24260 $as_echo "$as_val"'` = yes; then
24261 cat >>confdefs.h <<_ACEOF
24262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24263 _ACEOF
24264
24265 fi
24266
24267 done
24268
24269 fi
24270
24271 done
24272
24273 fi
24274
24275 done
24276
24277 fi
24278
24279 for ac_header in com_err.h
24280 do
24281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24284 $as_echo_n "checking for $ac_header... " >&6; }
24285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24286 $as_echo_n "(cached) " >&6
24287 fi
24288 ac_res=`eval 'as_val=${'$as_ac_Header'}
24289 $as_echo "$as_val"'`
24290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24291 $as_echo "$ac_res" >&6; }
24292 else
24293 # Is the header compilable?
24294 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24295 $as_echo_n "checking $ac_header usability... " >&6; }
24296 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h. */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24302 $ac_includes_default
24303 #include <$ac_header>
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (ac_try="$ac_compile"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310 esac
24311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24312 $as_echo "$ac_try_echo") >&5
24313 (eval "$ac_compile") 2>conftest.er1
24314 ac_status=$?
24315 grep -v '^ *+' conftest.er1 >conftest.err
24316 rm -f conftest.er1
24317 cat conftest.err >&5
24318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } && {
24320 test -z "$ac_c_werror_flag" ||
24321 test ! -s conftest.err
24322 } && test -s conftest.$ac_objext; then
24323 ac_header_compiler=yes
24324 else
24325 $as_echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24327
24328 ac_header_compiler=no
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24333 $as_echo "$ac_header_compiler" >&6; }
24334
24335 # Is the header present?
24336 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24337 $as_echo_n "checking $ac_header presence... " >&6; }
24338 cat >conftest.$ac_ext <<_ACEOF
24339 /* confdefs.h. */
24340 _ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h. */
24344 #include <$ac_header>
24345 _ACEOF
24346 if { (ac_try="$ac_cpp conftest.$ac_ext"
24347 case "(($ac_try" in
24348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349 *) ac_try_echo=$ac_try;;
24350 esac
24351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24352 $as_echo "$ac_try_echo") >&5
24353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } >/dev/null && {
24360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 }; then
24363 ac_header_preproc=yes
24364 else
24365 $as_echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.$ac_ext >&5
24367
24368 ac_header_preproc=no
24369 fi
24370
24371 rm -f conftest.err conftest.$ac_ext
24372 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24373 $as_echo "$ac_header_preproc" >&6; }
24374
24375 # So? What about this header?
24376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24377 yes:no: )
24378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24379 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24382 ac_header_preproc=yes
24383 ;;
24384 no:yes:* )
24385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24386 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24388 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24390 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24392 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24396 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24397
24398 ;;
24399 esac
24400 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24401 $as_echo_n "checking for $ac_header... " >&6; }
24402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24403 $as_echo_n "(cached) " >&6
24404 else
24405 eval "$as_ac_Header=\$ac_header_preproc"
24406 fi
24407 ac_res=`eval 'as_val=${'$as_ac_Header'}
24408 $as_echo "$as_val"'`
24409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24410 $as_echo "$ac_res" >&6; }
24411
24412 fi
24413 if test `eval 'as_val=${'$as_ac_Header'}
24414 $as_echo "$as_val"'` = yes; then
24415 cat >>confdefs.h <<_ACEOF
24416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24417 _ACEOF
24418
24419 fi
24420
24421 done
24422
24423 fi
24424
24425
24426
24427
24428
24429
24430
24431 # Solaris requires -lintl if you want strerror (which calls dgettext)
24432 # to return localized messages.
24433
24434 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24435 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24436 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24437 $as_echo_n "(cached) " >&6
24438 else
24439 ac_check_lib_save_LIBS=$LIBS
24440 LIBS="-lintl $LIBS"
24441 cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h. */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447
24448 /* Override any GCC internal prototype to avoid an error.
24449 Use char because int might match the return type of a GCC
24450 builtin and then its argument prototype would still apply. */
24451 #ifdef __cplusplus
24452 extern "C"
24453 #endif
24454 char dgettext ();
24455 int
24456 main ()
24457 {
24458 return dgettext ();
24459 ;
24460 return 0;
24461 }
24462 _ACEOF
24463 rm -f conftest.$ac_objext conftest$ac_exeext
24464 if { (ac_try="$ac_link"
24465 case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24468 esac
24469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24470 $as_echo "$ac_try_echo") >&5
24471 (eval "$ac_link") 2>conftest.er1
24472 ac_status=$?
24473 grep -v '^ *+' conftest.er1 >conftest.err
24474 rm -f conftest.er1
24475 cat conftest.err >&5
24476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); } && {
24478 test -z "$ac_c_werror_flag" ||
24479 test ! -s conftest.err
24480 } && test -s conftest$ac_exeext && {
24481 test "$cross_compiling" = yes ||
24482 $as_test_x conftest$ac_exeext
24483 }; then
24484 ac_cv_lib_intl_dgettext=yes
24485 else
24486 $as_echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_lib_intl_dgettext=no
24490 fi
24491
24492 rm -rf conftest.dSYM
24493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24494 conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24496 fi
24497 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24498 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24499 if test $ac_cv_lib_intl_dgettext = yes; then
24500 cat >>confdefs.h <<_ACEOF
24501 #define HAVE_LIBINTL 1
24502 _ACEOF
24503
24504 LIBS="-lintl $LIBS"
24505
24506 fi
24507
24508
24509 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24510 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24511 if test "${emacs_cv_localtime_cache+set}" = set; then
24512 $as_echo_n "(cached) " >&6
24513 else
24514 if test x$ac_cv_func_tzset = xyes; then
24515 if test "$cross_compiling" = yes; then
24516 # If we have tzset, assume the worst when cross-compiling.
24517 emacs_cv_localtime_cache=yes
24518 else
24519 cat >conftest.$ac_ext <<_ACEOF
24520 /* confdefs.h. */
24521 _ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h. */
24525 #include <time.h>
24526 extern char **environ;
24527 unset_TZ ()
24528 {
24529 char **from, **to;
24530 for (to = from = environ; (*to = *from); from++)
24531 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24532 to++;
24533 }
24534 char TZ_GMT0[] = "TZ=GMT0";
24535 char TZ_PST8[] = "TZ=PST8";
24536 main()
24537 {
24538 time_t now = time ((time_t *) 0);
24539 int hour_GMT0, hour_unset;
24540 if (putenv (TZ_GMT0) != 0)
24541 exit (1);
24542 hour_GMT0 = localtime (&now)->tm_hour;
24543 unset_TZ ();
24544 hour_unset = localtime (&now)->tm_hour;
24545 if (putenv (TZ_PST8) != 0)
24546 exit (1);
24547 if (localtime (&now)->tm_hour == hour_GMT0)
24548 exit (1);
24549 unset_TZ ();
24550 if (localtime (&now)->tm_hour != hour_unset)
24551 exit (1);
24552 exit (0);
24553 }
24554 _ACEOF
24555 rm -f conftest$ac_exeext
24556 if { (ac_try="$ac_link"
24557 case "(($ac_try" in
24558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559 *) ac_try_echo=$ac_try;;
24560 esac
24561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24562 $as_echo "$ac_try_echo") >&5
24563 (eval "$ac_link") 2>&5
24564 ac_status=$?
24565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24567 { (case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570 esac
24571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24572 $as_echo "$ac_try_echo") >&5
24573 (eval "$ac_try") 2>&5
24574 ac_status=$?
24575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; }; then
24577 emacs_cv_localtime_cache=no
24578 else
24579 $as_echo "$as_me: program exited with status $ac_status" >&5
24580 $as_echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583 ( exit $ac_status )
24584 emacs_cv_localtime_cache=yes
24585 fi
24586 rm -rf conftest.dSYM
24587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24588 fi
24589
24590
24591 else
24592 # If we lack tzset, report that localtime does not cache TZ,
24593 # since we can't invalidate the cache if we don't have tzset.
24594 emacs_cv_localtime_cache=no
24595 fi
24596 fi
24597 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24598 $as_echo "$emacs_cv_localtime_cache" >&6; }
24599 if test $emacs_cv_localtime_cache = yes; then
24600
24601 cat >>confdefs.h <<\_ACEOF
24602 #define LOCALTIME_CACHE 1
24603 _ACEOF
24604
24605 fi
24606
24607 if test "x$HAVE_TIMEVAL" = xyes; then
24608
24609 for ac_func in gettimeofday
24610 do
24611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24612 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24613 $as_echo_n "checking for $ac_func... " >&6; }
24614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24615 $as_echo_n "(cached) " >&6
24616 else
24617 cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h. */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24625 #define $ac_func innocuous_$ac_func
24626
24627 /* System header to define __stub macros and hopefully few prototypes,
24628 which can conflict with char $ac_func (); below.
24629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24630 <limits.h> exists even on freestanding compilers. */
24631
24632 #ifdef __STDC__
24633 # include <limits.h>
24634 #else
24635 # include <assert.h>
24636 #endif
24637
24638 #undef $ac_func
24639
24640 /* Override any GCC internal prototype to avoid an error.
24641 Use char because int might match the return type of a GCC
24642 builtin and then its argument prototype would still apply. */
24643 #ifdef __cplusplus
24644 extern "C"
24645 #endif
24646 char $ac_func ();
24647 /* The GNU C library defines this for functions which it implements
24648 to always fail with ENOSYS. Some functions are actually named
24649 something starting with __ and the normal name is an alias. */
24650 #if defined __stub_$ac_func || defined __stub___$ac_func
24651 choke me
24652 #endif
24653
24654 int
24655 main ()
24656 {
24657 return $ac_func ();
24658 ;
24659 return 0;
24660 }
24661 _ACEOF
24662 rm -f conftest.$ac_objext conftest$ac_exeext
24663 if { (ac_try="$ac_link"
24664 case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24667 esac
24668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24669 $as_echo "$ac_try_echo") >&5
24670 (eval "$ac_link") 2>conftest.er1
24671 ac_status=$?
24672 grep -v '^ *+' conftest.er1 >conftest.err
24673 rm -f conftest.er1
24674 cat conftest.err >&5
24675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest$ac_exeext && {
24680 test "$cross_compiling" = yes ||
24681 $as_test_x conftest$ac_exeext
24682 }; then
24683 eval "$as_ac_var=yes"
24684 else
24685 $as_echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 eval "$as_ac_var=no"
24689 fi
24690
24691 rm -rf conftest.dSYM
24692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24693 conftest$ac_exeext conftest.$ac_ext
24694 fi
24695 ac_res=`eval 'as_val=${'$as_ac_var'}
24696 $as_echo "$as_val"'`
24697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24698 $as_echo "$ac_res" >&6; }
24699 if test `eval 'as_val=${'$as_ac_var'}
24700 $as_echo "$as_val"'` = yes; then
24701 cat >>confdefs.h <<_ACEOF
24702 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24703 _ACEOF
24704
24705 fi
24706 done
24707
24708 if test $ac_cv_func_gettimeofday = yes; then
24709 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24710 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24711 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24712 $as_echo_n "(cached) " >&6
24713 else
24714 cat >conftest.$ac_ext <<_ACEOF
24715 /* confdefs.h. */
24716 _ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h. */
24720
24721 #ifdef TIME_WITH_SYS_TIME
24722 #include <sys/time.h>
24723 #include <time.h>
24724 #else
24725 #ifdef HAVE_SYS_TIME_H
24726 #include <sys/time.h>
24727 #else
24728 #include <time.h>
24729 #endif
24730 #endif
24731 int
24732 main ()
24733 {
24734 struct timeval time;
24735 gettimeofday (&time, 0);
24736 ;
24737 return 0;
24738 }
24739 _ACEOF
24740 rm -f conftest.$ac_objext
24741 if { (ac_try="$ac_compile"
24742 case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24745 esac
24746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24747 $as_echo "$ac_try_echo") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24749 ac_status=$?
24750 grep -v '^ *+' conftest.er1 >conftest.err
24751 rm -f conftest.er1
24752 cat conftest.err >&5
24753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.$ac_objext; then
24758 emacs_cv_gettimeofday_two_arguments=yes
24759 else
24760 $as_echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24762
24763 emacs_cv_gettimeofday_two_arguments=no
24764 fi
24765
24766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767 fi
24768 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24769 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24770 if test $emacs_cv_gettimeofday_two_arguments = no; then
24771
24772 cat >>confdefs.h <<\_ACEOF
24773 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24774 _ACEOF
24775
24776 fi
24777 fi
24778 fi
24779
24780 ok_so_far=yes
24781 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24782 $as_echo_n "checking for socket... " >&6; }
24783 if test "${ac_cv_func_socket+set}" = set; then
24784 $as_echo_n "(cached) " >&6
24785 else
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h. */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24794 #define socket innocuous_socket
24795
24796 /* System header to define __stub macros and hopefully few prototypes,
24797 which can conflict with char socket (); below.
24798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24799 <limits.h> exists even on freestanding compilers. */
24800
24801 #ifdef __STDC__
24802 # include <limits.h>
24803 #else
24804 # include <assert.h>
24805 #endif
24806
24807 #undef socket
24808
24809 /* Override any GCC internal prototype to avoid an error.
24810 Use char because int might match the return type of a GCC
24811 builtin and then its argument prototype would still apply. */
24812 #ifdef __cplusplus
24813 extern "C"
24814 #endif
24815 char socket ();
24816 /* The GNU C library defines this for functions which it implements
24817 to always fail with ENOSYS. Some functions are actually named
24818 something starting with __ and the normal name is an alias. */
24819 #if defined __stub_socket || defined __stub___socket
24820 choke me
24821 #endif
24822
24823 int
24824 main ()
24825 {
24826 return socket ();
24827 ;
24828 return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext conftest$ac_exeext
24832 if { (ac_try="$ac_link"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24836 esac
24837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24838 $as_echo "$ac_try_echo") >&5
24839 (eval "$ac_link") 2>conftest.er1
24840 ac_status=$?
24841 grep -v '^ *+' conftest.er1 >conftest.err
24842 rm -f conftest.er1
24843 cat conftest.err >&5
24844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); } && {
24846 test -z "$ac_c_werror_flag" ||
24847 test ! -s conftest.err
24848 } && test -s conftest$ac_exeext && {
24849 test "$cross_compiling" = yes ||
24850 $as_test_x conftest$ac_exeext
24851 }; then
24852 ac_cv_func_socket=yes
24853 else
24854 $as_echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24856
24857 ac_cv_func_socket=no
24858 fi
24859
24860 rm -rf conftest.dSYM
24861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24862 conftest$ac_exeext conftest.$ac_ext
24863 fi
24864 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24865 $as_echo "$ac_cv_func_socket" >&6; }
24866 if test $ac_cv_func_socket = yes; then
24867 :
24868 else
24869 ok_so_far=no
24870 fi
24871
24872 if test $ok_so_far = yes; then
24873 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24874 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24875 $as_echo_n "checking for netinet/in.h... " >&6; }
24876 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24877 $as_echo_n "(cached) " >&6
24878 fi
24879 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24880 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24881 else
24882 # Is the header compilable?
24883 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24884 $as_echo_n "checking netinet/in.h usability... " >&6; }
24885 cat >conftest.$ac_ext <<_ACEOF
24886 /* confdefs.h. */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24892 #include <netinet/in.h>
24893 _ACEOF
24894 rm -f conftest.$ac_objext
24895 if { (ac_try="$ac_compile"
24896 case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24899 esac
24900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24901 $as_echo "$ac_try_echo") >&5
24902 (eval "$ac_compile") 2>conftest.er1
24903 ac_status=$?
24904 grep -v '^ *+' conftest.er1 >conftest.err
24905 rm -f conftest.er1
24906 cat conftest.err >&5
24907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } && {
24909 test -z "$ac_c_werror_flag" ||
24910 test ! -s conftest.err
24911 } && test -s conftest.$ac_objext; then
24912 ac_header_compiler=yes
24913 else
24914 $as_echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24916
24917 ac_header_compiler=no
24918 fi
24919
24920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24921 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24922 $as_echo "$ac_header_compiler" >&6; }
24923
24924 # Is the header present?
24925 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24926 $as_echo_n "checking netinet/in.h presence... " >&6; }
24927 cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h. */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 #include <netinet/in.h>
24934 _ACEOF
24935 if { (ac_try="$ac_cpp conftest.$ac_ext"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24939 esac
24940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24941 $as_echo "$ac_try_echo") >&5
24942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24943 ac_status=$?
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
24947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } >/dev/null && {
24949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 }; then
24952 ac_header_preproc=yes
24953 else
24954 $as_echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957 ac_header_preproc=no
24958 fi
24959
24960 rm -f conftest.err conftest.$ac_ext
24961 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24962 $as_echo "$ac_header_preproc" >&6; }
24963
24964 # So? What about this header?
24965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24966 yes:no: )
24967 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24968 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24969 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24970 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24971 ac_header_preproc=yes
24972 ;;
24973 no:yes:* )
24974 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24975 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24976 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24977 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24978 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24979 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24980 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24981 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24982 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24983 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24984 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24985 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24986
24987 ;;
24988 esac
24989 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24990 $as_echo_n "checking for netinet/in.h... " >&6; }
24991 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24992 $as_echo_n "(cached) " >&6
24993 else
24994 ac_cv_header_netinet_in_h=$ac_header_preproc
24995 fi
24996 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24997 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24998
24999 fi
25000 if test $ac_cv_header_netinet_in_h = yes; then
25001 :
25002 else
25003 ok_so_far=no
25004 fi
25005
25006
25007 fi
25008 if test $ok_so_far = yes; then
25009 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25010 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25011 $as_echo_n "checking for arpa/inet.h... " >&6; }
25012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25013 $as_echo_n "(cached) " >&6
25014 fi
25015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25016 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25017 else
25018 # Is the header compilable?
25019 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
25020 $as_echo_n "checking arpa/inet.h usability... " >&6; }
25021 cat >conftest.$ac_ext <<_ACEOF
25022 /* confdefs.h. */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25027 $ac_includes_default
25028 #include <arpa/inet.h>
25029 _ACEOF
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25035 esac
25036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25037 $as_echo "$ac_try_echo") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25039 ac_status=$?
25040 grep -v '^ *+' conftest.er1 >conftest.err
25041 rm -f conftest.er1
25042 cat conftest.err >&5
25043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest.$ac_objext; then
25048 ac_header_compiler=yes
25049 else
25050 $as_echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053 ac_header_compiler=no
25054 fi
25055
25056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25058 $as_echo "$ac_header_compiler" >&6; }
25059
25060 # Is the header present?
25061 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25062 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25063 cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h. */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 #include <arpa/inet.h>
25070 _ACEOF
25071 if { (ac_try="$ac_cpp conftest.$ac_ext"
25072 case "(($ac_try" in
25073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25074 *) ac_try_echo=$ac_try;;
25075 esac
25076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25077 $as_echo "$ac_try_echo") >&5
25078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25079 ac_status=$?
25080 grep -v '^ *+' conftest.er1 >conftest.err
25081 rm -f conftest.er1
25082 cat conftest.err >&5
25083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); } >/dev/null && {
25085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25086 test ! -s conftest.err
25087 }; then
25088 ac_header_preproc=yes
25089 else
25090 $as_echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25092
25093 ac_header_preproc=no
25094 fi
25095
25096 rm -f conftest.err conftest.$ac_ext
25097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25098 $as_echo "$ac_header_preproc" >&6; }
25099
25100 # So? What about this header?
25101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25102 yes:no: )
25103 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25104 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25105 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25106 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25107 ac_header_preproc=yes
25108 ;;
25109 no:yes:* )
25110 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25111 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25112 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25113 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25115 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25116 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25117 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25118 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25119 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25120 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25121 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25122
25123 ;;
25124 esac
25125 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25126 $as_echo_n "checking for arpa/inet.h... " >&6; }
25127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25128 $as_echo_n "(cached) " >&6
25129 else
25130 ac_cv_header_arpa_inet_h=$ac_header_preproc
25131 fi
25132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25133 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25134
25135 fi
25136 if test $ac_cv_header_arpa_inet_h = yes; then
25137 :
25138 else
25139 ok_so_far=no
25140 fi
25141
25142
25143 fi
25144 if test $ok_so_far = yes; then
25145
25146 cat >>confdefs.h <<\_ACEOF
25147 #define HAVE_INET_SOCKETS 1
25148 _ACEOF
25149
25150 fi
25151
25152
25153 for ac_header in sys/ioctl.h
25154 do
25155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25158 $as_echo_n "checking for $ac_header... " >&6; }
25159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25160 $as_echo_n "(cached) " >&6
25161 fi
25162 ac_res=`eval 'as_val=${'$as_ac_Header'}
25163 $as_echo "$as_val"'`
25164 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25165 $as_echo "$ac_res" >&6; }
25166 else
25167 # Is the header compilable?
25168 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25169 $as_echo_n "checking $ac_header usability... " >&6; }
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h. */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 $ac_includes_default
25177 #include <$ac_header>
25178 _ACEOF
25179 rm -f conftest.$ac_objext
25180 if { (ac_try="$ac_compile"
25181 case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25184 esac
25185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25186 $as_echo "$ac_try_echo") >&5
25187 (eval "$ac_compile") 2>conftest.er1
25188 ac_status=$?
25189 grep -v '^ *+' conftest.er1 >conftest.err
25190 rm -f conftest.er1
25191 cat conftest.err >&5
25192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } && {
25194 test -z "$ac_c_werror_flag" ||
25195 test ! -s conftest.err
25196 } && test -s conftest.$ac_objext; then
25197 ac_header_compiler=yes
25198 else
25199 $as_echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 ac_header_compiler=no
25203 fi
25204
25205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25206 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25207 $as_echo "$ac_header_compiler" >&6; }
25208
25209 # Is the header present?
25210 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25211 $as_echo_n "checking $ac_header presence... " >&6; }
25212 cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h. */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h. */
25218 #include <$ac_header>
25219 _ACEOF
25220 if { (ac_try="$ac_cpp conftest.$ac_ext"
25221 case "(($ac_try" in
25222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223 *) ac_try_echo=$ac_try;;
25224 esac
25225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25226 $as_echo "$ac_try_echo") >&5
25227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25228 ac_status=$?
25229 grep -v '^ *+' conftest.er1 >conftest.err
25230 rm -f conftest.er1
25231 cat conftest.err >&5
25232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } >/dev/null && {
25234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25235 test ! -s conftest.err
25236 }; then
25237 ac_header_preproc=yes
25238 else
25239 $as_echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242 ac_header_preproc=no
25243 fi
25244
25245 rm -f conftest.err conftest.$ac_ext
25246 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25247 $as_echo "$ac_header_preproc" >&6; }
25248
25249 # So? What about this header?
25250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25251 yes:no: )
25252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25253 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25255 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25256 ac_header_preproc=yes
25257 ;;
25258 no:yes:* )
25259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25260 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25262 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25264 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25266 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25270 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25271
25272 ;;
25273 esac
25274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25275 $as_echo_n "checking for $ac_header... " >&6; }
25276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25277 $as_echo_n "(cached) " >&6
25278 else
25279 eval "$as_ac_Header=\$ac_header_preproc"
25280 fi
25281 ac_res=`eval 'as_val=${'$as_ac_Header'}
25282 $as_echo "$as_val"'`
25283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25284 $as_echo "$ac_res" >&6; }
25285
25286 fi
25287 if test `eval 'as_val=${'$as_ac_Header'}
25288 $as_echo "$as_val"'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25291 _ACEOF
25292
25293 fi
25294
25295 done
25296
25297
25298 if test -f /usr/lpp/X11/bin/smt.exp; then
25299
25300 cat >>confdefs.h <<\_ACEOF
25301 #define HAVE_AIX_SMT_EXP 1
25302 _ACEOF
25303
25304 fi
25305
25306 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25307 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25308 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25309 { $as_echo "$as_me:$LINENO: result: yes" >&5
25310 $as_echo "yes" >&6; }
25311
25312 cat >>confdefs.h <<\_ACEOF
25313 #define HAVE_DEV_PTMX 1
25314 _ACEOF
25315
25316 else
25317 { $as_echo "$as_me:$LINENO: result: no" >&5
25318 $as_echo "no" >&6; }
25319 fi
25320
25321 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25322 $as_echo_n "checking for pid_t... " >&6; }
25323 if test "${ac_cv_type_pid_t+set}" = set; then
25324 $as_echo_n "(cached) " >&6
25325 else
25326 ac_cv_type_pid_t=no
25327 cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h. */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 $ac_includes_default
25334 int
25335 main ()
25336 {
25337 if (sizeof (pid_t))
25338 return 0;
25339 ;
25340 return 0;
25341 }
25342 _ACEOF
25343 rm -f conftest.$ac_objext
25344 if { (ac_try="$ac_compile"
25345 case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25348 esac
25349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25350 $as_echo "$ac_try_echo") >&5
25351 (eval "$ac_compile") 2>conftest.er1
25352 ac_status=$?
25353 grep -v '^ *+' conftest.er1 >conftest.err
25354 rm -f conftest.er1
25355 cat conftest.err >&5
25356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } && {
25358 test -z "$ac_c_werror_flag" ||
25359 test ! -s conftest.err
25360 } && test -s conftest.$ac_objext; then
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h. */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25367 $ac_includes_default
25368 int
25369 main ()
25370 {
25371 if (sizeof ((pid_t)))
25372 return 0;
25373 ;
25374 return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25382 esac
25383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25384 $as_echo "$ac_try_echo") >&5
25385 (eval "$ac_compile") 2>conftest.er1
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
25395 :
25396 else
25397 $as_echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400 ac_cv_type_pid_t=yes
25401 fi
25402
25403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25404 else
25405 $as_echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25407
25408
25409 fi
25410
25411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25412 fi
25413 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25414 $as_echo "$ac_cv_type_pid_t" >&6; }
25415 if test $ac_cv_type_pid_t = yes; then
25416 :
25417 else
25418
25419 cat >>confdefs.h <<_ACEOF
25420 #define pid_t int
25421 _ACEOF
25422
25423 fi
25424
25425
25426 for ac_header in vfork.h
25427 do
25428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25431 $as_echo_n "checking for $ac_header... " >&6; }
25432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25433 $as_echo_n "(cached) " >&6
25434 fi
25435 ac_res=`eval 'as_val=${'$as_ac_Header'}
25436 $as_echo "$as_val"'`
25437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25438 $as_echo "$ac_res" >&6; }
25439 else
25440 # Is the header compilable?
25441 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25442 $as_echo_n "checking $ac_header usability... " >&6; }
25443 cat >conftest.$ac_ext <<_ACEOF
25444 /* confdefs.h. */
25445 _ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25449 $ac_includes_default
25450 #include <$ac_header>
25451 _ACEOF
25452 rm -f conftest.$ac_objext
25453 if { (ac_try="$ac_compile"
25454 case "(($ac_try" in
25455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456 *) ac_try_echo=$ac_try;;
25457 esac
25458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25459 $as_echo "$ac_try_echo") >&5
25460 (eval "$ac_compile") 2>conftest.er1
25461 ac_status=$?
25462 grep -v '^ *+' conftest.er1 >conftest.err
25463 rm -f conftest.er1
25464 cat conftest.err >&5
25465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } && {
25467 test -z "$ac_c_werror_flag" ||
25468 test ! -s conftest.err
25469 } && test -s conftest.$ac_objext; then
25470 ac_header_compiler=yes
25471 else
25472 $as_echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25474
25475 ac_header_compiler=no
25476 fi
25477
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25480 $as_echo "$ac_header_compiler" >&6; }
25481
25482 # Is the header present?
25483 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25484 $as_echo_n "checking $ac_header presence... " >&6; }
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h. */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h. */
25491 #include <$ac_header>
25492 _ACEOF
25493 if { (ac_try="$ac_cpp conftest.$ac_ext"
25494 case "(($ac_try" in
25495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25497 esac
25498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25499 $as_echo "$ac_try_echo") >&5
25500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25501 ac_status=$?
25502 grep -v '^ *+' conftest.er1 >conftest.err
25503 rm -f conftest.er1
25504 cat conftest.err >&5
25505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); } >/dev/null && {
25507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25508 test ! -s conftest.err
25509 }; then
25510 ac_header_preproc=yes
25511 else
25512 $as_echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515 ac_header_preproc=no
25516 fi
25517
25518 rm -f conftest.err conftest.$ac_ext
25519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25520 $as_echo "$ac_header_preproc" >&6; }
25521
25522 # So? What about this header?
25523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25524 yes:no: )
25525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25526 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25529 ac_header_preproc=yes
25530 ;;
25531 no:yes:* )
25532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25533 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25535 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25537 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25539 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25541 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25543 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25544
25545 ;;
25546 esac
25547 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25548 $as_echo_n "checking for $ac_header... " >&6; }
25549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25550 $as_echo_n "(cached) " >&6
25551 else
25552 eval "$as_ac_Header=\$ac_header_preproc"
25553 fi
25554 ac_res=`eval 'as_val=${'$as_ac_Header'}
25555 $as_echo "$as_val"'`
25556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25557 $as_echo "$ac_res" >&6; }
25558
25559 fi
25560 if test `eval 'as_val=${'$as_ac_Header'}
25561 $as_echo "$as_val"'` = yes; then
25562 cat >>confdefs.h <<_ACEOF
25563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25564 _ACEOF
25565
25566 fi
25567
25568 done
25569
25570
25571
25572 for ac_func in fork vfork
25573 do
25574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25575 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25576 $as_echo_n "checking for $ac_func... " >&6; }
25577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25578 $as_echo_n "(cached) " >&6
25579 else
25580 cat >conftest.$ac_ext <<_ACEOF
25581 /* confdefs.h. */
25582 _ACEOF
25583 cat confdefs.h >>conftest.$ac_ext
25584 cat >>conftest.$ac_ext <<_ACEOF
25585 /* end confdefs.h. */
25586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25588 #define $ac_func innocuous_$ac_func
25589
25590 /* System header to define __stub macros and hopefully few prototypes,
25591 which can conflict with char $ac_func (); below.
25592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25593 <limits.h> exists even on freestanding compilers. */
25594
25595 #ifdef __STDC__
25596 # include <limits.h>
25597 #else
25598 # include <assert.h>
25599 #endif
25600
25601 #undef $ac_func
25602
25603 /* Override any GCC internal prototype to avoid an error.
25604 Use char because int might match the return type of a GCC
25605 builtin and then its argument prototype would still apply. */
25606 #ifdef __cplusplus
25607 extern "C"
25608 #endif
25609 char $ac_func ();
25610 /* The GNU C library defines this for functions which it implements
25611 to always fail with ENOSYS. Some functions are actually named
25612 something starting with __ and the normal name is an alias. */
25613 #if defined __stub_$ac_func || defined __stub___$ac_func
25614 choke me
25615 #endif
25616
25617 int
25618 main ()
25619 {
25620 return $ac_func ();
25621 ;
25622 return 0;
25623 }
25624 _ACEOF
25625 rm -f conftest.$ac_objext conftest$ac_exeext
25626 if { (ac_try="$ac_link"
25627 case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25630 esac
25631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25632 $as_echo "$ac_try_echo") >&5
25633 (eval "$ac_link") 2>conftest.er1
25634 ac_status=$?
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
25638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } && {
25640 test -z "$ac_c_werror_flag" ||
25641 test ! -s conftest.err
25642 } && test -s conftest$ac_exeext && {
25643 test "$cross_compiling" = yes ||
25644 $as_test_x conftest$ac_exeext
25645 }; then
25646 eval "$as_ac_var=yes"
25647 else
25648 $as_echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25650
25651 eval "$as_ac_var=no"
25652 fi
25653
25654 rm -rf conftest.dSYM
25655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25656 conftest$ac_exeext conftest.$ac_ext
25657 fi
25658 ac_res=`eval 'as_val=${'$as_ac_var'}
25659 $as_echo "$as_val"'`
25660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25661 $as_echo "$ac_res" >&6; }
25662 if test `eval 'as_val=${'$as_ac_var'}
25663 $as_echo "$as_val"'` = yes; then
25664 cat >>confdefs.h <<_ACEOF
25665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25666 _ACEOF
25667
25668 fi
25669 done
25670
25671 if test "x$ac_cv_func_fork" = xyes; then
25672 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25673 $as_echo_n "checking for working fork... " >&6; }
25674 if test "${ac_cv_func_fork_works+set}" = set; then
25675 $as_echo_n "(cached) " >&6
25676 else
25677 if test "$cross_compiling" = yes; then
25678 ac_cv_func_fork_works=cross
25679 else
25680 cat >conftest.$ac_ext <<_ACEOF
25681 /* confdefs.h. */
25682 _ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25686 $ac_includes_default
25687 int
25688 main ()
25689 {
25690
25691 /* By Ruediger Kuhlmann. */
25692 return fork () < 0;
25693
25694 ;
25695 return 0;
25696 }
25697 _ACEOF
25698 rm -f conftest$ac_exeext
25699 if { (ac_try="$ac_link"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25703 esac
25704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25705 $as_echo "$ac_try_echo") >&5
25706 (eval "$ac_link") 2>&5
25707 ac_status=$?
25708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25710 { (case "(($ac_try" in
25711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712 *) ac_try_echo=$ac_try;;
25713 esac
25714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25715 $as_echo "$ac_try_echo") >&5
25716 (eval "$ac_try") 2>&5
25717 ac_status=$?
25718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_cv_func_fork_works=yes
25721 else
25722 $as_echo "$as_me: program exited with status $ac_status" >&5
25723 $as_echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726 ( exit $ac_status )
25727 ac_cv_func_fork_works=no
25728 fi
25729 rm -rf conftest.dSYM
25730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25731 fi
25732
25733
25734 fi
25735 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25736 $as_echo "$ac_cv_func_fork_works" >&6; }
25737
25738 else
25739 ac_cv_func_fork_works=$ac_cv_func_fork
25740 fi
25741 if test "x$ac_cv_func_fork_works" = xcross; then
25742 case $host in
25743 *-*-amigaos* | *-*-msdosdjgpp*)
25744 # Override, as these systems have only a dummy fork() stub
25745 ac_cv_func_fork_works=no
25746 ;;
25747 *)
25748 ac_cv_func_fork_works=yes
25749 ;;
25750 esac
25751 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25752 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25753 fi
25754 ac_cv_func_vfork_works=$ac_cv_func_vfork
25755 if test "x$ac_cv_func_vfork" = xyes; then
25756 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25757 $as_echo_n "checking for working vfork... " >&6; }
25758 if test "${ac_cv_func_vfork_works+set}" = set; then
25759 $as_echo_n "(cached) " >&6
25760 else
25761 if test "$cross_compiling" = yes; then
25762 ac_cv_func_vfork_works=cross
25763 else
25764 cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h. */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 /* Thanks to Paul Eggert for this test. */
25771 $ac_includes_default
25772 #include <sys/wait.h>
25773 #ifdef HAVE_VFORK_H
25774 # include <vfork.h>
25775 #endif
25776 /* On some sparc systems, changes by the child to local and incoming
25777 argument registers are propagated back to the parent. The compiler
25778 is told about this with #include <vfork.h>, but some compilers
25779 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25780 static variable whose address is put into a register that is
25781 clobbered by the vfork. */
25782 static void
25783 #ifdef __cplusplus
25784 sparc_address_test (int arg)
25785 # else
25786 sparc_address_test (arg) int arg;
25787 #endif
25788 {
25789 static pid_t child;
25790 if (!child) {
25791 child = vfork ();
25792 if (child < 0) {
25793 perror ("vfork");
25794 _exit(2);
25795 }
25796 if (!child) {
25797 arg = getpid();
25798 write(-1, "", 0);
25799 _exit (arg);
25800 }
25801 }
25802 }
25803
25804 int
25805 main ()
25806 {
25807 pid_t parent = getpid ();
25808 pid_t child;
25809
25810 sparc_address_test (0);
25811
25812 child = vfork ();
25813
25814 if (child == 0) {
25815 /* Here is another test for sparc vfork register problems. This
25816 test uses lots of local variables, at least as many local
25817 variables as main has allocated so far including compiler
25818 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25819 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25820 reuse the register of parent for one of the local variables,
25821 since it will think that parent can't possibly be used any more
25822 in this routine. Assigning to the local variable will thus
25823 munge parent in the parent process. */
25824 pid_t
25825 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25826 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25827 /* Convince the compiler that p..p7 are live; otherwise, it might
25828 use the same hardware register for all 8 local variables. */
25829 if (p != p1 || p != p2 || p != p3 || p != p4
25830 || p != p5 || p != p6 || p != p7)
25831 _exit(1);
25832
25833 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25834 from child file descriptors. If the child closes a descriptor
25835 before it execs or exits, this munges the parent's descriptor
25836 as well. Test for this by closing stdout in the child. */
25837 _exit(close(fileno(stdout)) != 0);
25838 } else {
25839 int status;
25840 struct stat st;
25841
25842 while (wait(&status) != child)
25843 ;
25844 return (
25845 /* Was there some problem with vforking? */
25846 child < 0
25847
25848 /* Did the child fail? (This shouldn't happen.) */
25849 || status
25850
25851 /* Did the vfork/compiler bug occur? */
25852 || parent != getpid()
25853
25854 /* Did the file descriptor bug occur? */
25855 || fstat(fileno(stdout), &st) != 0
25856 );
25857 }
25858 }
25859 _ACEOF
25860 rm -f conftest$ac_exeext
25861 if { (ac_try="$ac_link"
25862 case "(($ac_try" in
25863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25864 *) ac_try_echo=$ac_try;;
25865 esac
25866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25867 $as_echo "$ac_try_echo") >&5
25868 (eval "$ac_link") 2>&5
25869 ac_status=$?
25870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25872 { (case "(($ac_try" in
25873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874 *) ac_try_echo=$ac_try;;
25875 esac
25876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25877 $as_echo "$ac_try_echo") >&5
25878 (eval "$ac_try") 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; }; then
25882 ac_cv_func_vfork_works=yes
25883 else
25884 $as_echo "$as_me: program exited with status $ac_status" >&5
25885 $as_echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888 ( exit $ac_status )
25889 ac_cv_func_vfork_works=no
25890 fi
25891 rm -rf conftest.dSYM
25892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25893 fi
25894
25895
25896 fi
25897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25898 $as_echo "$ac_cv_func_vfork_works" >&6; }
25899
25900 fi;
25901 if test "x$ac_cv_func_fork_works" = xcross; then
25902 ac_cv_func_vfork_works=$ac_cv_func_vfork
25903 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25904 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25905 fi
25906
25907 if test "x$ac_cv_func_vfork_works" = xyes; then
25908
25909 cat >>confdefs.h <<\_ACEOF
25910 #define HAVE_WORKING_VFORK 1
25911 _ACEOF
25912
25913 else
25914
25915 cat >>confdefs.h <<\_ACEOF
25916 #define vfork fork
25917 _ACEOF
25918
25919 fi
25920 if test "x$ac_cv_func_fork_works" = xyes; then
25921
25922 cat >>confdefs.h <<\_ACEOF
25923 #define HAVE_WORKING_FORK 1
25924 _ACEOF
25925
25926 fi
25927
25928
25929 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25930 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25931 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25932 $as_echo_n "(cached) " >&6
25933 else
25934 cat >conftest.$ac_ext <<_ACEOF
25935 /* confdefs.h. */
25936 _ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h. */
25940 #include <langinfo.h>
25941 int
25942 main ()
25943 {
25944 char* cs = nl_langinfo(CODESET);
25945 ;
25946 return 0;
25947 }
25948 _ACEOF
25949 rm -f conftest.$ac_objext conftest$ac_exeext
25950 if { (ac_try="$ac_link"
25951 case "(($ac_try" in
25952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953 *) ac_try_echo=$ac_try;;
25954 esac
25955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25956 $as_echo "$ac_try_echo") >&5
25957 (eval "$ac_link") 2>conftest.er1
25958 ac_status=$?
25959 grep -v '^ *+' conftest.er1 >conftest.err
25960 rm -f conftest.er1
25961 cat conftest.err >&5
25962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); } && {
25964 test -z "$ac_c_werror_flag" ||
25965 test ! -s conftest.err
25966 } && test -s conftest$ac_exeext && {
25967 test "$cross_compiling" = yes ||
25968 $as_test_x conftest$ac_exeext
25969 }; then
25970 emacs_cv_langinfo_codeset=yes
25971 else
25972 $as_echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975 emacs_cv_langinfo_codeset=no
25976 fi
25977
25978 rm -rf conftest.dSYM
25979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25980 conftest$ac_exeext conftest.$ac_ext
25981
25982 fi
25983 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25984 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25985 if test $emacs_cv_langinfo_codeset = yes; then
25986
25987 cat >>confdefs.h <<\_ACEOF
25988 #define HAVE_LANGINFO_CODESET 1
25989 _ACEOF
25990
25991 fi
25992
25993 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25994 $as_echo_n "checking for size_t... " >&6; }
25995 if test "${ac_cv_type_size_t+set}" = set; then
25996 $as_echo_n "(cached) " >&6
25997 else
25998 ac_cv_type_size_t=no
25999 cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h. */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 $ac_includes_default
26006 int
26007 main ()
26008 {
26009 if (sizeof (size_t))
26010 return 0;
26011 ;
26012 return 0;
26013 }
26014 _ACEOF
26015 rm -f conftest.$ac_objext
26016 if { (ac_try="$ac_compile"
26017 case "(($ac_try" in
26018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26019 *) ac_try_echo=$ac_try;;
26020 esac
26021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26022 $as_echo "$ac_try_echo") >&5
26023 (eval "$ac_compile") 2>conftest.er1
26024 ac_status=$?
26025 grep -v '^ *+' conftest.er1 >conftest.err
26026 rm -f conftest.er1
26027 cat conftest.err >&5
26028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); } && {
26030 test -z "$ac_c_werror_flag" ||
26031 test ! -s conftest.err
26032 } && test -s conftest.$ac_objext; then
26033 cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h. */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26039 $ac_includes_default
26040 int
26041 main ()
26042 {
26043 if (sizeof ((size_t)))
26044 return 0;
26045 ;
26046 return 0;
26047 }
26048 _ACEOF
26049 rm -f conftest.$ac_objext
26050 if { (ac_try="$ac_compile"
26051 case "(($ac_try" in
26052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053 *) ac_try_echo=$ac_try;;
26054 esac
26055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26056 $as_echo "$ac_try_echo") >&5
26057 (eval "$ac_compile") 2>conftest.er1
26058 ac_status=$?
26059 grep -v '^ *+' conftest.er1 >conftest.err
26060 rm -f conftest.er1
26061 cat conftest.err >&5
26062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest.$ac_objext; then
26067 :
26068 else
26069 $as_echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072 ac_cv_type_size_t=yes
26073 fi
26074
26075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26076 else
26077 $as_echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080
26081 fi
26082
26083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26084 fi
26085 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26086 $as_echo "$ac_cv_type_size_t" >&6; }
26087 if test $ac_cv_type_size_t = yes; then
26088
26089 cat >>confdefs.h <<_ACEOF
26090 #define HAVE_SIZE_T 1
26091 _ACEOF
26092
26093
26094 fi
26095
26096
26097 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26098 $as_echo_n "checking for mbstate_t... " >&6; }
26099 if test "${ac_cv_type_mbstate_t+set}" = set; then
26100 $as_echo_n "(cached) " >&6
26101 else
26102 cat >conftest.$ac_ext <<_ACEOF
26103 /* confdefs.h. */
26104 _ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26108 $ac_includes_default
26109 # include <wchar.h>
26110 int
26111 main ()
26112 {
26113 mbstate_t x; return sizeof x;
26114 ;
26115 return 0;
26116 }
26117 _ACEOF
26118 rm -f conftest.$ac_objext
26119 if { (ac_try="$ac_compile"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26123 esac
26124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26125 $as_echo "$ac_try_echo") >&5
26126 (eval "$ac_compile") 2>conftest.er1
26127 ac_status=$?
26128 grep -v '^ *+' conftest.er1 >conftest.err
26129 rm -f conftest.er1
26130 cat conftest.err >&5
26131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest.$ac_objext; then
26136 ac_cv_type_mbstate_t=yes
26137 else
26138 $as_echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141 ac_cv_type_mbstate_t=no
26142 fi
26143
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145 fi
26146 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26147 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26148 if test $ac_cv_type_mbstate_t = yes; then
26149
26150 cat >>confdefs.h <<\_ACEOF
26151 #define HAVE_MBSTATE_T 1
26152 _ACEOF
26153
26154 else
26155
26156 cat >>confdefs.h <<\_ACEOF
26157 #define mbstate_t int
26158 _ACEOF
26159
26160 fi
26161
26162 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26163 $as_echo_n "checking for C restrict keyword... " >&6; }
26164 if test "${emacs_cv_c_restrict+set}" = set; then
26165 $as_echo_n "(cached) " >&6
26166 else
26167 cat >conftest.$ac_ext <<_ACEOF
26168 /* confdefs.h. */
26169 _ACEOF
26170 cat confdefs.h >>conftest.$ac_ext
26171 cat >>conftest.$ac_ext <<_ACEOF
26172 /* end confdefs.h. */
26173 void fred (int *restrict x);
26174 int
26175 main ()
26176 {
26177
26178 ;
26179 return 0;
26180 }
26181 _ACEOF
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26187 esac
26188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190 (eval "$ac_compile") 2>conftest.er1
26191 ac_status=$?
26192 grep -v '^ *+' conftest.er1 >conftest.err
26193 rm -f conftest.er1
26194 cat conftest.err >&5
26195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } && {
26197 test -z "$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26199 } && test -s conftest.$ac_objext; then
26200 emacs_cv_c_restrict=yes
26201 else
26202 $as_echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205 cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h. */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26211 void fred (int *__restrict x);
26212 int
26213 main ()
26214 {
26215
26216 ;
26217 return 0;
26218 }
26219 _ACEOF
26220 rm -f conftest.$ac_objext
26221 if { (ac_try="$ac_compile"
26222 case "(($ac_try" in
26223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224 *) ac_try_echo=$ac_try;;
26225 esac
26226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26227 $as_echo "$ac_try_echo") >&5
26228 (eval "$ac_compile") 2>conftest.er1
26229 ac_status=$?
26230 grep -v '^ *+' conftest.er1 >conftest.err
26231 rm -f conftest.er1
26232 cat conftest.err >&5
26233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } && {
26235 test -z "$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26237 } && test -s conftest.$ac_objext; then
26238 emacs_cv_c_restrict=__restrict
26239 else
26240 $as_echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243 emacs_cv_c_restrict=no
26244 fi
26245
26246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247 fi
26248
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26250 fi
26251 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26252 $as_echo "$emacs_cv_c_restrict" >&6; }
26253 case "$emacs_cv_c_restrict" in
26254 yes) emacs_restrict=restrict;;
26255 no) emacs_restrict="";;
26256 *) emacs_restrict="$emacs_cv_c_restrict";;
26257 esac
26258 if test "$emacs_restrict" != __restrict; then
26259
26260 cat >>confdefs.h <<_ACEOF
26261 #define __restrict $emacs_restrict
26262 _ACEOF
26263
26264 fi
26265
26266 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26267 $as_echo_n "checking for C restricted array declarations... " >&6; }
26268 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26269 $as_echo_n "(cached) " >&6
26270 else
26271 cat >conftest.$ac_ext <<_ACEOF
26272 /* confdefs.h. */
26273 _ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26277 void fred (int x[__restrict]);
26278 int
26279 main ()
26280 {
26281
26282 ;
26283 return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext
26287 if { (ac_try="$ac_compile"
26288 case "(($ac_try" in
26289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290 *) ac_try_echo=$ac_try;;
26291 esac
26292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26293 $as_echo "$ac_try_echo") >&5
26294 (eval "$ac_compile") 2>conftest.er1
26295 ac_status=$?
26296 grep -v '^ *+' conftest.er1 >conftest.err
26297 rm -f conftest.er1
26298 cat conftest.err >&5
26299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
26303 } && test -s conftest.$ac_objext; then
26304 emacs_cv_c_restrict_arr=yes
26305 else
26306 $as_echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26308
26309 emacs_cv_c_restrict_arr=no
26310 fi
26311
26312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26313 fi
26314 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26315 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26316 if test "$emacs_cv_c_restrict_arr" = yes; then
26317
26318 cat >>confdefs.h <<\_ACEOF
26319 #define __restrict_arr __restrict
26320 _ACEOF
26321
26322 fi
26323
26324
26325
26326 # Set up the CFLAGS for real compilation, so we can substitute it.
26327 CFLAGS="$REAL_CFLAGS"
26328 CPPFLAGS="$REAL_CPPFLAGS"
26329
26330 ## Hack to detect a buggy GCC version.
26331 if test "x$GCC" = xyes \
26332 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26333 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26334 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26335 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26336 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26337 { (exit 1); exit 1; }; }
26338 fi
26339
26340 #### Find out which version of Emacs this is.
26341 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26342 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26343 if test x"${version}" = x; then
26344 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26345 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26346 { (exit 1); exit 1; }; }
26347 fi
26348 if test x"${version}" != x"$PACKAGE_VERSION"; then
26349 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26350 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26351 fi
26352
26353 ### Specify what sort of things we'll be editing into Makefile and config.h.
26354 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26355
26356
26357 ## Unused?
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26380 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26381 ## end of LIBX_BASE, but nothing ever set it.
26382
26383
26384
26385
26386 ## Used in lwlib/Makefile.in.
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399 cat >>confdefs.h <<_ACEOF
26400 #define EMACS_CONFIGURATION "${canonical}"
26401 _ACEOF
26402
26403
26404 cat >>confdefs.h <<_ACEOF
26405 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26406 _ACEOF
26407
26408
26409 cat >>confdefs.h <<_ACEOF
26410 #define config_machfile "${machfile}"
26411 _ACEOF
26412
26413
26414 cat >>confdefs.h <<_ACEOF
26415 #define config_opsysfile "${opsysfile}"
26416 _ACEOF
26417
26418
26419 XMENU_OBJ=
26420 XOBJ=
26421 FONT_OBJ=
26422 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26423
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_X_WINDOWS 1
26426 _ACEOF
26427
26428 XMENU_OBJ=xmenu.o
26429 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26430 FONT_OBJ=xfont.o
26431 if test "$HAVE_XFT" = "yes"; then
26432 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26433 elif test "$HAVE_FREETYPE" = "yes"; then
26434 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26435 fi
26436
26437 fi
26438
26439
26440
26441
26442 WIDGET_OBJ=
26443 MOTIF_LIBW=
26444 if test "${USE_X_TOOLKIT}" != "none" ; then
26445 WIDGET_OBJ=widget.o
26446
26447 cat >>confdefs.h <<\_ACEOF
26448 #define USE_X_TOOLKIT 1
26449 _ACEOF
26450
26451 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26452
26453 cat >>confdefs.h <<\_ACEOF
26454 #define USE_LUCID 1
26455 _ACEOF
26456
26457 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26458
26459 cat >>confdefs.h <<\_ACEOF
26460 #define USE_MOTIF 1
26461 _ACEOF
26462
26463 MOTIF_LIBW=-lXm
26464 case "$opsys" in
26465 gnu-linux)
26466 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26467 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26468 ;;
26469
26470 unixware)
26471 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26472 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26473 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26474 ;;
26475
26476 aix4-2)
26477 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26478 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26479 ;;
26480 esac
26481 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26482 fi
26483 fi
26484
26485
26486 TOOLKIT_LIBW=
26487 case "$USE_X_TOOLKIT" in
26488 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26489 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26490 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26491 esac
26492
26493
26494 if test "$USE_X_TOOLKIT" = "none"; then
26495 LIBXT_OTHER="\$(LIBXSM)"
26496 OLDXMENU_TARGET="really-oldXMenu"
26497 else
26498 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26499 OLDXMENU_TARGET="really-lwlib"
26500 fi
26501
26502
26503 ## The X Menu stuff is present in the X10 distribution, but missing
26504 ## from X11. If we have X10, just use the installed library;
26505 ## otherwise, use our own copy.
26506 if test "${HAVE_X11}" = "yes" ; then
26507
26508 cat >>confdefs.h <<\_ACEOF
26509 #define HAVE_X11 1
26510 _ACEOF
26511
26512
26513 if test "$USE_X_TOOLKIT" = "none"; then
26514 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26515 else
26516 OLDXMENU="\${lwlibdir}liblw.a"
26517 fi
26518 LIBXMENU="\$(OLDXMENU)"
26519 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26520 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
26521 else
26522 ## For a syntactically valid Makefile; not actually used for anything.
26523 ## See comments in src/Makefile.in.
26524 OLDXMENU=nothing
26525 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26526 if test "${HAVE_X_WINDOWS}" = "yes"; then
26527 LIBXMENU="-lXMenu"
26528 else
26529 LIBXMENU=
26530 fi
26531 LIBX_OTHER=
26532 OLDXMENU_DEPS=
26533 fi
26534
26535 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26536 OLDXMENU_TARGET=
26537 OLDXMENU=nothing
26538 LIBXMENU=
26539 OLDXMENU_DEPS=
26540 fi
26541
26542
26543
26544
26545
26546
26547
26548 if test "${HAVE_MENUS}" = "yes" ; then
26549
26550 cat >>confdefs.h <<\_ACEOF
26551 #define HAVE_MENUS 1
26552 _ACEOF
26553
26554 fi
26555
26556 if test "${GNU_MALLOC}" = "yes" ; then
26557
26558 cat >>confdefs.h <<\_ACEOF
26559 #define GNU_MALLOC 1
26560 _ACEOF
26561
26562 fi
26563
26564 RALLOC_OBJ=
26565 if test "${REL_ALLOC}" = "yes" ; then
26566
26567 cat >>confdefs.h <<\_ACEOF
26568 #define REL_ALLOC 1
26569 _ACEOF
26570
26571
26572 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
26573 fi
26574
26575
26576 if test "$opsys" = "cygwin"; then
26577 CYGWIN_OBJ="sheap.o"
26578 ## Cygwin differs because of its unexec().
26579 PRE_ALLOC_OBJ=
26580 POST_ALLOC_OBJ=lastfile.o
26581 else
26582 CYGWIN_OBJ=
26583 PRE_ALLOC_OBJ=lastfile.o
26584 POST_ALLOC_OBJ=
26585 fi
26586
26587
26588
26589
26590
26591 case "$opsys" in
26592 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26593
26594 darwin)
26595 ## The -headerpad option tells ld (see man page) to leave room at the
26596 ## end of the header for adding load commands. Needed for dumping.
26597 ## 0x690 is the total size of 30 segment load commands (at 56
26598 ## each); under Cocoa 31 commands are required.
26599 if test "$HAVE_NS" = "yes"; then
26600 libs_nsgui="-framework AppKit"
26601 headerpad_extra=6C8
26602 else
26603 libs_nsgui=
26604 headerpad_extra=690
26605 fi
26606 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26607 ;;
26608
26609 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26610 esac
26611
26612
26613
26614 ## This exists because src/Makefile.in did some extra fiddling around
26615 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26616 ## #ifndef LD_SWITCH_SYSTEM
26617 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26618 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26619 ## not using gcc, darwin system not on an alpha (ie darwin, since
26620 ## darwin + alpha does not occur).
26621 ## Note that unlike L_S_S, this is not used in ac_link.
26622 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26623 test "$opsys" = "darwin"; then
26624 LD_SWITCH_SYSTEM_EXTRA="-X"
26625 else
26626 LD_SWITCH_SYSTEM_EXTRA=
26627 fi
26628
26629
26630
26631 LINKER=
26632 ORDINARY_LINK=
26633 case "$opsys" in
26634 ## gnu: GNU needs its own crt0.
26635 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
26636
26637 cygwin) LINKER="\$(CC)" ;;
26638
26639 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26640 ## library search parth, i.e. it won't search /usr/lib for libc and
26641 ## friends. Using -nostartfiles instead avoids this problem, and
26642 ## will also work on earlier NetBSD releases.
26643 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
26644
26645 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26646 ## MkLinux/LinuxPPC needs this.
26647 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26648 gnu-*)
26649 case "$machine" in
26650 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
26651 esac
26652 ;;
26653 esac
26654
26655 ## A macro which other sections of Makefile can redefine to munge the
26656 ## flags before they are passed to LD. This is helpful if you have
26657 ## redefined LD to something odd, like "gcc".
26658 ## (The YMF prefix is a holdover from the old name "ymakefile".)
26659 YMF_PASS_LDFLAGS=flags
26660 if test "x$ORDINARY_LINK" = "xyes"; then
26661
26662 LINKER="\$(CC)"
26663
26664 cat >>confdefs.h <<\_ACEOF
26665 #define ORDINARY_LINK 1
26666 _ACEOF
26667
26668
26669 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26670 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26671 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26672
26673 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26674 ## places that are difficult to figure out at make time. Fortunately,
26675 ## these same versions allow you to pass arbitrary flags on to the
26676 ## linker, so there is no reason not to use it as a linker.
26677 ##
26678 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26679 ## searching for libraries in its internal directories, so we have to
26680 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26681 LINKER="\$(CC) -nostdlib"
26682 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26683 ## See prefix-args.c for an explanation of why we do not do this with the
26684 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26685 ## their paths, so we must use ./prefix-args.
26686 ## TODO either make prefix-args check ORDINARY_LINK internally,
26687 ## or remove it altogether (bug#6184), removing the need for this macro.
26688 YMF_PASS_LDFLAGS='`./prefix-args -Xlinker flags`'
26689 fi
26690
26691
26692 test "x$LINKER" = "x" && LINKER=ld
26693 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26694 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
26695
26696
26697
26698
26699 ## FIXME? The logic here is not precisely the same as that above
26700 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined
26701 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib?
26702 LIB_GCC=
26703 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26704
26705 case "$opsys" in
26706 ## cygwin: don't link against static libgcc.
26707 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26708
26709 gnu-*)
26710 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26711 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26712 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26713 if test "$machine" = "arm"; then
26714 LIB_GCC="-lgcc_s"
26715 else
26716 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26717 ## immediately undefine it again and redefine it to empty.
26718 ## Was the C_SWITCH_X_SITE part really necessary?
26719 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26720 LIB_GCC=
26721 fi
26722 ;;
26723
26724 ## Ask GCC where to find libgcc.a.
26725 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26726 esac
26727 fi
26728
26729
26730 TOOLTIP_SUPPORT=
26731 WINDOW_SUPPORT=
26732 ## If we're using X11/GNUstep, define some consequences.
26733 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26734
26735 cat >>confdefs.h <<\_ACEOF
26736 #define HAVE_WINDOW_SYSTEM 1
26737 _ACEOF
26738
26739
26740 cat >>confdefs.h <<\_ACEOF
26741 #define HAVE_MOUSE 1
26742 _ACEOF
26743
26744 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26745 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26746
26747 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26748 test "$HAVE_X_WINDOWS" = "yes" && \
26749 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26750
26751 fi
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761 #### Report on what we decided to do.
26762 #### Report GTK as a toolkit, even if it doesn't use Xt.
26763 #### It makes printing result more understandable as using GTK sets
26764 #### toolkit_scroll_bars to yes by default.
26765 if test "${HAVE_GTK}" = "yes"; then
26766 USE_X_TOOLKIT=GTK
26767 fi
26768
26769 echo "
26770 Configured for \`${canonical}'.
26771
26772 Where should the build process find the source code? ${srcdir}
26773 What operating system and machine description files should Emacs use?
26774 \`${opsysfile}' and \`${machfile}'
26775 What compiler should emacs be built with? ${CC} ${CFLAGS}
26776 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26777 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26778 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26779 What window system should Emacs use? ${window_system}
26780 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26781
26782 if test -n "${x_includes}"; then
26783 echo " Where do we find X Windows header files? ${x_includes}"
26784 else
26785 echo " Where do we find X Windows header files? Standard dirs"
26786 fi
26787 if test -n "${x_libraries}"; then
26788 echo " Where do we find X Windows libraries? ${x_libraries}"
26789 else
26790 echo " Where do we find X Windows libraries? Standard dirs"
26791 fi
26792
26793 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26794 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26795 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26796 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26797 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26798 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26799 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26800 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26801 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26802 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26803 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26804
26805 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26806 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26807 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26808 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26809
26810 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26811 echo
26812
26813 if test $USE_XASSERTS = yes; then
26814 echo " Compiling with asserts turned on."
26815 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26816 fi
26817
26818 echo
26819
26820 if test "$HAVE_NS" = "yes"; then
26821 echo
26822 echo "You must run \"make install\" in order to test the built application.
26823 The installed application will go to nextstep/Emacs.app and can be
26824 run or moved from there."
26825 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26826 echo "The application will be fully self-contained."
26827 else
26828 echo "The lisp resources for the application will be installed under ${prefix}.
26829 You may need to run \"make install\" with sudo. The application will fail
26830 to run if these resources are not installed."
26831 fi
26832 echo
26833 fi
26834
26835 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26836 echo "D-Bus integration has been tested for GNU/Linux only."
26837 echo
26838 fi
26839
26840
26841 # Remove any trailing slashes in these variables.
26842 test "${prefix}" != NONE &&
26843 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26844 test "${exec_prefix}" != NONE &&
26845 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26846
26847 # Now get this: Some word that is part of the ${srcdir} directory name
26848 # or the ${configuration} value might, just might, happen to be an
26849 # identifier like `sun4' or `i386' or something, and be predefined by
26850 # the C preprocessor to some helpful value like 1, or maybe the empty
26851 # string. Needless to say consequent macro substitutions are less
26852 # than conducive to the makefile finding the correct directory.
26853 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26854 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26855 # so that cannot have been doing anything.
26856 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26857 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26858 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26859
26860 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26861 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26862 ## from Makefile.c can correctly provide the arg `-traditional' to the
26863 ## C preprocessor.
26864
26865 cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h. */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 yes..yes
26872 _ACEOF
26873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26874 $EGREP "yes..yes" >/dev/null 2>&1; then
26875 CPP_NEED_TRADITIONAL=no
26876 else
26877 CPP_NEED_TRADITIONAL=yes
26878 fi
26879 rm -f conftest*
26880
26881
26882 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26883
26884 ac_config_commands="$ac_config_commands default"
26885
26886 cat >confcache <<\_ACEOF
26887 # This file is a shell script that caches the results of configure
26888 # tests run on this system so they can be shared between configure
26889 # scripts and configure runs, see configure's option --config-cache.
26890 # It is not useful on other systems. If it contains results you don't
26891 # want to keep, you may remove or edit it.
26892 #
26893 # config.status only pays attention to the cache file if you give it
26894 # the --recheck option to rerun configure.
26895 #
26896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26898 # following values.
26899
26900 _ACEOF
26901
26902 # The following way of writing the cache mishandles newlines in values,
26903 # but we know of no workaround that is simple, portable, and efficient.
26904 # So, we kill variables containing newlines.
26905 # Ultrix sh set writes to stderr and can't be redirected directly,
26906 # and sets the high bit in the cache file unless we assign to the vars.
26907 (
26908 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26909 eval ac_val=\$$ac_var
26910 case $ac_val in #(
26911 *${as_nl}*)
26912 case $ac_var in #(
26913 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26914 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26915 esac
26916 case $ac_var in #(
26917 _ | IFS | as_nl) ;; #(
26918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26919 *) $as_unset $ac_var ;;
26920 esac ;;
26921 esac
26922 done
26923
26924 (set) 2>&1 |
26925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26926 *${as_nl}ac_space=\ *)
26927 # `set' does not quote correctly, so add quotes (double-quote
26928 # substitution turns \\\\ into \\, and sed turns \\ into \).
26929 sed -n \
26930 "s/'/'\\\\''/g;
26931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26932 ;; #(
26933 *)
26934 # `set' quotes correctly as required by POSIX, so do not add quotes.
26935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26936 ;;
26937 esac |
26938 sort
26939 ) |
26940 sed '
26941 /^ac_cv_env_/b end
26942 t clear
26943 :clear
26944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26945 t end
26946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26947 :end' >>confcache
26948 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26949 if test -w "$cache_file"; then
26950 test "x$cache_file" != "x/dev/null" &&
26951 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26952 $as_echo "$as_me: updating cache $cache_file" >&6;}
26953 cat confcache >$cache_file
26954 else
26955 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26956 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26957 fi
26958 fi
26959 rm -f confcache
26960
26961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26962 # Let make expand exec_prefix.
26963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26964
26965 DEFS=-DHAVE_CONFIG_H
26966
26967 ac_libobjs=
26968 ac_ltlibobjs=
26969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26970 # 1. Remove the extension, and $U if already installed.
26971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26972 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26974 # will be set to the directory where LIBOBJS objects are built.
26975 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26976 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26977 done
26978 LIBOBJS=$ac_libobjs
26979
26980 LTLIBOBJS=$ac_ltlibobjs
26981
26982
26983
26984 : ${CONFIG_STATUS=./config.status}
26985 ac_write_fail=0
26986 ac_clean_files_save=$ac_clean_files
26987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26988 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26990 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26991 #! $SHELL
26992 # Generated by $as_me.
26993 # Run this file to recreate the current configuration.
26994 # Compiler output produced by configure, useful for debugging
26995 # configure, is in config.log if it exists.
26996
26997 debug=false
26998 ac_cs_recheck=false
26999 ac_cs_silent=false
27000 SHELL=\${CONFIG_SHELL-$SHELL}
27001 _ACEOF
27002
27003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27004 ## --------------------- ##
27005 ## M4sh Initialization. ##
27006 ## --------------------- ##
27007
27008 # Be more Bourne compatible
27009 DUALCASE=1; export DUALCASE # for MKS sh
27010 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27011 emulate sh
27012 NULLCMD=:
27013 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27014 # is contrary to our usage. Disable this feature.
27015 alias -g '${1+"$@"}'='"$@"'
27016 setopt NO_GLOB_SUBST
27017 else
27018 case `(set -o) 2>/dev/null` in
27019 *posix*) set -o posix ;;
27020 esac
27021
27022 fi
27023
27024
27025
27026
27027 # PATH needs CR
27028 # Avoid depending upon Character Ranges.
27029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27032 as_cr_digits='0123456789'
27033 as_cr_alnum=$as_cr_Letters$as_cr_digits
27034
27035 as_nl='
27036 '
27037 export as_nl
27038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27039 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27042 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27043 as_echo='printf %s\n'
27044 as_echo_n='printf %s'
27045 else
27046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27047 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27048 as_echo_n='/usr/ucb/echo -n'
27049 else
27050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27051 as_echo_n_body='eval
27052 arg=$1;
27053 case $arg in
27054 *"$as_nl"*)
27055 expr "X$arg" : "X\\(.*\\)$as_nl";
27056 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27057 esac;
27058 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27059 '
27060 export as_echo_n_body
27061 as_echo_n='sh -c $as_echo_n_body as_echo'
27062 fi
27063 export as_echo_body
27064 as_echo='sh -c $as_echo_body as_echo'
27065 fi
27066
27067 # The user is always right.
27068 if test "${PATH_SEPARATOR+set}" != set; then
27069 PATH_SEPARATOR=:
27070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27072 PATH_SEPARATOR=';'
27073 }
27074 fi
27075
27076 # Support unset when possible.
27077 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27078 as_unset=unset
27079 else
27080 as_unset=false
27081 fi
27082
27083
27084 # IFS
27085 # We need space, tab and new line, in precisely that order. Quoting is
27086 # there to prevent editors from complaining about space-tab.
27087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27088 # splitting by setting IFS to empty value.)
27089 IFS=" "" $as_nl"
27090
27091 # Find who we are. Look in the path if we contain no directory separator.
27092 case $0 in
27093 *[\\/]* ) as_myself=$0 ;;
27094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27095 for as_dir in $PATH
27096 do
27097 IFS=$as_save_IFS
27098 test -z "$as_dir" && as_dir=.
27099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27100 done
27101 IFS=$as_save_IFS
27102
27103 ;;
27104 esac
27105 # We did not find ourselves, most probably we were run as `sh COMMAND'
27106 # in which case we are not to be found in the path.
27107 if test "x$as_myself" = x; then
27108 as_myself=$0
27109 fi
27110 if test ! -f "$as_myself"; then
27111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27112 { (exit 1); exit 1; }
27113 fi
27114
27115 # Work around bugs in pre-3.0 UWIN ksh.
27116 for as_var in ENV MAIL MAILPATH
27117 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27118 done
27119 PS1='$ '
27120 PS2='> '
27121 PS4='+ '
27122
27123 # NLS nuisances.
27124 LC_ALL=C
27125 export LC_ALL
27126 LANGUAGE=C
27127 export LANGUAGE
27128
27129 # Required to use basename.
27130 if expr a : '\(a\)' >/dev/null 2>&1 &&
27131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27132 as_expr=expr
27133 else
27134 as_expr=false
27135 fi
27136
27137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27138 as_basename=basename
27139 else
27140 as_basename=false
27141 fi
27142
27143
27144 # Name of the executable.
27145 as_me=`$as_basename -- "$0" ||
27146 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27147 X"$0" : 'X\(//\)$' \| \
27148 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27149 $as_echo X/"$0" |
27150 sed '/^.*\/\([^/][^/]*\)\/*$/{
27151 s//\1/
27152 q
27153 }
27154 /^X\/\(\/\/\)$/{
27155 s//\1/
27156 q
27157 }
27158 /^X\/\(\/\).*/{
27159 s//\1/
27160 q
27161 }
27162 s/.*/./; q'`
27163
27164 # CDPATH.
27165 $as_unset CDPATH
27166
27167
27168
27169 as_lineno_1=$LINENO
27170 as_lineno_2=$LINENO
27171 test "x$as_lineno_1" != "x$as_lineno_2" &&
27172 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27173
27174 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27175 # uniformly replaced by the line number. The first 'sed' inserts a
27176 # line-number line after each line using $LINENO; the second 'sed'
27177 # does the real work. The second script uses 'N' to pair each
27178 # line-number line with the line containing $LINENO, and appends
27179 # trailing '-' during substitution so that $LINENO is not a special
27180 # case at line end.
27181 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27182 # scripts with optimization help from Paolo Bonzini. Blame Lee
27183 # E. McMahon (1931-1989) for sed's syntax. :-)
27184 sed -n '
27185 p
27186 /[$]LINENO/=
27187 ' <$as_myself |
27188 sed '
27189 s/[$]LINENO.*/&-/
27190 t lineno
27191 b
27192 :lineno
27193 N
27194 :loop
27195 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27196 t loop
27197 s/-\n.*//
27198 ' >$as_me.lineno &&
27199 chmod +x "$as_me.lineno" ||
27200 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27201 { (exit 1); exit 1; }; }
27202
27203 # Don't try to exec as it changes $[0], causing all sort of problems
27204 # (the dirname of $[0] is not the place where we might find the
27205 # original and so on. Autoconf is especially sensitive to this).
27206 . "./$as_me.lineno"
27207 # Exit status is that of the last command.
27208 exit
27209 }
27210
27211
27212 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27213 as_dirname=dirname
27214 else
27215 as_dirname=false
27216 fi
27217
27218 ECHO_C= ECHO_N= ECHO_T=
27219 case `echo -n x` in
27220 -n*)
27221 case `echo 'x\c'` in
27222 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27223 *) ECHO_C='\c';;
27224 esac;;
27225 *)
27226 ECHO_N='-n';;
27227 esac
27228 if expr a : '\(a\)' >/dev/null 2>&1 &&
27229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27230 as_expr=expr
27231 else
27232 as_expr=false
27233 fi
27234
27235 rm -f conf$$ conf$$.exe conf$$.file
27236 if test -d conf$$.dir; then
27237 rm -f conf$$.dir/conf$$.file
27238 else
27239 rm -f conf$$.dir
27240 mkdir conf$$.dir 2>/dev/null
27241 fi
27242 if (echo >conf$$.file) 2>/dev/null; then
27243 if ln -s conf$$.file conf$$ 2>/dev/null; then
27244 as_ln_s='ln -s'
27245 # ... but there are two gotchas:
27246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27248 # In both cases, we have to default to `cp -p'.
27249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27250 as_ln_s='cp -p'
27251 elif ln conf$$.file conf$$ 2>/dev/null; then
27252 as_ln_s=ln
27253 else
27254 as_ln_s='cp -p'
27255 fi
27256 else
27257 as_ln_s='cp -p'
27258 fi
27259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27260 rmdir conf$$.dir 2>/dev/null
27261
27262 if mkdir -p . 2>/dev/null; then
27263 as_mkdir_p=:
27264 else
27265 test -d ./-p && rmdir ./-p
27266 as_mkdir_p=false
27267 fi
27268
27269 if test -x / >/dev/null 2>&1; then
27270 as_test_x='test -x'
27271 else
27272 if ls -dL / >/dev/null 2>&1; then
27273 as_ls_L_option=L
27274 else
27275 as_ls_L_option=
27276 fi
27277 as_test_x='
27278 eval sh -c '\''
27279 if test -d "$1"; then
27280 test -d "$1/.";
27281 else
27282 case $1 in
27283 -*)set "./$1";;
27284 esac;
27285 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27286 ???[sx]*):;;*)false;;esac;fi
27287 '\'' sh
27288 '
27289 fi
27290 as_executable_p=$as_test_x
27291
27292 # Sed expression to map a string onto a valid CPP name.
27293 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27294
27295 # Sed expression to map a string onto a valid variable name.
27296 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27297
27298
27299 exec 6>&1
27300
27301 # Save the log message, to keep $[0] and so on meaningful, and to
27302 # report actual input values of CONFIG_FILES etc. instead of their
27303 # values after options handling.
27304 ac_log="
27305 This file was extended by emacs $as_me 24.0.50, which was
27306 generated by GNU Autoconf 2.62. Invocation command line was
27307
27308 CONFIG_FILES = $CONFIG_FILES
27309 CONFIG_HEADERS = $CONFIG_HEADERS
27310 CONFIG_LINKS = $CONFIG_LINKS
27311 CONFIG_COMMANDS = $CONFIG_COMMANDS
27312 $ $0 $@
27313
27314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27315 "
27316
27317 _ACEOF
27318
27319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27320 # Files that config.status was made for.
27321 config_files="$ac_config_files"
27322 config_headers="$ac_config_headers"
27323 config_commands="$ac_config_commands"
27324
27325 _ACEOF
27326
27327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27328 ac_cs_usage="\
27329 \`$as_me' instantiates files from templates according to the
27330 current configuration.
27331
27332 Usage: $0 [OPTIONS] [FILE]...
27333
27334 -h, --help print this help, then exit
27335 -V, --version print version number and configuration settings, then exit
27336 -q, --quiet do not print progress messages
27337 -d, --debug don't remove temporary files
27338 --recheck update $as_me by reconfiguring in the same conditions
27339 --file=FILE[:TEMPLATE]
27340 instantiate the configuration file FILE
27341 --header=FILE[:TEMPLATE]
27342 instantiate the configuration header FILE
27343
27344 Configuration files:
27345 $config_files
27346
27347 Configuration headers:
27348 $config_headers
27349
27350 Configuration commands:
27351 $config_commands
27352
27353 Report bugs to <bug-autoconf@gnu.org>."
27354
27355 _ACEOF
27356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27357 ac_cs_version="\\
27358 emacs config.status 24.0.50
27359 configured by $0, generated by GNU Autoconf 2.62,
27360 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27361
27362 Copyright (C) 2008 Free Software Foundation, Inc.
27363 This config.status script is free software; the Free Software Foundation
27364 gives unlimited permission to copy, distribute and modify it."
27365
27366 ac_pwd='$ac_pwd'
27367 srcdir='$srcdir'
27368 INSTALL='$INSTALL'
27369 test -n "\$AWK" || AWK=awk
27370 _ACEOF
27371
27372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27373 # The default lists apply if the user does not specify any file.
27374 ac_need_defaults=:
27375 while test $# != 0
27376 do
27377 case $1 in
27378 --*=*)
27379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27380 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27381 ac_shift=:
27382 ;;
27383 *)
27384 ac_option=$1
27385 ac_optarg=$2
27386 ac_shift=shift
27387 ;;
27388 esac
27389
27390 case $ac_option in
27391 # Handling of the options.
27392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27393 ac_cs_recheck=: ;;
27394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27395 $as_echo "$ac_cs_version"; exit ;;
27396 --debug | --debu | --deb | --de | --d | -d )
27397 debug=: ;;
27398 --file | --fil | --fi | --f )
27399 $ac_shift
27400 case $ac_optarg in
27401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27402 esac
27403 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27404 ac_need_defaults=false;;
27405 --header | --heade | --head | --hea )
27406 $ac_shift
27407 case $ac_optarg in
27408 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27409 esac
27410 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27411 ac_need_defaults=false;;
27412 --he | --h)
27413 # Conflict between --help and --header
27414 { $as_echo "$as_me: error: ambiguous option: $1
27415 Try \`$0 --help' for more information." >&2
27416 { (exit 1); exit 1; }; };;
27417 --help | --hel | -h )
27418 $as_echo "$ac_cs_usage"; exit ;;
27419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27420 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27421 ac_cs_silent=: ;;
27422
27423 # This is an error.
27424 -*) { $as_echo "$as_me: error: unrecognized option: $1
27425 Try \`$0 --help' for more information." >&2
27426 { (exit 1); exit 1; }; } ;;
27427
27428 *) ac_config_targets="$ac_config_targets $1"
27429 ac_need_defaults=false ;;
27430
27431 esac
27432 shift
27433 done
27434
27435 ac_configure_extra_args=
27436
27437 if $ac_cs_silent; then
27438 exec 6>/dev/null
27439 ac_configure_extra_args="$ac_configure_extra_args --silent"
27440 fi
27441
27442 _ACEOF
27443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27444 if \$ac_cs_recheck; then
27445 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27446 shift
27447 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27448 CONFIG_SHELL='$SHELL'
27449 export CONFIG_SHELL
27450 exec "\$@"
27451 fi
27452
27453 _ACEOF
27454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27455 exec 5>>config.log
27456 {
27457 echo
27458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27459 ## Running $as_me. ##
27460 _ASBOX
27461 $as_echo "$ac_log"
27462 } >&5
27463
27464 _ACEOF
27465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27466 #
27467 # INIT-COMMANDS
27468 #
27469 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27470
27471 _ACEOF
27472
27473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27474
27475 # Handling of arguments.
27476 for ac_config_target in $ac_config_targets
27477 do
27478 case $ac_config_target in
27479 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27481 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27482 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27483 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27484 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27485 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27486 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27487 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27488 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27489 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27490 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27491 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27492
27493 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27494 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27495 { (exit 1); exit 1; }; };;
27496 esac
27497 done
27498
27499
27500 # If the user did not use the arguments to specify the items to instantiate,
27501 # then the envvar interface is used. Set only those that are not.
27502 # We use the long form for the default assignment because of an extremely
27503 # bizarre bug on SunOS 4.1.3.
27504 if $ac_need_defaults; then
27505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27507 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27508 fi
27509
27510 # Have a temporary directory for convenience. Make it in the build tree
27511 # simply because there is no reason against having it here, and in addition,
27512 # creating and moving files from /tmp can sometimes cause problems.
27513 # Hook for its removal unless debugging.
27514 # Note that there is a small window in which the directory will not be cleaned:
27515 # after its creation but before its name has been assigned to `$tmp'.
27516 $debug ||
27517 {
27518 tmp=
27519 trap 'exit_status=$?
27520 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27521 ' 0
27522 trap '{ (exit 1); exit 1; }' 1 2 13 15
27523 }
27524 # Create a (secure) tmp directory for tmp files.
27525
27526 {
27527 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27528 test -n "$tmp" && test -d "$tmp"
27529 } ||
27530 {
27531 tmp=./conf$$-$RANDOM
27532 (umask 077 && mkdir "$tmp")
27533 } ||
27534 {
27535 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27536 { (exit 1); exit 1; }
27537 }
27538
27539 # Set up the scripts for CONFIG_FILES section.
27540 # No need to generate them if there are no CONFIG_FILES.
27541 # This happens for instance with `./config.status config.h'.
27542 if test -n "$CONFIG_FILES"; then
27543
27544 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27545 ac_cs_awk_getline=:
27546 ac_cs_awk_pipe_init=
27547 ac_cs_awk_read_file='
27548 while ((getline aline < (F[key])) > 0)
27549 print(aline)
27550 close(F[key])'
27551 ac_cs_awk_pipe_fini=
27552 else
27553 ac_cs_awk_getline=false
27554 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27555 ac_cs_awk_read_file='
27556 print "|#_!!_#|"
27557 print "cat " F[key] " &&"
27558 '$ac_cs_awk_pipe_init
27559 # The final `:' finishes the AND list.
27560 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27561 fi
27562 ac_cr=' '
27563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27565 ac_cs_awk_cr='\\r'
27566 else
27567 ac_cs_awk_cr=$ac_cr
27568 fi
27569
27570 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27571 _ACEOF
27572
27573 # Create commands to substitute file output variables.
27574 {
27575 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27576 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27577 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27578 echo "_ACAWK" &&
27579 echo "_ACEOF"
27580 } >conf$$files.sh &&
27581 . ./conf$$files.sh ||
27582 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27583 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27584 { (exit 1); exit 1; }; }
27585 rm -f conf$$files.sh
27586
27587 {
27588 echo "cat >conf$$subs.awk <<_ACEOF" &&
27589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27590 echo "_ACEOF"
27591 } >conf$$subs.sh ||
27592 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27593 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27594 { (exit 1); exit 1; }; }
27595 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27596 ac_delim='%!_!# '
27597 for ac_last_try in false false false false false :; do
27598 . ./conf$$subs.sh ||
27599 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27600 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27601 { (exit 1); exit 1; }; }
27602
27603 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27604 break
27605 elif $ac_last_try; then
27606 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27607 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27608 { (exit 1); exit 1; }; }
27609 else
27610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27611 fi
27612 done
27613 rm -f conf$$subs.sh
27614
27615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27616 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27617 _ACEOF
27618 sed -n '
27619 h
27620 s/^/S["/; s/!.*/"]=/
27621 p
27622 g
27623 s/^[^!]*!//
27624 :repl
27625 t repl
27626 s/'"$ac_delim"'$//
27627 t delim
27628 :nl
27629 h
27630 s/\(.\{148\}\).*/\1/
27631 t more1
27632 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27633 p
27634 n
27635 b repl
27636 :more1
27637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27638 p
27639 g
27640 s/.\{148\}//
27641 t nl
27642 :delim
27643 h
27644 s/\(.\{148\}\).*/\1/
27645 t more2
27646 s/["\\]/\\&/g; s/^/"/; s/$/"/
27647 p
27648 b
27649 :more2
27650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27651 p
27652 g
27653 s/.\{148\}//
27654 t delim
27655 ' <conf$$subs.awk | sed '
27656 /^[^""]/{
27657 N
27658 s/\n//
27659 }
27660 ' >>$CONFIG_STATUS || ac_write_fail=1
27661 rm -f conf$$subs.awk
27662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27663 _ACAWK
27664 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27665 for (key in S) S_is_set[key] = 1
27666 FS = "\a"
27667 \$ac_cs_awk_pipe_init
27668 }
27669 {
27670 line = $ 0
27671 nfields = split(line, field, "@")
27672 substed = 0
27673 len = length(field[1])
27674 for (i = 2; i < nfields; i++) {
27675 key = field[i]
27676 keylen = length(key)
27677 if (S_is_set[key]) {
27678 value = S[key]
27679 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27680 len += length(value) + length(field[++i])
27681 substed = 1
27682 } else
27683 len += 1 + keylen
27684 }
27685 if (nfields == 3 && !substed) {
27686 key = field[2]
27687 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27688 \$ac_cs_awk_read_file
27689 next
27690 }
27691 }
27692 print line
27693 }
27694 \$ac_cs_awk_pipe_fini
27695 _ACAWK
27696 _ACEOF
27697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27700 else
27701 cat
27702 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27703 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27704 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27705 { (exit 1); exit 1; }; }
27706 _ACEOF
27707
27708 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27709 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27710 # trailing colons and then remove the whole line if VPATH becomes empty
27711 # (actually we leave an empty line to preserve line numbers).
27712 if test "x$srcdir" = x.; then
27713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27714 s/:*\$(srcdir):*/:/
27715 s/:*\${srcdir}:*/:/
27716 s/:*@srcdir@:*/:/
27717 s/^\([^=]*=[ ]*\):*/\1/
27718 s/:*$//
27719 s/^[^=]*=[ ]*$//
27720 }'
27721 fi
27722
27723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27724 fi # test -n "$CONFIG_FILES"
27725
27726 # Set up the scripts for CONFIG_HEADERS section.
27727 # No need to generate them if there are no CONFIG_HEADERS.
27728 # This happens for instance with `./config.status Makefile'.
27729 if test -n "$CONFIG_HEADERS"; then
27730 cat >"$tmp/defines.awk" <<\_ACAWK ||
27731 BEGIN {
27732 _ACEOF
27733
27734 # Transform confdefs.h into an awk script `defines.awk', embedded as
27735 # here-document in config.status, that substitutes the proper values into
27736 # config.h.in to produce config.h.
27737
27738 # Create a delimiter string that does not exist in confdefs.h, to ease
27739 # handling of long lines.
27740 ac_delim='%!_!# '
27741 for ac_last_try in false false :; do
27742 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27743 if test -z "$ac_t"; then
27744 break
27745 elif $ac_last_try; then
27746 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27747 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27748 { (exit 1); exit 1; }; }
27749 else
27750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27751 fi
27752 done
27753
27754 # For the awk script, D is an array of macro values keyed by name,
27755 # likewise P contains macro parameters if any. Preserve backslash
27756 # newline sequences.
27757
27758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27759 sed -n '
27760 s/.\{148\}/&'"$ac_delim"'/g
27761 t rset
27762 :rset
27763 s/^[ ]*#[ ]*define[ ][ ]*/ /
27764 t def
27765 d
27766 :def
27767 s/\\$//
27768 t bsnl
27769 s/["\\]/\\&/g
27770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27771 D["\1"]=" \3"/p
27772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27773 d
27774 :bsnl
27775 s/["\\]/\\&/g
27776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27777 D["\1"]=" \3\\\\\\n"\\/p
27778 t cont
27779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27780 t cont
27781 d
27782 :cont
27783 n
27784 s/.\{148\}/&'"$ac_delim"'/g
27785 t clear
27786 :clear
27787 s/\\$//
27788 t bsnlc
27789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27790 d
27791 :bsnlc
27792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27793 b cont
27794 ' <confdefs.h | sed '
27795 s/'"$ac_delim"'/"\\\
27796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27797
27798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27799 for (key in D) D_is_set[key] = 1
27800 FS = "\a"
27801 }
27802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27803 line = \$ 0
27804 split(line, arg, " ")
27805 if (arg[1] == "#") {
27806 defundef = arg[2]
27807 mac1 = arg[3]
27808 } else {
27809 defundef = substr(arg[1], 2)
27810 mac1 = arg[2]
27811 }
27812 split(mac1, mac2, "(") #)
27813 macro = mac2[1]
27814 if (D_is_set[macro]) {
27815 # Preserve the white space surrounding the "#".
27816 prefix = substr(line, 1, index(line, defundef) - 1)
27817 print prefix "define", macro P[macro] D[macro]
27818 next
27819 } else {
27820 # Replace #undef with comments. This is necessary, for example,
27821 # in the case of _POSIX_SOURCE, which is predefined and required
27822 # on some systems where configure will not decide to define it.
27823 if (defundef == "undef") {
27824 print "/*", line, "*/"
27825 next
27826 }
27827 }
27828 }
27829 { print }
27830 _ACAWK
27831 _ACEOF
27832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27833 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27834 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27835 { (exit 1); exit 1; }; }
27836 fi # test -n "$CONFIG_HEADERS"
27837
27838
27839 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27840 shift
27841 for ac_tag
27842 do
27843 case $ac_tag in
27844 :[FHLC]) ac_mode=$ac_tag; continue;;
27845 esac
27846 case $ac_mode$ac_tag in
27847 :[FHL]*:*);;
27848 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27849 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27850 { (exit 1); exit 1; }; };;
27851 :[FH]-) ac_tag=-:-;;
27852 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27853 esac
27854 ac_save_IFS=$IFS
27855 IFS=:
27856 set x $ac_tag
27857 IFS=$ac_save_IFS
27858 shift
27859 ac_file=$1
27860 shift
27861
27862 case $ac_mode in
27863 :L) ac_source=$1;;
27864 :[FH])
27865 ac_file_inputs=
27866 for ac_f
27867 do
27868 case $ac_f in
27869 -) ac_f="$tmp/stdin";;
27870 *) # Look for the file first in the build tree, then in the source tree
27871 # (if the path is not absolute). The absolute path cannot be DOS-style,
27872 # because $ac_f cannot contain `:'.
27873 test -f "$ac_f" ||
27874 case $ac_f in
27875 [\\/$]*) false;;
27876 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27877 esac ||
27878 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27879 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27880 { (exit 1); exit 1; }; };;
27881 esac
27882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27883 ac_file_inputs="$ac_file_inputs '$ac_f'"
27884 done
27885
27886 # Let's still pretend it is `configure' which instantiates (i.e., don't
27887 # use $as_me), people would be surprised to read:
27888 # /* config.h. Generated by config.status. */
27889 configure_input='Generated from '`
27890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27891 `' by configure.'
27892 if test x"$ac_file" != x-; then
27893 configure_input="$ac_file. $configure_input"
27894 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27895 $as_echo "$as_me: creating $ac_file" >&6;}
27896 fi
27897 # Neutralize special characters interpreted by sed in replacement strings.
27898 case $configure_input in #(
27899 *\&* | *\|* | *\\* )
27900 ac_sed_conf_input=`$as_echo "$configure_input" |
27901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27902 *) ac_sed_conf_input=$configure_input;;
27903 esac
27904
27905 case $ac_tag in
27906 *:-:* | *:-) cat >"$tmp/stdin" \
27907 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27908 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27909 { (exit 1); exit 1; }; } ;;
27910 esac
27911 ;;
27912 esac
27913
27914 ac_dir=`$as_dirname -- "$ac_file" ||
27915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27916 X"$ac_file" : 'X\(//\)[^/]' \| \
27917 X"$ac_file" : 'X\(//\)$' \| \
27918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27919 $as_echo X"$ac_file" |
27920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27921 s//\1/
27922 q
27923 }
27924 /^X\(\/\/\)[^/].*/{
27925 s//\1/
27926 q
27927 }
27928 /^X\(\/\/\)$/{
27929 s//\1/
27930 q
27931 }
27932 /^X\(\/\).*/{
27933 s//\1/
27934 q
27935 }
27936 s/.*/./; q'`
27937 { as_dir="$ac_dir"
27938 case $as_dir in #(
27939 -*) as_dir=./$as_dir;;
27940 esac
27941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27942 as_dirs=
27943 while :; do
27944 case $as_dir in #(
27945 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27946 *) as_qdir=$as_dir;;
27947 esac
27948 as_dirs="'$as_qdir' $as_dirs"
27949 as_dir=`$as_dirname -- "$as_dir" ||
27950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27951 X"$as_dir" : 'X\(//\)[^/]' \| \
27952 X"$as_dir" : 'X\(//\)$' \| \
27953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27954 $as_echo X"$as_dir" |
27955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27956 s//\1/
27957 q
27958 }
27959 /^X\(\/\/\)[^/].*/{
27960 s//\1/
27961 q
27962 }
27963 /^X\(\/\/\)$/{
27964 s//\1/
27965 q
27966 }
27967 /^X\(\/\).*/{
27968 s//\1/
27969 q
27970 }
27971 s/.*/./; q'`
27972 test -d "$as_dir" && break
27973 done
27974 test -z "$as_dirs" || eval "mkdir $as_dirs"
27975 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27976 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27977 { (exit 1); exit 1; }; }; }
27978 ac_builddir=.
27979
27980 case "$ac_dir" in
27981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27982 *)
27983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27984 # A ".." for each directory in $ac_dir_suffix.
27985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27986 case $ac_top_builddir_sub in
27987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27989 esac ;;
27990 esac
27991 ac_abs_top_builddir=$ac_pwd
27992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27993 # for backward compatibility:
27994 ac_top_builddir=$ac_top_build_prefix
27995
27996 case $srcdir in
27997 .) # We are building in place.
27998 ac_srcdir=.
27999 ac_top_srcdir=$ac_top_builddir_sub
28000 ac_abs_top_srcdir=$ac_pwd ;;
28001 [\\/]* | ?:[\\/]* ) # Absolute name.
28002 ac_srcdir=$srcdir$ac_dir_suffix;
28003 ac_top_srcdir=$srcdir
28004 ac_abs_top_srcdir=$srcdir ;;
28005 *) # Relative name.
28006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28007 ac_top_srcdir=$ac_top_build_prefix$srcdir
28008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28009 esac
28010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28011
28012
28013 case $ac_mode in
28014 :F)
28015 #
28016 # CONFIG_FILE
28017 #
28018
28019 case $INSTALL in
28020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28022 esac
28023 _ACEOF
28024
28025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28026 # If the template does not know about datarootdir, expand it.
28027 # FIXME: This hack should be removed a few years after 2.60.
28028 ac_datarootdir_hack=; ac_datarootdir_seen=
28029
28030 ac_sed_dataroot='
28031 /datarootdir/ {
28032 p
28033 q
28034 }
28035 /@datadir@/p
28036 /@docdir@/p
28037 /@infodir@/p
28038 /@localedir@/p
28039 /@mandir@/p
28040 '
28041 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28042 *datarootdir*) ac_datarootdir_seen=yes;;
28043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28044 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28045 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28046 _ACEOF
28047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28048 ac_datarootdir_hack='
28049 s&@datadir@&$datadir&g
28050 s&@docdir@&$docdir&g
28051 s&@infodir@&$infodir&g
28052 s&@localedir@&$localedir&g
28053 s&@mandir@&$mandir&g
28054 s&\\\${datarootdir}&$datarootdir&g' ;;
28055 esac
28056 _ACEOF
28057
28058 # Neutralize VPATH when `$srcdir' = `.'.
28059 # Shell code in configure.ac might set extrasub.
28060 # FIXME: do we really want to maintain this feature?
28061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28062 ac_sed_extra="$ac_vpsub
28063 $extrasub
28064 _ACEOF
28065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28066 :t
28067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28068 s|@configure_input@|$ac_sed_conf_input|;t t
28069 s&@top_builddir@&$ac_top_builddir_sub&;t t
28070 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28071 s&@srcdir@&$ac_srcdir&;t t
28072 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28073 s&@top_srcdir@&$ac_top_srcdir&;t t
28074 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28075 s&@builddir@&$ac_builddir&;t t
28076 s&@abs_builddir@&$ac_abs_builddir&;t t
28077 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28078 s&@INSTALL@&$ac_INSTALL&;t t
28079 $ac_datarootdir_hack
28080 "
28081 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28082 if $ac_cs_awk_getline; then
28083 $AWK -f "$tmp/subs.awk"
28084 else
28085 $AWK -f "$tmp/subs.awk" | $SHELL
28086 fi >$tmp/out \
28087 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28088 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28089 { (exit 1); exit 1; }; }
28090
28091 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28092 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28093 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28094 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28095 which seems to be undefined. Please make sure it is defined." >&5
28096 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28097 which seems to be undefined. Please make sure it is defined." >&2;}
28098
28099 rm -f "$tmp/stdin"
28100 case $ac_file in
28101 -) cat "$tmp/out" && rm -f "$tmp/out";;
28102 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28103 esac \
28104 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28105 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28106 { (exit 1); exit 1; }; }
28107 ;;
28108 :H)
28109 #
28110 # CONFIG_HEADER
28111 #
28112 if test x"$ac_file" != x-; then
28113 {
28114 $as_echo "/* $configure_input */" \
28115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28116 } >"$tmp/config.h" \
28117 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28118 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28119 { (exit 1); exit 1; }; }
28120 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28121 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28123 else
28124 rm -f "$ac_file"
28125 mv "$tmp/config.h" "$ac_file" \
28126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28128 { (exit 1); exit 1; }; }
28129 fi
28130 else
28131 $as_echo "/* $configure_input */" \
28132 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28133 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28134 $as_echo "$as_me: error: could not create -" >&2;}
28135 { (exit 1); exit 1; }; }
28136 fi
28137 ;;
28138
28139 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28140 $as_echo "$as_me: executing $ac_file commands" >&6;}
28141 ;;
28142 esac
28143
28144
28145 case $ac_file$ac_mode in
28146 "default":C)
28147
28148 ### Make the necessary directories, if they don't exist.
28149 for dir in etc lisp ; do
28150 test -d ${dir} || mkdir ${dir}
28151 done
28152
28153 # Build src/Makefile from ${srcdir}/src/Makefile.c
28154 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28155 # This must be done after src/config.h is built, since we rely on that file.
28156
28157 echo creating src/epaths.h
28158 ${MAKE-make} epaths-force
28159
28160 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28161 # `..' to `. .' unless invoked with -traditional
28162
28163 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28164 CPPFLAGS="$CPPFLAGS -traditional"
28165 fi
28166
28167 echo creating src/Makefile
28168 ( cd src
28169 rm -f junk.c junk1.c junk2.c
28170 sed -e '/start of cpp stuff/q' \
28171 < Makefile.c > junk1.c
28172 sed -e '1,/start of cpp stuff/d'\
28173 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28174 < Makefile.c > junk.c
28175 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28176 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28177 cat junk1.c junk2.c > Makefile.new
28178 rm -f junk.c junk1.c junk2.c
28179 chmod 444 Makefile.new
28180 mv -f Makefile.new Makefile
28181 )
28182
28183 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28184 echo creating src/.gdbinit
28185 echo source $srcdir/src/.gdbinit > src/.gdbinit
28186 fi
28187
28188 ;;
28189
28190 esac
28191 done # for ac_tag
28192
28193
28194 { (exit 0); exit 0; }
28195 _ACEOF
28196 chmod +x $CONFIG_STATUS
28197 ac_clean_files=$ac_clean_files_save
28198
28199 test $ac_write_fail = 0 ||
28200 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28201 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28202 { (exit 1); exit 1; }; }
28203
28204
28205 # configure is writing to config.log, and then calls config.status.
28206 # config.status does its own redirection, appending to config.log.
28207 # Unfortunately, on DOS this fails, as config.log is still kept open
28208 # by configure, so config.status won't be able to write to it; its
28209 # output is simply discarded. So we exec the FD to /dev/null,
28210 # effectively closing config.log, so it can be properly (re)opened and
28211 # appended to by config.status. When coming back to configure, we
28212 # need to make the FD available again.
28213 if test "$no_create" != yes; then
28214 ac_cs_success=:
28215 ac_config_status_args=
28216 test "$silent" = yes &&
28217 ac_config_status_args="$ac_config_status_args --quiet"
28218 exec 5>/dev/null
28219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28220 exec 5>>config.log
28221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28222 # would make configure fail if this is the last instruction.
28223 $ac_cs_success || { (exit 1); exit 1; }
28224 fi
28225 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28226 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28227 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
28228 fi
28229
28230