Simplify temacs build rule.
[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 LD_SWITCH_SYSTEM
705 C_SWITCH_MACHINE
706 C_SWITCH_SYSTEM
707 LIBS_SYSTEM
708 CRT_DIR
709 LIB_MATH
710 START_FILES
711 LIBSOUND
712 PKG_CONFIG
713 ALSA_CFLAGS
714 ALSA_LIBS
715 CFLAGS_SOUND
716 SET_MAKE
717 XMKMF
718 LD_SWITCH_X_SITE_AUX
719 LD_SWITCH_X_SITE_AUX_RPATH
720 NS_IMPL_GNUSTEP_INC
721 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
722 TEMACS_LDFLAGS2
723 NS_OBJ
724 NS_SUPPORT
725 LIB_STANDARD
726 HAVE_XSERVER
727 RSVG_CFLAGS
728 RSVG_LIBS
729 GTK_CFLAGS
730 GTK_LIBS
731 GTK_OBJ
732 DBUS_CFLAGS
733 DBUS_LIBS
734 DBUS_OBJ
735 GCONF_CFLAGS
736 GCONF_LIBS
737 LIBSELINUX_LIBS
738 LIBXTR6
739 LIBXMU
740 FONTCONFIG_CFLAGS
741 FONTCONFIG_LIBS
742 XFT_CFLAGS
743 XFT_LIBS
744 LIBOTF_CFLAGS
745 LIBOTF_LIBS
746 M17N_FLT_CFLAGS
747 M17N_FLT_LIBS
748 FREETYPE_CFLAGS
749 FREETYPE_LIBS
750 LIBXPM
751 LIBJPEG
752 LIBPNG
753 LIBTIFF
754 LIBGIF
755 LIBGPM
756 LIBXSM
757 ALLOCA
758 liblockfile
759 LIBS_MAIL
760 BLESSMAIL_TARGET
761 LIBOBJS
762 NEED_SETGID
763 KMEM_GROUP
764 GETLOADAVG_LIBS
765 GETOPT_H
766 GETOPTOBJS
767 LIBS_TERMCAP
768 TERMCAP_OBJ
769 LIBHESIOD
770 LIBRESOLV
771 COM_ERRLIB
772 CRYPTOLIB
773 KRB5LIB
774 DESLIB
775 KRB4LIB
776 version
777 configuration
778 canonical
779 srcdir
780 lispdir
781 locallisppath
782 lisppath
783 x_default_search_path
784 etcdir
785 archlibdir
786 bitmapdir
787 gamedir
788 gameuser
789 unexec
790 LD_SWITCH_X_SITE
791 C_SWITCH_X_SITE
792 C_SWITCH_X_SYSTEM
793 X_TOOLKIT_TYPE
794 machfile
795 opsysfile
796 ns_appdir
797 ns_appbindir
798 ns_appresdir
799 ns_appsrc
800 GNU_OBJC_CFLAGS
801 OTHER_FILES
802 FONT_OBJ
803 XMENU_OBJ
804 XOBJ
805 WIDGET_OBJ
806 TOOLKIT_LIBW
807 LIBXT_OTHER
808 OLDXMENU_TARGET
809 OLDXMENU
810 LIBXMENU
811 LIBX_OTHER
812 CYGWIN_OBJ
813 PRE_ALLOC_OBJ
814 POST_ALLOC_OBJ
815 LD_SWITCH_SYSTEM_TEMACS
816 LD_SWITCH_SYSTEM_EXTRA
817 LIB_GCC
818 MOUSE_SUPPORT
819 TOOLTIP_SUPPORT
820 WINDOW_SUPPORT
821 LTLIBOBJS'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 with_pop
826 with_kerberos
827 with_kerberos5
828 with_hesiod
829 with_mmdf
830 with_mail_unlink
831 with_mailhost
832 with_sound
833 with_sync_input
834 with_x_toolkit
835 with_xpm
836 with_jpeg
837 with_tiff
838 with_gif
839 with_png
840 with_rsvg
841 with_xft
842 with_libotf
843 with_m17n_flt
844 with_toolkit_scroll_bars
845 with_xaw3d
846 with_xim
847 with_ns
848 with_gpm
849 with_dbus
850 with_gconf
851 with_selinux
852 with_makeinfo
853 with_gtk
854 with_gcc
855 with_pkg_config_prog
856 with_crt_dir
857 with_gnustep_conf
858 enable_ns_self_contained
859 enable_asserts
860 enable_maintainer_mode
861 enable_locallisppath
862 enable_checking
863 enable_profiling
864 enable_autodepend
865 enable_largefile
866 with_x
867 '
868 ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 XMKMF'
878
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
901
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
927
928 ac_prev=
929 ac_dashdash=
930 for ac_option
931 do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1265
1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1269 ;;
1270
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1279
1280 *)
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 ;;
1287
1288 esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1295 fi
1296
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1311 do
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1343 fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\).*/{
1385 s//\1/
1386 q
1387 }
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1392 fi
1393 else
1394 ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1409 fi
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1422
1423 #
1424 # Report the --help message.
1425 #
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1431
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1433
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1436
1437 Defaults for the options are specified in brackets.
1438
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1455
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1460
1461 For better control, use the options below.
1462
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1484
1485 cat <<\_ACEOF
1486
1487 Program names:
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491
1492 X features:
1493 --x-includes=DIR X include files are in DIR
1494 --x-libraries=DIR X library files are in DIR
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --disable-ns-self-contained
1513 disable self contained build under NeXTstep
1514 --enable-asserts compile code with asserts enabled
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
1518 --enable-locallisppath=PATH
1519 directories Emacs should search for lisp files
1520 specific to this site
1521 --enable-checking[=LIST]
1522 enable expensive run-time checks. With LIST, enable
1523 only specific categories of checks. Categories are:
1524 all,yes,no. Flags are: stringbytes, stringoverrun,
1525 stringfreelist, xmallocoverrun, conslist
1526 --enable-profiling build emacs with profiling support. This might not
1527 work on all platforms
1528 --enable-autodepend automatically generate dependencies to .h-files.
1529 Requires GNU Make and Gcc. Enabled if GNU Make and
1530 Gcc is found
1531 --disable-largefile omit support for large files
1532
1533 Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --without-pop don't support POP mail retrieval with movemail
1537 --with-kerberos support Kerberos-authenticated POP
1538 --with-kerberos5 support Kerberos version 5 authenticated POP
1539 --with-hesiod support Hesiod to get the POP server host
1540 --with-mmdf support MMDF mailboxes
1541 --with-mail-unlink unlink, rather than empty, mail spool after reading
1542 --with-mailhost=HOSTNAME
1543 string giving default POP mail host
1544 --without-sound don't compile with sound support
1545 --without-sync-input process async input synchronously
1546 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1547 athena, motif, no)
1548 --without-xpm don't compile with XPM image support
1549 --without-jpeg don't compile with JPEG image support
1550 --without-tiff don't compile with TIFF image support
1551 --without-gif don't compile with GIF image support
1552 --without-png don't compile with PNG image support
1553 --without-rsvg don't compile with SVG image support
1554 --without-xft don't use XFT for anti aliased fonts
1555 --without-libotf don't use libotf for OpenType font support
1556 --without-m17n-flt don't use m17n-flt for text shaping
1557 --without-toolkit-scroll-bars
1558 don't use Motif or Xaw3d scroll bars
1559 --without-xaw3d don't use Xaw3d
1560 --without-xim don't use X11 XIM
1561 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1562 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1563 console
1564 --without-dbus don't compile with D-Bus support
1565 --without-gconf don't compile with GConf support
1566 --without-selinux don't compile with SELinux support
1567 --without-makeinfo don't require makeinfo for building manuals
1568
1569 --with-pkg-config-prog=PATH
1570 path to pkg-config for finding GTK and librsvg
1571 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1572 /usr/lib, or /usr/lib64 on some platforms.
1573 --with-gnustep-conf=PATH
1574 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1575 or /etc/GNUstep/GNUstep.conf
1576 --with-x use the X Window System
1577
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1586 CPP C preprocessor
1587 XMKMF Path to xmkmf, Makefile generator for X Window System
1588
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1591
1592 _ACEOF
1593 ac_status=$?
1594 fi
1595
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 emacs configure 24.0.50
1655 generated by GNU Autoconf 2.62
1656
1657 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1663 fi
1664 cat >config.log <<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1667
1668 It was created by emacs $as_me 24.0.50, which was
1669 generated by GNU Autoconf 2.62. Invocation command line was
1670
1671 $ $0 $@
1672
1673 _ACEOF
1674 exec 5>>config.log
1675 {
1676 cat <<_ASUNAME
1677 ## --------- ##
1678 ## Platform. ##
1679 ## --------- ##
1680
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1697
1698 _ASUNAME
1699
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 $as_echo "PATH: $as_dir"
1706 done
1707 IFS=$as_save_IFS
1708
1709 } >&5
1710
1711 cat >&5 <<_ACEOF
1712
1713
1714 ## ----------- ##
1715 ## Core tests. ##
1716 ## ----------- ##
1717
1718 _ACEOF
1719
1720
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_configure_args=
1727 ac_configure_args0=
1728 ac_configure_args1=
1729 ac_must_keep_next=false
1730 for ac_pass in 1 2
1731 do
1732 for ac_arg
1733 do
1734 case $ac_arg in
1735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1737 | -silent | --silent | --silen | --sile | --sil)
1738 continue ;;
1739 *\'*)
1740 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 esac
1742 case $ac_pass in
1743 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1744 2)
1745 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true; then
1747 ac_must_keep_next=false # Got value, back to normal.
1748 else
1749 case $ac_arg in
1750 *=* | --config-cache | -C | -disable-* | --disable-* \
1751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1753 | -with-* | --with-* | -without-* | --without-* | --x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1756 esac
1757 ;;
1758 -* ) ac_must_keep_next=true ;;
1759 esac
1760 fi
1761 ac_configure_args="$ac_configure_args '$ac_arg'"
1762 ;;
1763 esac
1764 done
1765 done
1766 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1767 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1768
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1776 {
1777 echo
1778
1779 cat <<\_ASBOX
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1783 _ASBOX
1784 echo
1785 # The following way of writing the cache mishandles newlines in values,
1786 (
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in #(
1790 *${as_nl}*)
1791 case $ac_var in #(
1792 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1794 esac
1795 case $ac_var in #(
1796 _ | IFS | as_nl) ;; #(
1797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1798 *) $as_unset $ac_var ;;
1799 esac ;;
1800 esac
1801 done
1802 (set) 2>&1 |
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1805 sed -n \
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1808 ;; #(
1809 *)
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1811 ;;
1812 esac |
1813 sort
1814 )
1815 echo
1816
1817 cat <<\_ASBOX
1818 ## ----------------- ##
1819 ## Output variables. ##
1820 ## ----------------- ##
1821 _ASBOX
1822 echo
1823 for ac_var in $ac_subst_vars
1824 do
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 $as_echo "$ac_var='\''$ac_val'\''"
1830 done | sort
1831 echo
1832
1833 if test -n "$ac_subst_files"; then
1834 cat <<\_ASBOX
1835 ## ------------------- ##
1836 ## File substitutions. ##
1837 ## ------------------- ##
1838 _ASBOX
1839 echo
1840 for ac_var in $ac_subst_files
1841 do
1842 eval ac_val=\$$ac_var
1843 case $ac_val in
1844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 esac
1846 $as_echo "$ac_var='\''$ac_val'\''"
1847 done | sort
1848 echo
1849 fi
1850
1851 if test -s confdefs.h; then
1852 cat <<\_ASBOX
1853 ## ----------- ##
1854 ## confdefs.h. ##
1855 ## ----------- ##
1856 _ASBOX
1857 echo
1858 cat confdefs.h
1859 echo
1860 fi
1861 test "$ac_signal" != 0 &&
1862 $as_echo "$as_me: caught signal $ac_signal"
1863 $as_echo "$as_me: exit $exit_status"
1864 } >&5
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1867 exit $exit_status
1868 ' 0
1869 for ac_signal in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 done
1872 ac_signal=0
1873
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest* confdefs.h
1876
1877 # Predefined preprocessor variables.
1878
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 _ACEOF
1882
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 _ACEOF
1902
1903
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer an explicitly selected file to automatically selected ones.
1906 ac_site_file1=NONE
1907 ac_site_file2=NONE
1908 if test -n "$CONFIG_SITE"; then
1909 ac_site_file1=$CONFIG_SITE
1910 elif test "x$prefix" != xNONE; then
1911 ac_site_file1=$prefix/share/config.site
1912 ac_site_file2=$prefix/etc/config.site
1913 else
1914 ac_site_file1=$ac_default_prefix/share/config.site
1915 ac_site_file2=$ac_default_prefix/etc/config.site
1916 fi
1917 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1918 do
1919 test "x$ac_site_file" = xNONE && continue
1920 if test -r "$ac_site_file"; then
1921 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1923 sed 's/^/| /' "$ac_site_file" >&5
1924 . "$ac_site_file"
1925 fi
1926 done
1927
1928 if test -r "$cache_file"; then
1929 # Some versions of bash will fail to source /dev/null (special
1930 # files actually), so we avoid doing that.
1931 if test -f "$cache_file"; then
1932 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 $as_echo "$as_me: loading cache $cache_file" >&6;}
1934 case $cache_file in
1935 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936 *) . "./$cache_file";;
1937 esac
1938 fi
1939 else
1940 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 $as_echo "$as_me: creating cache $cache_file" >&6;}
1942 >$cache_file
1943 fi
1944
1945 ac_header_list="$ac_header_list sys/time.h"
1946 ac_header_list="$ac_header_list unistd.h"
1947 ac_func_list="$ac_func_list alarm"
1948 # Check that the precious variables saved in the cache have kept the same
1949 # value.
1950 ac_cache_corrupted=false
1951 for ac_var in $ac_precious_vars; do
1952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
1954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1966 *)
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 # differences in whitespace do not lead to failure.
1969 ac_old_val_w=`echo x $ac_old_val`
1970 ac_new_val_w=`echo x $ac_new_val`
1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 ac_cache_corrupted=:
1975 else
1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978 eval $ac_var=\$ac_old_val
1979 fi
1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1981 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1983 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
1989 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1996 fi
1997 done
1998 if $ac_cache_corrupted; then
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030 ac_ext=c
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2038
2039
2040
2041 test "$program_prefix" != NONE &&
2042 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2043 # Use a double $ so make ignores it.
2044 test "$program_suffix" != NONE &&
2045 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2046 # Double any \ or $.
2047 # By default was `s,x,x', remove it if useless.
2048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2050
2051
2052 lispdir='${datadir}/emacs/${version}/lisp'
2053 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2054 '${datadir}/emacs/site-lisp'
2055 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2056 etcdir='${datadir}/emacs/${version}/etc'
2057 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2058 docdir='${datadir}/emacs/${version}/etc'
2059 gamedir='${localstatedir}/games/emacs'
2060
2061 gameuser=games
2062
2063
2064
2065
2066 # Check whether --with-pop was given.
2067 if test "${with_pop+set}" = set; then
2068 withval=$with_pop;
2069 else
2070 with_pop=yes
2071 fi
2072
2073 if test "$with_pop" = yes; then
2074 cat >>confdefs.h <<\_ACEOF
2075 #define MAIL_USE_POP 1
2076 _ACEOF
2077
2078 fi
2079
2080
2081
2082 # Check whether --with-kerberos was given.
2083 if test "${with_kerberos+set}" = set; then
2084 withval=$with_kerberos;
2085 else
2086 with_kerberos=no
2087 fi
2088
2089 if test "$with_kerberos" != no; then
2090 cat >>confdefs.h <<\_ACEOF
2091 #define KERBEROS 1
2092 _ACEOF
2093
2094 fi
2095
2096
2097
2098 # Check whether --with-kerberos5 was given.
2099 if test "${with_kerberos5+set}" = set; then
2100 withval=$with_kerberos5;
2101 else
2102 with_kerberos5=no
2103 fi
2104
2105 if test "${with_kerberos5}" != no; then
2106 if test "${with_kerberos}" = no; then
2107 with_kerberos=yes
2108 cat >>confdefs.h <<\_ACEOF
2109 #define KERBEROS 1
2110 _ACEOF
2111
2112 fi
2113
2114 cat >>confdefs.h <<\_ACEOF
2115 #define KERBEROS5 1
2116 _ACEOF
2117
2118 fi
2119
2120
2121 # Check whether --with-hesiod was given.
2122 if test "${with_hesiod+set}" = set; then
2123 withval=$with_hesiod;
2124 else
2125 with_hesiod=no
2126 fi
2127
2128 if test "$with_hesiod" != no; then
2129
2130 cat >>confdefs.h <<\_ACEOF
2131 #define HESIOD 1
2132 _ACEOF
2133
2134 fi
2135
2136
2137 # Check whether --with-mmdf was given.
2138 if test "${with_mmdf+set}" = set; then
2139 withval=$with_mmdf;
2140 else
2141 with_mmdf=no
2142 fi
2143
2144 if test "$with_mmdf" != no; then
2145
2146 cat >>confdefs.h <<\_ACEOF
2147 #define MAIL_USE_MMDF 1
2148 _ACEOF
2149
2150 fi
2151
2152
2153 # Check whether --with-mail-unlink was given.
2154 if test "${with_mail_unlink+set}" = set; then
2155 withval=$with_mail_unlink;
2156 else
2157 with_mail_unlink=no
2158 fi
2159
2160 if test "$with_mail_unlink" != no; then
2161
2162 cat >>confdefs.h <<\_ACEOF
2163 #define MAIL_UNLINK_SPOOL 1
2164 _ACEOF
2165
2166 fi
2167
2168
2169 # Check whether --with-mailhost was given.
2170 if test "${with_mailhost+set}" = set; then
2171 withval=$with_mailhost;
2172 cat >>confdefs.h <<_ACEOF
2173 #define MAILHOST "$withval"
2174 _ACEOF
2175
2176 fi
2177
2178
2179
2180 # Check whether --with-sound was given.
2181 if test "${with_sound+set}" = set; then
2182 withval=$with_sound;
2183 else
2184 with_sound=yes
2185 fi
2186
2187
2188
2189 # Check whether --with-sync-input was given.
2190 if test "${with_sync_input+set}" = set; then
2191 withval=$with_sync_input;
2192 else
2193 with_sync_input=yes
2194 fi
2195
2196 if test "$with_sync_input" = yes; then
2197
2198 cat >>confdefs.h <<\_ACEOF
2199 #define SYNC_INPUT 1
2200 _ACEOF
2201
2202 fi
2203
2204
2205 # Check whether --with-x-toolkit was given.
2206 if test "${with_x_toolkit+set}" = set; then
2207 withval=$with_x_toolkit; case "${withval}" in
2208 y | ye | yes ) val=gtk ;;
2209 n | no ) val=no ;;
2210 l | lu | luc | luci | lucid ) val=lucid ;;
2211 a | at | ath | athe | athen | athena ) val=athena ;;
2212 m | mo | mot | moti | motif ) val=motif ;;
2213 g | gt | gtk ) val=gtk ;;
2214 * )
2215 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2216 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2217 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2218 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2219 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2221 { (exit 1); exit 1; }; }
2222 ;;
2223 esac
2224 with_x_toolkit=$val
2225
2226 fi
2227
2228
2229
2230 # Check whether --with-xpm was given.
2231 if test "${with_xpm+set}" = set; then
2232 withval=$with_xpm;
2233 else
2234 with_xpm=yes
2235 fi
2236
2237
2238 # Check whether --with-jpeg was given.
2239 if test "${with_jpeg+set}" = set; then
2240 withval=$with_jpeg;
2241 else
2242 with_jpeg=yes
2243 fi
2244
2245
2246 # Check whether --with-tiff was given.
2247 if test "${with_tiff+set}" = set; then
2248 withval=$with_tiff;
2249 else
2250 with_tiff=yes
2251 fi
2252
2253
2254 # Check whether --with-gif was given.
2255 if test "${with_gif+set}" = set; then
2256 withval=$with_gif;
2257 else
2258 with_gif=yes
2259 fi
2260
2261
2262 # Check whether --with-png was given.
2263 if test "${with_png+set}" = set; then
2264 withval=$with_png;
2265 else
2266 with_png=yes
2267 fi
2268
2269
2270 # Check whether --with-rsvg was given.
2271 if test "${with_rsvg+set}" = set; then
2272 withval=$with_rsvg;
2273 else
2274 with_rsvg=yes
2275 fi
2276
2277
2278
2279 # Check whether --with-xft was given.
2280 if test "${with_xft+set}" = set; then
2281 withval=$with_xft;
2282 else
2283 with_xft=yes
2284 fi
2285
2286
2287 # Check whether --with-libotf was given.
2288 if test "${with_libotf+set}" = set; then
2289 withval=$with_libotf;
2290 else
2291 with_libotf=yes
2292 fi
2293
2294
2295 # Check whether --with-m17n-flt was given.
2296 if test "${with_m17n_flt+set}" = set; then
2297 withval=$with_m17n_flt;
2298 else
2299 with_m17n_flt=yes
2300 fi
2301
2302
2303
2304 # Check whether --with-toolkit-scroll-bars was given.
2305 if test "${with_toolkit_scroll_bars+set}" = set; then
2306 withval=$with_toolkit_scroll_bars;
2307 else
2308 with_toolkit_scroll_bars=yes
2309 fi
2310
2311
2312 # Check whether --with-xaw3d was given.
2313 if test "${with_xaw3d+set}" = set; then
2314 withval=$with_xaw3d;
2315 else
2316 with_xaw3d=yes
2317 fi
2318
2319
2320 # Check whether --with-xim was given.
2321 if test "${with_xim+set}" = set; then
2322 withval=$with_xim;
2323 else
2324 with_xim=yes
2325 fi
2326
2327
2328 # Check whether --with-ns was given.
2329 if test "${with_ns+set}" = set; then
2330 withval=$with_ns;
2331 else
2332 with_ns=no
2333 fi
2334
2335
2336
2337 # Check whether --with-gpm was given.
2338 if test "${with_gpm+set}" = set; then
2339 withval=$with_gpm;
2340 else
2341 with_gpm=yes
2342 fi
2343
2344
2345 # Check whether --with-dbus was given.
2346 if test "${with_dbus+set}" = set; then
2347 withval=$with_dbus;
2348 else
2349 with_dbus=yes
2350 fi
2351
2352
2353 # Check whether --with-gconf was given.
2354 if test "${with_gconf+set}" = set; then
2355 withval=$with_gconf;
2356 else
2357 with_gconf=yes
2358 fi
2359
2360
2361 # Check whether --with-selinux was given.
2362 if test "${with_selinux+set}" = set; then
2363 withval=$with_selinux;
2364 else
2365 with_selinux=yes
2366 fi
2367
2368
2369 ## For the times when you want to build Emacs but don't have
2370 ## a suitable makeinfo, and can live without the manuals.
2371
2372 # Check whether --with-makeinfo was given.
2373 if test "${with_makeinfo+set}" = set; then
2374 withval=$with_makeinfo;
2375 else
2376 with_makeinfo=yes
2377 fi
2378
2379
2380
2381 # Check whether --with-gtk was given.
2382 if test "${with_gtk+set}" = set; then
2383 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2384 specify a toolkit." >&5
2385 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2386 specify a toolkit." >&2;}
2387 { (exit 1); exit 1; }; }
2388 fi
2389
2390
2391
2392 # Check whether --with-gcc was given.
2393 if test "${with_gcc+set}" = set; then
2394 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2395 variable to specify a compiler." >&5
2396 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2397 variable to specify a compiler." >&2;}
2398 { (exit 1); exit 1; }; }
2399 fi
2400
2401
2402
2403 # Check whether --with-pkg-config-prog was given.
2404 if test "${with_pkg_config_prog+set}" = set; then
2405 withval=$with_pkg_config_prog;
2406 fi
2407
2408 if test "X${with_pkg_config_prog}" != X; then
2409 if test "${with_pkg_config_prog}" != yes; then
2410 PKG_CONFIG="${with_pkg_config_prog}"
2411 fi
2412 fi
2413
2414 CRT_DIR=
2415
2416 # Check whether --with-crt-dir was given.
2417 if test "${with_crt_dir+set}" = set; then
2418 withval=$with_crt_dir;
2419 fi
2420
2421 CRT_DIR="${with_crt_dir}"
2422
2423
2424 # Check whether --with-gnustep-conf was given.
2425 if test "${with_gnustep_conf+set}" = set; then
2426 withval=$with_gnustep_conf;
2427 fi
2428
2429 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2430 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2431 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2432 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2433
2434 # Check whether --enable-ns-self-contained was given.
2435 if test "${enable_ns_self_contained+set}" = set; then
2436 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2437 else
2438 EN_NS_SELF_CONTAINED=yes
2439 fi
2440
2441
2442 # Check whether --enable-asserts was given.
2443 if test "${enable_asserts+set}" = set; then
2444 enableval=$enable_asserts; USE_XASSERTS=$enableval
2445 else
2446 USE_XASSERTS=no
2447 fi
2448
2449
2450 # Check whether --enable-maintainer-mode was given.
2451 if test "${enable_maintainer_mode+set}" = set; then
2452 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2453 else
2454 USE_MAINTAINER_MODE=no
2455 fi
2456
2457 if test $USE_MAINTAINER_MODE = yes; then
2458 MAINT=
2459 else
2460 MAINT=#
2461 fi
2462
2463
2464 # Check whether --enable-locallisppath was given.
2465 if test "${enable_locallisppath+set}" = set; then
2466 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2467 locallisppath=
2468 elif test "${enableval}" != "yes"; then
2469 locallisppath=${enableval}
2470 fi
2471 fi
2472
2473
2474 # Check whether --enable-checking was given.
2475 if test "${enable_checking+set}" = set; then
2476 enableval=$enable_checking; ac_checking_flags="${enableval}"
2477 fi
2478
2479 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2480 for check in $ac_checking_flags
2481 do
2482 case $check in
2483 # these set all the flags to specific states
2484 yes) ac_enable_checking=1 ;;
2485 no) ac_enable_checking= ;
2486 ac_gc_check_stringbytes= ;
2487 ac_gc_check_string_overrun= ;
2488 ac_gc_check_string_free_list= ;
2489 ac_xmalloc_overrun= ;
2490 ac_gc_check_cons_list= ;;
2491 all) ac_enable_checking=1 ;
2492 ac_gc_check_stringbytes=1 ;
2493 ac_gc_check_string_overrun=1 ;
2494 ac_gc_check_string_free_list=1 ;
2495 ac_xmalloc_overrun=1 ;
2496 ac_gc_check_cons_list=1 ;;
2497 # these enable particular checks
2498 stringbytes) ac_gc_check_stringbytes=1 ;;
2499 stringoverrun) ac_gc_check_string_overrun=1 ;;
2500 stringfreelist) ac_gc_check_string_free_list=1 ;;
2501 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2502 conslist) ac_gc_check_cons_list=1 ;;
2503 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2504 $as_echo "$as_me: error: unknown check category $check" >&2;}
2505 { (exit 1); exit 1; }; } ;;
2506 esac
2507 done
2508 IFS="$ac_save_IFS"
2509
2510 if test x$ac_enable_checking != x ; then
2511
2512 cat >>confdefs.h <<\_ACEOF
2513 #define ENABLE_CHECKING 1
2514 _ACEOF
2515
2516 fi
2517 if test x$ac_gc_check_stringbytes != x ; then
2518
2519 cat >>confdefs.h <<\_ACEOF
2520 #define GC_CHECK_STRING_BYTES 1
2521 _ACEOF
2522
2523 fi
2524 if test x$ac_gc_check_stringoverrun != x ; then
2525
2526 cat >>confdefs.h <<\_ACEOF
2527 #define GC_CHECK_STRING_OVERRUN 1
2528 _ACEOF
2529
2530 fi
2531 if test x$ac_gc_check_string_free_list != x ; then
2532
2533 cat >>confdefs.h <<\_ACEOF
2534 #define GC_CHECK_STRING_FREE_LIST 1
2535 _ACEOF
2536
2537 fi
2538 if test x$ac_xmalloc_overrun != x ; then
2539
2540 cat >>confdefs.h <<\_ACEOF
2541 #define XMALLOC_OVERRUN_CHECK 1
2542 _ACEOF
2543
2544 fi
2545 if test x$ac_gc_check_cons_list != x ; then
2546
2547 cat >>confdefs.h <<\_ACEOF
2548 #define GC_CHECK_CONS_LIST 1
2549 _ACEOF
2550
2551 fi
2552
2553 # Check whether --enable-profiling was given.
2554 if test "${enable_profiling+set}" = set; then
2555 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2556 fi
2557
2558 if test x$ac_enable_profiling != x ; then
2559 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2560 PROFILING_LDFLAGS="-pg"
2561 else
2562 PROFILING_CFLAGS=
2563 PROFILING_LDFLAGS=
2564 fi
2565
2566 # Check whether --enable-autodepend was given.
2567 if test "${enable_autodepend+set}" = set; then
2568 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2569 else
2570 ac_enable_autodepend=yes
2571 fi
2572
2573
2574 #### Make srcdir absolute, if it isn't already. It's important to
2575 #### avoid running the path through pwd unnecessarily, since pwd can
2576 #### give you automounter prefixes, which can go away. We do all this
2577 #### so Emacs can find its files when run uninstalled.
2578 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2579 unset CDPATH
2580 case "${srcdir}" in
2581 /* ) ;;
2582 . )
2583 ## We may be able to use the $PWD environment variable to make this
2584 ## absolute. But sometimes PWD is inaccurate.
2585 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2586 ## but that tested only for a well-formed and valid PWD,
2587 ## it did not object when PWD was well-formed and valid but just wrong.
2588 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2589 then
2590 srcdir="$PWD"
2591 else
2592 srcdir="`(cd ${srcdir}; pwd)`"
2593 fi
2594 ;;
2595 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2596 esac
2597
2598 #### Check if the source directory already has a configured system in it.
2599 if test `pwd` != `(cd ${srcdir} && pwd)` \
2600 && test -f "${srcdir}/src/config.h" ; then
2601 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2602 as a build directory right now; it has been configured in its own
2603 right. To configure in another directory as well, you MUST
2604 use GNU make. If you do not have GNU make, then you must
2605 now do \`make distclean' in ${srcdir},
2606 and then run $0 again." >&5
2607 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2608 as a build directory right now; it has been configured in its own
2609 right. To configure in another directory as well, you MUST
2610 use GNU make. If you do not have GNU make, then you must
2611 now do \`make distclean' in ${srcdir},
2612 and then run $0 again." >&2;}
2613 fi
2614
2615 #### Given the configuration name, set machfile and opsysfile to the
2616 #### names of the m/*.h and s/*.h files we should use.
2617
2618 ### Canonicalize the configuration name.
2619
2620 ac_aux_dir=
2621 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622 if test -f "$ac_dir/install-sh"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/install-sh -c"
2625 break
2626 elif test -f "$ac_dir/install.sh"; then
2627 ac_aux_dir=$ac_dir
2628 ac_install_sh="$ac_aux_dir/install.sh -c"
2629 break
2630 elif test -f "$ac_dir/shtool"; then
2631 ac_aux_dir=$ac_dir
2632 ac_install_sh="$ac_aux_dir/shtool install -c"
2633 break
2634 fi
2635 done
2636 if test -z "$ac_aux_dir"; then
2637 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2638 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2639 { (exit 1); exit 1; }; }
2640 fi
2641
2642 # These three variables are undocumented and unsupported,
2643 # and are intended to be withdrawn in a future Autoconf release.
2644 # They can cause serious problems if a builder's source tree is in a directory
2645 # whose full name contains unusual characters.
2646 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2647 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2648 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2649
2650
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2654 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2655 { (exit 1); exit 1; }; }
2656
2657 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 ac_build_alias=$build_alias
2663 test "x$ac_build_alias" = x &&
2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x &&
2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2671 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2673
2674 fi
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 $as_echo "$ac_cv_build" >&6; }
2677 case $ac_cv_build in
2678 *-*-*) ;;
2679 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2680 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2681 { (exit 1); exit 1; }; };;
2682 esac
2683 build=$ac_cv_build
2684 ac_save_IFS=$IFS; IFS='-'
2685 set x $ac_cv_build
2686 shift
2687 build_cpu=$1
2688 build_vendor=$2
2689 shift; shift
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2692 build_os=$*
2693 IFS=$ac_save_IFS
2694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2695
2696
2697 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if test "${ac_cv_host+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test "x$host_alias" = x; then
2703 ac_cv_host=$ac_cv_build
2704 else
2705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2707 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
2709 fi
2710
2711 fi
2712 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2714 case $ac_cv_host in
2715 *-*-*) ;;
2716 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2717 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2718 { (exit 1); exit 1; }; };;
2719 esac
2720 host=$ac_cv_host
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_host
2723 shift
2724 host_cpu=$1
2725 host_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 host_os=$*
2730 IFS=$ac_save_IFS
2731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2732
2733
2734 canonical=$host
2735 configuration=${host_alias-${build_alias-$host}}
2736
2737
2738
2739 ### If you add support for a new configuration, add code to this
2740 ### switch statement to recognize your configuration name and select
2741 ### the appropriate operating system and machine description files.
2742
2743 ### You would hope that you could choose an m/*.h file pretty much
2744 ### based on the machine portion of the configuration name, and an s-
2745 ### file based on the operating system portion. However, it turns out
2746 ### that each m/*.h file is pretty manufacturer-specific - for
2747 ### example mips.h is MIPS
2748 ### So we basically have to have a special case for each
2749 ### configuration name.
2750 ###
2751 ### As far as handling version numbers on operating systems is
2752 ### concerned, make sure things will fail in a fixable way. If
2753 ### /etc/MACHINES doesn't say anything about version numbers, be
2754 ### prepared to handle anything reasonably. If version numbers
2755 ### matter, be sure /etc/MACHINES says something about it.
2756 ###
2757 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2758 ### "System V Release 4"; he writes, "The old convention encouraged
2759 ### confusion between `system' and `release' levels'."
2760
2761 machine='' opsys='' unported=no
2762 case "${canonical}" in
2763
2764 ## FreeBSD ports
2765 *-*-freebsd* )
2766 opsys=freebsd
2767 case "${canonical}" in
2768 alpha*-*-freebsd*) machine=alpha ;;
2769 arm*-*-freebsd*) machine=arm ;;
2770 ia64-*-freebsd*) machine=ia64 ;;
2771 sparc-*-freebsd*) machine=sparc ;;
2772 sparc64-*-freebsd*) machine=sparc ;;
2773 powerpc-*-freebsd*) machine=macppc ;;
2774 i[3456]86-*-freebsd*) machine=intel386 ;;
2775 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2776 esac
2777 ;;
2778
2779 ## FreeBSD kernel + glibc based userland
2780 *-*-kfreebsd*gnu* )
2781 opsys=gnu-kfreebsd
2782 case "${canonical}" in
2783 alpha*-*-kfreebsd*) machine=alpha ;;
2784 ia64-*-kfreebsd*) machine=ia64 ;;
2785 sparc-*-kfreebsd*) machine=sparc ;;
2786 sparc64-*-kfreebsd*) machine=sparc ;;
2787 powerpc-*-kfreebsd*) machine=macppc ;;
2788 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2789 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2790 esac
2791 ;;
2792
2793 ## NetBSD ports
2794 *-*-netbsd* )
2795 opsys=netbsd
2796 case "${canonical}" in
2797 alpha*-*-netbsd*) machine=alpha ;;
2798 i[3456]86-*-netbsd*) machine=intel386 ;;
2799 mips-*-netbsd*) machine=mips ;;
2800 mipsel-*-netbsd*) machine=mips ;;
2801 mipseb-*-netbsd*) machine=mips ;;
2802 powerpc-*-netbsd*) machine=macppc ;;
2803 sparc*-*-netbsd*) machine=sparc ;;
2804 vax-*-netbsd*) machine=vax ;;
2805 arm-*-netbsd*) machine=arm ;;
2806 x86_64-*-netbsd*) machine=amdx86-64 ;;
2807 hppa-*-netbsd*) machine=hp800 ;;
2808 m68k-*-netbsd*) machine=m68k ;;
2809 esac
2810 ;;
2811
2812 ## OpenBSD ports
2813 *-*-openbsd* )
2814 opsys=openbsd
2815 case "${canonical}" in
2816 alpha*-*-openbsd*) machine=alpha ;;
2817 arm-*-openbsd*) machine=arm ;;
2818 i386-*-openbsd*) machine=intel386 ;;
2819 powerpc-*-openbsd*) machine=macppc ;;
2820 sparc*-*-openbsd*) machine=sparc ;;
2821 vax-*-openbsd*) machine=vax ;;
2822 x86_64-*-openbsd*) machine=amdx86-64 ;;
2823 hppa-*-openbsd*) machine=hp800 ;;
2824 esac
2825 ;;
2826
2827 alpha*-*-linux-gnu* )
2828 machine=alpha opsys=gnu-linux
2829 ;;
2830
2831 arm*-*-linux-gnu* )
2832 machine=arm opsys=gnu-linux
2833 ;;
2834
2835 ## Apple Darwin / Mac OS X
2836 *-apple-darwin* )
2837 case "${canonical}" in
2838 i[3456]86-* ) machine=intel386 ;;
2839 powerpc-* ) machine=macppc ;;
2840 x86_64-* ) machine=amdx86-64 ;;
2841 * ) unported=yes ;;
2842 esac
2843 opsys=darwin
2844 # Define CPP as follows to make autoconf work correctly.
2845 CPP="${CC-cc} -E -no-cpp-precomp"
2846 # Use fink packages if available.
2847 if test -d /sw/include && test -d /sw/lib; then
2848 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2849 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2850 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2851 fi
2852 ;;
2853
2854 ## HP 9000 series 700 and 800, running HP/UX
2855 hppa*-hp-hpux10.2* )
2856 machine=hp800 opsys=hpux10-20
2857 ;;
2858 hppa*-hp-hpux1[1-9]* )
2859 machine=hp800 opsys=hpux11
2860 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2861 ;;
2862
2863 hppa*-*-linux-gnu* )
2864 machine=hp800 opsys=gnu-linux
2865 ;;
2866
2867 ## IBM machines
2868 s390-*-linux-gnu* )
2869 machine=ibms390 opsys=gnu-linux
2870 ;;
2871 s390x-*-linux-gnu* )
2872 machine=ibms390x opsys=gnu-linux
2873 ;;
2874 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2875 machine=ibmrs6000 opsys=aix4-2
2876 ;;
2877 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2878 machine=ibmrs6000 opsys=aix4-2
2879 ;;
2880 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2881 machine=ibmrs6000 opsys=aix4-2
2882 ;;
2883 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2884 machine=ibmrs6000 opsys=aix4-2
2885 ;;
2886
2887 ## Macintosh PowerPC
2888 powerpc*-*-linux-gnu* )
2889 machine=macppc opsys=gnu-linux
2890 ;;
2891
2892 ## Silicon Graphics machines
2893 ## Iris 4D
2894 mips-sgi-irix6.5 )
2895 machine=iris4d opsys=irix6-5
2896 # Without defining _LANGUAGE_C, things get masked out in the headers
2897 # so that, for instance, grepping for `free' in stdlib.h fails and
2898 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2899 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2900 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2901 ;;
2902
2903 ## Suns
2904 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2905 machine=sparc opsys=gnu-linux
2906 ;;
2907
2908 *-sun-solaris* \
2909 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2910 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2911 case "${canonical}" in
2912 i[3456]86-*-* ) machine=intel386 ;;
2913 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2914 sparc* ) machine=sparc ;;
2915 * ) unported=yes ;;
2916 esac
2917 case "${canonical}" in
2918 *-sunos5.6* | *-solaris2.6* )
2919 opsys=sol2-6
2920 NON_GNU_CPP=/usr/ccs/lib/cpp
2921 RANLIB="ar -ts"
2922 ;;
2923 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2924 opsys=sol2-6
2925 emacs_check_sunpro_c=yes
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2927 ;;
2928 *-sunos5* | *-solaris* )
2929 opsys=sol2-10
2930 emacs_check_sunpro_c=yes
2931 NON_GNU_CPP=/usr/ccs/lib/cpp
2932 ;;
2933 esac
2934 ## Watch out for a compiler that we know will not work.
2935 case "${canonical}" in
2936 *-solaris* | *-sunos5* )
2937 if [ "x$CC" = x/usr/ucb/cc ]; then
2938 ## /usr/ucb/cc doesn't work;
2939 ## we should find some other compiler that does work.
2940 unset CC
2941 fi
2942 ;;
2943 *) ;;
2944 esac
2945 ;;
2946
2947 ## IA-64
2948 ia64*-*-linux* )
2949 machine=ia64 opsys=gnu-linux
2950 ;;
2951
2952 ## Intel 386 machines where we don't care about the manufacturer
2953 i[3456]86-*-* )
2954 machine=intel386
2955 case "${canonical}" in
2956 *-cygwin ) opsys=cygwin ;;
2957 *-darwin* ) opsys=darwin
2958 CPP="${CC-cc} -E -no-cpp-precomp"
2959 ;;
2960 *-linux-gnu* ) opsys=gnu-linux ;;
2961 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2962 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2963 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2964 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2965 esac
2966 ;;
2967
2968 ## m68k Linux-based GNU system
2969 m68k-*-linux-gnu* )
2970 machine=m68k opsys=gnu-linux
2971 ;;
2972
2973 ## Mips Linux-based GNU system
2974 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2975 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2976 machine=mips opsys=gnu-linux
2977 ;;
2978
2979 ## AMD x86-64 Linux-based GNU system
2980 x86_64-*-linux-gnu* )
2981 machine=amdx86-64 opsys=gnu-linux
2982 ;;
2983
2984 ## Tensilica Xtensa Linux-based GNU system
2985 xtensa*-*-linux-gnu* )
2986 machine=xtensa opsys=gnu-linux
2987 ;;
2988
2989 ## SuperH Linux-based GNU system
2990 sh[34]*-*-linux-gnu* )
2991 machine=sh3 opsys=gnu-linux
2992 ;;
2993
2994 * )
2995 unported=yes
2996 ;;
2997 esac
2998
2999 ### If the code above didn't choose an operating system, just choose
3000 ### an operating system based on the configuration name. You really
3001 ### only want to use this when you have no idea what the right
3002 ### operating system is; if you know what operating systems a machine
3003 ### runs, it's cleaner to make it explicit in the case statement
3004 ### above.
3005 if test x"${opsys}" = x; then
3006 case "${canonical}" in
3007 *-gnu* ) opsys=gnu ;;
3008 * )
3009 unported=yes
3010 ;;
3011 esac
3012 fi
3013
3014
3015
3016 if test $unported = yes; then
3017 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3018 Check \`etc/MACHINES' for recognized configuration names." >&5
3019 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3020 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3021 { (exit 1); exit 1; }; }
3022 fi
3023
3024 machfile="m/${machine}.h"
3025 opsysfile="s/${opsys}.h"
3026
3027
3028 #### Choose a compiler.
3029 test -n "$CC" && cc_specified=yes
3030
3031 # Save the value of CFLAGS that the user specified.
3032 SPECIFIED_CFLAGS="$CFLAGS"
3033
3034 ac_ext=c
3035 ac_cpp='$CPP $CPPFLAGS'
3036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 fi
3078 if test -z "$ac_cv_prog_CC"; then
3079 ac_ct_CC=$CC
3080 # Extract the first word of "gcc", so it can be a program name with args.
3081 set dummy gcc; ac_word=$2
3082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 ac_cv_prog_ac_ct_CC="gcc"
3098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 $as_echo "$ac_ct_CC" >&6; }
3111 else
3112 { $as_echo "$as_me:$LINENO: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116 if test "x$ac_ct_CC" = x; then
3117 CC=""
3118 else
3119 case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&5
3124 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet. If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 CC=$ac_ct_CC
3130 fi
3131 else
3132 CC="$ac_cv_prog_CC"
3133 fi
3134
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}cc; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 fi
3175 fi
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 ac_prog_rejected=no
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected=yes
3197 continue
3198 fi
3199 ac_cv_prog_CC="cc"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy $ac_cv_prog_CC
3210 shift
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3215 shift
3216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3217 fi
3218 fi
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 fi
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog in cl.exe
3235 do
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 test -n "$CC" && break
3274 done
3275 fi
3276 if test -z "$CC"; then
3277 ac_ct_CC=$CC
3278 for ac_prog in cl.exe
3279 do
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC="$ac_prog"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301 done
3302 done
3303 IFS=$as_save_IFS
3304
3305 fi
3306 fi
3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3311 else
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3314 fi
3315
3316
3317 test -n "$ac_ct_CC" && break
3318 done
3319
3320 if test "x$ac_ct_CC" = x; then
3321 CC=""
3322 else
3323 case $cross_compiling:$ac_tool_warned in
3324 yes:)
3325 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333 CC=$ac_ct_CC
3334 fi
3335 fi
3336
3337 fi
3338
3339
3340 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3345
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3348 set X $ac_compile
3349 ac_compiler=$2
3350 { (ac_try="$ac_compiler --version >&5"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler --version >&5") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361 { (ac_try="$ac_compiler -v >&5"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compiler -v >&5") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3372 { (ac_try="$ac_compiler -V >&5"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compiler -V >&5") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3383
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 ac_clean_files_save=$ac_clean_files
3400 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3401 # Try to create an executable without -o first, disregard a.out.
3402 # It will help us diagnose broken compilers, and finding out an intuition
3403 # of exeext.
3404 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3405 $as_echo_n "checking for C compiler default output file name... " >&6; }
3406 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3407
3408 # The possible output files:
3409 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3410
3411 ac_rmfiles=
3412 for ac_file in $ac_files
3413 do
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3417 esac
3418 done
3419 rm -f $ac_rmfiles
3420
3421 if { (ac_try="$ac_link_default"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_link_default") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; then
3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3435 # so that the user can short-circuit this test for compilers unknown to
3436 # Autoconf.
3437 for ac_file in $ac_files ''
3438 do
3439 test -f "$ac_file" || continue
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3442 ;;
3443 [ab].out )
3444 # We found the default executable, but exeext='' is most
3445 # certainly right.
3446 break;;
3447 *.* )
3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3449 then :; else
3450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 fi
3452 # We set ac_cv_exeext here because the later test for it is not
3453 # safe: cross compilers may not add the suffix if given an `-o'
3454 # argument, so we may need to know it at that point already.
3455 # Even if this section looks crufty: it has the advantage of
3456 # actually working.
3457 break;;
3458 * )
3459 break;;
3460 esac
3461 done
3462 test "$ac_cv_exeext" = no && ac_cv_exeext=
3463
3464 else
3465 ac_file=''
3466 fi
3467
3468 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3469 $as_echo "$ac_file" >&6; }
3470 if test -z "$ac_file"; then
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3475 See \`config.log' for more details." >&5
3476 $as_echo "$as_me: error: C compiler cannot create executables
3477 See \`config.log' for more details." >&2;}
3478 { (exit 77); exit 77; }; }
3479 fi
3480
3481 ac_exeext=$ac_cv_exeext
3482
3483 # Check that the compiler produces executables we can run. If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3486 $as_echo_n "checking whether the C compiler works... " >&6; }
3487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3488 # If not cross compiling, check that we can run a simple program.
3489 if test "$cross_compiling" != yes; then
3490 if { ac_try='./$ac_file'
3491 { (case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_try") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 cross_compiling=no
3502 else
3503 if test "$cross_compiling" = maybe; then
3504 cross_compiling=yes
3505 else
3506 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details." >&5
3509 $as_echo "$as_me: error: cannot run C compiled programs.
3510 If you meant to cross compile, use \`--host'.
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3513 fi
3514 fi
3515 fi
3516 { $as_echo "$as_me:$LINENO: result: yes" >&5
3517 $as_echo "yes" >&6; }
3518
3519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3520 ac_clean_files=$ac_clean_files_save
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3527
3528 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3529 $as_echo_n "checking for suffix of executables... " >&6; }
3530 if { (ac_try="$ac_link"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_link") 2>&5
3538 ac_status=$?
3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; then
3541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3543 # work properly (i.e., refer to `conftest.exe'), while it won't with
3544 # `rm'.
3545 for ac_file in conftest.exe conftest conftest.*; do
3546 test -f "$ac_file" || continue
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 break;;
3551 * ) break;;
3552 esac
3553 done
3554 else
3555 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3556 See \`config.log' for more details." >&5
3557 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3560 fi
3561
3562 rm -f conftest$ac_cv_exeext
3563 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3565
3566 rm -f conftest.$ac_ext
3567 EXEEXT=$ac_cv_exeext
3568 ac_exeext=$EXEEXT
3569 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if test "${ac_cv_objext+set}" = set; then
3572 $as_echo_n "(cached) " >&6
3573 else
3574 cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h. */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 rm -f conftest.o conftest.obj
3590 if { (ac_try="$ac_compile"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596 $as_echo "$ac_try_echo") >&5
3597 (eval "$ac_compile") 2>&5
3598 ac_status=$?
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; then
3601 for ac_file in conftest.o conftest.obj conftest.*; do
3602 test -f "$ac_file" || continue;
3603 case $ac_file in
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3606 break;;
3607 esac
3608 done
3609 else
3610 $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3614 See \`config.log' for more details." >&5
3615 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3616 See \`config.log' for more details." >&2;}
3617 { (exit 1); exit 1; }; }
3618 fi
3619
3620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621 fi
3622 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3623 $as_echo "$ac_cv_objext" >&6; }
3624 OBJEXT=$ac_cv_objext
3625 ac_objext=$OBJEXT
3626 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3627 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3630 else
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h. */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641 #ifndef __GNUC__
3642 choke me
3643 #endif
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3667 ac_compiler_gnu=yes
3668 else
3669 $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3671
3672 ac_compiler_gnu=no
3673 fi
3674
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677
3678 fi
3679 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3682 GCC=yes
3683 else
3684 GCC=
3685 fi
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3689 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3690 if test "${ac_cv_prog_cc_g+set}" = set; then
3691 $as_echo_n "(cached) " >&6
3692 else
3693 ac_save_c_werror_flag=$ac_c_werror_flag
3694 ac_c_werror_flag=yes
3695 ac_cv_prog_cc_g=no
3696 CFLAGS="-g"
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703
3704 int
3705 main ()
3706 {
3707
3708 ;
3709 return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3714 case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719 $as_echo "$ac_try_echo") >&5
3720 (eval "$ac_compile") 2>conftest.er1
3721 ac_status=$?
3722 grep -v '^ *+' conftest.er1 >conftest.err
3723 rm -f conftest.er1
3724 cat conftest.err >&5
3725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } && {
3727 test -z "$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 } && test -s conftest.$ac_objext; then
3730 ac_cv_prog_cc_g=yes
3731 else
3732 $as_echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3734
3735 CFLAGS=""
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742
3743 int
3744 main ()
3745 {
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 rm -f conftest.$ac_objext
3752 if { (ac_try="$ac_compile"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 :
3770 else
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3775 CFLAGS="-g"
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3798 $as_echo "$ac_try_echo") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3800 ac_status=$?
3801 grep -v '^ *+' conftest.er1 >conftest.err
3802 rm -f conftest.er1
3803 cat conftest.err >&5
3804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3809 ac_cv_prog_cc_g=yes
3810 else
3811 $as_echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814
3815 fi
3816
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 fi
3822
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3825 fi
3826 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3832 CFLAGS="-g -O2"
3833 else
3834 CFLAGS="-g"
3835 fi
3836 else
3837 if test "$GCC" = yes; then
3838 CFLAGS="-O2"
3839 else
3840 CFLAGS=
3841 fi
3842 fi
3843 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if test "${ac_cv_prog_cc_c89+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_cv_prog_cc_c89=no
3849 ac_save_CC=$CC
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864 char **p;
3865 int i;
3866 {
3867 return p[i];
3868 }
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3870 {
3871 char *s;
3872 va_list v;
3873 va_start (v,p);
3874 s = g (p, va_arg (v,int));
3875 va_end (v);
3876 return s;
3877 }
3878
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3899 int
3900 main ()
3901 {
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_prog_cc_c89=$ac_arg
3930 else
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934
3935 fi
3936
3937 rm -f core conftest.err conftest.$ac_objext
3938 test "x$ac_cv_prog_cc_c89" != "xno" && break
3939 done
3940 rm -f conftest.$ac_ext
3941 CC=$ac_save_CC
3942
3943 fi
3944 # AC_CACHE_VAL
3945 case "x$ac_cv_prog_cc_c89" in
3946 x)
3947 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3948 $as_echo "none needed" >&6; } ;;
3949 xno)
3950 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3951 $as_echo "unsupported" >&6; } ;;
3952 *)
3953 CC="$CC $ac_cv_prog_cc_c89"
3954 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3956 esac
3957
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964
3965
3966 # On Suns, sometimes $CPP names a directory.
3967 if test -n "$CPP" && test -d "$CPP"; then
3968 CPP=
3969 fi
3970
3971 ## If not using gcc, and on Solaris, and no CPP specified, see if
3972 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3973 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3974 test x"$CPP" = x; then
3975 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3976 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3977
3978 if test "${emacs_cv_sunpro_c+set}" = set; then
3979 $as_echo_n "(cached) " >&6
3980 else
3981 cat >conftest.$ac_ext <<_ACEOF
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3987
3988 int
3989 main ()
3990 {
3991 #ifndef __SUNPRO_C
3992 fail;
3993 #endif
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.$ac_objext conftest$ac_exeext
4000 if { (ac_try="$ac_link"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_link") 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest$ac_exeext && {
4017 test "$cross_compiling" = yes ||
4018 $as_test_x conftest$ac_exeext
4019 }; then
4020 emacs_cv_sunpro_c=yes
4021 else
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 emacs_cv_sunpro_c=no
4026 fi
4027
4028 rm -rf conftest.dSYM
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4031 fi
4032
4033 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4034 $as_echo "$emacs_cv_sunpro_c" >&6; }
4035
4036 if test x"$emacs_cv_sunpro_c" = xyes; then
4037 NON_GNU_CPP="$CC -E -Xs"
4038 fi
4039 fi
4040
4041 #### Some systems specify a CPP to use unless we are using GCC.
4042 #### Now that we know whether we are using GCC, we can decide whether
4043 #### to use that one.
4044 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4045 then
4046 CPP="$NON_GNU_CPP"
4047 fi
4048
4049 #### Some systems specify a CC to use unless we are using GCC.
4050 #### Now that we know whether we are using GCC, we can decide whether
4051 #### to use that one.
4052 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4053 test x$cc_specified != xyes
4054 then
4055 CC="$NON_GNU_CC"
4056 fi
4057
4058 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4059 then
4060 CC="$CC $GCC_TEST_OPTIONS"
4061 fi
4062
4063 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4064 then
4065 CC="$CC $NON_GCC_TEST_OPTIONS"
4066 fi
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4077 CPP=
4078 fi
4079 if test -z "$CPP"; then
4080 if test "${ac_cv_prog_CPP+set}" = set; then
4081 $as_echo_n "(cached) " >&6
4082 else
4083 # Double quotes because CPP needs to be expanded
4084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4085 do
4086 ac_preproc_ok=false
4087 for ac_c_preproc_warn_flag in '' yes
4088 do
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106 Syntax error
4107 _ACEOF
4108 if { (ac_try="$ac_cpp conftest.$ac_ext"
4109 case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112 esac
4113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4116 ac_status=$?
4117 grep -v '^ *+' conftest.er1 >conftest.err
4118 rm -f conftest.er1
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } >/dev/null && {
4122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4124 }; then
4125 :
4126 else
4127 $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 # Broken: fails on valid input.
4131 continue
4132 fi
4133
4134 rm -f conftest.err conftest.$ac_ext
4135
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4145 _ACEOF
4146 if { (ac_try="$ac_cpp conftest.$ac_ext"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4152 $as_echo "$ac_try_echo") >&5
4153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } >/dev/null && {
4160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4162 }; then
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 # Passes both tests.
4170 ac_preproc_ok=:
4171 break
4172 fi
4173
4174 rm -f conftest.err conftest.$ac_ext
4175
4176 done
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then
4180 break
4181 fi
4182
4183 done
4184 ac_cv_prog_CPP=$CPP
4185
4186 fi
4187 CPP=$ac_cv_prog_CPP
4188 else
4189 ac_cv_prog_CPP=$CPP
4190 fi
4191 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4192 $as_echo "$CPP" >&6; }
4193 ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4195 do
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #ifdef __STDC__
4209 # include <limits.h>
4210 #else
4211 # include <assert.h>
4212 #endif
4213 Syntax error
4214 _ACEOF
4215 if { (ac_try="$ac_cpp conftest.$ac_ext"
4216 case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219 esac
4220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4221 $as_echo "$ac_try_echo") >&5
4222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } >/dev/null && {
4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 }; then
4232 :
4233 else
4234 $as_echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 # Broken: fails on valid input.
4238 continue
4239 fi
4240
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4252 _ACEOF
4253 if { (ac_try="$ac_cpp conftest.$ac_ext"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4259 $as_echo "$ac_try_echo") >&5
4260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } >/dev/null && {
4267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4269 }; then
4270 # Broken: success on invalid input.
4271 continue
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 # Passes both tests.
4277 ac_preproc_ok=:
4278 break
4279 fi
4280
4281 rm -f conftest.err conftest.$ac_ext
4282
4283 done
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4287 :
4288 else
4289 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4290 See \`config.log' for more details." >&5
4291 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log' for more details." >&2;}
4293 { (exit 1); exit 1; }; }
4294 fi
4295
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302
4303 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if test "${ac_cv_path_GREP+set}" = set; then
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in grep ggrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 ac_count=`expr $ac_count + 1`
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP="$ac_path_GREP"
4340 ac_path_GREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_GREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_GREP"; then
4354 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356 { (exit 1); exit 1; }; }
4357 fi
4358 else
4359 ac_cv_path_GREP=$GREP
4360 fi
4361
4362 fi
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4364 $as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP="$ac_cv_path_GREP"
4366
4367
4368 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4369 $as_echo_n "checking for egrep... " >&6; }
4370 if test "${ac_cv_path_EGREP+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4374 then ac_cv_path_EGREP="$GREP -E"
4375 else
4376 if test -z "$EGREP"; then
4377 ac_path_EGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in egrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4388 # Check for GNU ac_path_EGREP and select it if it is found.
4389 # Check for GNU $ac_path_EGREP
4390 case `"$ac_path_EGREP" --version 2>&1` in
4391 *GNU*)
4392 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393 *)
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'EGREP' >> "conftest.nl"
4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 ac_count=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_EGREP="$ac_path_EGREP"
4408 ac_path_EGREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4415
4416 $ac_path_EGREP_found && break 3
4417 done
4418 done
4419 done
4420 IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_EGREP"; then
4422 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4425 fi
4426 else
4427 ac_cv_path_EGREP=$EGREP
4428 fi
4429
4430 fi
4431 fi
4432 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433 $as_echo "$ac_cv_path_EGREP" >&6; }
4434 EGREP="$ac_cv_path_EGREP"
4435
4436
4437 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4438 $as_echo_n "checking for ANSI C header files... " >&6; }
4439 if test "${ac_cv_header_stdc+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4441 else
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 #include <stdlib.h>
4449 #include <stdarg.h>
4450 #include <string.h>
4451 #include <float.h>
4452
4453 int
4454 main ()
4455 {
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (ac_try="$ac_compile"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4479 ac_cv_header_stdc=yes
4480 else
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 ac_cv_header_stdc=no
4485 fi
4486
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488
4489 if test $ac_cv_header_stdc = yes; then
4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 #include <string.h>
4498
4499 _ACEOF
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "memchr" >/dev/null 2>&1; then
4502 :
4503 else
4504 ac_cv_header_stdc=no
4505 fi
4506 rm -f conftest*
4507
4508 fi
4509
4510 if test $ac_cv_header_stdc = yes; then
4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h. */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 #include <stdlib.h>
4519
4520 _ACEOF
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "free" >/dev/null 2>&1; then
4523 :
4524 else
4525 ac_cv_header_stdc=no
4526 fi
4527 rm -f conftest*
4528
4529 fi
4530
4531 if test $ac_cv_header_stdc = yes; then
4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533 if test "$cross_compiling" = yes; then
4534 :
4535 else
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <ctype.h>
4543 #include <stdlib.h>
4544 #if ((' ' & 0x0FF) == 0x020)
4545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4547 #else
4548 # define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4553 #endif
4554
4555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4556 int
4557 main ()
4558 {
4559 int i;
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4563 return 2;
4564 return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_link") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4579 { (case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582 esac
4583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4584 $as_echo "$ac_try_echo") >&5
4585 (eval "$ac_try") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 :
4590 else
4591 $as_echo "$as_me: program exited with status $ac_status" >&5
4592 $as_echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 ( exit $ac_status )
4596 ac_cv_header_stdc=no
4597 fi
4598 rm -rf conftest.dSYM
4599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4600 fi
4601
4602
4603 fi
4604 fi
4605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4606 $as_echo "$ac_cv_header_stdc" >&6; }
4607 if test $ac_cv_header_stdc = yes; then
4608
4609 cat >>confdefs.h <<\_ACEOF
4610 #define STDC_HEADERS 1
4611 _ACEOF
4612
4613 fi
4614
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4626 inttypes.h stdint.h unistd.h
4627 do
4628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4630 $as_echo_n "checking for $ac_header... " >&6; }
4631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4632 $as_echo_n "(cached) " >&6
4633 else
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4641
4642 #include <$ac_header>
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.$ac_objext; then
4662 eval "$as_ac_Header=yes"
4663 else
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 eval "$as_ac_Header=no"
4668 fi
4669
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 fi
4672 ac_res=`eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'`
4674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4675 $as_echo "$ac_res" >&6; }
4676 if test `eval 'as_val=${'$as_ac_Header'}
4677 $as_echo "$as_val"'` = yes; then
4678 cat >>confdefs.h <<_ACEOF
4679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4680 _ACEOF
4681
4682 fi
4683
4684 done
4685
4686
4687
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4689 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4690 $as_echo_n "checking for minix/config.h... " >&6; }
4691 if test "${ac_cv_header_minix_config_h+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4693 fi
4694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4695 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4696 else
4697 # Is the header compilable?
4698 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4699 $as_echo_n "checking minix/config.h usability... " >&6; }
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4707 #include <minix/config.h>
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4727 ac_header_compiler=yes
4728 else
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ac_header_compiler=no
4733 fi
4734
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4737 $as_echo "$ac_header_compiler" >&6; }
4738
4739 # Is the header present?
4740 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4741 $as_echo_n "checking minix/config.h presence... " >&6; }
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <minix/config.h>
4749 _ACEOF
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4767 ac_header_preproc=yes
4768 else
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_preproc=no
4773 fi
4774
4775 rm -f conftest.err conftest.$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777 $as_echo "$ac_header_preproc" >&6; }
4778
4779 # So? What about this header?
4780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4781 yes:no: )
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4786 ac_header_preproc=yes
4787 ;;
4788 no:yes:* )
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4798 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4800 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4801
4802 ;;
4803 esac
4804 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4805 $as_echo_n "checking for minix/config.h... " >&6; }
4806 if test "${ac_cv_header_minix_config_h+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4808 else
4809 ac_cv_header_minix_config_h=$ac_header_preproc
4810 fi
4811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4812 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4813
4814 fi
4815 if test $ac_cv_header_minix_config_h = yes; then
4816 MINIX=yes
4817 else
4818 MINIX=
4819 fi
4820
4821
4822 if test "$MINIX" = yes; then
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define _POSIX_SOURCE 1
4826 _ACEOF
4827
4828
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _POSIX_1_SOURCE 2
4831 _ACEOF
4832
4833
4834 cat >>confdefs.h <<\_ACEOF
4835 #define _MINIX 1
4836 _ACEOF
4837
4838 fi
4839
4840
4841
4842 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4844 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853
4854 # define __EXTENSIONS__ 1
4855 $ac_includes_default
4856 int
4857 main ()
4858 {
4859
4860 ;
4861 return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (ac_try="$ac_compile"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4882 ac_cv_safe_to_define___extensions__=yes
4883 else
4884 $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4886
4887 ac_cv_safe_to_define___extensions__=no
4888 fi
4889
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 fi
4892 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 cat >>confdefs.h <<\_ACEOF
4896 #define __EXTENSIONS__ 1
4897 _ACEOF
4898
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _ALL_SOURCE 1
4901 _ACEOF
4902
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _GNU_SOURCE 1
4905 _ACEOF
4906
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _POSIX_PTHREAD_SEMANTICS 1
4909 _ACEOF
4910
4911 cat >>confdefs.h <<\_ACEOF
4912 #define _TANDEM_SOURCE 1
4913 _ACEOF
4914
4915
4916
4917 ### Use -Wno-pointer-sign if the compiler supports it
4918 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4919 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4920 SAVE_CFLAGS="$CFLAGS"
4921 CFLAGS="$CFLAGS -Wno-pointer-sign"
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h. */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4939 case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942 esac
4943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4944 $as_echo "$ac_try_echo") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && {
4952 test -z "$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 } && test -s conftest.$ac_objext; then
4955 has_option=yes
4956 else
4957 $as_echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 has_option=no
4961 fi
4962
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 if test $has_option = yes; then
4965 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4966 fi
4967 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4968 $as_echo "$has_option" >&6; }
4969 CFLAGS="$SAVE_CFLAGS"
4970 unset has_option
4971 unset SAVE_CFLAGS
4972
4973 ### Use -Wdeclaration-after-statement if the compiler supports it
4974 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4975 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4976 SAVE_CFLAGS="$CFLAGS"
4977 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (ac_try="$ac_compile"
4995 case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998 esac
4999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000 $as_echo "$ac_try_echo") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5002 ac_status=$?
5003 grep -v '^ *+' conftest.er1 >conftest.err
5004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5011 has_option=yes
5012 else
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 has_option=no
5017 fi
5018
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test $has_option = yes; then
5021 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5022 fi
5023 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5024 $as_echo "$has_option" >&6; }
5025 CFLAGS="$SAVE_CFLAGS"
5026 unset has_option
5027 unset SAVE_CFLAGS
5028
5029 #### Some other nice autoconf tests.
5030
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5038 # On Suns, sometimes $CPP names a directory.
5039 if test -n "$CPP" && test -d "$CPP"; then
5040 CPP=
5041 fi
5042 if test -z "$CPP"; then
5043 if test "${ac_cv_prog_CPP+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045 else
5046 # Double quotes because CPP needs to be expanded
5047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5048 do
5049 ac_preproc_ok=false
5050 for ac_c_preproc_warn_flag in '' yes
5051 do
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #ifdef __STDC__
5065 # include <limits.h>
5066 #else
5067 # include <assert.h>
5068 #endif
5069 Syntax error
5070 _ACEOF
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5077 $as_echo "$ac_try_echo") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null && {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 }; then
5088 :
5089 else
5090 $as_echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 # Broken: fails on valid input.
5094 continue
5095 fi
5096
5097 rm -f conftest.err conftest.$ac_ext
5098
5099 # OK, works on sane cases. Now check whether nonexistent headers
5100 # can be detected and how.
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 }; then
5126 # Broken: success on invalid input.
5127 continue
5128 else
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 # Passes both tests.
5133 ac_preproc_ok=:
5134 break
5135 fi
5136
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then
5143 break
5144 fi
5145
5146 done
5147 ac_cv_prog_CPP=$CPP
5148
5149 fi
5150 CPP=$ac_cv_prog_CPP
5151 else
5152 ac_cv_prog_CPP=$CPP
5153 fi
5154 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5156 ac_preproc_ok=false
5157 for ac_c_preproc_warn_flag in '' yes
5158 do
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176 Syntax error
5177 _ACEOF
5178 if { (ac_try="$ac_cpp conftest.$ac_ext"
5179 case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182 esac
5183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184 $as_echo "$ac_try_echo") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 }; then
5195 :
5196 else
5197 $as_echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 # Broken: fails on valid input.
5201 continue
5202 fi
5203
5204 rm -f conftest.err conftest.$ac_ext
5205
5206 # OK, works on sane cases. Now check whether nonexistent headers
5207 # can be detected and how.
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <ac_nonexistent.h>
5215 _ACEOF
5216 if { (ac_try="$ac_cpp conftest.$ac_ext"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5222 $as_echo "$ac_try_echo") >&5
5223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null && {
5230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 }; then
5233 # Broken: success on invalid input.
5234 continue
5235 else
5236 $as_echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 # Passes both tests.
5240 ac_preproc_ok=:
5241 break
5242 fi
5243
5244 rm -f conftest.err conftest.$ac_ext
5245
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5250 :
5251 else
5252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256 { (exit 1); exit 1; }; }
5257 fi
5258
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265 # Find a good install program. We prefer a C program (faster),
5266 # so one script is as good as another. But avoid the broken or
5267 # incompatible versions:
5268 # SysV /etc/install, /usr/sbin/install
5269 # SunOS /usr/etc/install
5270 # IRIX /sbin/install
5271 # AIX /bin/install
5272 # AmigaOS /C/install, which installs bootblocks on floppy discs
5273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5276 # OS/2's system install, which has a completely different semantic
5277 # ./install, which can be erroneously created by make from ./install.sh.
5278 # Reject install programs that cannot install multiple files.
5279 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5281 if test -z "$INSTALL"; then
5282 if test "${ac_cv_path_install+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 # Account for people who put trailing slashes in PATH elements.
5291 case $as_dir/ in
5292 ./ | .// | /cC/* | \
5293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5295 /usr/ucb/* ) ;;
5296 *)
5297 # OSF1 and SCO ODT 3.0 have their own names for install.
5298 # Don't use installbsd from OSF since it installs stuff as root
5299 # by default.
5300 for ac_prog in ginstall scoinst install; do
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5303 if test $ac_prog = install &&
5304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5305 # AIX install. It has an incompatible calling convention.
5306 :
5307 elif test $ac_prog = install &&
5308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5309 # program-specific install script used by HP pwplus--don't use.
5310 :
5311 else
5312 rm -rf conftest.one conftest.two conftest.dir
5313 echo one > conftest.one
5314 echo two > conftest.two
5315 mkdir conftest.dir
5316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5317 test -s conftest.one && test -s conftest.two &&
5318 test -s conftest.dir/conftest.one &&
5319 test -s conftest.dir/conftest.two
5320 then
5321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5322 break 3
5323 fi
5324 fi
5325 fi
5326 done
5327 done
5328 ;;
5329 esac
5330
5331 done
5332 IFS=$as_save_IFS
5333
5334 rm -rf conftest.one conftest.two conftest.dir
5335
5336 fi
5337 if test "${ac_cv_path_install+set}" = set; then
5338 INSTALL=$ac_cv_path_install
5339 else
5340 # As a last resort, use the slow shell script. Don't cache a
5341 # value for INSTALL within a source directory, because that will
5342 # break other packages using the cache if that directory is
5343 # removed, or if the value is a relative name.
5344 INSTALL=$ac_install_sh
5345 fi
5346 fi
5347 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5348 $as_echo "$INSTALL" >&6; }
5349
5350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5351 # It thinks the first close brace ends the variable substitution.
5352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5353
5354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5355
5356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5357
5358 if test "x$RANLIB" = x; then
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_prog_RANLIB+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$RANLIB"; then
5368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 RANLIB=$ac_cv_prog_RANLIB
5388 if test -n "$RANLIB"; then
5389 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5390 $as_echo "$RANLIB" >&6; }
5391 else
5392 { $as_echo "$as_me:$LINENO: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 fi
5398 if test -z "$ac_cv_prog_RANLIB"; then
5399 ac_ct_RANLIB=$RANLIB
5400 # Extract the first word of "ranlib", so it can be a program name with args.
5401 set dummy ranlib; ac_word=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_RANLIB"; then
5408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_ac_ct_RANLIB="ranlib"
5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5428 if test -n "$ac_ct_RANLIB"; then
5429 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5430 $as_echo "$ac_ct_RANLIB" >&6; }
5431 else
5432 { $as_echo "$as_me:$LINENO: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436 if test "x$ac_ct_RANLIB" = x; then
5437 RANLIB=":"
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&5
5444 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5445 whose name does not start with the host triplet. If you think this
5446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 RANLIB=$ac_ct_RANLIB
5450 fi
5451 else
5452 RANLIB="$ac_cv_prog_RANLIB"
5453 fi
5454
5455 fi
5456
5457 ## Although we're running on an amd64 kernel, we're actually compiling for
5458 ## the x86 architecture. The user should probably have provided an
5459 ## explicit --build to `configure', but if everything else than the kernel
5460 ## is running in i386 mode, we can help them out.
5461 if test "$machine" = "amdx86-64"; then
5462 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5463 $as_echo_n "checking whether i386 is declared... " >&6; }
5464 if test "${ac_cv_have_decl_i386+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5474 int
5475 main ()
5476 {
5477 #ifndef i386
5478 (void) i386;
5479 #endif
5480
5481 ;
5482 return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_have_decl_i386=yes
5504 else
5505 $as_echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_cv_have_decl_i386=no
5509 fi
5510
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 fi
5513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5514 $as_echo "$ac_cv_have_decl_i386" >&6; }
5515
5516 if test "$ac_cv_have_decl_i386" = "yes"; then
5517 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5518 machine=intel386
5519 machfile="m/${machine}.h"
5520 fi
5521 fi
5522
5523 # Extract the first word of "install-info", so it can be a program name with args.
5524 set dummy install-info; ac_word=$2
5525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5528 $as_echo_n "(cached) " >&6
5529 else
5530 case $INSTALL_INFO in
5531 [\\/]* | ?:[\\/]*)
5532 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5533 ;;
5534 *)
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 ;;
5551 esac
5552 fi
5553 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5554 if test -n "$INSTALL_INFO"; then
5555 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5556 $as_echo "$INSTALL_INFO" >&6; }
5557 else
5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562
5563 # Extract the first word of "install-info", so it can be a program name with args.
5564 set dummy install-info; ac_word=$2
5565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5568 $as_echo_n "(cached) " >&6
5569 else
5570 case $INSTALL_INFO in
5571 [\\/]* | ?:[\\/]*)
5572 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5573 ;;
5574 *)
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in /usr/sbin
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586 done
5587 done
5588 IFS=$as_save_IFS
5589
5590 ;;
5591 esac
5592 fi
5593 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5594 if test -n "$INSTALL_INFO"; then
5595 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5596 $as_echo "$INSTALL_INFO" >&6; }
5597 else
5598 { $as_echo "$as_me:$LINENO: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 # Extract the first word of "install-info", so it can be a program name with args.
5604 set dummy install-info; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5609 else
5610 case $INSTALL_INFO in
5611 [\\/]* | ?:[\\/]*)
5612 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5613 ;;
5614 *)
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in /sbin
5617 do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626 done
5627 done
5628 IFS=$as_save_IFS
5629
5630 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5631 ;;
5632 esac
5633 fi
5634 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5635 if test -n "$INSTALL_INFO"; then
5636 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5637 $as_echo "$INSTALL_INFO" >&6; }
5638 else
5639 { $as_echo "$as_me:$LINENO: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 # Extract the first word of "gzip", so it can be a program name with args.
5645 set dummy gzip; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5650 else
5651 case $GZIP_PROG in
5652 [\\/]* | ?:[\\/]*)
5653 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5654 ;;
5655 *)
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 ;;
5672 esac
5673 fi
5674 GZIP_PROG=$ac_cv_path_GZIP_PROG
5675 if test -n "$GZIP_PROG"; then
5676 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5677 $as_echo "$GZIP_PROG" >&6; }
5678 else
5679 { $as_echo "$as_me:$LINENO: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683
5684
5685
5686 ## Need makeinfo >= 4.6 (?) to build the manuals.
5687 # Extract the first word of "makeinfo", so it can be a program name with args.
5688 set dummy makeinfo; ac_word=$2
5689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5693 else
5694 case $MAKEINFO in
5695 [\\/]* | ?:[\\/]*)
5696 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5697 ;;
5698 *)
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5715 ;;
5716 esac
5717 fi
5718 MAKEINFO=$ac_cv_path_MAKEINFO
5719 if test -n "$MAKEINFO"; then
5720 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5721 $as_echo "$MAKEINFO" >&6; }
5722 else
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 if test "$MAKEINFO" != "no" && \
5729 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
5730 MAKEINFO=no
5731 fi
5732
5733 ## Makeinfo is unusual. For a released Emacs, the manuals are
5734 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5735 ## therefore in the category of "special tools" not normally required, which
5736 ## configure does not have to check for (eg autoconf itself).
5737 ## In a Bazaar checkout on the other hand, the manuals are not included.
5738 ## So makeinfo is a requirement to build from Bazaar, and configure
5739 ## should test for it as it does for any other build requirement.
5740 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5741 ## with pre-built manuals, from a Bazaar checkout.
5742 if test "$MAKEINFO" = "no"; then
5743 if test "x${with_makeinfo}" = "xno"; then
5744 MAKEINFO=off
5745 elif test ! -e $srcdir/info/emacs; then
5746 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5747 source tree does not seem to have pre-built manuals in the \`info' directory.
5748 Either install a suitable version of makeinfo, or re-run configure
5749 with the \`--without-makeinfo' option to build without the manuals. " >&5
5750 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5751 source tree does not seem to have pre-built manuals in the \`info' directory.
5752 Either install a suitable version of makeinfo, or re-run configure
5753 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5754 { (exit 1); exit 1; }; }
5755 fi
5756 fi
5757
5758
5759 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5760 then
5761 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5762 fi
5763
5764 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5765 then
5766 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5767 fi
5768
5769
5770 late_LDFLAGS=$LDFLAGS
5771 if test "$GCC" = yes; then
5772 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5773 else
5774 LDFLAGS="$LDFLAGS -znocombreloc"
5775 fi
5776
5777 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5778 $as_echo_n "checking for -znocombreloc... " >&6; }
5779 cat >conftest.$ac_ext <<_ACEOF
5780 main(){return 0;}
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (ac_try="$ac_link"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_link") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest$ac_exeext && {
5800 test "$cross_compiling" = yes ||
5801 $as_test_x conftest$ac_exeext
5802 }; then
5803 { $as_echo "$as_me:$LINENO: result: yes" >&5
5804 $as_echo "yes" >&6; }
5805 else
5806 $as_echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 LDFLAGS=$late_LDFLAGS
5810 { $as_echo "$as_me:$LINENO: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814 rm -rf conftest.dSYM
5815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5816 conftest$ac_exeext conftest.$ac_ext
5817
5818 #### Extract some information from the operating system and machine files.
5819
5820 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5821 - which libraries the lib-src programs will want, and
5822 - whether the GNU malloc routines are usable..." >&5
5823 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5824 - which libraries the lib-src programs will want, and
5825 - whether the GNU malloc routines are usable..." >&6;}
5826
5827 ### First figure out CFLAGS (which we use for running the compiler here)
5828 ### and REAL_CFLAGS (which we use for real compilation).
5829 ### The two are the same except on a few systems, where they are made
5830 ### different to work around various lossages. For example,
5831 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5832 ### as implying static linking.
5833
5834 ### If the CFLAGS env var is specified, we use that value
5835 ### instead of the default.
5836
5837 ### It's not important that this name contain the PID; you can't run
5838 ### two configures in the same directory and have anything work
5839 ### anyway.
5840 tempcname="conftest.c"
5841
5842 echo '
5843 #include "'${srcdir}'/src/'${opsysfile}'"
5844 #include "'${srcdir}'/src/'${machfile}'"
5845
5846 configure___ LIBX=-lX11
5847
5848 configure___ unexec=UNEXEC
5849
5850 #ifdef SYSTEM_MALLOC
5851 configure___ system_malloc=yes
5852 #else
5853 configure___ system_malloc=no
5854 #endif
5855
5856 #ifdef USE_MMAP_FOR_BUFFERS
5857 configure___ use_mmap_for_buffers=yes
5858 #else
5859 configure___ use_mmap_for_buffers=no
5860 #endif
5861
5862 #ifndef C_OPTIMIZE_SWITCH
5863 #ifdef __GNUC__
5864 #define C_OPTIMIZE_SWITCH -O2
5865 #else
5866 #define C_OPTIMIZE_SWITCH -O
5867 #endif
5868 #endif
5869
5870 #ifndef C_WARNINGS_SWITCH
5871 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5872 #endif
5873
5874 #ifdef THIS_IS_CONFIGURE
5875
5876 /* Get the CFLAGS for tests in configure. */
5877 #ifdef __GNUC__
5878 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5879 #else
5880 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5881 #endif
5882
5883 #else /* not THIS_IS_CONFIGURE */
5884
5885 /* Get the CFLAGS for real compilation. */
5886 #ifdef __GNUC__
5887 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5888 #else
5889 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5890 #endif
5891
5892 #endif /* not THIS_IS_CONFIGURE */
5893 ' > ${tempcname}
5894
5895 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5896
5897 # The value of CPP is a quoted variable reference, so we need to do this
5898 # to get its actual value...
5899 CPP=`eval "echo $CPP"`
5900 eval `${CPP} -Isrc ${tempcname} \
5901 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5902 if test "x$SPECIFIED_CFLAGS" = x; then
5903 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5904 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5905 else
5906 REAL_CFLAGS="$CFLAGS"
5907 fi
5908 rm ${tempcname}
5909
5910
5911 LD_SWITCH_SYSTEM=
5912 case "$opsys" in
5913 freebsd)
5914 ## Let `ld' find image libs and similar things in /usr/local/lib.
5915 ## The system compiler, GCC, has apparently been modified to not
5916 ## look there, contrary to what a stock GCC would do.
5917 LD_SWITCH_SYSTEM=-L/usr/local/lib
5918 ;;
5919
5920 gnu-linux)
5921 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5922 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5923 ;;
5924
5925 netbsd)
5926 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5927 ;;
5928
5929 openbsd)
5930 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5931 ## otherwise Emacs dumps core on elf systems.
5932 LD_SWITCH_SYSTEM="-Z"
5933 ;;
5934 esac
5935
5936
5937 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5938
5939 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5940 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5941 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5942 ## values in configure and the Makefiles. How helpful.
5943 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5944 case "$opsys" in
5945 gnu-linux)
5946 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5947 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5948
5949 netbsd|openbsd)
5950 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5951 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5952 esac
5953
5954
5955 C_SWITCH_MACHINE=
5956 if test "$machine" = "alpha"; then
5957 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5958 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5959 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5969 int
5970 main ()
5971 {
5972 #ifndef __ELF__
5973 (void) __ELF__;
5974 #endif
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (ac_try="$ac_compile"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_cv_have_decl___ELF__=yes
5999 else
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_cv_have_decl___ELF__=no
6004 fi
6005
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 fi
6008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6009 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6010
6011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6012 ## With ELF, make sure that all common symbols get allocated to in the
6013 ## data section. Otherwise, the dump of temacs may miss variables in
6014 ## the shared library that have been initialized. For example, with
6015 ## GNU libc, __malloc_initialized would normally be resolved to the
6016 ## shared library's .bss section, which is fatal.
6017 if test "x$GCC" = "xyes"; then
6018 C_SWITCH_MACHINE="-fno-common"
6019 else
6020 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6021 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6022 { (exit 1); exit 1; }; }
6023 fi
6024 fi
6025 fi
6026
6027
6028
6029 C_SWITCH_SYSTEM=
6030 ## Some programs in src produce warnings saying certain subprograms
6031 ## are too complex and need a MAXMEM value greater than 2000 for
6032 ## additional optimization. --nils@exp-math.uni-essen.de
6033 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6034 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6035 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6036 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6037
6038
6039
6040 LIBS_SYSTEM=
6041 case "$opsys" in
6042 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6043 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6044
6045 freebsd) LIBS_SYSTEM="-lutil" ;;
6046
6047 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6048
6049 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6050
6051 ## Motif needs -lgen.
6052 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6053 esac
6054
6055
6056
6057 ### Make sure subsequent tests use flags consistent with the build flags.
6058
6059 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6060 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6061 else
6062 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6063 fi
6064
6065
6066
6067 # Check whether --enable-largefile was given.
6068 if test "${enable_largefile+set}" = set; then
6069 enableval=$enable_largefile;
6070 fi
6071
6072 if test "$enable_largefile" != no; then
6073
6074 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6075 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6076 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6078 else
6079 ac_cv_sys_largefile_CC=no
6080 if test "$GCC" != yes; then
6081 ac_save_CC=$CC
6082 while :; do
6083 # IRIX 6.2 and later do not support large files by default,
6084 # so use the C compiler's -n32 option if that helps.
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/types.h>
6092 /* Check that off_t can represent 2**63 - 1 correctly.
6093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6094 since some C++ compilers masquerading as C compilers
6095 incorrectly reject 9223372036854775807. */
6096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6098 && LARGE_OFF_T % 2147483647 == 1)
6099 ? 1 : -1];
6100 int
6101 main ()
6102 {
6103
6104 ;
6105 return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext
6109 if { (ac_try="$ac_compile"
6110 case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113 esac
6114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115 $as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
6126 break
6127 else
6128 $as_echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131
6132 fi
6133
6134 rm -f core conftest.err conftest.$ac_objext
6135 CC="$CC -n32"
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6145 ac_status=$?
6146 grep -v '^ *+' conftest.er1 >conftest.err
6147 rm -f conftest.er1
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest.$ac_objext; then
6154 ac_cv_sys_largefile_CC=' -n32'; break
6155 else
6156 $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159
6160 fi
6161
6162 rm -f core conftest.err conftest.$ac_objext
6163 break
6164 done
6165 CC=$ac_save_CC
6166 rm -f conftest.$ac_ext
6167 fi
6168 fi
6169 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6170 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6171 if test "$ac_cv_sys_largefile_CC" != no; then
6172 CC=$CC$ac_cv_sys_largefile_CC
6173 fi
6174
6175 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6176 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6177 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6179 else
6180 while :; do
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <sys/types.h>
6188 /* Check that off_t can represent 2**63 - 1 correctly.
6189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6190 since some C++ compilers masquerading as C compilers
6191 incorrectly reject 9223372036854775807. */
6192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6194 && LARGE_OFF_T % 2147483647 == 1)
6195 ? 1 : -1];
6196 int
6197 main ()
6198 {
6199
6200 ;
6201 return 0;
6202 }
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209 esac
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 ac_cv_sys_file_offset_bits=no; break
6223 else
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227
6228 fi
6229
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #define _FILE_OFFSET_BITS 64
6238 #include <sys/types.h>
6239 /* Check that off_t can represent 2**63 - 1 correctly.
6240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6241 since some C++ compilers masquerading as C compilers
6242 incorrectly reject 9223372036854775807. */
6243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6245 && LARGE_OFF_T % 2147483647 == 1)
6246 ? 1 : -1];
6247 int
6248 main ()
6249 {
6250
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262 $as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_cv_sys_file_offset_bits=64; break
6274 else
6275 $as_echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_cv_sys_file_offset_bits=unknown
6283 break
6284 done
6285 fi
6286 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6287 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6288 case $ac_cv_sys_file_offset_bits in #(
6289 no | unknown) ;;
6290 *)
6291 cat >>confdefs.h <<_ACEOF
6292 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6293 _ACEOF
6294 ;;
6295 esac
6296 rm -rf conftest*
6297 if test $ac_cv_sys_file_offset_bits = unknown; then
6298 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6299 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6300 if test "${ac_cv_sys_large_files+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6302 else
6303 while :; do
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 /* Check that off_t can represent 2**63 - 1 correctly.
6312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6313 since some C++ compilers masquerading as C compilers
6314 incorrectly reject 9223372036854775807. */
6315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6317 && LARGE_OFF_T % 2147483647 == 1)
6318 ? 1 : -1];
6319 int
6320 main ()
6321 {
6322
6323 ;
6324 return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 ac_cv_sys_large_files=no; break
6346 else
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h. */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 #define _LARGE_FILES 1
6361 #include <sys/types.h>
6362 /* Check that off_t can represent 2**63 - 1 correctly.
6363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6364 since some C++ compilers masquerading as C compilers
6365 incorrectly reject 9223372036854775807. */
6366 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6368 && LARGE_OFF_T % 2147483647 == 1)
6369 ? 1 : -1];
6370 int
6371 main ()
6372 {
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_cv_sys_large_files=1; break
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401
6402 fi
6403
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 ac_cv_sys_large_files=unknown
6406 break
6407 done
6408 fi
6409 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6410 $as_echo "$ac_cv_sys_large_files" >&6; }
6411 case $ac_cv_sys_large_files in #(
6412 no | unknown) ;;
6413 *)
6414 cat >>confdefs.h <<_ACEOF
6415 #define _LARGE_FILES $ac_cv_sys_large_files
6416 _ACEOF
6417 ;;
6418 esac
6419 rm -rf conftest*
6420 fi
6421 fi
6422
6423
6424
6425 ## If user specified a crt-dir, use that unconditionally.
6426 if test "X$CRT_DIR" = "X"; then
6427
6428 case "$canonical" in
6429 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6430 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6431 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6432 ## For anything else (eg /usr/lib32), it is up the user to specify
6433 ## the location (bug#5655).
6434 ## Test for crtn.o, not just the directory, because sometimes the
6435 ## directory exists but does not have the relevant files (bug#1287).
6436 ## FIXME better to test for binary compatibility somehow.
6437 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6438 ;;
6439
6440 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6441 esac
6442
6443 case "$opsys" in
6444 hpux10-20) CRT_DIR=/lib ;;
6445 esac
6446
6447 ## Default is /usr/lib.
6448 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6449
6450 else
6451
6452 ## Some platforms don't use any of these files, so it is not
6453 ## appropriate to put this test outside the if block.
6454 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6455 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6456 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6457 { (exit 1); exit 1; }; }
6458
6459 fi
6460
6461
6462
6463 LIB_MATH=-lm
6464 LIB_STANDARD=
6465 START_FILES=
6466
6467 case $opsys in
6468 cygwin )
6469 LIB_MATH=
6470 START_FILES='ecrt0.o'
6471 ;;
6472 darwin )
6473 ## Adding -lm confuses the dynamic linker, so omit it.
6474 LIB_MATH=
6475 START_FILES='pre-crt0.o'
6476 ;;
6477 freebsd )
6478 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6479 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6480 ;;
6481 gnu-linux | gnu-kfreebsd )
6482 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6483 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6484 ;;
6485 hpux10-20 | hpux11 )
6486 LIB_STANDARD=-lc
6487 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6488 ;;
6489 netbsd | openbsd )
6490 if test -f $CRT_DIR/crti.o; then
6491 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6492 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6493 else
6494 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6495 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6496 fi
6497 ;;
6498 esac
6499
6500
6501
6502
6503
6504
6505
6506 if test "${with_sound}" != "no"; then
6507 # Sound support for GNU/Linux and the free BSDs.
6508
6509
6510
6511 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6512 do
6513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 $as_echo_n "checking for $ac_header... " >&6; }
6517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 $as_echo_n "(cached) " >&6
6519 fi
6520 ac_res=`eval 'as_val=${'$as_ac_Header'}
6521 $as_echo "$as_val"'`
6522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 else
6525 # Is the header compilable?
6526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6527 $as_echo_n "checking $ac_header usability... " >&6; }
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6535 #include <$ac_header>
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 ac_header_compiler=yes
6556 else
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560 ac_header_compiler=no
6561 fi
6562
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 $as_echo "$ac_header_compiler" >&6; }
6566
6567 # Is the header present?
6568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569 $as_echo_n "checking $ac_header presence... " >&6; }
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6577 _ACEOF
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null && {
6592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 }; then
6595 ac_header_preproc=yes
6596 else
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_header_preproc=no
6601 fi
6602
6603 rm -f conftest.err conftest.$ac_ext
6604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605 $as_echo "$ac_header_preproc" >&6; }
6606
6607 # So? What about this header?
6608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609 yes:no: )
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614 ac_header_preproc=yes
6615 ;;
6616 no:yes:* )
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6629
6630 ;;
6631 esac
6632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6633 $as_echo_n "checking for $ac_header... " >&6; }
6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635 $as_echo_n "(cached) " >&6
6636 else
6637 eval "$as_ac_Header=\$ac_header_preproc"
6638 fi
6639 ac_res=`eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'`
6641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6643
6644 fi
6645 if test `eval 'as_val=${'$as_ac_Header'}
6646 $as_echo "$as_val"'` = yes; then
6647 cat >>confdefs.h <<_ACEOF
6648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6649 _ACEOF
6650
6651 fi
6652
6653 done
6654
6655 # Emulation library used on NetBSD.
6656 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6657 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6658 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6659 $as_echo_n "(cached) " >&6
6660 else
6661 ac_check_lib_save_LIBS=$LIBS
6662 LIBS="-lossaudio $LIBS"
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669
6670 /* Override any GCC internal prototype to avoid an error.
6671 Use char because int might match the return type of a GCC
6672 builtin and then its argument prototype would still apply. */
6673 #ifdef __cplusplus
6674 extern "C"
6675 #endif
6676 char _oss_ioctl ();
6677 int
6678 main ()
6679 {
6680 return _oss_ioctl ();
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6687 case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690 esac
6691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692 $as_echo "$ac_try_echo") >&5
6693 (eval "$ac_link") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest$ac_exeext
6705 }; then
6706 ac_cv_lib_ossaudio__oss_ioctl=yes
6707 else
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 ac_cv_lib_ossaudio__oss_ioctl=no
6712 fi
6713
6714 rm -rf conftest.dSYM
6715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6716 conftest$ac_exeext conftest.$ac_ext
6717 LIBS=$ac_check_lib_save_LIBS
6718 fi
6719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6720 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6721 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6722 LIBSOUND=-lossaudio
6723 else
6724 LIBSOUND=
6725 fi
6726
6727
6728
6729 ALSA_REQUIRED=1.0.0
6730 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6731
6732 succeeded=no
6733
6734 # Extract the first word of "pkg-config", so it can be a program name with args.
6735 set dummy pkg-config; ac_word=$2
6736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6739 $as_echo_n "(cached) " >&6
6740 else
6741 case $PKG_CONFIG in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6744 ;;
6745 *)
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6762 ;;
6763 esac
6764 fi
6765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6766 if test -n "$PKG_CONFIG"; then
6767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6768 $as_echo "$PKG_CONFIG" >&6; }
6769 else
6770 { $as_echo "$as_me:$LINENO: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774
6775
6776 if test "$PKG_CONFIG" = "no" ; then
6777 HAVE_ALSA=no
6778 else
6779 PKG_CONFIG_MIN_VERSION=0.9.0
6780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6781 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6782 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6783
6784 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6785 { $as_echo "$as_me:$LINENO: result: yes" >&5
6786 $as_echo "yes" >&6; }
6787 succeeded=yes
6788
6789 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6790 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6791 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6793 $as_echo "$ALSA_CFLAGS" >&6; }
6794
6795 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6796 $as_echo_n "checking ALSA_LIBS... " >&6; }
6797 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6798 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6799 $as_echo "$ALSA_LIBS" >&6; }
6800 else
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6803 ALSA_CFLAGS=""
6804 ALSA_LIBS=""
6805 ## If we have a custom action on failure, don't print errors, but
6806 ## do set a variable so people can do so.
6807 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6808
6809 fi
6810
6811
6812
6813 else
6814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6816 fi
6817 fi
6818
6819 if test $succeeded = yes; then
6820 HAVE_ALSA=yes
6821 else
6822 HAVE_ALSA=no
6823 fi
6824
6825 if test $HAVE_ALSA = yes; then
6826 SAVE_CFLAGS="$CFLAGS"
6827 SAVE_LDFLAGS="$LDFLAGS"
6828 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6829 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <asoundlib.h>
6837 int
6838 main ()
6839 {
6840 snd_lib_error_set_handler (0);
6841 ;
6842 return 0;
6843 }
6844 _ACEOF
6845 rm -f conftest.$ac_objext
6846 if { (ac_try="$ac_compile"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6863 emacs_alsa_normal=yes
6864 else
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 emacs_alsa_normal=no
6869 fi
6870
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 if test "$emacs_alsa_normal" != yes; then
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <alsa/asoundlib.h>
6880 int
6881 main ()
6882 {
6883 snd_lib_error_set_handler (0);
6884 ;
6885 return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6906 emacs_alsa_subdir=yes
6907 else
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 emacs_alsa_subdir=no
6912 fi
6913
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 if test "$emacs_alsa_subdir" != yes; then
6916 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6917 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6918 { (exit 1); exit 1; }; }
6919 fi
6920 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6921 fi
6922
6923 CFLAGS="$SAVE_CFLAGS"
6924 LDFLAGS="$SAVE_LDFLAGS"
6925 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6926 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6927
6928 cat >>confdefs.h <<\_ACEOF
6929 #define HAVE_ALSA 1
6930 _ACEOF
6931
6932 fi
6933
6934 fi
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6962 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6963 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6964 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6965 sys/utsname.h pwd.h utmp.h
6966 do
6967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 $as_echo_n "checking for $ac_header... " >&6; }
6971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 $as_echo_n "(cached) " >&6
6973 fi
6974 ac_res=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 else
6979 # Is the header compilable?
6980 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981 $as_echo_n "checking $ac_header usability... " >&6; }
6982 cat >conftest.$ac_ext <<_ACEOF
6983 /* confdefs.h. */
6984 _ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 #include <$ac_header>
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (ac_try="$ac_compile"
6993 case "(($ac_try" in
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6996 esac
6997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7000 ac_status=$?
7001 grep -v '^ *+' conftest.er1 >conftest.err
7002 rm -f conftest.er1
7003 cat conftest.err >&5
7004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_header_compiler=yes
7010 else
7011 $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014 ac_header_compiler=no
7015 fi
7016
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7019 $as_echo "$ac_header_compiler" >&6; }
7020
7021 # Is the header present?
7022 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7023 $as_echo_n "checking $ac_header presence... " >&6; }
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <$ac_header>
7031 _ACEOF
7032 if { (ac_try="$ac_cpp conftest.$ac_ext"
7033 case "(($ac_try" in
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7036 esac
7037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 }; then
7049 ac_header_preproc=yes
7050 else
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054 ac_header_preproc=no
7055 fi
7056
7057 rm -f conftest.err conftest.$ac_ext
7058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7059 $as_echo "$ac_header_preproc" >&6; }
7060
7061 # So? What about this header?
7062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7063 yes:no: )
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7065 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7068 ac_header_preproc=yes
7069 ;;
7070 no:yes:* )
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7078 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7083
7084 ;;
7085 esac
7086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 $as_echo_n "checking for $ac_header... " >&6; }
7088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7089 $as_echo_n "(cached) " >&6
7090 else
7091 eval "$as_ac_Header=\$ac_header_preproc"
7092 fi
7093 ac_res=`eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'`
7095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7097
7098 fi
7099 if test `eval 'as_val=${'$as_ac_Header'}
7100 $as_echo "$as_val"'` = yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7103 _ACEOF
7104
7105 fi
7106
7107 done
7108
7109
7110 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7111 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 #include <sys/personality.h>
7119 int
7120 main ()
7121 {
7122 personality (PER_LINUX32)
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 emacs_cv_personality_linux32=yes
7146 else
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 emacs_cv_personality_linux32=no
7151 fi
7152
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7155 $as_echo "$emacs_cv_personality_linux32" >&6; }
7156
7157 if test $emacs_cv_personality_linux32 = yes; then
7158
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_PERSONALITY_LINUX32 1
7161 _ACEOF
7162
7163 fi
7164
7165
7166 for ac_header in term.h
7167 do
7168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7170 $as_echo_n "checking for $ac_header... " >&6; }
7171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172 $as_echo_n "(cached) " >&6
7173 else
7174 cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h. */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <$ac_header>
7181 _ACEOF
7182 if { (ac_try="$ac_cpp conftest.$ac_ext"
7183 case "(($ac_try" in
7184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7186 esac
7187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7190 ac_status=$?
7191 grep -v '^ *+' conftest.er1 >conftest.err
7192 rm -f conftest.er1
7193 cat conftest.err >&5
7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 }; then
7199 eval "$as_ac_Header=yes"
7200 else
7201 $as_echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 eval "$as_ac_Header=no"
7205 fi
7206
7207 rm -f conftest.err conftest.$ac_ext
7208 fi
7209 ac_res=`eval 'as_val=${'$as_ac_Header'}
7210 $as_echo "$as_val"'`
7211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7212 $as_echo "$ac_res" >&6; }
7213 if test `eval 'as_val=${'$as_ac_Header'}
7214 $as_echo "$as_val"'` = yes; then
7215 cat >>confdefs.h <<_ACEOF
7216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 _ACEOF
7218
7219 fi
7220
7221 done
7222
7223 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7224 $as_echo_n "checking for ANSI C header files... " >&6; }
7225 if test "${ac_cv_header_stdc+set}" = set; then
7226 $as_echo_n "(cached) " >&6
7227 else
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <stdlib.h>
7235 #include <stdarg.h>
7236 #include <string.h>
7237 #include <float.h>
7238
7239 int
7240 main ()
7241 {
7242
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 ac_cv_header_stdc=yes
7266 else
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_cv_header_stdc=no
7271 fi
7272
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274
7275 if test $ac_cv_header_stdc = yes; then
7276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 #include <string.h>
7284
7285 _ACEOF
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "memchr" >/dev/null 2>&1; then
7288 :
7289 else
7290 ac_cv_header_stdc=no
7291 fi
7292 rm -f conftest*
7293
7294 fi
7295
7296 if test $ac_cv_header_stdc = yes; then
7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <stdlib.h>
7305
7306 _ACEOF
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "free" >/dev/null 2>&1; then
7309 :
7310 else
7311 ac_cv_header_stdc=no
7312 fi
7313 rm -f conftest*
7314
7315 fi
7316
7317 if test $ac_cv_header_stdc = yes; then
7318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7319 if test "$cross_compiling" = yes; then
7320 :
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <ctype.h>
7329 #include <stdlib.h>
7330 #if ((' ' & 0x0FF) == 0x020)
7331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7333 #else
7334 # define ISLOWER(c) \
7335 (('a' <= (c) && (c) <= 'i') \
7336 || ('j' <= (c) && (c) <= 'r') \
7337 || ('s' <= (c) && (c) <= 'z'))
7338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7339 #endif
7340
7341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7342 int
7343 main ()
7344 {
7345 int i;
7346 for (i = 0; i < 256; i++)
7347 if (XOR (islower (i), ISLOWER (i))
7348 || toupper (i) != TOUPPER (i))
7349 return 2;
7350 return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest$ac_exeext
7354 if { (ac_try="$ac_link"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_link") 2>&5
7362 ac_status=$?
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7365 { (case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_try") 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 :
7376 else
7377 $as_echo "$as_me: program exited with status $ac_status" >&5
7378 $as_echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 ( exit $ac_status )
7382 ac_cv_header_stdc=no
7383 fi
7384 rm -rf conftest.dSYM
7385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7386 fi
7387
7388
7389 fi
7390 fi
7391 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7392 $as_echo "$ac_cv_header_stdc" >&6; }
7393 if test $ac_cv_header_stdc = yes; then
7394
7395 cat >>confdefs.h <<\_ACEOF
7396 #define STDC_HEADERS 1
7397 _ACEOF
7398
7399 fi
7400
7401 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7403 if test "${ac_cv_header_time+set}" = set; then
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h. */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <sys/time.h>
7414 #include <time.h>
7415
7416 int
7417 main ()
7418 {
7419 if ((struct tm *) 0)
7420 return 0;
7421 ;
7422 return 0;
7423 }
7424 _ACEOF
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7427 case "(($ac_try" in
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7430 esac
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 ac_cv_header_time=yes
7444 else
7445 $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7447
7448 ac_cv_header_time=no
7449 fi
7450
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7452 fi
7453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7454 $as_echo "$ac_cv_header_time" >&6; }
7455 if test $ac_cv_header_time = yes; then
7456
7457 cat >>confdefs.h <<\_ACEOF
7458 #define TIME_WITH_SYS_TIME 1
7459 _ACEOF
7460
7461 fi
7462
7463 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7464 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7465 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7467 else
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7475 int
7476 main ()
7477 {
7478 #ifndef sys_siglist
7479 (void) sys_siglist;
7480 #endif
7481
7482 ;
7483 return 0;
7484 }
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7488 case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491 esac
7492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493 $as_echo "$ac_try_echo") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_have_decl_sys_siglist=yes
7505 else
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509 ac_cv_have_decl_sys_siglist=no
7510 fi
7511
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 fi
7514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7515 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7516 if test $ac_cv_have_decl_sys_siglist = yes; then
7517
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 1
7520 _ACEOF
7521
7522
7523 else
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DECL_SYS_SIGLIST 0
7526 _ACEOF
7527
7528
7529 fi
7530
7531
7532 if test $ac_cv_have_decl_sys_siglist != yes; then
7533 # For Tru64, at least:
7534 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7535 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7536 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7538 else
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 int
7547 main ()
7548 {
7549 #ifndef __sys_siglist
7550 (void) __sys_siglist;
7551 #endif
7552
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 ac_cv_have_decl___sys_siglist=yes
7576 else
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7579
7580 ac_cv_have_decl___sys_siglist=no
7581 fi
7582
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 fi
7585 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7586 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7587 if test $ac_cv_have_decl___sys_siglist = yes; then
7588
7589 cat >>confdefs.h <<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 1
7591 _ACEOF
7592
7593
7594 else
7595 cat >>confdefs.h <<_ACEOF
7596 #define HAVE_DECL___SYS_SIGLIST 0
7597 _ACEOF
7598
7599
7600 fi
7601
7602
7603 if test $ac_cv_have_decl___sys_siglist = yes; then
7604
7605 cat >>confdefs.h <<\_ACEOF
7606 #define sys_siglist __sys_siglist
7607 _ACEOF
7608
7609 fi
7610 fi
7611 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7612 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7615 else
7616 cat >conftest.$ac_ext <<_ACEOF
7617 /* confdefs.h. */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7623 #include <sys/wait.h>
7624 #ifndef WEXITSTATUS
7625 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7626 #endif
7627 #ifndef WIFEXITED
7628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7629 #endif
7630
7631 int
7632 main ()
7633 {
7634 int s;
7635 wait (&s);
7636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7637 ;
7638 return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7646 esac
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_cv_header_sys_wait_h=yes
7660 else
7661 $as_echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_cv_header_sys_wait_h=no
7665 fi
7666
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 fi
7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7670 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7671 if test $ac_cv_header_sys_wait_h = yes; then
7672
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_SYS_WAIT_H 1
7675 _ACEOF
7676
7677 fi
7678
7679
7680 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7681 $as_echo_n "checking for struct utimbuf... " >&6; }
7682 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7684 else
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #ifdef TIME_WITH_SYS_TIME
7692 #include <sys/time.h>
7693 #include <time.h>
7694 #else
7695 #ifdef HAVE_SYS_TIME_H
7696 #include <sys/time.h>
7697 #else
7698 #include <time.h>
7699 #endif
7700 #endif
7701 #ifdef HAVE_UTIME_H
7702 #include <utime.h>
7703 #endif
7704 int
7705 main ()
7706 {
7707 static struct utimbuf x; x.actime = x.modtime;
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7714 case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717 esac
7718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.$ac_objext; then
7730 emacs_cv_struct_utimbuf=yes
7731 else
7732 $as_echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7734
7735 emacs_cv_struct_utimbuf=no
7736 fi
7737
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 fi
7740 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7741 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7742 if test $emacs_cv_struct_utimbuf = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_STRUCT_UTIMBUF 1
7746 _ACEOF
7747
7748 fi
7749
7750 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7751 $as_echo_n "checking return type of signal handlers... " >&6; }
7752 if test "${ac_cv_type_signal+set}" = set; then
7753 $as_echo_n "(cached) " >&6
7754 else
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7762 #include <signal.h>
7763
7764 int
7765 main ()
7766 {
7767 return *(signal (0, 0)) (0) == 1;
7768 ;
7769 return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7790 ac_cv_type_signal=int
7791 else
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 ac_cv_type_signal=void
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 fi
7800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7801 $as_echo "$ac_cv_type_signal" >&6; }
7802
7803 cat >>confdefs.h <<_ACEOF
7804 #define RETSIGTYPE $ac_cv_type_signal
7805 _ACEOF
7806
7807
7808
7809 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7810 $as_echo_n "checking for speed_t... " >&6; }
7811 if test "${emacs_cv_speed_t+set}" = set; then
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h. */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <termios.h>
7821 int
7822 main ()
7823 {
7824 speed_t x = 1;
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 emacs_cv_speed_t=yes
7848 else
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 emacs_cv_speed_t=no
7853 fi
7854
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 fi
7857 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7858 $as_echo "$emacs_cv_speed_t" >&6; }
7859 if test $emacs_cv_speed_t = yes; then
7860
7861 cat >>confdefs.h <<\_ACEOF
7862 #define HAVE_SPEED_T 1
7863 _ACEOF
7864
7865 fi
7866
7867 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7868 $as_echo_n "checking for struct timeval... " >&6; }
7869 if test "${emacs_cv_struct_timeval+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7871 else
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #ifdef TIME_WITH_SYS_TIME
7879 #include <sys/time.h>
7880 #include <time.h>
7881 #else
7882 #ifdef HAVE_SYS_TIME_H
7883 #include <sys/time.h>
7884 #else
7885 #include <time.h>
7886 #endif
7887 #endif
7888 int
7889 main ()
7890 {
7891 static struct timeval x; x.tv_sec = x.tv_usec;
7892 ;
7893 return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7898 case "(($ac_try" in
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7901 esac
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
7914 emacs_cv_struct_timeval=yes
7915 else
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 emacs_cv_struct_timeval=no
7920 fi
7921
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7925 $as_echo "$emacs_cv_struct_timeval" >&6; }
7926 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7927 if test $emacs_cv_struct_timeval = yes; then
7928
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_TIMEVAL 1
7931 _ACEOF
7932
7933 fi
7934
7935 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7936 $as_echo_n "checking for struct exception... " >&6; }
7937 if test "${emacs_cv_struct_exception+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <math.h>
7947 int
7948 main ()
7949 {
7950 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.$ac_objext; then
7973 emacs_cv_struct_exception=yes
7974 else
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 emacs_cv_struct_exception=no
7979 fi
7980
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 fi
7983 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7984 $as_echo "$emacs_cv_struct_exception" >&6; }
7985 HAVE_EXCEPTION=$emacs_cv_struct_exception
7986 if test $emacs_cv_struct_exception != yes; then
7987
7988 cat >>confdefs.h <<\_ACEOF
7989 #define NO_MATHERR 1
7990 _ACEOF
7991
7992 fi
7993
7994
7995 for ac_header in sys/socket.h
7996 do
7997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 $as_echo_n "checking for $ac_header... " >&6; }
8001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 $as_echo_n "(cached) " >&6
8003 fi
8004 ac_res=`eval 'as_val=${'$as_ac_Header'}
8005 $as_echo "$as_val"'`
8006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8007 $as_echo "$ac_res" >&6; }
8008 else
8009 # Is the header compilable?
8010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 $as_echo_n "checking $ac_header usability... " >&6; }
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8023 case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026 esac
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_header_compiler=yes
8040 else
8041 $as_echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8043
8044 ac_header_compiler=no
8045 fi
8046
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 $as_echo "$ac_header_compiler" >&6; }
8050
8051 # Is the header present?
8052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8053 $as_echo_n "checking $ac_header presence... " >&6; }
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <$ac_header>
8061 _ACEOF
8062 if { (ac_try="$ac_cpp conftest.$ac_ext"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev/null && {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 }; then
8079 ac_header_preproc=yes
8080 else
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_header_preproc=no
8085 fi
8086
8087 rm -f conftest.err conftest.$ac_ext
8088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 $as_echo "$ac_header_preproc" >&6; }
8090
8091 # So? What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8093 yes:no: )
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc=yes
8099 ;;
8100 no:yes:* )
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8113
8114 ;;
8115 esac
8116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8117 $as_echo_n "checking for $ac_header... " >&6; }
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 $as_echo_n "(cached) " >&6
8120 else
8121 eval "$as_ac_Header=\$ac_header_preproc"
8122 fi
8123 ac_res=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8127
8128 fi
8129 if test `eval 'as_val=${'$as_ac_Header'}
8130 $as_echo "$as_val"'` = yes; then
8131 cat >>confdefs.h <<_ACEOF
8132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8133 _ACEOF
8134
8135 fi
8136
8137 done
8138
8139
8140 for ac_header in net/if.h
8141 do
8142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 $as_echo_n "checking for $ac_header... " >&6; }
8145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 #if HAVE_SYS_SOCKET_H
8156 #include <sys/socket.h>
8157 #endif
8158
8159 #include <$ac_header>
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (ac_try="$ac_compile"
8163 case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166 esac
8167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168 $as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 eval "$as_ac_Header=yes"
8180 else
8181 $as_echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 eval "$as_ac_Header=no"
8185 fi
8186
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 fi
8189 ac_res=`eval 'as_val=${'$as_ac_Header'}
8190 $as_echo "$as_val"'`
8191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8192 $as_echo "$ac_res" >&6; }
8193 if test `eval 'as_val=${'$as_ac_Header'}
8194 $as_echo "$as_val"'` = yes; then
8195 cat >>confdefs.h <<_ACEOF
8196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8197 _ACEOF
8198
8199 fi
8200
8201 done
8202
8203
8204 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8205 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8206 if test "${ac_cv_struct_tm+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #include <sys/types.h>
8216 #include <time.h>
8217
8218 int
8219 main ()
8220 {
8221 struct tm tm;
8222 int *p = &tm.tm_sec;
8223 return !p;
8224 ;
8225 return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 ac_cv_struct_tm=time.h
8247 else
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 ac_cv_struct_tm=sys/time.h
8252 fi
8253
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 fi
8256 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8257 $as_echo "$ac_cv_struct_tm" >&6; }
8258 if test $ac_cv_struct_tm = sys/time.h; then
8259
8260 cat >>confdefs.h <<\_ACEOF
8261 #define TM_IN_SYS_TIME 1
8262 _ACEOF
8263
8264 fi
8265
8266 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8267 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8268 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8270 else
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8278 #include <$ac_cv_struct_tm>
8279
8280
8281 int
8282 main ()
8283 {
8284 static struct tm ac_aggr;
8285 if (ac_aggr.tm_zone)
8286 return 0;
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8293 case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296 esac
8297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298 $as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_tm_tm_zone=yes
8310 else
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <sys/types.h>
8321 #include <$ac_cv_struct_tm>
8322
8323
8324 int
8325 main ()
8326 {
8327 static struct tm ac_aggr;
8328 if (sizeof ac_aggr.tm_zone)
8329 return 0;
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8336 case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339 esac
8340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest.$ac_objext; then
8352 ac_cv_member_struct_tm_tm_zone=yes
8353 else
8354 $as_echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_member_struct_tm_tm_zone=no
8358 fi
8359
8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 fi
8362
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8364 fi
8365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8366 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8367 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8368
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_STRUCT_TM_TM_ZONE 1
8371 _ACEOF
8372
8373
8374 fi
8375
8376 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8377
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE_TM_ZONE 1
8380 _ACEOF
8381
8382 else
8383 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8384 $as_echo_n "checking whether tzname is declared... " >&6; }
8385 if test "${ac_cv_have_decl_tzname+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h. */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 #include <time.h>
8395
8396 int
8397 main ()
8398 {
8399 #ifndef tzname
8400 (void) tzname;
8401 #endif
8402
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (ac_try="$ac_compile"
8409 case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8412 esac
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_have_decl_tzname=yes
8426 else
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_have_decl_tzname=no
8431 fi
8432
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8436 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8437 if test $ac_cv_have_decl_tzname = yes; then
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 1
8441 _ACEOF
8442
8443
8444 else
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_TZNAME 0
8447 _ACEOF
8448
8449
8450 fi
8451
8452
8453 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8454 $as_echo_n "checking for tzname... " >&6; }
8455 if test "${ac_cv_var_tzname+set}" = set; then
8456 $as_echo_n "(cached) " >&6
8457 else
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 #include <time.h>
8465 #if !HAVE_DECL_TZNAME
8466 extern char *tzname[];
8467 #endif
8468
8469 int
8470 main ()
8471 {
8472 return tzname[0][0];
8473 ;
8474 return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_link") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest$ac_exeext
8497 }; then
8498 ac_cv_var_tzname=yes
8499 else
8500 $as_echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8502
8503 ac_cv_var_tzname=no
8504 fi
8505
8506 rm -rf conftest.dSYM
8507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8508 conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8511 $as_echo "$ac_cv_var_tzname" >&6; }
8512 if test $ac_cv_var_tzname = yes; then
8513
8514 cat >>confdefs.h <<\_ACEOF
8515 #define HAVE_TZNAME 1
8516 _ACEOF
8517
8518 fi
8519 fi
8520
8521 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8522 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8523 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <time.h>
8533
8534 int
8535 main ()
8536 {
8537 static struct tm ac_aggr;
8538 if (ac_aggr.tm_gmtoff)
8539 return 0;
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (ac_try="$ac_compile"
8546 case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549 esac
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_tm_tm_gmtoff=yes
8563 else
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 #include <time.h>
8574
8575 int
8576 main ()
8577 {
8578 static struct tm ac_aggr;
8579 if (sizeof ac_aggr.tm_gmtoff)
8580 return 0;
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (ac_try="$ac_compile"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_cv_member_struct_tm_tm_gmtoff=yes
8604 else
8605 $as_echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_cv_member_struct_tm_tm_gmtoff=no
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 fi
8613
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 fi
8616 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8617 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8618 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8619
8620 cat >>confdefs.h <<\_ACEOF
8621 #define HAVE_TM_GMTOFF 1
8622 _ACEOF
8623
8624 fi
8625
8626 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8627 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8628 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat >conftest.$ac_ext <<_ACEOF
8632 /* confdefs.h. */
8633 _ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #if HAVE_SYS_SOCKET_H
8639 #include <sys/socket.h>
8640 #endif
8641 #if HAVE_NET_IF_H
8642 #include <net/if.h>
8643 #endif
8644
8645 int
8646 main ()
8647 {
8648 static struct ifreq ac_aggr;
8649 if (ac_aggr.ifr_flags)
8650 return 0;
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8657 case "(($ac_try" in
8658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8660 esac
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663 (eval "$ac_compile") 2>conftest.er1
8664 ac_status=$?
8665 grep -v '^ *+' conftest.er1 >conftest.err
8666 rm -f conftest.er1
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest.$ac_objext; then
8673 ac_cv_member_struct_ifreq_ifr_flags=yes
8674 else
8675 $as_echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h. */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 #if HAVE_SYS_SOCKET_H
8686 #include <sys/socket.h>
8687 #endif
8688 #if HAVE_NET_IF_H
8689 #include <net/if.h>
8690 #endif
8691
8692 int
8693 main ()
8694 {
8695 static struct ifreq ac_aggr;
8696 if (sizeof ac_aggr.ifr_flags)
8697 return 0;
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_flags=yes
8721 else
8722 $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 ac_cv_member_struct_ifreq_ifr_flags=no
8726 fi
8727
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8734 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8735 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8736
8737 cat >>confdefs.h <<_ACEOF
8738 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8739 _ACEOF
8740
8741
8742 fi
8743 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8744 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8745 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8746 $as_echo_n "(cached) " >&6
8747 else
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 #if HAVE_SYS_SOCKET_H
8756 #include <sys/socket.h>
8757 #endif
8758 #if HAVE_NET_IF_H
8759 #include <net/if.h>
8760 #endif
8761
8762 int
8763 main ()
8764 {
8765 static struct ifreq ac_aggr;
8766 if (ac_aggr.ifr_hwaddr)
8767 return 0;
8768 ;
8769 return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (ac_try="$ac_compile"
8774 case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777 esac
8778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8779 $as_echo "$ac_try_echo") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8791 else
8792 $as_echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 #if HAVE_SYS_SOCKET_H
8803 #include <sys/socket.h>
8804 #endif
8805 #if HAVE_NET_IF_H
8806 #include <net/if.h>
8807 #endif
8808
8809 int
8810 main ()
8811 {
8812 static struct ifreq ac_aggr;
8813 if (sizeof ac_aggr.ifr_hwaddr)
8814 return 0;
8815 ;
8816 return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824 esac
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8837 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8838 else
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8843 fi
8844
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 fi
8847
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 fi
8850 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8851 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8852 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8853
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8856 _ACEOF
8857
8858
8859 fi
8860 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8861 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8862 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 $ac_includes_default
8872 #if HAVE_SYS_SOCKET_H
8873 #include <sys/socket.h>
8874 #endif
8875 #if HAVE_NET_IF_H
8876 #include <net/if.h>
8877 #endif
8878
8879 int
8880 main ()
8881 {
8882 static struct ifreq ac_aggr;
8883 if (ac_aggr.ifr_netmask)
8884 return 0;
8885 ;
8886 return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894 esac
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 ac_cv_member_struct_ifreq_ifr_netmask=yes
8908 else
8909 $as_echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8911
8912 cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h. */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #if HAVE_SYS_SOCKET_H
8920 #include <sys/socket.h>
8921 #endif
8922 #if HAVE_NET_IF_H
8923 #include <net/if.h>
8924 #endif
8925
8926 int
8927 main ()
8928 {
8929 static struct ifreq ac_aggr;
8930 if (sizeof ac_aggr.ifr_netmask)
8931 return 0;
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.$ac_objext; then
8954 ac_cv_member_struct_ifreq_ifr_netmask=yes
8955 else
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959 ac_cv_member_struct_ifreq_ifr_netmask=no
8960 fi
8961
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 fi
8964
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8968 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8969 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8973 _ACEOF
8974
8975
8976 fi
8977 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8978 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8979 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8989 #if HAVE_SYS_SOCKET_H
8990 #include <sys/socket.h>
8991 #endif
8992 #if HAVE_NET_IF_H
8993 #include <net/if.h>
8994 #endif
8995
8996 int
8997 main ()
8998 {
8999 static struct ifreq ac_aggr;
9000 if (ac_aggr.ifr_broadaddr)
9001 return 0;
9002 ;
9003 return 0;
9004 }
9005 _ACEOF
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9008 case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011 esac
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9025 else
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9036 #if HAVE_SYS_SOCKET_H
9037 #include <sys/socket.h>
9038 #endif
9039 #if HAVE_NET_IF_H
9040 #include <net/if.h>
9041 #endif
9042
9043 int
9044 main ()
9045 {
9046 static struct ifreq ac_aggr;
9047 if (sizeof ac_aggr.ifr_broadaddr)
9048 return 0;
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 rm -f conftest.$ac_objext
9054 if { (ac_try="$ac_compile"
9055 case "(($ac_try" in
9056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057 *) ac_try_echo=$ac_try;;
9058 esac
9059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9060 $as_echo "$ac_try_echo") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9072 else
9073 $as_echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9077 fi
9078
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 fi
9081
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 fi
9084 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9085 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9086 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9090 _ACEOF
9091
9092
9093 fi
9094 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9095 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9096 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9097 $as_echo_n "(cached) " >&6
9098 else
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #if HAVE_SYS_SOCKET_H
9107 #include <sys/socket.h>
9108 #endif
9109 #if HAVE_NET_IF_H
9110 #include <net/if.h>
9111 #endif
9112
9113 int
9114 main ()
9115 {
9116 static struct ifreq ac_aggr;
9117 if (ac_aggr.ifr_addr)
9118 return 0;
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (ac_try="$ac_compile"
9125 case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128 esac
9129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9130 $as_echo "$ac_try_echo") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9141 ac_cv_member_struct_ifreq_ifr_addr=yes
9142 else
9143 $as_echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 cat >conftest.$ac_ext <<_ACEOF
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #if HAVE_SYS_SOCKET_H
9154 #include <sys/socket.h>
9155 #endif
9156 #if HAVE_NET_IF_H
9157 #include <net/if.h>
9158 #endif
9159
9160 int
9161 main ()
9162 {
9163 static struct ifreq ac_aggr;
9164 if (sizeof ac_aggr.ifr_addr)
9165 return 0;
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.$ac_objext; then
9188 ac_cv_member_struct_ifreq_ifr_addr=yes
9189 else
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9192
9193 ac_cv_member_struct_ifreq_ifr_addr=no
9194 fi
9195
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 fi
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9202 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9203 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9204
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9207 _ACEOF
9208
9209
9210 fi
9211
9212
9213
9214 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9215 $as_echo_n "checking for function prototypes... " >&6; }
9216 if test "$ac_cv_prog_cc_c89" != no; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9219
9220 cat >>confdefs.h <<\_ACEOF
9221 #define PROTOTYPES 1
9222 _ACEOF
9223
9224
9225 cat >>confdefs.h <<\_ACEOF
9226 #define __PROTOTYPES 1
9227 _ACEOF
9228
9229 else
9230 { $as_echo "$as_me:$LINENO: result: no" >&5
9231 $as_echo "no" >&6; }
9232 fi
9233
9234 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9235 $as_echo_n "checking for working volatile... " >&6; }
9236 if test "${ac_cv_c_volatile+set}" = set; then
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245
9246 int
9247 main ()
9248 {
9249
9250 volatile int x;
9251 int * volatile y = (int *) 0;
9252 return !x && !y;
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (ac_try="$ac_compile"
9259 case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262 esac
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_cv_c_volatile=yes
9276 else
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_cv_c_volatile=no
9281 fi
9282
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9286 $as_echo "$ac_cv_c_volatile" >&6; }
9287 if test $ac_cv_c_volatile = no; then
9288
9289 cat >>confdefs.h <<\_ACEOF
9290 #define volatile /**/
9291 _ACEOF
9292
9293 fi
9294
9295 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9296 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9297 if test "${ac_cv_c_const+set}" = set; then
9298 $as_echo_n "(cached) " >&6
9299 else
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h. */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306
9307 int
9308 main ()
9309 {
9310 /* FIXME: Include the comments suggested by Paul. */
9311 #ifndef __cplusplus
9312 /* Ultrix mips cc rejects this. */
9313 typedef int charset[2];
9314 const charset cs;
9315 /* SunOS 4.1.1 cc rejects this. */
9316 char const *const *pcpcc;
9317 char **ppc;
9318 /* NEC SVR4.0.2 mips cc rejects this. */
9319 struct point {int x, y;};
9320 static struct point const zero = {0,0};
9321 /* AIX XL C 1.02.0.0 rejects this.
9322 It does not let you subtract one const X* pointer from another in
9323 an arm of an if-expression whose if-part is not a constant
9324 expression */
9325 const char *g = "string";
9326 pcpcc = &g + (g ? g-g : 0);
9327 /* HPUX 7.0 cc rejects these. */
9328 ++pcpcc;
9329 ppc = (char**) pcpcc;
9330 pcpcc = (char const *const *) ppc;
9331 { /* SCO 3.2v4 cc rejects this. */
9332 char *t;
9333 char const *s = 0 ? (char *) 0 : (char const *) 0;
9334
9335 *t++ = 0;
9336 if (s) return 0;
9337 }
9338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9339 int x[] = {25, 17};
9340 const int *foo = &x[0];
9341 ++foo;
9342 }
9343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9344 typedef const int *iptr;
9345 iptr p = 0;
9346 ++p;
9347 }
9348 { /* AIX XL C 1.02.0.0 rejects this saying
9349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9350 struct s { int j; const int *ap[3]; };
9351 struct s *b; b->j = 5;
9352 }
9353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9354 const int foo = 10;
9355 if (!foo) return 0;
9356 }
9357 return !cs[0] && !zero.x;
9358 #endif
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9366 case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
9382 ac_cv_c_const=yes
9383 else
9384 $as_echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 ac_cv_c_const=no
9388 fi
9389
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9393 $as_echo "$ac_cv_c_const" >&6; }
9394 if test $ac_cv_c_const = no; then
9395
9396 cat >>confdefs.h <<\_ACEOF
9397 #define const /**/
9398 _ACEOF
9399
9400 fi
9401
9402 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9403 $as_echo_n "checking for void * support... " >&6; }
9404 if test "${emacs_cv_void_star+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9406 else
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413
9414 int
9415 main ()
9416 {
9417 void * foo;
9418 ;
9419 return 0;
9420 }
9421 _ACEOF
9422 rm -f conftest.$ac_objext
9423 if { (ac_try="$ac_compile"
9424 case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427 esac
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9440 emacs_cv_void_star=yes
9441 else
9442 $as_echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 emacs_cv_void_star=no
9446 fi
9447
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9451 $as_echo "$emacs_cv_void_star" >&6; }
9452 if test $emacs_cv_void_star = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define POINTER_TYPE void
9455 _ACEOF
9456
9457 else
9458 cat >>confdefs.h <<\_ACEOF
9459 #define POINTER_TYPE char
9460 _ACEOF
9461
9462 fi
9463
9464
9465
9466
9467
9468 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9469 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9470 set x ${MAKE-make}
9471 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9472 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat >conftest.make <<\_ACEOF
9476 SHELL = /bin/sh
9477 all:
9478 @echo '@@@%%%=$(MAKE)=@@@%%%'
9479 _ACEOF
9480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9481 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9482 *@@@%%%=?*=@@@%%%*)
9483 eval ac_cv_prog_make_${ac_make}_set=yes;;
9484 *)
9485 eval ac_cv_prog_make_${ac_make}_set=no;;
9486 esac
9487 rm -f conftest.make
9488 fi
9489 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9490 { $as_echo "$as_me:$LINENO: result: yes" >&5
9491 $as_echo "yes" >&6; }
9492 SET_MAKE=
9493 else
9494 { $as_echo "$as_me:$LINENO: result: no" >&5
9495 $as_echo "no" >&6; }
9496 SET_MAKE="MAKE=${MAKE-make}"
9497 fi
9498
9499
9500 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9501 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9502 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9503 HAVE_GNU_MAKE=no
9504 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9505 if test "x$testval" != x; then
9506 HAVE_GNU_MAKE=yes
9507 else
9508 ac_enable_autodepend=no
9509 fi
9510 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9511 $as_echo "$HAVE_GNU_MAKE" >&6; }
9512 if test $HAVE_GNU_MAKE = yes; then
9513 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9514 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9515 SAVE_CFLAGS="$CFLAGS"
9516 CFLAGS="$CFLAGS -MMD -MF deps.d"
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523
9524 int
9525 main ()
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 :
9551 else
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_enable_autodepend=no
9556 fi
9557
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 CFLAGS="$SAVE_CFLAGS"
9560 test -f deps.d || ac_enable_autodepend=no
9561 rm -rf deps.d
9562 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9563 $as_echo "$ac_enable_autodepend" >&6; }
9564 fi
9565 if test $ac_enable_autodepend = yes; then
9566
9567 cat >>confdefs.h <<\_ACEOF
9568 #define AUTO_DEPEND 1
9569 _ACEOF
9570
9571 fi
9572 fi
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=`pwd`/nextstep/Emacs.app/Contents/MacOS
9947 ns_appresdir=`pwd`/nextstep/Emacs.app/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=`pwd`/nextstep/Emacs.app
9953 ns_appresdir=`pwd`/nextstep/Emacs.app/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 NS_IMPL_GNUSTEP_INC="FOUNDATION_LIB=gnu
9960 GUI_LIB=gnu
9961 include $GNUSTEP_MAKEFILES/Additional/base.make
9962 include $GNUSTEP_MAKEFILES/Additional/gui.make
9963 shared=no
9964 "
9965 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9966 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9967 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9968 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9969 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9970 LIB_STANDARD=
9971 START_FILES=
9972 TEMACS_LDFLAGS2=
9973 fi
9974 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9975 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9976 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9977 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9978 $as_echo_n "(cached) " >&6
9979 fi
9980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9981 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9982 else
9983 # Is the header compilable?
9984 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9985 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 #include <AppKit/AppKit.h>
9994 _ACEOF
9995 rm -f conftest.$ac_objext
9996 if { (ac_try="$ac_compile"
9997 case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002 $as_echo "$ac_try_echo") >&5
10003 (eval "$ac_compile") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest.$ac_objext; then
10013 ac_header_compiler=yes
10014 else
10015 $as_echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 ac_header_compiler=no
10019 fi
10020
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10023 $as_echo "$ac_header_compiler" >&6; }
10024
10025 # Is the header present?
10026 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10027 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h. */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <AppKit/AppKit.h>
10035 _ACEOF
10036 if { (ac_try="$ac_cpp conftest.$ac_ext"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040 esac
10041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } >/dev/null && {
10050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 }; then
10053 ac_header_preproc=yes
10054 else
10055 $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 ac_header_preproc=no
10059 fi
10060
10061 rm -f conftest.err conftest.$ac_ext
10062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10063 $as_echo "$ac_header_preproc" >&6; }
10064
10065 # So? What about this header?
10066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10067 yes:no: )
10068 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10069 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10071 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10072 ac_header_preproc=yes
10073 ;;
10074 no:yes:* )
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10080 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10082 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10084 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10086 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10087
10088 ;;
10089 esac
10090 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10091 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10092 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10093 $as_echo_n "(cached) " >&6
10094 else
10095 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10096 fi
10097 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10098 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10099
10100 fi
10101 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10102 HAVE_NS=yes
10103 else
10104 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10105 files are missing or cannot be compiled." >&5
10106 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10107 files are missing or cannot be compiled." >&2;}
10108 { (exit 1); exit 1; }; }
10109 fi
10110
10111
10112 NS_HAVE_NSINTEGER=yes
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <Foundation/NSObjCRuntime.h>
10120 int
10121 main ()
10122 {
10123 NSInteger i;
10124 ;
10125 return 0;
10126 }
10127 _ACEOF
10128 rm -f conftest.$ac_objext
10129 if { (ac_try="$ac_compile"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10135 $as_echo "$ac_try_echo") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.$ac_objext; then
10146 ns_have_nsinteger=yes
10147 else
10148 $as_echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 ns_have_nsinteger=no
10152 fi
10153
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 if test $ns_have_nsinteger = no; then
10156 NS_HAVE_NSINTEGER=no
10157 fi
10158 fi
10159
10160
10161
10162
10163 NS_OBJ=
10164 NS_SUPPORT=
10165 if test "${HAVE_NS}" = yes; then
10166 window_system=nextstep
10167 with_xft=no
10168 # set up packaging dirs
10169 exec_prefix=${ns_appbindir}
10170 libexecdir=${ns_appbindir}/libexec
10171 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10172 prefix=${ns_appresdir}
10173 fi
10174 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10175 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10176 fi
10177 CFLAGS="$tmp_CFLAGS"
10178 CPPFLAGS="$tmp_CPPFLAGS"
10179
10180
10181
10182
10183 case "${window_system}" in
10184 x11 )
10185 HAVE_X_WINDOWS=yes
10186 HAVE_X11=yes
10187 case "${with_x_toolkit}" in
10188 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10189 motif ) USE_X_TOOLKIT=MOTIF ;;
10190 gtk ) with_gtk=yes
10191 USE_X_TOOLKIT=none ;;
10192 no ) USE_X_TOOLKIT=none ;;
10193 * ) USE_X_TOOLKIT=maybe ;;
10194 esac
10195 ;;
10196 nextstep | none )
10197 HAVE_X_WINDOWS=no
10198 HAVE_X11=no
10199 USE_X_TOOLKIT=none
10200 ;;
10201 esac
10202
10203 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10204 # Extract the first word of "X", so it can be a program name with args.
10205 set dummy X; ac_word=$2
10206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10209 $as_echo_n "(cached) " >&6
10210 else
10211 if test -n "$HAVE_XSERVER"; then
10212 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10213 else
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10216 do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_prog_HAVE_XSERVER="true"
10222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225 done
10226 done
10227 IFS=$as_save_IFS
10228
10229 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10230 fi
10231 fi
10232 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10233 if test -n "$HAVE_XSERVER"; then
10234 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10235 $as_echo "$HAVE_XSERVER" >&6; }
10236 else
10237 { $as_echo "$as_me:$LINENO: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240
10241
10242 if test "$HAVE_XSERVER" = true ||
10243 test -n "$DISPLAY" ||
10244 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10245 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10246 were found. You should install the relevant development files for X
10247 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10248 sure you have development files for image handling, i.e.
10249 tiff, gif, jpeg, png and xpm.
10250 If you are sure you want Emacs compiled without X window support, pass
10251 --without-x
10252 to configure." >&5
10253 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10254 were found. You should install the relevant development files for X
10255 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10256 sure you have development files for image handling, i.e.
10257 tiff, gif, jpeg, png and xpm.
10258 If you are sure you want Emacs compiled without X window support, pass
10259 --without-x
10260 to configure." >&2;}
10261 { (exit 1); exit 1; }; }
10262 fi
10263 fi
10264
10265 ### If we're using X11, we should use the X menu package.
10266 HAVE_MENUS=no
10267 case ${HAVE_X11} in
10268 yes ) HAVE_MENUS=yes ;;
10269 esac
10270
10271 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10272 # Assume not, until told otherwise.
10273 GNU_MALLOC=yes
10274 doug_lea_malloc=yes
10275 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10276 $as_echo_n "checking for malloc_get_state... " >&6; }
10277 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10278 $as_echo_n "(cached) " >&6
10279 else
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h. */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10288 #define malloc_get_state innocuous_malloc_get_state
10289
10290 /* System header to define __stub macros and hopefully few prototypes,
10291 which can conflict with char malloc_get_state (); below.
10292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10293 <limits.h> exists even on freestanding compilers. */
10294
10295 #ifdef __STDC__
10296 # include <limits.h>
10297 #else
10298 # include <assert.h>
10299 #endif
10300
10301 #undef malloc_get_state
10302
10303 /* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 char malloc_get_state ();
10310 /* The GNU C library defines this for functions which it implements
10311 to always fail with ENOSYS. Some functions are actually named
10312 something starting with __ and the normal name is an alias. */
10313 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10314 choke me
10315 #endif
10316
10317 int
10318 main ()
10319 {
10320 return malloc_get_state ();
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332 $as_echo "$ac_try_echo") >&5
10333 (eval "$ac_link") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext && {
10343 test "$cross_compiling" = yes ||
10344 $as_test_x conftest$ac_exeext
10345 }; then
10346 ac_cv_func_malloc_get_state=yes
10347 else
10348 $as_echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 ac_cv_func_malloc_get_state=no
10352 fi
10353
10354 rm -rf conftest.dSYM
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356 conftest$ac_exeext conftest.$ac_ext
10357 fi
10358 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10359 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10360 if test $ac_cv_func_malloc_get_state = yes; then
10361 :
10362 else
10363 doug_lea_malloc=no
10364 fi
10365
10366 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10367 $as_echo_n "checking for malloc_set_state... " >&6; }
10368 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10369 $as_echo_n "(cached) " >&6
10370 else
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10379 #define malloc_set_state innocuous_malloc_set_state
10380
10381 /* System header to define __stub macros and hopefully few prototypes,
10382 which can conflict with char malloc_set_state (); below.
10383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10384 <limits.h> exists even on freestanding compilers. */
10385
10386 #ifdef __STDC__
10387 # include <limits.h>
10388 #else
10389 # include <assert.h>
10390 #endif
10391
10392 #undef malloc_set_state
10393
10394 /* Override any GCC internal prototype to avoid an error.
10395 Use char because int might match the return type of a GCC
10396 builtin and then its argument prototype would still apply. */
10397 #ifdef __cplusplus
10398 extern "C"
10399 #endif
10400 char malloc_set_state ();
10401 /* The GNU C library defines this for functions which it implements
10402 to always fail with ENOSYS. Some functions are actually named
10403 something starting with __ and the normal name is an alias. */
10404 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10405 choke me
10406 #endif
10407
10408 int
10409 main ()
10410 {
10411 return malloc_set_state ();
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421 esac
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424 (eval "$ac_link") 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest$ac_exeext && {
10434 test "$cross_compiling" = yes ||
10435 $as_test_x conftest$ac_exeext
10436 }; then
10437 ac_cv_func_malloc_set_state=yes
10438 else
10439 $as_echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442 ac_cv_func_malloc_set_state=no
10443 fi
10444
10445 rm -rf conftest.dSYM
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10448 fi
10449 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10450 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10451 if test $ac_cv_func_malloc_set_state = yes; then
10452 :
10453 else
10454 doug_lea_malloc=no
10455 fi
10456
10457 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10458 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10459 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10460 $as_echo_n "(cached) " >&6
10461 else
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 extern void (* __after_morecore_hook)();
10469 int
10470 main ()
10471 {
10472 __after_morecore_hook = 0
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10484 $as_echo "$ac_try_echo") >&5
10485 (eval "$ac_link") 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest$ac_exeext && {
10495 test "$cross_compiling" = yes ||
10496 $as_test_x conftest$ac_exeext
10497 }; then
10498 emacs_cv_var___after_morecore_hook=yes
10499 else
10500 $as_echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503 emacs_cv_var___after_morecore_hook=no
10504 fi
10505
10506 rm -rf conftest.dSYM
10507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10508 conftest$ac_exeext conftest.$ac_ext
10509 fi
10510 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10511 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10512 if test $emacs_cv_var___after_morecore_hook = no; then
10513 doug_lea_malloc=no
10514 fi
10515 if test "${system_malloc}" = "yes"; then
10516 GNU_MALLOC=no
10517 GNU_MALLOC_reason="
10518 (The GNU allocators don't work with this system configuration.)"
10519 fi
10520 if test "$doug_lea_malloc" = "yes" ; then
10521 if test "$GNU_MALLOC" = yes ; then
10522 GNU_MALLOC_reason="
10523 (Using Doug Lea's new malloc from the GNU C Library.)"
10524 fi
10525
10526 cat >>confdefs.h <<\_ACEOF
10527 #define DOUG_LEA_MALLOC 1
10528 _ACEOF
10529
10530 fi
10531
10532 if test x"${REL_ALLOC}" = x; then
10533 REL_ALLOC=${GNU_MALLOC}
10534 fi
10535
10536
10537
10538
10539 for ac_header in stdlib.h unistd.h
10540 do
10541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 $as_echo_n "checking for $ac_header... " >&6; }
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 $as_echo_n "(cached) " >&6
10547 fi
10548 ac_res=`eval 'as_val=${'$as_ac_Header'}
10549 $as_echo "$as_val"'`
10550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10551 $as_echo "$ac_res" >&6; }
10552 else
10553 # Is the header compilable?
10554 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10555 $as_echo_n "checking $ac_header usability... " >&6; }
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 #include <$ac_header>
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (ac_try="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10570 esac
10571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10572 $as_echo "$ac_try_echo") >&5
10573 (eval "$ac_compile") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && {
10580 test -z "$ac_c_werror_flag" ||
10581 test ! -s conftest.err
10582 } && test -s conftest.$ac_objext; then
10583 ac_header_compiler=yes
10584 else
10585 $as_echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10587
10588 ac_header_compiler=no
10589 fi
10590
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10593 $as_echo "$ac_header_compiler" >&6; }
10594
10595 # Is the header present?
10596 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10597 $as_echo_n "checking $ac_header presence... " >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <$ac_header>
10605 _ACEOF
10606 if { (ac_try="$ac_cpp conftest.$ac_ext"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } >/dev/null && {
10620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 }; then
10623 ac_header_preproc=yes
10624 else
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10627
10628 ac_header_preproc=no
10629 fi
10630
10631 rm -f conftest.err conftest.$ac_ext
10632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 $as_echo "$ac_header_preproc" >&6; }
10634
10635 # So? What about this header?
10636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10637 yes:no: )
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10642 ac_header_preproc=yes
10643 ;;
10644 no:yes:* )
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10648 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10650 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657
10658 ;;
10659 esac
10660 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10661 $as_echo_n "checking for $ac_header... " >&6; }
10662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10663 $as_echo_n "(cached) " >&6
10664 else
10665 eval "$as_ac_Header=\$ac_header_preproc"
10666 fi
10667 ac_res=`eval 'as_val=${'$as_ac_Header'}
10668 $as_echo "$as_val"'`
10669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10670 $as_echo "$ac_res" >&6; }
10671
10672 fi
10673 if test `eval 'as_val=${'$as_ac_Header'}
10674 $as_echo "$as_val"'` = yes; then
10675 cat >>confdefs.h <<_ACEOF
10676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677 _ACEOF
10678
10679 fi
10680
10681 done
10682
10683
10684 for ac_func in getpagesize
10685 do
10686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10688 $as_echo_n "checking for $ac_func... " >&6; }
10689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10690 $as_echo_n "(cached) " >&6
10691 else
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700 #define $ac_func innocuous_$ac_func
10701
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char $ac_func (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10706
10707 #ifdef __STDC__
10708 # include <limits.h>
10709 #else
10710 # include <assert.h>
10711 #endif
10712
10713 #undef $ac_func
10714
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char $ac_func ();
10722 /* The GNU C library defines this for functions which it implements
10723 to always fail with ENOSYS. Some functions are actually named
10724 something starting with __ and the normal name is an alias. */
10725 #if defined __stub_$ac_func || defined __stub___$ac_func
10726 choke me
10727 #endif
10728
10729 int
10730 main ()
10731 {
10732 return $ac_func ();
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742 esac
10743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744 $as_echo "$ac_try_echo") >&5
10745 (eval "$ac_link") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest$ac_exeext && {
10755 test "$cross_compiling" = yes ||
10756 $as_test_x conftest$ac_exeext
10757 }; then
10758 eval "$as_ac_var=yes"
10759 else
10760 $as_echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 eval "$as_ac_var=no"
10764 fi
10765
10766 rm -rf conftest.dSYM
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769 fi
10770 ac_res=`eval 'as_val=${'$as_ac_var'}
10771 $as_echo "$as_val"'`
10772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10773 $as_echo "$ac_res" >&6; }
10774 if test `eval 'as_val=${'$as_ac_var'}
10775 $as_echo "$as_val"'` = yes; then
10776 cat >>confdefs.h <<_ACEOF
10777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10778 _ACEOF
10779
10780 fi
10781 done
10782
10783 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10784 $as_echo_n "checking for working mmap... " >&6; }
10785 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10786 $as_echo_n "(cached) " >&6
10787 else
10788 if test "$cross_compiling" = yes; then
10789 ac_cv_func_mmap_fixed_mapped=no
10790 else
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 $ac_includes_default
10798 /* malloc might have been renamed as rpl_malloc. */
10799 #undef malloc
10800
10801 /* Thanks to Mike Haertel and Jim Avera for this test.
10802 Here is a matrix of mmap possibilities:
10803 mmap private not fixed
10804 mmap private fixed at somewhere currently unmapped
10805 mmap private fixed at somewhere already mapped
10806 mmap shared not fixed
10807 mmap shared fixed at somewhere currently unmapped
10808 mmap shared fixed at somewhere already mapped
10809 For private mappings, we should verify that changes cannot be read()
10810 back from the file, nor mmap's back from the file at a different
10811 address. (There have been systems where private was not correctly
10812 implemented like the infamous i386 svr4.0, and systems where the
10813 VM page cache was not coherent with the file system buffer cache
10814 like early versions of FreeBSD and possibly contemporary NetBSD.)
10815 For shared mappings, we should conversely verify that changes get
10816 propagated back to all the places they're supposed to be.
10817
10818 Grep wants private fixed already mapped.
10819 The main things grep needs to know about mmap are:
10820 * does it exist and is it safe to write into the mmap'd area
10821 * how to use it (BSD variants) */
10822
10823 #include <fcntl.h>
10824 #include <sys/mman.h>
10825
10826 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10827 char *malloc ();
10828 #endif
10829
10830 /* This mess was copied from the GNU getpagesize.h. */
10831 #ifndef HAVE_GETPAGESIZE
10832 /* Assume that all systems that can run configure have sys/param.h. */
10833 # ifndef HAVE_SYS_PARAM_H
10834 # define HAVE_SYS_PARAM_H 1
10835 # endif
10836
10837 # ifdef _SC_PAGESIZE
10838 # define getpagesize() sysconf(_SC_PAGESIZE)
10839 # else /* no _SC_PAGESIZE */
10840 # ifdef HAVE_SYS_PARAM_H
10841 # include <sys/param.h>
10842 # ifdef EXEC_PAGESIZE
10843 # define getpagesize() EXEC_PAGESIZE
10844 # else /* no EXEC_PAGESIZE */
10845 # ifdef NBPG
10846 # define getpagesize() NBPG * CLSIZE
10847 # ifndef CLSIZE
10848 # define CLSIZE 1
10849 # endif /* no CLSIZE */
10850 # else /* no NBPG */
10851 # ifdef NBPC
10852 # define getpagesize() NBPC
10853 # else /* no NBPC */
10854 # ifdef PAGESIZE
10855 # define getpagesize() PAGESIZE
10856 # endif /* PAGESIZE */
10857 # endif /* no NBPC */
10858 # endif /* no NBPG */
10859 # endif /* no EXEC_PAGESIZE */
10860 # else /* no HAVE_SYS_PARAM_H */
10861 # define getpagesize() 8192 /* punt totally */
10862 # endif /* no HAVE_SYS_PARAM_H */
10863 # endif /* no _SC_PAGESIZE */
10864
10865 #endif /* no HAVE_GETPAGESIZE */
10866
10867 int
10868 main ()
10869 {
10870 char *data, *data2, *data3;
10871 int i, pagesize;
10872 int fd;
10873
10874 pagesize = getpagesize ();
10875
10876 /* First, make a file with some known garbage in it. */
10877 data = (char *) malloc (pagesize);
10878 if (!data)
10879 return 1;
10880 for (i = 0; i < pagesize; ++i)
10881 *(data + i) = rand ();
10882 umask (0);
10883 fd = creat ("conftest.mmap", 0600);
10884 if (fd < 0)
10885 return 1;
10886 if (write (fd, data, pagesize) != pagesize)
10887 return 1;
10888 close (fd);
10889
10890 /* Next, try to mmap the file at a fixed address which already has
10891 something else allocated at it. If we can, also make sure that
10892 we see the same garbage. */
10893 fd = open ("conftest.mmap", O_RDWR);
10894 if (fd < 0)
10895 return 1;
10896 data2 = (char *) malloc (2 * pagesize);
10897 if (!data2)
10898 return 1;
10899 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10900 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10901 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10902 return 1;
10903 for (i = 0; i < pagesize; ++i)
10904 if (*(data + i) != *(data2 + i))
10905 return 1;
10906
10907 /* Finally, make sure that changes to the mapped area do not
10908 percolate back to the file as seen by read(). (This is a bug on
10909 some variants of i386 svr4.0.) */
10910 for (i = 0; i < pagesize; ++i)
10911 *(data2 + i) = *(data2 + i) + 1;
10912 data3 = (char *) malloc (pagesize);
10913 if (!data3)
10914 return 1;
10915 if (read (fd, data3, pagesize) != pagesize)
10916 return 1;
10917 for (i = 0; i < pagesize; ++i)
10918 if (*(data + i) != *(data3 + i))
10919 return 1;
10920 close (fd);
10921 return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929 esac
10930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932 (eval "$ac_link") 2>&5
10933 ac_status=$?
10934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10936 { (case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939 esac
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_try") 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_func_mmap_fixed_mapped=yes
10947 else
10948 $as_echo "$as_me: program exited with status $ac_status" >&5
10949 $as_echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952 ( exit $ac_status )
10953 ac_cv_func_mmap_fixed_mapped=no
10954 fi
10955 rm -rf conftest.dSYM
10956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10957 fi
10958
10959
10960 fi
10961 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10962 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10963 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10964
10965 cat >>confdefs.h <<\_ACEOF
10966 #define HAVE_MMAP 1
10967 _ACEOF
10968
10969 fi
10970 rm -f conftest.mmap
10971
10972 if test $use_mmap_for_buffers = yes; then
10973 REL_ALLOC=no
10974 fi
10975
10976 LIBS="$LIBS_SYSTEM $LIBS"
10977
10978
10979 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10980 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10981 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-ldnet $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char dnet_ntoa ();
11000 int
11001 main ()
11002 {
11003 return dnet_ntoa ();
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11015 $as_echo "$ac_try_echo") >&5
11016 (eval "$ac_link") 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest$ac_exeext && {
11026 test "$cross_compiling" = yes ||
11027 $as_test_x conftest$ac_exeext
11028 }; then
11029 ac_cv_lib_dnet_dnet_ntoa=yes
11030 else
11031 $as_echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_lib_dnet_dnet_ntoa=no
11035 fi
11036
11037 rm -rf conftest.dSYM
11038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11039 conftest$ac_exeext conftest.$ac_ext
11040 LIBS=$ac_check_lib_save_LIBS
11041 fi
11042 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11043 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11044 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11045 cat >>confdefs.h <<_ACEOF
11046 #define HAVE_LIBDNET 1
11047 _ACEOF
11048
11049 LIBS="-ldnet $LIBS"
11050
11051 fi
11052
11053
11054 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11055 $as_echo_n "checking for main in -lXbsd... " >&6; }
11056 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11057 $as_echo_n "(cached) " >&6
11058 else
11059 ac_check_lib_save_LIBS=$LIBS
11060 LIBS="-lXbsd $LIBS"
11061 cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h. */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067
11068
11069 int
11070 main ()
11071 {
11072 return main ();
11073 ;
11074 return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082 esac
11083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11084 $as_echo "$ac_try_echo") >&5
11085 (eval "$ac_link") 2>conftest.er1
11086 ac_status=$?
11087 grep -v '^ *+' conftest.er1 >conftest.err
11088 rm -f conftest.er1
11089 cat conftest.err >&5
11090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } && {
11092 test -z "$ac_c_werror_flag" ||
11093 test ! -s conftest.err
11094 } && test -s conftest$ac_exeext && {
11095 test "$cross_compiling" = yes ||
11096 $as_test_x conftest$ac_exeext
11097 }; then
11098 ac_cv_lib_Xbsd_main=yes
11099 else
11100 $as_echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103 ac_cv_lib_Xbsd_main=no
11104 fi
11105
11106 rm -rf conftest.dSYM
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11112 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11113 if test $ac_cv_lib_Xbsd_main = yes; then
11114 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11115 fi
11116
11117
11118
11119 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11120 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11121 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11122 $as_echo_n "(cached) " >&6
11123 else
11124 ac_check_lib_save_LIBS=$LIBS
11125 LIBS="-lpthreads $LIBS"
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char cma_open ();
11140 int
11141 main ()
11142 {
11143 return cma_open ();
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (ac_try="$ac_link"
11150 case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153 esac
11154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11155 $as_echo "$ac_try_echo") >&5
11156 (eval "$ac_link") 2>conftest.er1
11157 ac_status=$?
11158 grep -v '^ *+' conftest.er1 >conftest.err
11159 rm -f conftest.er1
11160 cat conftest.err >&5
11161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest$ac_exeext && {
11166 test "$cross_compiling" = yes ||
11167 $as_test_x conftest$ac_exeext
11168 }; then
11169 ac_cv_lib_pthreads_cma_open=yes
11170 else
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 ac_cv_lib_pthreads_cma_open=no
11175 fi
11176
11177 rm -rf conftest.dSYM
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179 conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11183 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11184 if test $ac_cv_lib_pthreads_cma_open = yes; then
11185 cat >>confdefs.h <<_ACEOF
11186 #define HAVE_LIBPTHREADS 1
11187 _ACEOF
11188
11189 LIBS="-lpthreads $LIBS"
11190
11191 fi
11192
11193
11194 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11195 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11196 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11197 ## added to LIBS in configure would never contain the pthreads part,
11198 ## but the value used in Makefiles might. FIXME?
11199 ##
11200 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11201 ## be harmless on older versions of X where it happens to exist.
11202 test "$opsys" = "aix4-2" && \
11203 test $ac_cv_lib_pthreads_cma_open = yes && \
11204 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11205
11206
11207 case ${host_os} in
11208 aix*)
11209 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11210 $as_echo_n "checking for -bbigtoc option... " >&6; }
11211 if test "${gdb_cv_bigtoc+set}" = set; then
11212 $as_echo_n "(cached) " >&6
11213 else
11214
11215 case $GCC in
11216 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11217 *) gdb_cv_bigtoc=-bbigtoc ;;
11218 esac
11219
11220 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h. */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227
11228 int
11229 main ()
11230 {
11231 int i;
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (ac_try="$ac_link"
11238 case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241 esac
11242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11243 $as_echo "$ac_try_echo") >&5
11244 (eval "$ac_link") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext && {
11254 test "$cross_compiling" = yes ||
11255 $as_test_x conftest$ac_exeext
11256 }; then
11257 :
11258 else
11259 $as_echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262 gdb_cv_bigtoc=
11263 fi
11264
11265 rm -rf conftest.dSYM
11266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11267 conftest$ac_exeext conftest.$ac_ext
11268
11269 fi
11270 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11271 $as_echo "$gdb_cv_bigtoc" >&6; }
11272 ;;
11273 esac
11274
11275 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11276 # used for the tests that follow. We set them back to REAL_CFLAGS and
11277 # REAL_CPPFLAGS later on.
11278
11279 REAL_CPPFLAGS="$CPPFLAGS"
11280
11281 if test "${HAVE_X11}" = "yes"; then
11282 DEFS="$C_SWITCH_X_SITE $DEFS"
11283 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11284 LIBS="$LIBX $LIBS"
11285 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11286 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11287
11288 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11289 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11290 # but it's more convenient here to set LD_RUN_PATH
11291 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11292 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11293 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11294 export LD_RUN_PATH
11295 fi
11296
11297 if test "${opsys}" = "gnu-linux"; then
11298 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11299 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306
11307 int
11308 main ()
11309 {
11310 XOpenDisplay ("foo");
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320 esac
11321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11322 $as_echo "$ac_try_echo") >&5
11323 (eval "$ac_link") 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest$ac_exeext && {
11333 test "$cross_compiling" = yes ||
11334 $as_test_x conftest$ac_exeext
11335 }; then
11336 xlinux_first_failure=no
11337 else
11338 $as_echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 xlinux_first_failure=yes
11342 fi
11343
11344 rm -rf conftest.dSYM
11345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11346 conftest$ac_exeext conftest.$ac_ext
11347 if test "${xlinux_first_failure}" = "yes"; then
11348 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11349 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11350 OLD_CPPFLAGS="$CPPFLAGS"
11351 OLD_LIBS="$LIBS"
11352 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11353 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11354 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11355 LIBS="$LIBS -b i486-linuxaout"
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362
11363 int
11364 main ()
11365 {
11366 XOpenDisplay ("foo");
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376 esac
11377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11378 $as_echo "$ac_try_echo") >&5
11379 (eval "$ac_link") 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } && {
11386 test -z "$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest$ac_exeext && {
11389 test "$cross_compiling" = yes ||
11390 $as_test_x conftest$ac_exeext
11391 }; then
11392 xlinux_second_failure=no
11393 else
11394 $as_echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 xlinux_second_failure=yes
11398 fi
11399
11400 rm -rf conftest.dSYM
11401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11402 conftest$ac_exeext conftest.$ac_ext
11403 if test "${xlinux_second_failure}" = "yes"; then
11404 # If we get the same failure with -b, there is no use adding -b.
11405 # So take it out. This plays safe.
11406 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11407 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11408 CPPFLAGS="$OLD_CPPFLAGS"
11409 LIBS="$OLD_LIBS"
11410 { $as_echo "$as_me:$LINENO: result: no" >&5
11411 $as_echo "no" >&6; }
11412 else
11413 { $as_echo "$as_me:$LINENO: result: yes" >&5
11414 $as_echo "yes" >&6; }
11415 fi
11416 else
11417 { $as_echo "$as_me:$LINENO: result: no" >&5
11418 $as_echo "no" >&6; }
11419 fi
11420 fi
11421
11422 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11423 # header files included from there.
11424 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11425 $as_echo_n "checking for Xkb... " >&6; }
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 #include <X11/Xlib.h>
11433 #include <X11/XKBlib.h>
11434 int
11435 main ()
11436 {
11437 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11449 $as_echo "$ac_try_echo") >&5
11450 (eval "$ac_link") 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest$ac_exeext && {
11460 test "$cross_compiling" = yes ||
11461 $as_test_x conftest$ac_exeext
11462 }; then
11463 emacs_xkb=yes
11464 else
11465 $as_echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 emacs_xkb=no
11469 fi
11470
11471 rm -rf conftest.dSYM
11472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473 conftest$ac_exeext conftest.$ac_ext
11474 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11475 $as_echo "$emacs_xkb" >&6; }
11476 if test $emacs_xkb = yes; then
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define HAVE_XKBGETKEYBOARD 1
11480 _ACEOF
11481
11482 fi
11483
11484
11485
11486
11487
11488 for ac_func in XrmSetDatabase XScreenResourceString \
11489 XScreenNumberOfScreen XSetWMProtocols
11490 do
11491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 $as_echo_n "checking for $ac_func... " >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 $as_echo_n "(cached) " >&6
11496 else
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11506
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11511
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11517
11518 #undef $ac_func
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char $ac_func ();
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11531 choke me
11532 #endif
11533
11534 int
11535 main ()
11536 {
11537 return $ac_func ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11549 $as_echo "$ac_try_echo") >&5
11550 (eval "$ac_link") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && {
11557 test -z "$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 } && test -s conftest$ac_exeext && {
11560 test "$cross_compiling" = yes ||
11561 $as_test_x conftest$ac_exeext
11562 }; then
11563 eval "$as_ac_var=yes"
11564 else
11565 $as_echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568 eval "$as_ac_var=no"
11569 fi
11570
11571 rm -rf conftest.dSYM
11572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11573 conftest$ac_exeext conftest.$ac_ext
11574 fi
11575 ac_res=`eval 'as_val=${'$as_ac_var'}
11576 $as_echo "$as_val"'`
11577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11578 $as_echo "$ac_res" >&6; }
11579 if test `eval 'as_val=${'$as_ac_var'}
11580 $as_echo "$as_val"'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11583 _ACEOF
11584
11585 fi
11586 done
11587
11588 fi
11589
11590 if test "${window_system}" = "x11"; then
11591 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11592 $as_echo_n "checking X11 version 6... " >&6; }
11593 if test "${emacs_cv_x11_version_6+set}" = set; then
11594 $as_echo_n "(cached) " >&6
11595 else
11596 cat >conftest.$ac_ext <<_ACEOF
11597 /* confdefs.h. */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <X11/Xlib.h>
11603 int
11604 main ()
11605 {
11606 #if XlibSpecificationRelease < 6
11607 fail;
11608 #endif
11609
11610 ;
11611 return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619 esac
11620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11621 $as_echo "$ac_try_echo") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext && {
11632 test "$cross_compiling" = yes ||
11633 $as_test_x conftest$ac_exeext
11634 }; then
11635 emacs_cv_x11_version_6=yes
11636 else
11637 $as_echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11639
11640 emacs_cv_x11_version_6=no
11641 fi
11642
11643 rm -rf conftest.dSYM
11644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11645 conftest$ac_exeext conftest.$ac_ext
11646 fi
11647
11648 if test $emacs_cv_x11_version_6 = yes; then
11649 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11650 $as_echo "6 or newer" >&6; }
11651
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_X11R6 1
11654 _ACEOF
11655
11656 else
11657 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11658 $as_echo "before 6" >&6; }
11659 fi
11660 fi
11661
11662
11663 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11664 HAVE_RSVG=no
11665 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11666 if test "${with_rsvg}" != "no"; then
11667 RSVG_REQUIRED=2.11.0
11668 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11669
11670
11671 succeeded=no
11672
11673 # Extract the first word of "pkg-config", so it can be a program name with args.
11674 set dummy pkg-config; ac_word=$2
11675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11678 $as_echo_n "(cached) " >&6
11679 else
11680 case $PKG_CONFIG in
11681 [\\/]* | ?:[\\/]*)
11682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11683 ;;
11684 *)
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11701 ;;
11702 esac
11703 fi
11704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11705 if test -n "$PKG_CONFIG"; then
11706 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11707 $as_echo "$PKG_CONFIG" >&6; }
11708 else
11709 { $as_echo "$as_me:$LINENO: result: no" >&5
11710 $as_echo "no" >&6; }
11711 fi
11712
11713
11714
11715 if test "$PKG_CONFIG" = "no" ; then
11716 :
11717 else
11718 PKG_CONFIG_MIN_VERSION=0.9.0
11719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11720 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11721 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11722
11723 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11724 { $as_echo "$as_me:$LINENO: result: yes" >&5
11725 $as_echo "yes" >&6; }
11726 succeeded=yes
11727
11728 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11729 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11730 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11731 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11732 $as_echo "$RSVG_CFLAGS" >&6; }
11733
11734 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11735 $as_echo_n "checking RSVG_LIBS... " >&6; }
11736 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11737 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11738 $as_echo "$RSVG_LIBS" >&6; }
11739 else
11740 { $as_echo "$as_me:$LINENO: result: no" >&5
11741 $as_echo "no" >&6; }
11742 RSVG_CFLAGS=""
11743 RSVG_LIBS=""
11744 ## If we have a custom action on failure, don't print errors, but
11745 ## do set a variable so people can do so.
11746 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11747
11748 fi
11749
11750
11751
11752 else
11753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11755 fi
11756 fi
11757
11758 if test $succeeded = yes; then
11759 :
11760 else
11761 :
11762 fi
11763
11764
11765
11766
11767 if test ".${RSVG_CFLAGS}" != "."; then
11768 HAVE_RSVG=yes
11769
11770 cat >>confdefs.h <<\_ACEOF
11771 #define HAVE_RSVG 1
11772 _ACEOF
11773
11774 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11775 LIBS="$RSVG_LIBS $LIBS"
11776 fi
11777 fi
11778 fi
11779
11780
11781 HAVE_GTK=no
11782 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11783 GLIB_REQUIRED=2.6
11784 GTK_REQUIRED=2.6
11785 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11786
11787
11788 succeeded=no
11789
11790 # Extract the first word of "pkg-config", so it can be a program name with args.
11791 set dummy pkg-config; ac_word=$2
11792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11795 $as_echo_n "(cached) " >&6
11796 else
11797 case $PKG_CONFIG in
11798 [\\/]* | ?:[\\/]*)
11799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11800 ;;
11801 *)
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11804 do
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 break 2
11812 fi
11813 done
11814 done
11815 IFS=$as_save_IFS
11816
11817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11818 ;;
11819 esac
11820 fi
11821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11822 if test -n "$PKG_CONFIG"; then
11823 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11824 $as_echo "$PKG_CONFIG" >&6; }
11825 else
11826 { $as_echo "$as_me:$LINENO: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829
11830
11831
11832 if test "$PKG_CONFIG" = "no" ; then
11833 pkg_check_gtk=no
11834 else
11835 PKG_CONFIG_MIN_VERSION=0.9.0
11836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11837 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11838 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11839
11840 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11841 { $as_echo "$as_me:$LINENO: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 succeeded=yes
11844
11845 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11846 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11847 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11848 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11849 $as_echo "$GTK_CFLAGS" >&6; }
11850
11851 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11852 $as_echo_n "checking GTK_LIBS... " >&6; }
11853 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11854 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11855 $as_echo "$GTK_LIBS" >&6; }
11856 else
11857 { $as_echo "$as_me:$LINENO: result: no" >&5
11858 $as_echo "no" >&6; }
11859 GTK_CFLAGS=""
11860 GTK_LIBS=""
11861 ## If we have a custom action on failure, don't print errors, but
11862 ## do set a variable so people can do so.
11863 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11864
11865 fi
11866
11867
11868
11869 else
11870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11872 fi
11873 fi
11874
11875 if test $succeeded = yes; then
11876 pkg_check_gtk=yes
11877 else
11878 pkg_check_gtk=no
11879 fi
11880
11881 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11882 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11883 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11884 { (exit 1); exit 1; }; }
11885 fi
11886 fi
11887
11888
11889 GTK_OBJ=
11890 if test x"$pkg_check_gtk" = xyes; then
11891
11892
11893
11894 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11895 CFLAGS="$CFLAGS $GTK_CFLAGS"
11896 LIBS="$GTK_LIBS $LIBS"
11897 GTK_COMPILES=no
11898
11899 for ac_func in gtk_main
11900 do
11901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 $as_echo_n "checking for $ac_func... " >&6; }
11904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11905 $as_echo_n "(cached) " >&6
11906 else
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11915 #define $ac_func innocuous_$ac_func
11916
11917 /* System header to define __stub macros and hopefully few prototypes,
11918 which can conflict with char $ac_func (); below.
11919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11920 <limits.h> exists even on freestanding compilers. */
11921
11922 #ifdef __STDC__
11923 # include <limits.h>
11924 #else
11925 # include <assert.h>
11926 #endif
11927
11928 #undef $ac_func
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char $ac_func ();
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 choke me
11942 #endif
11943
11944 int
11945 main ()
11946 {
11947 return $ac_func ();
11948 ;
11949 return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (ac_try="$ac_link"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957 esac
11958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11959 $as_echo "$ac_try_echo") >&5
11960 (eval "$ac_link") 2>conftest.er1
11961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest$ac_exeext && {
11970 test "$cross_compiling" = yes ||
11971 $as_test_x conftest$ac_exeext
11972 }; then
11973 eval "$as_ac_var=yes"
11974 else
11975 $as_echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 eval "$as_ac_var=no"
11979 fi
11980
11981 rm -rf conftest.dSYM
11982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11983 conftest$ac_exeext conftest.$ac_ext
11984 fi
11985 ac_res=`eval 'as_val=${'$as_ac_var'}
11986 $as_echo "$as_val"'`
11987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11988 $as_echo "$ac_res" >&6; }
11989 if test `eval 'as_val=${'$as_ac_var'}
11990 $as_echo "$as_val"'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11993 _ACEOF
11994 GTK_COMPILES=yes
11995 fi
11996 done
11997
11998 if test "${GTK_COMPILES}" != "yes"; then
11999 if test "$USE_X_TOOLKIT" != "maybe"; then
12000 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12001 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12002 { (exit 1); exit 1; }; };
12003 fi
12004 else
12005 HAVE_GTK=yes
12006
12007 cat >>confdefs.h <<\_ACEOF
12008 #define USE_GTK 1
12009 _ACEOF
12010
12011 GTK_OBJ=gtkutil.o
12012 USE_X_TOOLKIT=none
12013 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12014 :
12015 else
12016 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12017 closing open displays. This is no problem if you just use
12018 one display, but if you use more than one and close one of them
12019 Emacs may crash." >&5
12020 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12021 closing open displays. This is no problem if you just use
12022 one display, but if you use more than one and close one of them
12023 Emacs may crash." >&2;}
12024 sleep 3
12025 fi
12026 fi
12027
12028 fi
12029
12030
12031
12032 if test "${HAVE_GTK}" = "yes"; then
12033
12034 if test "$with_toolkit_scroll_bars" != no; then
12035 with_toolkit_scroll_bars=yes
12036 fi
12037
12038 HAVE_GTK_MULTIDISPLAY=no
12039
12040 for ac_func in gdk_display_open
12041 do
12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12044 $as_echo_n "checking for $ac_func... " >&6; }
12045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12046 $as_echo_n "(cached) " >&6
12047 else
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define $ac_func innocuous_$ac_func
12057
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12062
12063 #ifdef __STDC__
12064 # include <limits.h>
12065 #else
12066 # include <assert.h>
12067 #endif
12068
12069 #undef $ac_func
12070
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char $ac_func ();
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 choke me
12083 #endif
12084
12085 int
12086 main ()
12087 {
12088 return $ac_func ();
12089 ;
12090 return 0;
12091 }
12092 _ACEOF
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098 esac
12099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest$ac_exeext
12113 }; then
12114 eval "$as_ac_var=yes"
12115 else
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 eval "$as_ac_var=no"
12120 fi
12121
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12124 conftest$ac_exeext conftest.$ac_ext
12125 fi
12126 ac_res=`eval 'as_val=${'$as_ac_var'}
12127 $as_echo "$as_val"'`
12128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12129 $as_echo "$ac_res" >&6; }
12130 if test `eval 'as_val=${'$as_ac_var'}
12131 $as_echo "$as_val"'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 _ACEOF
12135 HAVE_GTK_MULTIDISPLAY=yes
12136 fi
12137 done
12138
12139 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12140
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_GTK_MULTIDISPLAY 1
12143 _ACEOF
12144
12145 fi
12146
12147 HAVE_GTK_FILE_SELECTION=no
12148 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12149 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12150 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12151 $as_echo_n "(cached) " >&6
12152 else
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 $ac_includes_default
12160 #include <gtk/gtk.h>
12161
12162 int
12163 main ()
12164 {
12165 #ifndef GTK_TYPE_FILE_SELECTION
12166 (void) GTK_TYPE_FILE_SELECTION;
12167 #endif
12168
12169 ;
12170 return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (ac_try="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180 $as_echo "$ac_try_echo") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12182 ac_status=$?
12183 grep -v '^ *+' conftest.er1 >conftest.err
12184 rm -f conftest.er1
12185 cat conftest.err >&5
12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12192 else
12193 $as_echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12195
12196 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12197 fi
12198
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 fi
12201 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12202 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12203 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12204 HAVE_GTK_FILE_SELECTION=yes
12205 else
12206 HAVE_GTK_FILE_SELECTION=no
12207 fi
12208
12209 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12210
12211 for ac_func in gtk_file_selection_new
12212 do
12213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12214 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12215 $as_echo_n "checking for $ac_func... " >&6; }
12216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12217 $as_echo_n "(cached) " >&6
12218 else
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12227 #define $ac_func innocuous_$ac_func
12228
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char $ac_func (); below.
12231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232 <limits.h> exists even on freestanding compilers. */
12233
12234 #ifdef __STDC__
12235 # include <limits.h>
12236 #else
12237 # include <assert.h>
12238 #endif
12239
12240 #undef $ac_func
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char $ac_func ();
12249 /* The GNU C library defines this for functions which it implements
12250 to always fail with ENOSYS. Some functions are actually named
12251 something starting with __ and the normal name is an alias. */
12252 #if defined __stub_$ac_func || defined __stub___$ac_func
12253 choke me
12254 #endif
12255
12256 int
12257 main ()
12258 {
12259 return $ac_func ();
12260 ;
12261 return 0;
12262 }
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (ac_try="$ac_link"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269 esac
12270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12271 $as_echo "$ac_try_echo") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext && {
12282 test "$cross_compiling" = yes ||
12283 $as_test_x conftest$ac_exeext
12284 }; then
12285 eval "$as_ac_var=yes"
12286 else
12287 $as_echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 eval "$as_ac_var=no"
12291 fi
12292
12293 rm -rf conftest.dSYM
12294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12295 conftest$ac_exeext conftest.$ac_ext
12296 fi
12297 ac_res=`eval 'as_val=${'$as_ac_var'}
12298 $as_echo "$as_val"'`
12299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12300 $as_echo "$ac_res" >&6; }
12301 if test `eval 'as_val=${'$as_ac_var'}
12302 $as_echo "$as_val"'` = yes; then
12303 cat >>confdefs.h <<_ACEOF
12304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12305 _ACEOF
12306 HAVE_GTK_FILE_SELECTION=yes
12307 else
12308 HAVE_GTK_FILE_SELECTION=no
12309 fi
12310 done
12311
12312 fi
12313
12314 HAVE_GTK_FILE_CHOOSER=no
12315 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12316 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12317 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12318 $as_echo_n "(cached) " >&6
12319 else
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 $ac_includes_default
12327 #include <gtk/gtk.h>
12328
12329 int
12330 main ()
12331 {
12332 #ifndef GTK_TYPE_FILE_CHOOSER
12333 (void) GTK_TYPE_FILE_CHOOSER;
12334 #endif
12335
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (ac_try="$ac_compile"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12345 esac
12346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12347 $as_echo "$ac_try_echo") >&5
12348 (eval "$ac_compile") 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.$ac_objext; then
12358 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12359 else
12360 $as_echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12364 fi
12365
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 fi
12368 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12369 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12370 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12371 HAVE_GTK_FILE_CHOOSER=yes
12372 else
12373 HAVE_GTK_FILE_CHOOSER=no
12374 fi
12375
12376 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12377
12378 for ac_func in gtk_file_chooser_dialog_new
12379 do
12380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12382 $as_echo_n "checking for $ac_func... " >&6; }
12383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12384 $as_echo_n "(cached) " >&6
12385 else
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h. */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12394 #define $ac_func innocuous_$ac_func
12395
12396 /* System header to define __stub macros and hopefully few prototypes,
12397 which can conflict with char $ac_func (); below.
12398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12399 <limits.h> exists even on freestanding compilers. */
12400
12401 #ifdef __STDC__
12402 # include <limits.h>
12403 #else
12404 # include <assert.h>
12405 #endif
12406
12407 #undef $ac_func
12408
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12412 #ifdef __cplusplus
12413 extern "C"
12414 #endif
12415 char $ac_func ();
12416 /* The GNU C library defines this for functions which it implements
12417 to always fail with ENOSYS. Some functions are actually named
12418 something starting with __ and the normal name is an alias. */
12419 #if defined __stub_$ac_func || defined __stub___$ac_func
12420 choke me
12421 #endif
12422
12423 int
12424 main ()
12425 {
12426 return $ac_func ();
12427 ;
12428 return 0;
12429 }
12430 _ACEOF
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (ac_try="$ac_link"
12433 case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12436 esac
12437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439 (eval "$ac_link") 2>conftest.er1
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest$ac_exeext && {
12449 test "$cross_compiling" = yes ||
12450 $as_test_x conftest$ac_exeext
12451 }; then
12452 eval "$as_ac_var=yes"
12453 else
12454 $as_echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 eval "$as_ac_var=no"
12458 fi
12459
12460 rm -rf conftest.dSYM
12461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12462 conftest$ac_exeext conftest.$ac_ext
12463 fi
12464 ac_res=`eval 'as_val=${'$as_ac_var'}
12465 $as_echo "$as_val"'`
12466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12467 $as_echo "$ac_res" >&6; }
12468 if test `eval 'as_val=${'$as_ac_var'}
12469 $as_echo "$as_val"'` = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12472 _ACEOF
12473 HAVE_GTK_FILE_CHOOSER=yes
12474 else
12475 HAVE_GTK_FILE_CHOOSER=no
12476 fi
12477 done
12478
12479 fi
12480
12481 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12482 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12483
12484 cat >>confdefs.h <<\_ACEOF
12485 #define HAVE_GTK_FILE_BOTH 1
12486 _ACEOF
12487
12488 fi
12489
12490 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12491 HAVE_GTK_AND_PTHREAD=no
12492
12493 for ac_header in pthread.h
12494 do
12495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12498 $as_echo_n "checking for $ac_header... " >&6; }
12499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12500 $as_echo_n "(cached) " >&6
12501 fi
12502 ac_res=`eval 'as_val=${'$as_ac_Header'}
12503 $as_echo "$as_val"'`
12504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12505 $as_echo "$ac_res" >&6; }
12506 else
12507 # Is the header compilable?
12508 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509 $as_echo_n "checking $ac_header usability... " >&6; }
12510 cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h. */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12517 #include <$ac_header>
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (ac_try="$ac_compile"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524 esac
12525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12526 $as_echo "$ac_try_echo") >&5
12527 (eval "$ac_compile") 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && {
12534 test -z "$ac_c_werror_flag" ||
12535 test ! -s conftest.err
12536 } && test -s conftest.$ac_objext; then
12537 ac_header_compiler=yes
12538 else
12539 $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12541
12542 ac_header_compiler=no
12543 fi
12544
12545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 $as_echo "$ac_header_compiler" >&6; }
12548
12549 # Is the header present?
12550 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551 $as_echo_n "checking $ac_header presence... " >&6; }
12552 cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <$ac_header>
12559 _ACEOF
12560 if { (ac_try="$ac_cpp conftest.$ac_ext"
12561 case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564 esac
12565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12566 $as_echo "$ac_try_echo") >&5
12567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12568 ac_status=$?
12569 grep -v '^ *+' conftest.er1 >conftest.err
12570 rm -f conftest.er1
12571 cat conftest.err >&5
12572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } >/dev/null && {
12574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12575 test ! -s conftest.err
12576 }; then
12577 ac_header_preproc=yes
12578 else
12579 $as_echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 ac_header_preproc=no
12583 fi
12584
12585 rm -f conftest.err conftest.$ac_ext
12586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 $as_echo "$ac_header_preproc" >&6; }
12588
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12591 yes:no: )
12592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc=yes
12597 ;;
12598 no:yes:* )
12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12600 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12602 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12604 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12606 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12611
12612 ;;
12613 esac
12614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12615 $as_echo_n "checking for $ac_header... " >&6; }
12616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12617 $as_echo_n "(cached) " >&6
12618 else
12619 eval "$as_ac_Header=\$ac_header_preproc"
12620 fi
12621 ac_res=`eval 'as_val=${'$as_ac_Header'}
12622 $as_echo "$as_val"'`
12623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12624 $as_echo "$ac_res" >&6; }
12625
12626 fi
12627 if test `eval 'as_val=${'$as_ac_Header'}
12628 $as_echo "$as_val"'` = yes; then
12629 cat >>confdefs.h <<_ACEOF
12630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12631 _ACEOF
12632
12633 fi
12634
12635 done
12636
12637 if test "$ac_cv_header_pthread_h"; then
12638 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12639 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12640 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-lpthread $LIBS"
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 char pthread_self ();
12659 int
12660 main ()
12661 {
12662 return pthread_self ();
12663 ;
12664 return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest.$ac_objext conftest$ac_exeext
12668 if { (ac_try="$ac_link"
12669 case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672 esac
12673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12674 $as_echo "$ac_try_echo") >&5
12675 (eval "$ac_link") 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && {
12682 test -z "$ac_c_werror_flag" ||
12683 test ! -s conftest.err
12684 } && test -s conftest$ac_exeext && {
12685 test "$cross_compiling" = yes ||
12686 $as_test_x conftest$ac_exeext
12687 }; then
12688 ac_cv_lib_pthread_pthread_self=yes
12689 else
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 ac_cv_lib_pthread_pthread_self=no
12694 fi
12695
12696 rm -rf conftest.dSYM
12697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12698 conftest$ac_exeext conftest.$ac_ext
12699 LIBS=$ac_check_lib_save_LIBS
12700 fi
12701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12702 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12703 if test $ac_cv_lib_pthread_pthread_self = yes; then
12704 HAVE_GTK_AND_PTHREAD=yes
12705 fi
12706
12707 fi
12708 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12709 case "${canonical}" in
12710 *-hpux*) ;;
12711 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12712 esac
12713
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_GTK_AND_PTHREAD 1
12716 _ACEOF
12717
12718 fi
12719 fi
12720 fi
12721
12722 HAVE_DBUS=no
12723 DBUS_OBJ=
12724 if test "${with_dbus}" = "yes"; then
12725
12726 succeeded=no
12727
12728 # Extract the first word of "pkg-config", so it can be a program name with args.
12729 set dummy pkg-config; ac_word=$2
12730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12733 $as_echo_n "(cached) " >&6
12734 else
12735 case $PKG_CONFIG in
12736 [\\/]* | ?:[\\/]*)
12737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12738 ;;
12739 *)
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12742 do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12750 fi
12751 done
12752 done
12753 IFS=$as_save_IFS
12754
12755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12756 ;;
12757 esac
12758 fi
12759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12760 if test -n "$PKG_CONFIG"; then
12761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12762 $as_echo "$PKG_CONFIG" >&6; }
12763 else
12764 { $as_echo "$as_me:$LINENO: result: no" >&5
12765 $as_echo "no" >&6; }
12766 fi
12767
12768
12769
12770 if test "$PKG_CONFIG" = "no" ; then
12771 HAVE_DBUS=no
12772 else
12773 PKG_CONFIG_MIN_VERSION=0.9.0
12774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12775 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12776 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12777
12778 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12779 { $as_echo "$as_me:$LINENO: result: yes" >&5
12780 $as_echo "yes" >&6; }
12781 succeeded=yes
12782
12783 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12784 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12785 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12786 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12787 $as_echo "$DBUS_CFLAGS" >&6; }
12788
12789 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12790 $as_echo_n "checking DBUS_LIBS... " >&6; }
12791 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12792 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12793 $as_echo "$DBUS_LIBS" >&6; }
12794 else
12795 { $as_echo "$as_me:$LINENO: result: no" >&5
12796 $as_echo "no" >&6; }
12797 DBUS_CFLAGS=""
12798 DBUS_LIBS=""
12799 ## If we have a custom action on failure, don't print errors, but
12800 ## do set a variable so people can do so.
12801 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12802
12803 fi
12804
12805
12806
12807 else
12808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12810 fi
12811 fi
12812
12813 if test $succeeded = yes; then
12814 HAVE_DBUS=yes
12815 else
12816 HAVE_DBUS=no
12817 fi
12818
12819 if test "$HAVE_DBUS" = yes; then
12820 LIBS="$LIBS $DBUS_LIBS"
12821
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_DBUS 1
12824 _ACEOF
12825
12826
12827 for ac_func in dbus_watch_get_unix_fd
12828 do
12829 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12831 $as_echo_n "checking for $ac_func... " >&6; }
12832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 $as_echo_n "(cached) " >&6
12834 else
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843 #define $ac_func innocuous_$ac_func
12844
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12849
12850 #ifdef __STDC__
12851 # include <limits.h>
12852 #else
12853 # include <assert.h>
12854 #endif
12855
12856 #undef $ac_func
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char $ac_func ();
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined __stub_$ac_func || defined __stub___$ac_func
12869 choke me
12870 #endif
12871
12872 int
12873 main ()
12874 {
12875 return $ac_func ();
12876 ;
12877 return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885 esac
12886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12887 $as_echo "$ac_try_echo") >&5
12888 (eval "$ac_link") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } && {
12895 test -z "$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12897 } && test -s conftest$ac_exeext && {
12898 test "$cross_compiling" = yes ||
12899 $as_test_x conftest$ac_exeext
12900 }; then
12901 eval "$as_ac_var=yes"
12902 else
12903 $as_echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906 eval "$as_ac_var=no"
12907 fi
12908
12909 rm -rf conftest.dSYM
12910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12911 conftest$ac_exeext conftest.$ac_ext
12912 fi
12913 ac_res=`eval 'as_val=${'$as_ac_var'}
12914 $as_echo "$as_val"'`
12915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12916 $as_echo "$ac_res" >&6; }
12917 if test `eval 'as_val=${'$as_ac_var'}
12918 $as_echo "$as_val"'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12921 _ACEOF
12922
12923 fi
12924 done
12925
12926 DBUS_OBJ=dbusbind.o
12927 fi
12928 fi
12929
12930
12931 HAVE_GCONF=no
12932 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12933
12934 succeeded=no
12935
12936 # Extract the first word of "pkg-config", so it can be a program name with args.
12937 set dummy pkg-config; ac_word=$2
12938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12941 $as_echo_n "(cached) " >&6
12942 else
12943 case $PKG_CONFIG in
12944 [\\/]* | ?:[\\/]*)
12945 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12946 ;;
12947 *)
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12958 fi
12959 done
12960 done
12961 IFS=$as_save_IFS
12962
12963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12964 ;;
12965 esac
12966 fi
12967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12968 if test -n "$PKG_CONFIG"; then
12969 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12970 $as_echo "$PKG_CONFIG" >&6; }
12971 else
12972 { $as_echo "$as_me:$LINENO: result: no" >&5
12973 $as_echo "no" >&6; }
12974 fi
12975
12976
12977
12978 if test "$PKG_CONFIG" = "no" ; then
12979 HAVE_GCONF=no
12980 else
12981 PKG_CONFIG_MIN_VERSION=0.9.0
12982 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12983 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12984 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12985
12986 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12987 { $as_echo "$as_me:$LINENO: result: yes" >&5
12988 $as_echo "yes" >&6; }
12989 succeeded=yes
12990
12991 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12992 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12993 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12994 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12995 $as_echo "$GCONF_CFLAGS" >&6; }
12996
12997 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12998 $as_echo_n "checking GCONF_LIBS... " >&6; }
12999 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13000 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13001 $as_echo "$GCONF_LIBS" >&6; }
13002 else
13003 { $as_echo "$as_me:$LINENO: result: no" >&5
13004 $as_echo "no" >&6; }
13005 GCONF_CFLAGS=""
13006 GCONF_LIBS=""
13007 ## If we have a custom action on failure, don't print errors, but
13008 ## do set a variable so people can do so.
13009 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13010
13011 fi
13012
13013
13014
13015 else
13016 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13017 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13018 fi
13019 fi
13020
13021 if test $succeeded = yes; then
13022 HAVE_GCONF=yes
13023 else
13024 HAVE_GCONF=no
13025 fi
13026
13027 if test "$HAVE_GCONF" = yes; then
13028
13029 cat >>confdefs.h <<\_ACEOF
13030 #define HAVE_GCONF 1
13031 _ACEOF
13032
13033 fi
13034 fi
13035
13036 HAVE_LIBSELINUX=no
13037 LIBSELINUX_LIBS=
13038 if test "${with_selinux}" = "yes"; then
13039 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13040 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13041 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13042 $as_echo_n "(cached) " >&6
13043 else
13044 ac_check_lib_save_LIBS=$LIBS
13045 LIBS="-lselinux $LIBS"
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052
13053 /* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
13056 #ifdef __cplusplus
13057 extern "C"
13058 #endif
13059 char lgetfilecon ();
13060 int
13061 main ()
13062 {
13063 return lgetfilecon ();
13064 ;
13065 return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073 esac
13074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13075 $as_echo "$ac_try_echo") >&5
13076 (eval "$ac_link") 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } && {
13083 test -z "$ac_c_werror_flag" ||
13084 test ! -s conftest.err
13085 } && test -s conftest$ac_exeext && {
13086 test "$cross_compiling" = yes ||
13087 $as_test_x conftest$ac_exeext
13088 }; then
13089 ac_cv_lib_selinux_lgetfilecon=yes
13090 else
13091 $as_echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ac_cv_lib_selinux_lgetfilecon=no
13095 fi
13096
13097 rm -rf conftest.dSYM
13098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13101 fi
13102 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13103 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13104 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13105 HAVE_LIBSELINUX=yes
13106 else
13107 HAVE_LIBSELINUX=no
13108 fi
13109
13110 if test "$HAVE_LIBSELINUX" = yes; then
13111
13112 cat >>confdefs.h <<\_ACEOF
13113 #define HAVE_LIBSELINUX 1
13114 _ACEOF
13115
13116 LIBSELINUX_LIBS=-lselinux
13117 fi
13118 fi
13119
13120
13121 HAVE_XAW3D=no
13122 LUCID_LIBW=
13123 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13124 if test "$with_xaw3d" != no; then
13125 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13126 $as_echo_n "checking for xaw3d... " >&6; }
13127 if test "${emacs_cv_xaw3d+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13129 else
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136
13137 #include <X11/Intrinsic.h>
13138 #include <X11/Xaw3d/Simple.h>
13139 int
13140 main ()
13141 {
13142
13143 ;
13144 return 0;
13145 }
13146 _ACEOF
13147 rm -f conftest.$ac_objext conftest$ac_exeext
13148 if { (ac_try="$ac_link"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152 esac
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155 (eval "$ac_link") 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest$ac_exeext && {
13165 test "$cross_compiling" = yes ||
13166 $as_test_x conftest$ac_exeext
13167 }; then
13168 emacs_cv_xaw3d=yes
13169 else
13170 $as_echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 emacs_cv_xaw3d=no
13174 fi
13175
13176 rm -rf conftest.dSYM
13177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13178 conftest$ac_exeext conftest.$ac_ext
13179 fi
13180
13181 else
13182 emacs_cv_xaw3d=no
13183 fi
13184 if test $emacs_cv_xaw3d = yes; then
13185 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13186 $as_echo "yes; using Lucid toolkit" >&6; }
13187 USE_X_TOOLKIT=LUCID
13188 HAVE_XAW3D=yes
13189 LUCID_LIBW=-lXaw3d
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_XAW3D 1
13193 _ACEOF
13194
13195 else
13196 { $as_echo "$as_me:$LINENO: result: no" >&5
13197 $as_echo "no" >&6; }
13198 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13199 $as_echo_n "checking for libXaw... " >&6; }
13200 if test "${emacs_cv_xaw+set}" = set; then
13201 $as_echo_n "(cached) " >&6
13202 else
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209
13210 #include <X11/Intrinsic.h>
13211 #include <X11/Xaw/Simple.h>
13212 int
13213 main ()
13214 {
13215
13216 ;
13217 return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13225 esac
13226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227 $as_echo "$ac_try_echo") >&5
13228 (eval "$ac_link") 2>conftest.er1
13229 ac_status=$?
13230 grep -v '^ *+' conftest.er1 >conftest.err
13231 rm -f conftest.er1
13232 cat conftest.err >&5
13233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest$ac_exeext && {
13238 test "$cross_compiling" = yes ||
13239 $as_test_x conftest$ac_exeext
13240 }; then
13241 emacs_cv_xaw=yes
13242 else
13243 $as_echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 emacs_cv_xaw=no
13247 fi
13248
13249 rm -rf conftest.dSYM
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13252 fi
13253
13254 if test $emacs_cv_xaw = yes; then
13255 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13256 $as_echo "yes; using Lucid toolkit" >&6; }
13257 USE_X_TOOLKIT=LUCID
13258 LUCID_LIBW=-lXaw
13259 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13260 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13261 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13262 { (exit 1); exit 1; }; }
13263 else
13264 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13265 $as_echo "no; do not use toolkit by default" >&6; }
13266 USE_X_TOOLKIT=none
13267 fi
13268 fi
13269 fi
13270
13271 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13272
13273 LIBXTR6=
13274 if test "${USE_X_TOOLKIT}" != "none"; then
13275 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13276 $as_echo_n "checking X11 toolkit version... " >&6; }
13277 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13278 $as_echo_n "(cached) " >&6
13279 else
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/Intrinsic.h>
13287 int
13288 main ()
13289 {
13290 #if XtSpecificationRelease < 6
13291 fail;
13292 #endif
13293
13294 ;
13295 return 0;
13296 }
13297 _ACEOF
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (ac_try="$ac_link"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_link") 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest$ac_exeext && {
13316 test "$cross_compiling" = yes ||
13317 $as_test_x conftest$ac_exeext
13318 }; then
13319 emacs_cv_x11_toolkit_version_6=yes
13320 else
13321 $as_echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 emacs_cv_x11_toolkit_version_6=no
13325 fi
13326
13327 rm -rf conftest.dSYM
13328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13329 conftest$ac_exeext conftest.$ac_ext
13330 fi
13331
13332 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13333 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13334 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13335 $as_echo "6 or newer" >&6; }
13336
13337 cat >>confdefs.h <<\_ACEOF
13338 #define HAVE_X11XTR6 1
13339 _ACEOF
13340
13341 LIBXTR6="-lSM -lICE"
13342 case "$opsys" in
13343 ## Use libw.a along with X11R6 Xt.
13344 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13345 esac
13346 else
13347 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13348 $as_echo "before 6" >&6; }
13349 fi
13350
13351 OLDLIBS="$LIBS"
13352 if test x$HAVE_X11XTR6 = xyes; then
13353 LIBS="-lXt -lSM -lICE $LIBS"
13354 else
13355 LIBS="-lXt $LIBS"
13356 fi
13357
13358 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13359 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13360 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13361 $as_echo_n "(cached) " >&6
13362 else
13363 ac_check_lib_save_LIBS=$LIBS
13364 LIBS="-lXmu $LIBS"
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char XmuConvertStandardSelection ();
13379 int
13380 main ()
13381 {
13382 return XmuConvertStandardSelection ();
13383 ;
13384 return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392 esac
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395 (eval "$ac_link") 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext && {
13405 test "$cross_compiling" = yes ||
13406 $as_test_x conftest$ac_exeext
13407 }; then
13408 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13409 else
13410 $as_echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13412
13413 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13414 fi
13415
13416 rm -rf conftest.dSYM
13417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13420 fi
13421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13422 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13423 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_LIBXMU 1
13426 _ACEOF
13427
13428 LIBS="-lXmu $LIBS"
13429
13430 fi
13431
13432 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13433 fi
13434
13435
13436 LIBXMU=-lXmu
13437 case "$machine" in
13438 ## These machines don't supply Xmu.
13439 hpux* | aix4-2 )
13440 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13441 ;;
13442 esac
13443
13444
13445 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13446 if test "${HAVE_X11}" = "yes"; then
13447 if test "${USE_X_TOOLKIT}" != "none"; then
13448
13449 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13450 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13451 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13452 $as_echo_n "(cached) " >&6
13453 else
13454 ac_check_lib_save_LIBS=$LIBS
13455 LIBS="-lXext $LIBS"
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 char XShapeQueryExtension ();
13470 int
13471 main ()
13472 {
13473 return XShapeQueryExtension ();
13474 ;
13475 return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13485 $as_echo "$ac_try_echo") >&5
13486 (eval "$ac_link") 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && {
13493 test -z "$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13495 } && test -s conftest$ac_exeext && {
13496 test "$cross_compiling" = yes ||
13497 $as_test_x conftest$ac_exeext
13498 }; then
13499 ac_cv_lib_Xext_XShapeQueryExtension=yes
13500 else
13501 $as_echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 ac_cv_lib_Xext_XShapeQueryExtension=no
13505 fi
13506
13507 rm -rf conftest.dSYM
13508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13509 conftest$ac_exeext conftest.$ac_ext
13510 LIBS=$ac_check_lib_save_LIBS
13511 fi
13512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13513 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13514 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13515 cat >>confdefs.h <<_ACEOF
13516 #define HAVE_LIBXEXT 1
13517 _ACEOF
13518
13519 LIBS="-lXext $LIBS"
13520
13521 fi
13522
13523 fi
13524 fi
13525
13526 LIBXP=
13527 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13528 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13529 $as_echo_n "checking for Motif version 2.1... " >&6; }
13530 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13531 $as_echo_n "(cached) " >&6
13532 else
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h. */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 #include <Xm/Xm.h>
13540 int
13541 main ()
13542 {
13543 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13544 int x = 5;
13545 #else
13546 Motif version prior to 2.1.
13547 #endif
13548 ;
13549 return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13557 esac
13558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13559 $as_echo "$ac_try_echo") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } && {
13567 test -z "$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13569 } && test -s conftest.$ac_objext; then
13570 emacs_cv_motif_version_2_1=yes
13571 else
13572 $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 emacs_cv_motif_version_2_1=no
13576 fi
13577
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 fi
13580 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13581 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13582 if test $emacs_cv_motif_version_2_1 = yes; then
13583 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13584 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13585 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13586 $as_echo_n "(cached) " >&6
13587 else
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-lXp $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char XpCreateContext ();
13604 int
13605 main ()
13606 {
13607 return XpCreateContext ();
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13619 $as_echo "$ac_try_echo") >&5
13620 (eval "$ac_link") 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } && {
13627 test -z "$ac_c_werror_flag" ||
13628 test ! -s conftest.err
13629 } && test -s conftest$ac_exeext && {
13630 test "$cross_compiling" = yes ||
13631 $as_test_x conftest$ac_exeext
13632 }; then
13633 ac_cv_lib_Xp_XpCreateContext=yes
13634 else
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 ac_cv_lib_Xp_XpCreateContext=no
13639 fi
13640
13641 rm -rf conftest.dSYM
13642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13643 conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13645 fi
13646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13647 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13648 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13649 LIBXP=-lXp
13650 fi
13651
13652 else
13653 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13654 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13655 if test "${emacs_cv_lesstif+set}" = set; then
13656 $as_echo_n "(cached) " >&6
13657 else
13658 # We put this in CFLAGS temporarily to precede other -I options
13659 # that might be in CFLAGS temporarily.
13660 # We put this in CPPFLAGS where it precedes the other -I options.
13661 OLD_CPPFLAGS=$CPPFLAGS
13662 OLD_CFLAGS=$CFLAGS
13663 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13664 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13672 int
13673 main ()
13674 {
13675 int x = 5;
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 rm -f conftest.$ac_objext
13681 if { (ac_try="$ac_compile"
13682 case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685 esac
13686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13687 $as_echo "$ac_try_echo") >&5
13688 (eval "$ac_compile") 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest.$ac_objext; then
13698 emacs_cv_lesstif=yes
13699 else
13700 $as_echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 emacs_cv_lesstif=no
13704 fi
13705
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 fi
13708 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13709 $as_echo "$emacs_cv_lesstif" >&6; }
13710 if test $emacs_cv_lesstif = yes; then
13711 # Make sure this -I option remains in CPPFLAGS after it is set
13712 # back to REAL_CPPFLAGS.
13713 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13714 # have those other -I options anyway. Ultimately, having this
13715 # directory ultimately in CPPFLAGS will be enough.
13716 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13717 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13718 else
13719 CFLAGS=$OLD_CFLAGS
13720 CPPFLAGS=$OLD_CPPFLAGS
13721 fi
13722 fi
13723 fi
13724
13725
13726
13727 USE_TOOLKIT_SCROLL_BARS=no
13728 if test "${with_toolkit_scroll_bars}" != "no"; then
13729 if test "${USE_X_TOOLKIT}" != "none"; then
13730 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define USE_TOOLKIT_SCROLL_BARS 1
13733 _ACEOF
13734
13735 HAVE_XAW3D=no
13736 USE_TOOLKIT_SCROLL_BARS=yes
13737 elif test "${HAVE_XAW3D}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define USE_TOOLKIT_SCROLL_BARS 1
13740 _ACEOF
13741
13742 USE_TOOLKIT_SCROLL_BARS=yes
13743 fi
13744 elif test "${HAVE_GTK}" = "yes"; then
13745 cat >>confdefs.h <<\_ACEOF
13746 #define USE_TOOLKIT_SCROLL_BARS 1
13747 _ACEOF
13748
13749 USE_TOOLKIT_SCROLL_BARS=yes
13750 elif test "${HAVE_NS}" = "yes"; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define USE_TOOLKIT_SCROLL_BARS 1
13753 _ACEOF
13754
13755 USE_TOOLKIT_SCROLL_BARS=yes
13756 fi
13757 fi
13758
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765
13766 #include <X11/Xlib.h>
13767 #include <X11/Xresource.h>
13768 int
13769 main ()
13770 {
13771 XIMProc callback;
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784 (eval "$ac_compile") 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest.$ac_objext; then
13794 HAVE_XIM=yes
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_XIM 1
13798 _ACEOF
13799
13800 else
13801 $as_echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804 HAVE_XIM=no
13805 fi
13806
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13808
13809
13810 if test "${with_xim}" != "no"; then
13811
13812 cat >>confdefs.h <<\_ACEOF
13813 #define USE_XIM 1
13814 _ACEOF
13815
13816 fi
13817
13818
13819 if test "${HAVE_XIM}" != "no"; then
13820 late_CFLAGS=$CFLAGS
13821 if test "$GCC" = yes; then
13822 CFLAGS="$CFLAGS --pedantic-errors"
13823 fi
13824 cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h. */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830
13831 #include <X11/Xlib.h>
13832 #include <X11/Xresource.h>
13833 int
13834 main ()
13835 {
13836 Display *display;
13837 XrmDatabase db;
13838 char *res_name;
13839 char *res_class;
13840 XIMProc callback;
13841 XPointer *client_data;
13842 #ifndef __GNUC__
13843 /* If we're not using GCC, it's probably not XFree86, and this is
13844 probably right, but we can't use something like --pedantic-errors. */
13845 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13846 char*, XIMProc, XPointer*);
13847 #endif
13848 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13849 client_data);
13850 ;
13851 return 0;
13852 }
13853 _ACEOF
13854 rm -f conftest.$ac_objext
13855 if { (ac_try="$ac_compile"
13856 case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859 esac
13860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13861 $as_echo "$ac_try_echo") >&5
13862 (eval "$ac_compile") 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && {
13869 test -z "$ac_c_werror_flag" ||
13870 test ! -s conftest.err
13871 } && test -s conftest.$ac_objext; then
13872 emacs_cv_arg6_star=yes
13873 else
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
13878 fi
13879
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881
13882 if test "$emacs_cv_arg6_star" = yes; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13885 _ACEOF
13886
13887 else
13888 cat >>confdefs.h <<\_ACEOF
13889 #define XRegisterIMInstantiateCallback_arg6 XPointer
13890 _ACEOF
13891
13892 fi
13893 CFLAGS=$late_CFLAGS
13894 fi
13895
13896 ### Start of font-backend (under any platform) section.
13897 # (nothing here yet -- this is a placeholder)
13898 ### End of font-backend (under any platform) section.
13899
13900 ### Start of font-backend (under X11) section.
13901 if test "${HAVE_X11}" = "yes"; then
13902
13903 succeeded=no
13904
13905 # Extract the first word of "pkg-config", so it can be a program name with args.
13906 set dummy pkg-config; ac_word=$2
13907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13908 $as_echo_n "checking for $ac_word... " >&6; }
13909 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13910 $as_echo_n "(cached) " >&6
13911 else
13912 case $PKG_CONFIG in
13913 [\\/]* | ?:[\\/]*)
13914 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13915 ;;
13916 *)
13917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13918 for as_dir in $PATH
13919 do
13920 IFS=$as_save_IFS
13921 test -z "$as_dir" && as_dir=.
13922 for ac_exec_ext in '' $ac_executable_extensions; do
13923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13924 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13926 break 2
13927 fi
13928 done
13929 done
13930 IFS=$as_save_IFS
13931
13932 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13933 ;;
13934 esac
13935 fi
13936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13937 if test -n "$PKG_CONFIG"; then
13938 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13939 $as_echo "$PKG_CONFIG" >&6; }
13940 else
13941 { $as_echo "$as_me:$LINENO: result: no" >&5
13942 $as_echo "no" >&6; }
13943 fi
13944
13945
13946
13947 if test "$PKG_CONFIG" = "no" ; then
13948 HAVE_FC=no
13949 else
13950 PKG_CONFIG_MIN_VERSION=0.9.0
13951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13952 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13953 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13954
13955 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13956 { $as_echo "$as_me:$LINENO: result: yes" >&5
13957 $as_echo "yes" >&6; }
13958 succeeded=yes
13959
13960 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13961 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13962 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13963 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13964 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13965
13966 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13967 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13968 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13969 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13970 $as_echo "$FONTCONFIG_LIBS" >&6; }
13971 else
13972 { $as_echo "$as_me:$LINENO: result: no" >&5
13973 $as_echo "no" >&6; }
13974 FONTCONFIG_CFLAGS=""
13975 FONTCONFIG_LIBS=""
13976 ## If we have a custom action on failure, don't print errors, but
13977 ## do set a variable so people can do so.
13978 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13979
13980 fi
13981
13982
13983
13984 else
13985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13987 fi
13988 fi
13989
13990 if test $succeeded = yes; then
13991 HAVE_FC=yes
13992 else
13993 HAVE_FC=no
13994 fi
13995
13996
13997 ## Use -lXft if available, unless `--with-xft=no'.
13998 HAVE_XFT=maybe
13999 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14000 with_xft="no";
14001 fi
14002 if test "x${with_xft}" != "xno"; then
14003
14004
14005 succeeded=no
14006
14007 # Extract the first word of "pkg-config", so it can be a program name with args.
14008 set dummy pkg-config; ac_word=$2
14009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14010 $as_echo_n "checking for $ac_word... " >&6; }
14011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14012 $as_echo_n "(cached) " >&6
14013 else
14014 case $PKG_CONFIG in
14015 [\\/]* | ?:[\\/]*)
14016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14017 ;;
14018 *)
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14021 do
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14029 fi
14030 done
14031 done
14032 IFS=$as_save_IFS
14033
14034 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14035 ;;
14036 esac
14037 fi
14038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14039 if test -n "$PKG_CONFIG"; then
14040 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14041 $as_echo "$PKG_CONFIG" >&6; }
14042 else
14043 { $as_echo "$as_me:$LINENO: result: no" >&5
14044 $as_echo "no" >&6; }
14045 fi
14046
14047
14048
14049 if test "$PKG_CONFIG" = "no" ; then
14050 HAVE_XFT=no
14051 else
14052 PKG_CONFIG_MIN_VERSION=0.9.0
14053 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14054 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14055 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14056
14057 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14058 { $as_echo "$as_me:$LINENO: result: yes" >&5
14059 $as_echo "yes" >&6; }
14060 succeeded=yes
14061
14062 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14063 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14064 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14065 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14066 $as_echo "$XFT_CFLAGS" >&6; }
14067
14068 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14069 $as_echo_n "checking XFT_LIBS... " >&6; }
14070 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14071 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14072 $as_echo "$XFT_LIBS" >&6; }
14073 else
14074 { $as_echo "$as_me:$LINENO: result: no" >&5
14075 $as_echo "no" >&6; }
14076 XFT_CFLAGS=""
14077 XFT_LIBS=""
14078 ## If we have a custom action on failure, don't print errors, but
14079 ## do set a variable so people can do so.
14080 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14081
14082 fi
14083
14084
14085
14086 else
14087 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14088 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14089 fi
14090 fi
14091
14092 if test $succeeded = yes; then
14093 :
14094 else
14095 HAVE_XFT=no
14096 fi
14097
14098 ## Because xftfont.c uses XRenderQueryExtension, we also
14099 ## need to link to -lXrender.
14100 HAVE_XRENDER=no
14101 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14102 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14103 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14104 $as_echo_n "(cached) " >&6
14105 else
14106 ac_check_lib_save_LIBS=$LIBS
14107 LIBS="-lXrender $LIBS"
14108 cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h. */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 char XRenderQueryExtension ();
14122 int
14123 main ()
14124 {
14125 return XRenderQueryExtension ();
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest.$ac_objext conftest$ac_exeext
14131 if { (ac_try="$ac_link"
14132 case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14135 esac
14136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14137 $as_echo "$ac_try_echo") >&5
14138 (eval "$ac_link") 2>conftest.er1
14139 ac_status=$?
14140 grep -v '^ *+' conftest.er1 >conftest.err
14141 rm -f conftest.er1
14142 cat conftest.err >&5
14143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } && {
14145 test -z "$ac_c_werror_flag" ||
14146 test ! -s conftest.err
14147 } && test -s conftest$ac_exeext && {
14148 test "$cross_compiling" = yes ||
14149 $as_test_x conftest$ac_exeext
14150 }; then
14151 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14152 else
14153 $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ac_cv_lib_Xrender_XRenderQueryExtension=no
14157 fi
14158
14159 rm -rf conftest.dSYM
14160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14163 fi
14164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14165 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14166 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14167 HAVE_XRENDER=yes
14168 fi
14169
14170 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14171 OLD_CPPFLAGS="$CPPFLAGS"
14172 OLD_CFLAGS="$CFLAGS"
14173 OLD_LIBS="$LIBS"
14174 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14175 CFLAGS="$CFLAGS $XFT_CFLAGS"
14176 XFT_LIBS="-lXrender $XFT_LIBS"
14177 LIBS="$XFT_LIBS $LIBS"
14178 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14179 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14180 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14181 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14182 $as_echo_n "(cached) " >&6
14183 fi
14184 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14185 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14186 else
14187 # Is the header compilable?
14188 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14189 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 $ac_includes_default
14197 #include <X11/Xft/Xft.h>
14198 _ACEOF
14199 rm -f conftest.$ac_objext
14200 if { (ac_try="$ac_compile"
14201 case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204 esac
14205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14206 $as_echo "$ac_try_echo") >&5
14207 (eval "$ac_compile") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest.$ac_objext; then
14217 ac_header_compiler=yes
14218 else
14219 $as_echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_header_compiler=no
14223 fi
14224
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14227 $as_echo "$ac_header_compiler" >&6; }
14228
14229 # Is the header present?
14230 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14231 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <X11/Xft/Xft.h>
14239 _ACEOF
14240 if { (ac_try="$ac_cpp conftest.$ac_ext"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14246 $as_echo "$ac_try_echo") >&5
14247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } >/dev/null && {
14254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 }; then
14257 ac_header_preproc=yes
14258 else
14259 $as_echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 ac_header_preproc=no
14263 fi
14264
14265 rm -f conftest.err conftest.$ac_ext
14266 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14267 $as_echo "$ac_header_preproc" >&6; }
14268
14269 # So? What about this header?
14270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14271 yes:no: )
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14273 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14275 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14276 ac_header_preproc=yes
14277 ;;
14278 no:yes:* )
14279 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14280 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14281 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14282 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14283 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14284 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14285 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14286 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14287 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14288 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14291
14292 ;;
14293 esac
14294 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14295 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14296 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14297 $as_echo_n "(cached) " >&6
14298 else
14299 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14300 fi
14301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14302 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14303
14304 fi
14305 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14306 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14307 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14308 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14309 $as_echo_n "(cached) " >&6
14310 else
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lXft $XFT_LIBS $LIBS"
14313 cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h. */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14323 #ifdef __cplusplus
14324 extern "C"
14325 #endif
14326 char XftFontOpen ();
14327 int
14328 main ()
14329 {
14330 return XftFontOpen ();
14331 ;
14332 return 0;
14333 }
14334 _ACEOF
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (ac_try="$ac_link"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14342 $as_echo "$ac_try_echo") >&5
14343 (eval "$ac_link") 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest$ac_exeext && {
14353 test "$cross_compiling" = yes ||
14354 $as_test_x conftest$ac_exeext
14355 }; then
14356 ac_cv_lib_Xft_XftFontOpen=yes
14357 else
14358 $as_echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14360
14361 ac_cv_lib_Xft_XftFontOpen=no
14362 fi
14363
14364 rm -rf conftest.dSYM
14365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14368 fi
14369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14370 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14371 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14372 HAVE_XFT=yes
14373 fi
14374
14375 fi
14376
14377
14378
14379 if test "${HAVE_XFT}" = "yes"; then
14380
14381 cat >>confdefs.h <<\_ACEOF
14382 #define HAVE_XFT 1
14383 _ACEOF
14384
14385
14386 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14387 else
14388 CPPFLAGS="$OLD_CPPFLAGS"
14389 CFLAGS="$OLD_CFLAGS"
14390 LIBS="$OLD_LIBS"
14391 fi # "${HAVE_XFT}" = "yes"
14392 fi # "$HAVE_XFT" != no
14393 fi # "x${with_xft}" != "xno"
14394
14395 if test "$HAVE_XFT" != "yes"; then
14396 HAVE_XFT=no
14397 fi
14398
14399
14400 HAVE_FREETYPE=no
14401 ## We used to allow building with FreeType and without Xft.
14402 ## However, the ftx font backend driver is not in good shape.
14403 if test "${HAVE_XFT}" = "yes"; then
14404 HAVE_FREETYPE=yes
14405 FONTCONFIG_CFLAGS=
14406 FONTCONFIG_LIBS=
14407 fi
14408
14409 HAVE_LIBOTF=no
14410 if test "${HAVE_FREETYPE}" = "yes"; then
14411
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_FREETYPE 1
14414 _ACEOF
14415
14416 if test "${with_libotf}" != "no"; then
14417
14418 succeeded=no
14419
14420 # Extract the first word of "pkg-config", so it can be a program name with args.
14421 set dummy pkg-config; ac_word=$2
14422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14423 $as_echo_n "checking for $ac_word... " >&6; }
14424 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14425 $as_echo_n "(cached) " >&6
14426 else
14427 case $PKG_CONFIG in
14428 [\\/]* | ?:[\\/]*)
14429 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14430 ;;
14431 *)
14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433 for as_dir in $PATH
14434 do
14435 IFS=$as_save_IFS
14436 test -z "$as_dir" && as_dir=.
14437 for ac_exec_ext in '' $ac_executable_extensions; do
14438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14439 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14441 break 2
14442 fi
14443 done
14444 done
14445 IFS=$as_save_IFS
14446
14447 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14448 ;;
14449 esac
14450 fi
14451 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14452 if test -n "$PKG_CONFIG"; then
14453 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14454 $as_echo "$PKG_CONFIG" >&6; }
14455 else
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457 $as_echo "no" >&6; }
14458 fi
14459
14460
14461
14462 if test "$PKG_CONFIG" = "no" ; then
14463 HAVE_LIBOTF=no
14464 else
14465 PKG_CONFIG_MIN_VERSION=0.9.0
14466 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14467 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14468 $as_echo_n "checking for libotf... " >&6; }
14469
14470 if $PKG_CONFIG --exists "libotf" 2>&5; then
14471 { $as_echo "$as_me:$LINENO: result: yes" >&5
14472 $as_echo "yes" >&6; }
14473 succeeded=yes
14474
14475 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14476 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14477 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14478 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14479 $as_echo "$LIBOTF_CFLAGS" >&6; }
14480
14481 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14482 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14483 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14484 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14485 $as_echo "$LIBOTF_LIBS" >&6; }
14486 else
14487 { $as_echo "$as_me:$LINENO: result: no" >&5
14488 $as_echo "no" >&6; }
14489 LIBOTF_CFLAGS=""
14490 LIBOTF_LIBS=""
14491 ## If we have a custom action on failure, don't print errors, but
14492 ## do set a variable so people can do so.
14493 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14494
14495 fi
14496
14497
14498
14499 else
14500 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14501 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14502 fi
14503 fi
14504
14505 if test $succeeded = yes; then
14506 HAVE_LIBOTF=yes
14507 else
14508 HAVE_LIBOTF=no
14509 fi
14510
14511 if test "$HAVE_LIBOTF" = "yes"; then
14512
14513 cat >>confdefs.h <<\_ACEOF
14514 #define HAVE_LIBOTF 1
14515 _ACEOF
14516
14517 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14518 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14519 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14520 $as_echo_n "(cached) " >&6
14521 else
14522 ac_check_lib_save_LIBS=$LIBS
14523 LIBS="-lotf $LIBS"
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530
14531 /* Override any GCC internal prototype to avoid an error.
14532 Use char because int might match the return type of a GCC
14533 builtin and then its argument prototype would still apply. */
14534 #ifdef __cplusplus
14535 extern "C"
14536 #endif
14537 char OTF_get_variation_glyphs ();
14538 int
14539 main ()
14540 {
14541 return OTF_get_variation_glyphs ();
14542 ;
14543 return 0;
14544 }
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14551 esac
14552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14553 $as_echo "$ac_try_echo") >&5
14554 (eval "$ac_link") 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } && {
14561 test -z "$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 } && test -s conftest$ac_exeext && {
14564 test "$cross_compiling" = yes ||
14565 $as_test_x conftest$ac_exeext
14566 }; then
14567 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14568 else
14569 $as_echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14573 fi
14574
14575 rm -rf conftest.dSYM
14576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14577 conftest$ac_exeext conftest.$ac_ext
14578 LIBS=$ac_check_lib_save_LIBS
14579 fi
14580 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14581 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14582 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14583 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14584 else
14585 HAVE_OTF_GET_VARIATION_GLYPHS=no
14586 fi
14587
14588 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14589
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14592 _ACEOF
14593
14594 fi
14595 fi
14596 fi
14597 fi
14598
14599 HAVE_M17N_FLT=no
14600 if test "${HAVE_LIBOTF}" = yes; then
14601 if test "${with_m17n_flt}" != "no"; then
14602
14603 succeeded=no
14604
14605 # Extract the first word of "pkg-config", so it can be a program name with args.
14606 set dummy pkg-config; ac_word=$2
14607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14610 $as_echo_n "(cached) " >&6
14611 else
14612 case $PKG_CONFIG in
14613 [\\/]* | ?:[\\/]*)
14614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14615 ;;
14616 *)
14617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14618 for as_dir in $PATH
14619 do
14620 IFS=$as_save_IFS
14621 test -z "$as_dir" && as_dir=.
14622 for ac_exec_ext in '' $ac_executable_extensions; do
14623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14626 break 2
14627 fi
14628 done
14629 done
14630 IFS=$as_save_IFS
14631
14632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14633 ;;
14634 esac
14635 fi
14636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14637 if test -n "$PKG_CONFIG"; then
14638 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14639 $as_echo "$PKG_CONFIG" >&6; }
14640 else
14641 { $as_echo "$as_me:$LINENO: result: no" >&5
14642 $as_echo "no" >&6; }
14643 fi
14644
14645
14646
14647 if test "$PKG_CONFIG" = "no" ; then
14648 HAVE_M17N_FLT=no
14649 else
14650 PKG_CONFIG_MIN_VERSION=0.9.0
14651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14652 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14653 $as_echo_n "checking for m17n-flt... " >&6; }
14654
14655 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14656 { $as_echo "$as_me:$LINENO: result: yes" >&5
14657 $as_echo "yes" >&6; }
14658 succeeded=yes
14659
14660 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14661 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14662 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14663 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14664 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14665
14666 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14667 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14668 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14669 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14670 $as_echo "$M17N_FLT_LIBS" >&6; }
14671 else
14672 { $as_echo "$as_me:$LINENO: result: no" >&5
14673 $as_echo "no" >&6; }
14674 M17N_FLT_CFLAGS=""
14675 M17N_FLT_LIBS=""
14676 ## If we have a custom action on failure, don't print errors, but
14677 ## do set a variable so people can do so.
14678 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14679
14680 fi
14681
14682
14683
14684 else
14685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14687 fi
14688 fi
14689
14690 if test $succeeded = yes; then
14691 HAVE_M17N_FLT=yes
14692 else
14693 HAVE_M17N_FLT=no
14694 fi
14695
14696 if test "$HAVE_M17N_FLT" = "yes"; then
14697
14698 cat >>confdefs.h <<\_ACEOF
14699 #define HAVE_M17N_FLT 1
14700 _ACEOF
14701
14702 fi
14703 fi
14704 fi
14705 else
14706 HAVE_XFT=no
14707 HAVE_FREETYPE=no
14708 HAVE_LIBOTF=no
14709 HAVE_M17N_FLT=no
14710 fi
14711
14712 ### End of font-backend (under X11) section.
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723 ### Use -lXpm if available, unless `--with-xpm=no'.
14724 HAVE_XPM=no
14725 LIBXPM=
14726 if test "${HAVE_X11}" = "yes"; then
14727 if test "${with_xpm}" != "no"; then
14728 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14729 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14730 $as_echo_n "checking for X11/xpm.h... " >&6; }
14731 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14732 $as_echo_n "(cached) " >&6
14733 fi
14734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14735 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14736 else
14737 # Is the header compilable?
14738 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14739 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 $ac_includes_default
14747 #include <X11/xpm.h>
14748 _ACEOF
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_header_compiler=yes
14768 else
14769 $as_echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_compiler=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 $as_echo "$ac_header_compiler" >&6; }
14778
14779 # Is the header present?
14780 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14781 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <X11/xpm.h>
14789 _ACEOF
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794 esac
14795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14796 $as_echo "$ac_try_echo") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14798 ac_status=$?
14799 grep -v '^ *+' conftest.er1 >conftest.err
14800 rm -f conftest.er1
14801 cat conftest.err >&5
14802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14806 }; then
14807 ac_header_preproc=yes
14808 else
14809 $as_echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14811
14812 ac_header_preproc=no
14813 fi
14814
14815 rm -f conftest.err conftest.$ac_ext
14816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 $as_echo "$ac_header_preproc" >&6; }
14818
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14821 yes:no: )
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14823 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14825 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14826 ac_header_preproc=yes
14827 ;;
14828 no:yes:* )
14829 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14830 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14831 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14832 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14833 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14834 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14835 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14836 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14838 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14841
14842 ;;
14843 esac
14844 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14845 $as_echo_n "checking for X11/xpm.h... " >&6; }
14846 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14847 $as_echo_n "(cached) " >&6
14848 else
14849 ac_cv_header_X11_xpm_h=$ac_header_preproc
14850 fi
14851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14852 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14853
14854 fi
14855 if test $ac_cv_header_X11_xpm_h = yes; then
14856 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14857 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14858 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14859 $as_echo_n "(cached) " >&6
14860 else
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lXpm -lX11 $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14873 #ifdef __cplusplus
14874 extern "C"
14875 #endif
14876 char XpmReadFileToPixmap ();
14877 int
14878 main ()
14879 {
14880 return XpmReadFileToPixmap ();
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (ac_try="$ac_link"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890 esac
14891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892 $as_echo "$ac_try_echo") >&5
14893 (eval "$ac_link") 2>conftest.er1
14894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext && {
14903 test "$cross_compiling" = yes ||
14904 $as_test_x conftest$ac_exeext
14905 }; then
14906 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14907 else
14908 $as_echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14912 fi
14913
14914 rm -rf conftest.dSYM
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14918 fi
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14920 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14921 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14922 HAVE_XPM=yes
14923 fi
14924
14925 fi
14926
14927
14928 if test "${HAVE_XPM}" = "yes"; then
14929 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14930 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include "X11/xpm.h"
14938 #ifndef XpmReturnAllocPixels
14939 no_return_alloc_pixels
14940 #endif
14941
14942 _ACEOF
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14945 HAVE_XPM=no
14946 else
14947 HAVE_XPM=yes
14948 fi
14949 rm -f conftest*
14950
14951
14952 if test "${HAVE_XPM}" = "yes"; then
14953 { $as_echo "$as_me:$LINENO: result: yes" >&5
14954 $as_echo "yes" >&6; }
14955 else
14956 { $as_echo "$as_me:$LINENO: result: no" >&5
14957 $as_echo "no" >&6; }
14958 fi
14959 fi
14960 fi
14961
14962 if test "${HAVE_XPM}" = "yes"; then
14963
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_XPM 1
14966 _ACEOF
14967
14968 LIBXPM=-lXpm
14969 fi
14970 fi
14971
14972
14973 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14974 HAVE_JPEG=no
14975 LIBJPEG=
14976 if test "${HAVE_X11}" = "yes"; then
14977 if test "${with_jpeg}" != "no"; then
14978 if test "${ac_cv_header_jerror_h+set}" = set; then
14979 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14980 $as_echo_n "checking for jerror.h... " >&6; }
14981 if test "${ac_cv_header_jerror_h+set}" = set; then
14982 $as_echo_n "(cached) " >&6
14983 fi
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14985 $as_echo "$ac_cv_header_jerror_h" >&6; }
14986 else
14987 # Is the header compilable?
14988 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14989 $as_echo_n "checking jerror.h usability... " >&6; }
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h. */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 $ac_includes_default
14997 #include <jerror.h>
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (ac_try="$ac_compile"
15001 case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004 esac
15005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15006 $as_echo "$ac_try_echo") >&5
15007 (eval "$ac_compile") 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest.$ac_objext; then
15017 ac_header_compiler=yes
15018 else
15019 $as_echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_compiler=no
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 $as_echo "$ac_header_compiler" >&6; }
15028
15029 # Is the header present?
15030 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15031 $as_echo_n "checking jerror.h presence... " >&6; }
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 #include <jerror.h>
15039 _ACEOF
15040 if { (ac_try="$ac_cpp conftest.$ac_ext"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044 esac
15045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } >/dev/null && {
15054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 }; then
15057 ac_header_preproc=yes
15058 else
15059 $as_echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062 ac_header_preproc=no
15063 fi
15064
15065 rm -f conftest.err conftest.$ac_ext
15066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15067 $as_echo "$ac_header_preproc" >&6; }
15068
15069 # So? What about this header?
15070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15071 yes:no: )
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15073 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15075 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15076 ac_header_preproc=yes
15077 ;;
15078 no:yes:* )
15079 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15080 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15081 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15082 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15084 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15086 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15088 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15091
15092 ;;
15093 esac
15094 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15095 $as_echo_n "checking for jerror.h... " >&6; }
15096 if test "${ac_cv_header_jerror_h+set}" = set; then
15097 $as_echo_n "(cached) " >&6
15098 else
15099 ac_cv_header_jerror_h=$ac_header_preproc
15100 fi
15101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15102 $as_echo "$ac_cv_header_jerror_h" >&6; }
15103
15104 fi
15105 if test $ac_cv_header_jerror_h = yes; then
15106 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15107 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15108 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15109 $as_echo_n "(cached) " >&6
15110 else
15111 ac_check_lib_save_LIBS=$LIBS
15112 LIBS="-ljpeg $LIBS"
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char jpeg_destroy_compress ();
15127 int
15128 main ()
15129 {
15130 return jpeg_destroy_compress ();
15131 ;
15132 return 0;
15133 }
15134 _ACEOF
15135 rm -f conftest.$ac_objext conftest$ac_exeext
15136 if { (ac_try="$ac_link"
15137 case "(($ac_try" in
15138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15140 esac
15141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15142 $as_echo "$ac_try_echo") >&5
15143 (eval "$ac_link") 2>conftest.er1
15144 ac_status=$?
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
15148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && {
15150 test -z "$ac_c_werror_flag" ||
15151 test ! -s conftest.err
15152 } && test -s conftest$ac_exeext && {
15153 test "$cross_compiling" = yes ||
15154 $as_test_x conftest$ac_exeext
15155 }; then
15156 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15157 else
15158 $as_echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15162 fi
15163
15164 rm -rf conftest.dSYM
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15168 fi
15169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15170 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15171 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15172 HAVE_JPEG=yes
15173 fi
15174
15175 fi
15176
15177
15178 fi
15179
15180
15181 if test "${HAVE_JPEG}" = "yes"; then
15182 cat >>confdefs.h <<\_ACEOF
15183 #define HAVE_JPEG 1
15184 _ACEOF
15185
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <jpeglib.h>
15193 version=JPEG_LIB_VERSION
15194
15195 _ACEOF
15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_JPEG 1
15200 _ACEOF
15201
15202 else
15203 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15204 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15205 HAVE_JPEG=no
15206 fi
15207 rm -f conftest*
15208
15209 fi
15210 if test "${HAVE_JPEG}" = "yes"; then
15211 LIBJPEG=-ljpeg
15212 fi
15213 fi
15214
15215
15216 ### Use -lpng if available, unless `--with-png=no'.
15217 HAVE_PNG=no
15218 LIBPNG=
15219 if test "${HAVE_X11}" = "yes"; then
15220 if test "${with_png}" != "no"; then
15221 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15222 # in /usr/include/libpng.
15223
15224
15225 for ac_header in png.h libpng/png.h
15226 do
15227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 $as_echo_n "checking for $ac_header... " >&6; }
15231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15232 $as_echo_n "(cached) " >&6
15233 fi
15234 ac_res=`eval 'as_val=${'$as_ac_Header'}
15235 $as_echo "$as_val"'`
15236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15237 $as_echo "$ac_res" >&6; }
15238 else
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15241 $as_echo_n "checking $ac_header usability... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <$ac_header>
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256 esac
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15270 else
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_header_compiler=no
15275 fi
15276
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15280
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 $as_echo_n "checking $ac_header presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15291 _ACEOF
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null && {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 }; then
15309 ac_header_preproc=yes
15310 else
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314 ac_header_preproc=no
15315 fi
15316
15317 rm -f conftest.err conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15320
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 yes:no: )
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15329 ;;
15330 no:yes:* )
15331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15343
15344 ;;
15345 esac
15346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 $as_echo_n "checking for $ac_header... " >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 $as_echo_n "(cached) " >&6
15350 else
15351 eval "$as_ac_Header=\$ac_header_preproc"
15352 fi
15353 ac_res=`eval 'as_val=${'$as_ac_Header'}
15354 $as_echo "$as_val"'`
15355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15356 $as_echo "$ac_res" >&6; }
15357
15358 fi
15359 if test `eval 'as_val=${'$as_ac_Header'}
15360 $as_echo "$as_val"'` = yes; then
15361 cat >>confdefs.h <<_ACEOF
15362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15363 _ACEOF
15364
15365 fi
15366
15367 done
15368
15369 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15370 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15371 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15372 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15373 $as_echo_n "(cached) " >&6
15374 else
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lpng -lz -lm $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char png_get_channels ();
15391 int
15392 main ()
15393 {
15394 return png_get_channels ();
15395 ;
15396 return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404 esac
15405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15406 $as_echo "$ac_try_echo") >&5
15407 (eval "$ac_link") 2>conftest.er1
15408 ac_status=$?
15409 grep -v '^ *+' conftest.er1 >conftest.err
15410 rm -f conftest.er1
15411 cat conftest.err >&5
15412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && {
15414 test -z "$ac_c_werror_flag" ||
15415 test ! -s conftest.err
15416 } && test -s conftest$ac_exeext && {
15417 test "$cross_compiling" = yes ||
15418 $as_test_x conftest$ac_exeext
15419 }; then
15420 ac_cv_lib_png_png_get_channels=yes
15421 else
15422 $as_echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_cv_lib_png_png_get_channels=no
15426 fi
15427
15428 rm -rf conftest.dSYM
15429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15430 conftest$ac_exeext conftest.$ac_ext
15431 LIBS=$ac_check_lib_save_LIBS
15432 fi
15433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15434 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15435 if test $ac_cv_lib_png_png_get_channels = yes; then
15436 HAVE_PNG=yes
15437 fi
15438
15439 fi
15440 fi
15441
15442 if test "${HAVE_PNG}" = "yes"; then
15443
15444 cat >>confdefs.h <<\_ACEOF
15445 #define HAVE_PNG 1
15446 _ACEOF
15447
15448 LIBPNG="-lpng -lz -lm"
15449 fi
15450 fi
15451
15452
15453 ### Use -ltiff if available, unless `--with-tiff=no'.
15454 HAVE_TIFF=no
15455 LIBTIFF=
15456 if test "${HAVE_X11}" = "yes"; then
15457 if test "${with_tiff}" != "no"; then
15458 if test "${ac_cv_header_tiffio_h+set}" = set; then
15459 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15460 $as_echo_n "checking for tiffio.h... " >&6; }
15461 if test "${ac_cv_header_tiffio_h+set}" = set; then
15462 $as_echo_n "(cached) " >&6
15463 fi
15464 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15465 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15466 else
15467 # Is the header compilable?
15468 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15469 $as_echo_n "checking tiffio.h usability... " >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <tiffio.h>
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484 esac
15485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15486 $as_echo "$ac_try_echo") >&5
15487 (eval "$ac_compile") 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && {
15494 test -z "$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 } && test -s conftest.$ac_objext; then
15497 ac_header_compiler=yes
15498 else
15499 $as_echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ac_header_compiler=no
15503 fi
15504
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15507 $as_echo "$ac_header_compiler" >&6; }
15508
15509 # Is the header present?
15510 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15511 $as_echo_n "checking tiffio.h presence... " >&6; }
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 #include <tiffio.h>
15519 _ACEOF
15520 if { (ac_try="$ac_cpp conftest.$ac_ext"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } >/dev/null && {
15534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15535 test ! -s conftest.err
15536 }; then
15537 ac_header_preproc=yes
15538 else
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 ac_header_preproc=no
15543 fi
15544
15545 rm -f conftest.err conftest.$ac_ext
15546 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15547 $as_echo "$ac_header_preproc" >&6; }
15548
15549 # So? What about this header?
15550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15551 yes:no: )
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15553 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15555 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15556 ac_header_preproc=yes
15557 ;;
15558 no:yes:* )
15559 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15560 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15561 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15562 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15563 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15564 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15565 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15566 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15567 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15568 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15571
15572 ;;
15573 esac
15574 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15575 $as_echo_n "checking for tiffio.h... " >&6; }
15576 if test "${ac_cv_header_tiffio_h+set}" = set; then
15577 $as_echo_n "(cached) " >&6
15578 else
15579 ac_cv_header_tiffio_h=$ac_header_preproc
15580 fi
15581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15582 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15583
15584 fi
15585 if test $ac_cv_header_tiffio_h = yes; then
15586 tifflibs="-lz -lm"
15587 # At least one tiff package requires the jpeg library.
15588 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15589 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15590 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15591 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15592 $as_echo_n "(cached) " >&6
15593 else
15594 ac_check_lib_save_LIBS=$LIBS
15595 LIBS="-ltiff $tifflibs $LIBS"
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15606 #ifdef __cplusplus
15607 extern "C"
15608 #endif
15609 char TIFFGetVersion ();
15610 int
15611 main ()
15612 {
15613 return TIFFGetVersion ();
15614 ;
15615 return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext conftest$ac_exeext
15619 if { (ac_try="$ac_link"
15620 case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15623 esac
15624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15625 $as_echo "$ac_try_echo") >&5
15626 (eval "$ac_link") 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext && {
15636 test "$cross_compiling" = yes ||
15637 $as_test_x conftest$ac_exeext
15638 }; then
15639 ac_cv_lib_tiff_TIFFGetVersion=yes
15640 else
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_cv_lib_tiff_TIFFGetVersion=no
15645 fi
15646
15647 rm -rf conftest.dSYM
15648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15651 fi
15652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15653 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15654 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15655 HAVE_TIFF=yes
15656 fi
15657
15658 fi
15659
15660
15661 fi
15662
15663 if test "${HAVE_TIFF}" = "yes"; then
15664
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_TIFF 1
15667 _ACEOF
15668
15669 LIBTIFF=-ltiff
15670 fi
15671 fi
15672
15673
15674 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15675 HAVE_GIF=no
15676 LIBGIF=
15677 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15678 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15679 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15680 $as_echo_n "checking for gif_lib.h... " >&6; }
15681 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15682 $as_echo_n "(cached) " >&6
15683 fi
15684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15685 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15686 else
15687 # Is the header compilable?
15688 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15689 $as_echo_n "checking gif_lib.h usability... " >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 $ac_includes_default
15697 #include <gif_lib.h>
15698 _ACEOF
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15708 ac_status=$?
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.$ac_objext; then
15717 ac_header_compiler=yes
15718 else
15719 $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_header_compiler=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15727 $as_echo "$ac_header_compiler" >&6; }
15728
15729 # Is the header present?
15730 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15731 $as_echo_n "checking gif_lib.h presence... " >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <gif_lib.h>
15739 _ACEOF
15740 if { (ac_try="$ac_cpp conftest.$ac_ext"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15746 $as_echo "$ac_try_echo") >&5
15747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } >/dev/null && {
15754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15756 }; then
15757 ac_header_preproc=yes
15758 else
15759 $as_echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15761
15762 ac_header_preproc=no
15763 fi
15764
15765 rm -f conftest.err conftest.$ac_ext
15766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15767 $as_echo "$ac_header_preproc" >&6; }
15768
15769 # So? What about this header?
15770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15771 yes:no: )
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15773 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15775 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15776 ac_header_preproc=yes
15777 ;;
15778 no:yes:* )
15779 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15780 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15781 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15782 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15783 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15784 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15785 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15786 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15788 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15791
15792 ;;
15793 esac
15794 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15795 $as_echo_n "checking for gif_lib.h... " >&6; }
15796 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15797 $as_echo_n "(cached) " >&6
15798 else
15799 ac_cv_header_gif_lib_h=$ac_header_preproc
15800 fi
15801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15802 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15803
15804 fi
15805 if test $ac_cv_header_gif_lib_h = yes; then
15806 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15807 # Earlier versions can crash Emacs.
15808 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15809 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15810 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15811 $as_echo_n "(cached) " >&6
15812 else
15813 ac_check_lib_save_LIBS=$LIBS
15814 LIBS="-lgif $LIBS"
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h. */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821
15822 /* Override any GCC internal prototype to avoid an error.
15823 Use char because int might match the return type of a GCC
15824 builtin and then its argument prototype would still apply. */
15825 #ifdef __cplusplus
15826 extern "C"
15827 #endif
15828 char EGifPutExtensionLast ();
15829 int
15830 main ()
15831 {
15832 return EGifPutExtensionLast ();
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (ac_try="$ac_link"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842 esac
15843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15844 $as_echo "$ac_try_echo") >&5
15845 (eval "$ac_link") 2>conftest.er1
15846 ac_status=$?
15847 grep -v '^ *+' conftest.er1 >conftest.err
15848 rm -f conftest.er1
15849 cat conftest.err >&5
15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest$ac_exeext && {
15855 test "$cross_compiling" = yes ||
15856 $as_test_x conftest$ac_exeext
15857 }; then
15858 ac_cv_lib_gif_EGifPutExtensionLast=yes
15859 else
15860 $as_echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.$ac_ext >&5
15862
15863 ac_cv_lib_gif_EGifPutExtensionLast=no
15864 fi
15865
15866 rm -rf conftest.dSYM
15867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15868 conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_check_lib_save_LIBS
15870 fi
15871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15872 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15873 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15874 HAVE_GIF=yes
15875 else
15876 HAVE_GIF=maybe
15877 fi
15878
15879 fi
15880
15881
15882
15883 if test "$HAVE_GIF" = yes; then
15884 LIBGIF=-lgif
15885 elif test "$HAVE_GIF" = maybe; then
15886 # If gif_lib.h but no libgif, try libungif.
15887 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15888 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15889 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15890 $as_echo_n "(cached) " >&6
15891 else
15892 ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lungif $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h. */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15900
15901 /* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15904 #ifdef __cplusplus
15905 extern "C"
15906 #endif
15907 char EGifPutExtensionLast ();
15908 int
15909 main ()
15910 {
15911 return EGifPutExtensionLast ();
15912 ;
15913 return 0;
15914 }
15915 _ACEOF
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921 esac
15922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15923 $as_echo "$ac_try_echo") >&5
15924 (eval "$ac_link") 2>conftest.er1
15925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
15929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } && {
15931 test -z "$ac_c_werror_flag" ||
15932 test ! -s conftest.err
15933 } && test -s conftest$ac_exeext && {
15934 test "$cross_compiling" = yes ||
15935 $as_test_x conftest$ac_exeext
15936 }; then
15937 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15938 else
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_cv_lib_ungif_EGifPutExtensionLast=no
15943 fi
15944
15945 rm -rf conftest.dSYM
15946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15947 conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15949 fi
15950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15951 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15952 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15953 HAVE_GIF=yes
15954 else
15955 HAVE_GIF=no
15956 fi
15957
15958 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15959 fi
15960
15961 if test "${HAVE_GIF}" = "yes"; then
15962
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_GIF 1
15965 _ACEOF
15966
15967 fi
15968 fi
15969
15970
15971 if test "${HAVE_X11}" = "yes"; then
15972 MISSING=""
15973 WITH_NO=""
15974 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15975 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15976 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15977 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15978 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15979 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15980 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15981 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15982 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15983 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15984
15985 if test "X${MISSING}" != X; then
15986 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15987 $MISSING
15988 Maybe some development libraries/packages are missing?
15989 If you don't want to link with them give
15990 $WITH_NO
15991 as options to configure" >&5
15992 $as_echo "$as_me: error: The following required libraries were not found:
15993 $MISSING
15994 Maybe some development libraries/packages are missing?
15995 If you don't want to link with them give
15996 $WITH_NO
15997 as options to configure" >&2;}
15998 { (exit 1); exit 1; }; }
15999 fi
16000 fi
16001
16002 ### Use -lgpm if available, unless `--with-gpm=no'.
16003 HAVE_GPM=no
16004 LIBGPM=
16005 MOUSE_SUPPORT=
16006 if test "${with_gpm}" != "no"; then
16007 if test "${ac_cv_header_gpm_h+set}" = set; then
16008 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16009 $as_echo_n "checking for gpm.h... " >&6; }
16010 if test "${ac_cv_header_gpm_h+set}" = set; then
16011 $as_echo_n "(cached) " >&6
16012 fi
16013 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16014 $as_echo "$ac_cv_header_gpm_h" >&6; }
16015 else
16016 # Is the header compilable?
16017 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16018 $as_echo_n "checking gpm.h usability... " >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h. */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 $ac_includes_default
16026 #include <gpm.h>
16027 _ACEOF
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033 esac
16034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 ac_header_compiler=yes
16047 else
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 ac_header_compiler=no
16052 fi
16053
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 $as_echo "$ac_header_compiler" >&6; }
16057
16058 # Is the header present?
16059 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16060 $as_echo_n "checking gpm.h presence... " >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <gpm.h>
16068 _ACEOF
16069 if { (ac_try="$ac_cpp conftest.$ac_ext"
16070 case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073 esac
16074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev/null && {
16083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 }; then
16086 ac_header_preproc=yes
16087 else
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16090
16091 ac_header_preproc=no
16092 fi
16093
16094 rm -f conftest.err conftest.$ac_ext
16095 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 $as_echo "$ac_header_preproc" >&6; }
16097
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 yes:no: )
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16102 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16104 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16106 ;;
16107 no:yes:* )
16108 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16109 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16110 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16111 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16113 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16115 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16117 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16120
16121 ;;
16122 esac
16123 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16124 $as_echo_n "checking for gpm.h... " >&6; }
16125 if test "${ac_cv_header_gpm_h+set}" = set; then
16126 $as_echo_n "(cached) " >&6
16127 else
16128 ac_cv_header_gpm_h=$ac_header_preproc
16129 fi
16130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16131 $as_echo "$ac_cv_header_gpm_h" >&6; }
16132
16133 fi
16134 if test $ac_cv_header_gpm_h = yes; then
16135 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16136 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16137 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16138 $as_echo_n "(cached) " >&6
16139 else
16140 ac_check_lib_save_LIBS=$LIBS
16141 LIBS="-lgpm $LIBS"
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16152 #ifdef __cplusplus
16153 extern "C"
16154 #endif
16155 char Gpm_Open ();
16156 int
16157 main ()
16158 {
16159 return Gpm_Open ();
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (ac_try="$ac_link"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169 esac
16170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16171 $as_echo "$ac_try_echo") >&5
16172 (eval "$ac_link") 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && {
16179 test -z "$ac_c_werror_flag" ||
16180 test ! -s conftest.err
16181 } && test -s conftest$ac_exeext && {
16182 test "$cross_compiling" = yes ||
16183 $as_test_x conftest$ac_exeext
16184 }; then
16185 ac_cv_lib_gpm_Gpm_Open=yes
16186 else
16187 $as_echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 ac_cv_lib_gpm_Gpm_Open=no
16191 fi
16192
16193 rm -rf conftest.dSYM
16194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16195 conftest$ac_exeext conftest.$ac_ext
16196 LIBS=$ac_check_lib_save_LIBS
16197 fi
16198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16199 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16200 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16201 HAVE_GPM=yes
16202 fi
16203
16204 fi
16205
16206
16207
16208 if test "${HAVE_GPM}" = "yes"; then
16209
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE_GPM 1
16212 _ACEOF
16213
16214 LIBGPM=-lgpm
16215 ## May be reset below.
16216 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16217 fi
16218 fi
16219
16220
16221 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16222 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16223 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16224 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16225 $as_echo_n "(cached) " >&6
16226 fi
16227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16228 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16229 else
16230 # Is the header compilable?
16231 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16232 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16240 #include <malloc/malloc.h>
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247 esac
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.$ac_objext; then
16260 ac_header_compiler=yes
16261 else
16262 $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_compiler=no
16266 fi
16267
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16270 $as_echo "$ac_header_compiler" >&6; }
16271
16272 # Is the header present?
16273 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16274 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16275 cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h. */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <malloc/malloc.h>
16282 _ACEOF
16283 if { (ac_try="$ac_cpp conftest.$ac_ext"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16289 $as_echo "$ac_try_echo") >&5
16290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } >/dev/null && {
16297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16298 test ! -s conftest.err
16299 }; then
16300 ac_header_preproc=yes
16301 else
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ac_header_preproc=no
16306 fi
16307
16308 rm -f conftest.err conftest.$ac_ext
16309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16310 $as_echo "$ac_header_preproc" >&6; }
16311
16312 # So? What about this header?
16313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16314 yes:no: )
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16316 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16318 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16319 ac_header_preproc=yes
16320 ;;
16321 no:yes:* )
16322 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16323 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16324 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16325 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16326 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16327 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16328 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16329 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16331 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16334
16335 ;;
16336 esac
16337 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16338 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16339 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16340 $as_echo_n "(cached) " >&6
16341 else
16342 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16343 fi
16344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16345 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16346
16347 fi
16348 if test $ac_cv_header_malloc_malloc_h = yes; then
16349
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_MALLOC_MALLOC_H 1
16352 _ACEOF
16353
16354 fi
16355
16356
16357
16358 C_SWITCH_X_SYSTEM=
16359 ### Use NeXTstep API to implement GUI.
16360 if test "${HAVE_NS}" = "yes"; then
16361
16362 cat >>confdefs.h <<\_ACEOF
16363 #define HAVE_NS 1
16364 _ACEOF
16365
16366 if test "${NS_IMPL_COCOA}" = "yes"; then
16367
16368 cat >>confdefs.h <<\_ACEOF
16369 #define NS_IMPL_COCOA 1
16370 _ACEOF
16371
16372 GNU_OBJC_CFLAGS=
16373 fi
16374 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define NS_IMPL_GNUSTEP 1
16378 _ACEOF
16379
16380 # See also .m.o rule in Makefile.in */
16381 # FIXME: are all these flags really needed? Document here why. */
16382 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16383 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16384 fi
16385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16386
16387 cat >>confdefs.h <<\_ACEOF
16388 #define NS_HAVE_NSINTEGER 1
16389 _ACEOF
16390
16391 fi
16392 # We also have mouse menus.
16393 HAVE_MENUS=yes
16394 OTHER_FILES=ns-app
16395 fi
16396
16397
16398 ### Use session management (-lSM -lICE) if available
16399 HAVE_X_SM=no
16400 LIBXSM=
16401 if test "${HAVE_X11}" = "yes"; then
16402 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16403 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16404 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16405 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16406 $as_echo_n "(cached) " >&6
16407 fi
16408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16409 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16410 else
16411 # Is the header compilable?
16412 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16413 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h. */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 $ac_includes_default
16421 #include <X11/SM/SMlib.h>
16422 _ACEOF
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_compile") 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest.$ac_objext; then
16441 ac_header_compiler=yes
16442 else
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 ac_header_compiler=no
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16451 $as_echo "$ac_header_compiler" >&6; }
16452
16453 # Is the header present?
16454 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16455 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <X11/SM/SMlib.h>
16463 _ACEOF
16464 if { (ac_try="$ac_cpp conftest.$ac_ext"
16465 case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468 esac
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } >/dev/null && {
16478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16480 }; then
16481 ac_header_preproc=yes
16482 else
16483 $as_echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 ac_header_preproc=no
16487 fi
16488
16489 rm -f conftest.err conftest.$ac_ext
16490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491 $as_echo "$ac_header_preproc" >&6; }
16492
16493 # So? What about this header?
16494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16495 yes:no: )
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16497 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16499 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
16501 ;;
16502 no:yes:* )
16503 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16504 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16505 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16506 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16507 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16508 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16509 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16510 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16511 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16512 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16515
16516 ;;
16517 esac
16518 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16519 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16520 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16521 $as_echo_n "(cached) " >&6
16522 else
16523 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16524 fi
16525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16526 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16527
16528 fi
16529 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16530 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16531 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16532 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16533 $as_echo_n "(cached) " >&6
16534 else
16535 ac_check_lib_save_LIBS=$LIBS
16536 LIBS="-lSM -lICE $LIBS"
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h. */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543
16544 /* Override any GCC internal prototype to avoid an error.
16545 Use char because int might match the return type of a GCC
16546 builtin and then its argument prototype would still apply. */
16547 #ifdef __cplusplus
16548 extern "C"
16549 #endif
16550 char SmcOpenConnection ();
16551 int
16552 main ()
16553 {
16554 return SmcOpenConnection ();
16555 ;
16556 return 0;
16557 }
16558 _ACEOF
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (ac_try="$ac_link"
16561 case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564 esac
16565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16566 $as_echo "$ac_try_echo") >&5
16567 (eval "$ac_link") 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext && {
16577 test "$cross_compiling" = yes ||
16578 $as_test_x conftest$ac_exeext
16579 }; then
16580 ac_cv_lib_SM_SmcOpenConnection=yes
16581 else
16582 $as_echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585 ac_cv_lib_SM_SmcOpenConnection=no
16586 fi
16587
16588 rm -rf conftest.dSYM
16589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16590 conftest$ac_exeext conftest.$ac_ext
16591 LIBS=$ac_check_lib_save_LIBS
16592 fi
16593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16594 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16595 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16596 HAVE_X_SM=yes
16597 fi
16598
16599 fi
16600
16601
16602
16603 if test "${HAVE_X_SM}" = "yes"; then
16604
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_X_SM 1
16607 _ACEOF
16608
16609 LIBXSM="-lSM -lICE"
16610 case "$LIBS" in
16611 *-lSM*) ;;
16612 *) LIBS="$LIBXSM $LIBS" ;;
16613 esac
16614 fi
16615 fi
16616
16617
16618 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16619 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16620 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16621 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16622 $as_echo_n "(cached) " >&6
16623 else
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h. */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <netdb.h>
16631 int
16632 main ()
16633 {
16634 return h_errno;
16635 ;
16636 return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_link") 2>conftest.er1
16648 ac_status=$?
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } && {
16654 test -z "$ac_c_werror_flag" ||
16655 test ! -s conftest.err
16656 } && test -s conftest$ac_exeext && {
16657 test "$cross_compiling" = yes ||
16658 $as_test_x conftest$ac_exeext
16659 }; then
16660 emacs_cv_netdb_declares_h_errno=yes
16661 else
16662 $as_echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 emacs_cv_netdb_declares_h_errno=no
16666 fi
16667
16668 rm -rf conftest.dSYM
16669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16670 conftest$ac_exeext conftest.$ac_ext
16671 fi
16672 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16673 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16674 if test $emacs_cv_netdb_declares_h_errno = yes; then
16675
16676 cat >>confdefs.h <<\_ACEOF
16677 #define HAVE_H_ERRNO 1
16678 _ACEOF
16679
16680 fi
16681
16682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16683 # for constant arguments. Useless!
16684 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16685 $as_echo_n "checking for working alloca.h... " >&6; }
16686 if test "${ac_cv_working_alloca_h+set}" = set; then
16687 $as_echo_n "(cached) " >&6
16688 else
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 #include <alloca.h>
16696 int
16697 main ()
16698 {
16699 char *p = (char *) alloca (2 * sizeof (int));
16700 if (p) return 0;
16701 ;
16702 return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16712 $as_echo "$ac_try_echo") >&5
16713 (eval "$ac_link") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest$ac_exeext && {
16723 test "$cross_compiling" = yes ||
16724 $as_test_x conftest$ac_exeext
16725 }; then
16726 ac_cv_working_alloca_h=yes
16727 else
16728 $as_echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_working_alloca_h=no
16732 fi
16733
16734 rm -rf conftest.dSYM
16735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16736 conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16739 $as_echo "$ac_cv_working_alloca_h" >&6; }
16740 if test $ac_cv_working_alloca_h = yes; then
16741
16742 cat >>confdefs.h <<\_ACEOF
16743 #define HAVE_ALLOCA_H 1
16744 _ACEOF
16745
16746 fi
16747
16748 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16749 $as_echo_n "checking for alloca... " >&6; }
16750 if test "${ac_cv_func_alloca_works+set}" = set; then
16751 $as_echo_n "(cached) " >&6
16752 else
16753 cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h. */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 #ifdef __GNUC__
16760 # define alloca __builtin_alloca
16761 #else
16762 # ifdef _MSC_VER
16763 # include <malloc.h>
16764 # define alloca _alloca
16765 # else
16766 # ifdef HAVE_ALLOCA_H
16767 # include <alloca.h>
16768 # else
16769 # ifdef _AIX
16770 #pragma alloca
16771 # else
16772 # ifndef alloca /* predefined by HP cc +Olibcalls */
16773 char *alloca ();
16774 # endif
16775 # endif
16776 # endif
16777 # endif
16778 #endif
16779
16780 int
16781 main ()
16782 {
16783 char *p = (char *) alloca (1);
16784 if (p) return 0;
16785 ;
16786 return 0;
16787 }
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (ac_try="$ac_link"
16791 case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16794 esac
16795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16796 $as_echo "$ac_try_echo") >&5
16797 (eval "$ac_link") 2>conftest.er1
16798 ac_status=$?
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
16802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } && {
16804 test -z "$ac_c_werror_flag" ||
16805 test ! -s conftest.err
16806 } && test -s conftest$ac_exeext && {
16807 test "$cross_compiling" = yes ||
16808 $as_test_x conftest$ac_exeext
16809 }; then
16810 ac_cv_func_alloca_works=yes
16811 else
16812 $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ac_cv_func_alloca_works=no
16816 fi
16817
16818 rm -rf conftest.dSYM
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820 conftest$ac_exeext conftest.$ac_ext
16821 fi
16822 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16823 $as_echo "$ac_cv_func_alloca_works" >&6; }
16824
16825 if test $ac_cv_func_alloca_works = yes; then
16826
16827 cat >>confdefs.h <<\_ACEOF
16828 #define HAVE_ALLOCA 1
16829 _ACEOF
16830
16831 else
16832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16833 # that cause trouble. Some versions do not even contain alloca or
16834 # contain a buggy version. If you still want to use their alloca,
16835 # use ar to extract alloca.o from them instead of compiling alloca.c.
16836
16837 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16838
16839 cat >>confdefs.h <<\_ACEOF
16840 #define C_ALLOCA 1
16841 _ACEOF
16842
16843
16844 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16845 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16846 if test "${ac_cv_os_cray+set}" = set; then
16847 $as_echo_n "(cached) " >&6
16848 else
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #if defined CRAY && ! defined CRAY2
16856 webecray
16857 #else
16858 wenotbecray
16859 #endif
16860
16861 _ACEOF
16862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16863 $EGREP "webecray" >/dev/null 2>&1; then
16864 ac_cv_os_cray=yes
16865 else
16866 ac_cv_os_cray=no
16867 fi
16868 rm -f conftest*
16869
16870 fi
16871 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16872 $as_echo "$ac_cv_os_cray" >&6; }
16873 if test $ac_cv_os_cray = yes; then
16874 for ac_func in _getb67 GETB67 getb67; do
16875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16877 $as_echo_n "checking for $ac_func... " >&6; }
16878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16879 $as_echo_n "(cached) " >&6
16880 else
16881 cat >conftest.$ac_ext <<_ACEOF
16882 /* confdefs.h. */
16883 _ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16889 #define $ac_func innocuous_$ac_func
16890
16891 /* System header to define __stub macros and hopefully few prototypes,
16892 which can conflict with char $ac_func (); below.
16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894 <limits.h> exists even on freestanding compilers. */
16895
16896 #ifdef __STDC__
16897 # include <limits.h>
16898 #else
16899 # include <assert.h>
16900 #endif
16901
16902 #undef $ac_func
16903
16904 /* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 char $ac_func ();
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined __stub_$ac_func || defined __stub___$ac_func
16915 choke me
16916 #endif
16917
16918 int
16919 main ()
16920 {
16921 return $ac_func ();
16922 ;
16923 return 0;
16924 }
16925 _ACEOF
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (ac_try="$ac_link"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931 esac
16932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16933 $as_echo "$ac_try_echo") >&5
16934 (eval "$ac_link") 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext && {
16944 test "$cross_compiling" = yes ||
16945 $as_test_x conftest$ac_exeext
16946 }; then
16947 eval "$as_ac_var=yes"
16948 else
16949 $as_echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 eval "$as_ac_var=no"
16953 fi
16954
16955 rm -rf conftest.dSYM
16956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16957 conftest$ac_exeext conftest.$ac_ext
16958 fi
16959 ac_res=`eval 'as_val=${'$as_ac_var'}
16960 $as_echo "$as_val"'`
16961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16962 $as_echo "$ac_res" >&6; }
16963 if test `eval 'as_val=${'$as_ac_var'}
16964 $as_echo "$as_val"'` = yes; then
16965
16966 cat >>confdefs.h <<_ACEOF
16967 #define CRAY_STACKSEG_END $ac_func
16968 _ACEOF
16969
16970 break
16971 fi
16972
16973 done
16974 fi
16975
16976 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16977 $as_echo_n "checking stack direction for C alloca... " >&6; }
16978 if test "${ac_cv_c_stack_direction+set}" = set; then
16979 $as_echo_n "(cached) " >&6
16980 else
16981 if test "$cross_compiling" = yes; then
16982 ac_cv_c_stack_direction=0
16983 else
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 $ac_includes_default
16991 int
16992 find_stack_direction ()
16993 {
16994 static char *addr = 0;
16995 auto char dummy;
16996 if (addr == 0)
16997 {
16998 addr = &dummy;
16999 return find_stack_direction ();
17000 }
17001 else
17002 return (&dummy > addr) ? 1 : -1;
17003 }
17004
17005 int
17006 main ()
17007 {
17008 return find_stack_direction () < 0;
17009 }
17010 _ACEOF
17011 rm -f conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17018 $as_echo "$ac_try_echo") >&5
17019 (eval "$ac_link") 2>&5
17020 ac_status=$?
17021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026 esac
17027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_try") 2>&5
17030 ac_status=$?
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_c_stack_direction=1
17034 else
17035 $as_echo "$as_me: program exited with status $ac_status" >&5
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 ( exit $ac_status )
17040 ac_cv_c_stack_direction=-1
17041 fi
17042 rm -rf conftest.dSYM
17043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17044 fi
17045
17046
17047 fi
17048 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17049 $as_echo "$ac_cv_c_stack_direction" >&6; }
17050
17051 cat >>confdefs.h <<_ACEOF
17052 #define STACK_DIRECTION $ac_cv_c_stack_direction
17053 _ACEOF
17054
17055
17056 fi
17057
17058
17059 if test x"$ac_cv_func_alloca_works" != xyes; then
17060 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17061 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17062 { (exit 1); exit 1; }; }
17063 fi
17064
17065 # fmod, logb, and frexp are found in -lm on most systems.
17066 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17067
17068 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17069 $as_echo_n "checking for sqrt in -lm... " >&6; }
17070 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17071 $as_echo_n "(cached) " >&6
17072 else
17073 ac_check_lib_save_LIBS=$LIBS
17074 LIBS="-lm $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17085 #ifdef __cplusplus
17086 extern "C"
17087 #endif
17088 char sqrt ();
17089 int
17090 main ()
17091 {
17092 return sqrt ();
17093 ;
17094 return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102 esac
17103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17104 $as_echo "$ac_try_echo") >&5
17105 (eval "$ac_link") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext && {
17115 test "$cross_compiling" = yes ||
17116 $as_test_x conftest$ac_exeext
17117 }; then
17118 ac_cv_lib_m_sqrt=yes
17119 else
17120 $as_echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 ac_cv_lib_m_sqrt=no
17124 fi
17125
17126 rm -rf conftest.dSYM
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17129 LIBS=$ac_check_lib_save_LIBS
17130 fi
17131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17132 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17133 if test $ac_cv_lib_m_sqrt = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_LIBM 1
17136 _ACEOF
17137
17138 LIBS="-lm $LIBS"
17139
17140 fi
17141
17142
17143 # Check for mail-locking functions in a "mail" library. Probably this should
17144 # have the same check as for liblockfile below.
17145 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17146 $as_echo_n "checking for maillock in -lmail... " >&6; }
17147 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17148 $as_echo_n "(cached) " >&6
17149 else
17150 ac_check_lib_save_LIBS=$LIBS
17151 LIBS="-lmail $LIBS"
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char maillock ();
17166 int
17167 main ()
17168 {
17169 return maillock ();
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (ac_try="$ac_link"
17176 case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17181 $as_echo "$ac_try_echo") >&5
17182 (eval "$ac_link") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext && {
17192 test "$cross_compiling" = yes ||
17193 $as_test_x conftest$ac_exeext
17194 }; then
17195 ac_cv_lib_mail_maillock=yes
17196 else
17197 $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ac_cv_lib_mail_maillock=no
17201 fi
17202
17203 rm -rf conftest.dSYM
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205 conftest$ac_exeext conftest.$ac_ext
17206 LIBS=$ac_check_lib_save_LIBS
17207 fi
17208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17209 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17210 if test $ac_cv_lib_mail_maillock = yes; then
17211 have_mail=yes
17212 else
17213 have_mail=no
17214 fi
17215
17216 if test $have_mail = yes; then
17217 LIBS_MAIL=-lmail
17218 LIBS="$LIBS_MAIL $LIBS"
17219
17220 cat >>confdefs.h <<\_ACEOF
17221 #define HAVE_LIBMAIL 1
17222 _ACEOF
17223
17224 else
17225 LIBS_MAIL=
17226 fi
17227 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17228 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17229 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17230 $as_echo_n "(cached) " >&6
17231 else
17232 ac_check_lib_save_LIBS=$LIBS
17233 LIBS="-llockfile $LIBS"
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244 #ifdef __cplusplus
17245 extern "C"
17246 #endif
17247 char maillock ();
17248 int
17249 main ()
17250 {
17251 return maillock ();
17252 ;
17253 return 0;
17254 }
17255 _ACEOF
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_link") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext && {
17274 test "$cross_compiling" = yes ||
17275 $as_test_x conftest$ac_exeext
17276 }; then
17277 ac_cv_lib_lockfile_maillock=yes
17278 else
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 ac_cv_lib_lockfile_maillock=no
17283 fi
17284
17285 rm -rf conftest.dSYM
17286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17287 conftest$ac_exeext conftest.$ac_ext
17288 LIBS=$ac_check_lib_save_LIBS
17289 fi
17290 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17291 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17292 if test $ac_cv_lib_lockfile_maillock = yes; then
17293 have_lockfile=yes
17294 else
17295 have_lockfile=no
17296 fi
17297
17298 if test $have_lockfile = yes; then
17299 LIBS_MAIL=-llockfile
17300 LIBS="$LIBS_MAIL $LIBS"
17301
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_LIBLOCKFILE 1
17304 _ACEOF
17305
17306 else
17307 # If we have the shared liblockfile, assume we must use it for mail
17308 # locking (e.g. Debian). If we couldn't link against liblockfile
17309 # (no liblockfile.a installed), ensure that we don't need to.
17310 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17311 set dummy liblockfile.so; ac_word=$2
17312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17313 $as_echo_n "checking for $ac_word... " >&6; }
17314 if test "${ac_cv_prog_liblockfile+set}" = set; then
17315 $as_echo_n "(cached) " >&6
17316 else
17317 if test -n "$liblockfile"; then
17318 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17319 else
17320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17321 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17322 for as_dir in $as_dummy
17323 do
17324 IFS=$as_save_IFS
17325 test -z "$as_dir" && as_dir=.
17326 for ac_exec_ext in '' $ac_executable_extensions; do
17327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17328 ac_cv_prog_liblockfile="yes"
17329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17330 break 2
17331 fi
17332 done
17333 done
17334 IFS=$as_save_IFS
17335
17336 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17337 fi
17338 fi
17339 liblockfile=$ac_cv_prog_liblockfile
17340 if test -n "$liblockfile"; then
17341 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17342 $as_echo "$liblockfile" >&6; }
17343 else
17344 { $as_echo "$as_me:$LINENO: result: no" >&5
17345 $as_echo "no" >&6; }
17346 fi
17347
17348
17349 if test $ac_cv_prog_liblockfile = yes; then
17350 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17351 This probably means that movemail could lose mail.
17352 There may be a \`development' package to install containing liblockfile." >&5
17353 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17354 This probably means that movemail could lose mail.
17355 There may be a \`development' package to install containing liblockfile." >&2;}
17356 { (exit 1); exit 1; }; }
17357 fi
17358 fi
17359
17360 for ac_func in touchlock
17361 do
17362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17364 $as_echo_n "checking for $ac_func... " >&6; }
17365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17366 $as_echo_n "(cached) " >&6
17367 else
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h. */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define $ac_func innocuous_$ac_func
17377
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char $ac_func (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17382
17383 #ifdef __STDC__
17384 # include <limits.h>
17385 #else
17386 # include <assert.h>
17387 #endif
17388
17389 #undef $ac_func
17390
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17394 #ifdef __cplusplus
17395 extern "C"
17396 #endif
17397 char $ac_func ();
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined __stub_$ac_func || defined __stub___$ac_func
17402 choke me
17403 #endif
17404
17405 int
17406 main ()
17407 {
17408 return $ac_func ();
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17418 esac
17419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17420 $as_echo "$ac_try_echo") >&5
17421 (eval "$ac_link") 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext && {
17431 test "$cross_compiling" = yes ||
17432 $as_test_x conftest$ac_exeext
17433 }; then
17434 eval "$as_ac_var=yes"
17435 else
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 eval "$as_ac_var=no"
17440 fi
17441
17442 rm -rf conftest.dSYM
17443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17444 conftest$ac_exeext conftest.$ac_ext
17445 fi
17446 ac_res=`eval 'as_val=${'$as_ac_var'}
17447 $as_echo "$as_val"'`
17448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17449 $as_echo "$ac_res" >&6; }
17450 if test `eval 'as_val=${'$as_ac_var'}
17451 $as_echo "$as_val"'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17454 _ACEOF
17455
17456 fi
17457 done
17458
17459
17460 for ac_header in maillock.h
17461 do
17462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17465 $as_echo_n "checking for $ac_header... " >&6; }
17466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17467 $as_echo_n "(cached) " >&6
17468 fi
17469 ac_res=`eval 'as_val=${'$as_ac_Header'}
17470 $as_echo "$as_val"'`
17471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17472 $as_echo "$ac_res" >&6; }
17473 else
17474 # Is the header compilable?
17475 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17476 $as_echo_n "checking $ac_header usability... " >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 $ac_includes_default
17484 #include <$ac_header>
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (ac_try="$ac_compile"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491 esac
17492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17493 $as_echo "$ac_try_echo") >&5
17494 (eval "$ac_compile") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } && {
17501 test -z "$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 } && test -s conftest.$ac_objext; then
17504 ac_header_compiler=yes
17505 else
17506 $as_echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 ac_header_compiler=no
17510 fi
17511
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17514 $as_echo "$ac_header_compiler" >&6; }
17515
17516 # Is the header present?
17517 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17518 $as_echo_n "checking $ac_header presence... " >&6; }
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 #include <$ac_header>
17526 _ACEOF
17527 if { (ac_try="$ac_cpp conftest.$ac_ext"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17531 esac
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17535 ac_status=$?
17536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
17539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } >/dev/null && {
17541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17542 test ! -s conftest.err
17543 }; then
17544 ac_header_preproc=yes
17545 else
17546 $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549 ac_header_preproc=no
17550 fi
17551
17552 rm -f conftest.err conftest.$ac_ext
17553 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17554 $as_echo "$ac_header_preproc" >&6; }
17555
17556 # So? What about this header?
17557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17558 yes:no: )
17559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17560 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17563 ac_header_preproc=yes
17564 ;;
17565 no:yes:* )
17566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17567 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17569 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17571 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17573 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17575 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17577 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17578
17579 ;;
17580 esac
17581 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17582 $as_echo_n "checking for $ac_header... " >&6; }
17583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17584 $as_echo_n "(cached) " >&6
17585 else
17586 eval "$as_ac_Header=\$ac_header_preproc"
17587 fi
17588 ac_res=`eval 'as_val=${'$as_ac_Header'}
17589 $as_echo "$as_val"'`
17590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17591 $as_echo "$ac_res" >&6; }
17592
17593 fi
17594 if test `eval 'as_val=${'$as_ac_Header'}
17595 $as_echo "$as_val"'` = yes; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17598 _ACEOF
17599
17600 fi
17601
17602 done
17603
17604
17605
17606 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17607 ## interlock access to the mail spool. The alternative is a lock file named
17608 ## /usr/spool/mail/$USER.lock.
17609 mail_lock=no
17610 case "$opsys" in
17611 aix4-2) mail_lock="lockf" ;;
17612
17613 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17614
17615 ## On GNU/Linux systems, both methods are used by various mail programs.
17616 ## I assume most people are using newer mailers that have heard of flock.
17617 ## Change this if you need to.
17618 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17619 ## configure gets the right answers, and that means *NOT* using flock.
17620 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17621 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17622 ## Debian maintainer hasn't provided a clean fix for Emacs.
17623 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17624 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17625 ## correct logic. -- fx
17626 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17627 ## liblockfile is a Free Software replacement for libmail, used on
17628 ## Debian systems and elsewhere. -rfr.
17629 gnu-*)
17630 mail_lock="flock"
17631 if test $have_mail = yes || test $have_lockfile = yes; then
17632 test $ac_cv_header_maillock_h = yes && mail_lock=no
17633 fi
17634 ;;
17635 esac
17636
17637 BLESSMAIL_TARGET=
17638 case "$mail_lock" in
17639 flock)
17640 cat >>confdefs.h <<\_ACEOF
17641 #define MAIL_USE_FLOCK 1
17642 _ACEOF
17643 ;;
17644
17645 lockf)
17646 cat >>confdefs.h <<\_ACEOF
17647 #define MAIL_USE_LOCKF 1
17648 _ACEOF
17649 ;;
17650
17651 *) BLESSMAIL_TARGET="need-blessmail" ;;
17652 esac
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
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 for ac_func in gethostname getdomainname dup2 \
17730 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17731 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17732 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17733 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17734 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17735 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17736 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17737 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17738 cfmakeraw cfsetspeed isnan copysign
17739 do
17740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17742 $as_echo_n "checking for $ac_func... " >&6; }
17743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17744 $as_echo_n "(cached) " >&6
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17754 #define $ac_func innocuous_$ac_func
17755
17756 /* System header to define __stub macros and hopefully few prototypes,
17757 which can conflict with char $ac_func (); below.
17758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17759 <limits.h> exists even on freestanding compilers. */
17760
17761 #ifdef __STDC__
17762 # include <limits.h>
17763 #else
17764 # include <assert.h>
17765 #endif
17766
17767 #undef $ac_func
17768
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 char $ac_func ();
17776 /* The GNU C library defines this for functions which it implements
17777 to always fail with ENOSYS. Some functions are actually named
17778 something starting with __ and the normal name is an alias. */
17779 #if defined __stub_$ac_func || defined __stub___$ac_func
17780 choke me
17781 #endif
17782
17783 int
17784 main ()
17785 {
17786 return $ac_func ();
17787 ;
17788 return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17796 esac
17797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17798 $as_echo "$ac_try_echo") >&5
17799 (eval "$ac_link") 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext && {
17809 test "$cross_compiling" = yes ||
17810 $as_test_x conftest$ac_exeext
17811 }; then
17812 eval "$as_ac_var=yes"
17813 else
17814 $as_echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 eval "$as_ac_var=no"
17818 fi
17819
17820 rm -rf conftest.dSYM
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822 conftest$ac_exeext conftest.$ac_ext
17823 fi
17824 ac_res=`eval 'as_val=${'$as_ac_var'}
17825 $as_echo "$as_val"'`
17826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17827 $as_echo "$ac_res" >&6; }
17828 if test `eval 'as_val=${'$as_ac_var'}
17829 $as_echo "$as_val"'` = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17832 _ACEOF
17833
17834 fi
17835 done
17836
17837
17838
17839 for ac_header in sys/un.h
17840 do
17841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17844 $as_echo_n "checking for $ac_header... " >&6; }
17845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17846 $as_echo_n "(cached) " >&6
17847 fi
17848 ac_res=`eval 'as_val=${'$as_ac_Header'}
17849 $as_echo "$as_val"'`
17850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17851 $as_echo "$ac_res" >&6; }
17852 else
17853 # Is the header compilable?
17854 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17855 $as_echo_n "checking $ac_header usability... " >&6; }
17856 cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h. */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 $ac_includes_default
17863 #include <$ac_header>
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17870 esac
17871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17872 $as_echo "$ac_try_echo") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
17883 ac_header_compiler=yes
17884 else
17885 $as_echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 ac_header_compiler=no
17889 fi
17890
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17893 $as_echo "$ac_header_compiler" >&6; }
17894
17895 # Is the header present?
17896 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17897 $as_echo_n "checking $ac_header presence... " >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 #include <$ac_header>
17905 _ACEOF
17906 if { (ac_try="$ac_cpp conftest.$ac_ext"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17910 esac
17911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } >/dev/null && {
17920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 }; then
17923 ac_header_preproc=yes
17924 else
17925 $as_echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 ac_header_preproc=no
17929 fi
17930
17931 rm -f conftest.err conftest.$ac_ext
17932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17933 $as_echo "$ac_header_preproc" >&6; }
17934
17935 # So? What about this header?
17936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17937 yes:no: )
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17939 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17942 ac_header_preproc=yes
17943 ;;
17944 no:yes:* )
17945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17946 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17948 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17950 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17952 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17956 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17957
17958 ;;
17959 esac
17960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17961 $as_echo_n "checking for $ac_header... " >&6; }
17962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17963 $as_echo_n "(cached) " >&6
17964 else
17965 eval "$as_ac_Header=\$ac_header_preproc"
17966 fi
17967 ac_res=`eval 'as_val=${'$as_ac_Header'}
17968 $as_echo "$as_val"'`
17969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17970 $as_echo "$ac_res" >&6; }
17971
17972 fi
17973 if test `eval 'as_val=${'$as_ac_Header'}
17974 $as_echo "$as_val"'` = yes; then
17975 cat >>confdefs.h <<_ACEOF
17976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17977 _ACEOF
17978
17979 fi
17980
17981 done
17982
17983
17984
17985
17986
17987
17988 for ac_header in $ac_header_list
17989 do
17990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17993 $as_echo_n "checking for $ac_header... " >&6; }
17994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17995 $as_echo_n "(cached) " >&6
17996 fi
17997 ac_res=`eval 'as_val=${'$as_ac_Header'}
17998 $as_echo "$as_val"'`
17999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18000 $as_echo "$ac_res" >&6; }
18001 else
18002 # Is the header compilable?
18003 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18004 $as_echo_n "checking $ac_header usability... " >&6; }
18005 cat >conftest.$ac_ext <<_ACEOF
18006 /* confdefs.h. */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 $ac_includes_default
18012 #include <$ac_header>
18013 _ACEOF
18014 rm -f conftest.$ac_objext
18015 if { (ac_try="$ac_compile"
18016 case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019 esac
18020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18021 $as_echo "$ac_try_echo") >&5
18022 (eval "$ac_compile") 2>conftest.er1
18023 ac_status=$?
18024 grep -v '^ *+' conftest.er1 >conftest.err
18025 rm -f conftest.er1
18026 cat conftest.err >&5
18027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } && {
18029 test -z "$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18031 } && test -s conftest.$ac_objext; then
18032 ac_header_compiler=yes
18033 else
18034 $as_echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ac_header_compiler=no
18038 fi
18039
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18042 $as_echo "$ac_header_compiler" >&6; }
18043
18044 # Is the header present?
18045 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18046 $as_echo_n "checking $ac_header presence... " >&6; }
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h. */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 #include <$ac_header>
18054 _ACEOF
18055 if { (ac_try="$ac_cpp conftest.$ac_ext"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18059 esac
18060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } >/dev/null && {
18069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 }; then
18072 ac_header_preproc=yes
18073 else
18074 $as_echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ac_header_preproc=no
18078 fi
18079
18080 rm -f conftest.err conftest.$ac_ext
18081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18082 $as_echo "$ac_header_preproc" >&6; }
18083
18084 # So? What about this header?
18085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18086 yes:no: )
18087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18088 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18091 ac_header_preproc=yes
18092 ;;
18093 no:yes:* )
18094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18095 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18097 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18099 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18101 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18105 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18106
18107 ;;
18108 esac
18109 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18110 $as_echo_n "checking for $ac_header... " >&6; }
18111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18112 $as_echo_n "(cached) " >&6
18113 else
18114 eval "$as_ac_Header=\$ac_header_preproc"
18115 fi
18116 ac_res=`eval 'as_val=${'$as_ac_Header'}
18117 $as_echo "$as_val"'`
18118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18119 $as_echo "$ac_res" >&6; }
18120
18121 fi
18122 if test `eval 'as_val=${'$as_ac_Header'}
18123 $as_echo "$as_val"'` = yes; then
18124 cat >>confdefs.h <<_ACEOF
18125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18126 _ACEOF
18127
18128 fi
18129
18130 done
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140 for ac_func in $ac_func_list
18141 do
18142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18144 $as_echo_n "checking for $ac_func... " >&6; }
18145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18146 $as_echo_n "(cached) " >&6
18147 else
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156 #define $ac_func innocuous_$ac_func
18157
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char $ac_func (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18162
18163 #ifdef __STDC__
18164 # include <limits.h>
18165 #else
18166 # include <assert.h>
18167 #endif
18168
18169 #undef $ac_func
18170
18171 /* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 char $ac_func ();
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined __stub_$ac_func || defined __stub___$ac_func
18182 choke me
18183 #endif
18184
18185 int
18186 main ()
18187 {
18188 return $ac_func ();
18189 ;
18190 return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18200 $as_echo "$ac_try_echo") >&5
18201 (eval "$ac_link") 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest$ac_exeext && {
18211 test "$cross_compiling" = yes ||
18212 $as_test_x conftest$ac_exeext
18213 }; then
18214 eval "$as_ac_var=yes"
18215 else
18216 $as_echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18218
18219 eval "$as_ac_var=no"
18220 fi
18221
18222 rm -rf conftest.dSYM
18223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18224 conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 ac_res=`eval 'as_val=${'$as_ac_var'}
18227 $as_echo "$as_val"'`
18228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18229 $as_echo "$ac_res" >&6; }
18230 if test `eval 'as_val=${'$as_ac_var'}
18231 $as_echo "$as_val"'` = yes; then
18232 cat >>confdefs.h <<_ACEOF
18233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18234 _ACEOF
18235
18236 fi
18237 done
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18256 $as_echo_n "checking for working mktime... " >&6; }
18257 if test "${ac_cv_func_working_mktime+set}" = set; then
18258 $as_echo_n "(cached) " >&6
18259 else
18260 if test "$cross_compiling" = yes; then
18261 ac_cv_func_working_mktime=no
18262 else
18263 cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h. */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 /* Test program from Paul Eggert and Tony Leneis. */
18270 #ifdef TIME_WITH_SYS_TIME
18271 # include <sys/time.h>
18272 # include <time.h>
18273 #else
18274 # ifdef HAVE_SYS_TIME_H
18275 # include <sys/time.h>
18276 # else
18277 # include <time.h>
18278 # endif
18279 #endif
18280
18281 #include <limits.h>
18282 #include <stdlib.h>
18283
18284 #ifdef HAVE_UNISTD_H
18285 # include <unistd.h>
18286 #endif
18287
18288 #ifndef HAVE_ALARM
18289 # define alarm(X) /* empty */
18290 #endif
18291
18292 /* Work around redefinition to rpl_putenv by other config tests. */
18293 #undef putenv
18294
18295 static time_t time_t_max;
18296 static time_t time_t_min;
18297
18298 /* Values we'll use to set the TZ environment variable. */
18299 static char *tz_strings[] = {
18300 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18301 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18302 };
18303 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18304
18305 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18306 Based on a problem report from Andreas Jaeger. */
18307 static int
18308 spring_forward_gap ()
18309 {
18310 /* glibc (up to about 1998-10-07) failed this test. */
18311 struct tm tm;
18312
18313 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18314 instead of "TZ=America/Vancouver" in order to detect the bug even
18315 on systems that don't support the Olson extension, or don't have the
18316 full zoneinfo tables installed. */
18317 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18318
18319 tm.tm_year = 98;
18320 tm.tm_mon = 3;
18321 tm.tm_mday = 5;
18322 tm.tm_hour = 2;
18323 tm.tm_min = 0;
18324 tm.tm_sec = 0;
18325 tm.tm_isdst = -1;
18326 return mktime (&tm) != (time_t) -1;
18327 }
18328
18329 static int
18330 mktime_test1 (now)
18331 time_t now;
18332 {
18333 struct tm *lt;
18334 return ! (lt = localtime (&now)) || mktime (lt) == now;
18335 }
18336
18337 static int
18338 mktime_test (now)
18339 time_t now;
18340 {
18341 return (mktime_test1 (now)
18342 && mktime_test1 ((time_t) (time_t_max - now))
18343 && mktime_test1 ((time_t) (time_t_min + now)));
18344 }
18345
18346 static int
18347 irix_6_4_bug ()
18348 {
18349 /* Based on code from Ariel Faigon. */
18350 struct tm tm;
18351 tm.tm_year = 96;
18352 tm.tm_mon = 3;
18353 tm.tm_mday = 0;
18354 tm.tm_hour = 0;
18355 tm.tm_min = 0;
18356 tm.tm_sec = 0;
18357 tm.tm_isdst = -1;
18358 mktime (&tm);
18359 return tm.tm_mon == 2 && tm.tm_mday == 31;
18360 }
18361
18362 static int
18363 bigtime_test (j)
18364 int j;
18365 {
18366 struct tm tm;
18367 time_t now;
18368 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18369 now = mktime (&tm);
18370 if (now != (time_t) -1)
18371 {
18372 struct tm *lt = localtime (&now);
18373 if (! (lt
18374 && lt->tm_year == tm.tm_year
18375 && lt->tm_mon == tm.tm_mon
18376 && lt->tm_mday == tm.tm_mday
18377 && lt->tm_hour == tm.tm_hour
18378 && lt->tm_min == tm.tm_min
18379 && lt->tm_sec == tm.tm_sec
18380 && lt->tm_yday == tm.tm_yday
18381 && lt->tm_wday == tm.tm_wday
18382 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18383 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18384 return 0;
18385 }
18386 return 1;
18387 }
18388
18389 static int
18390 year_2050_test ()
18391 {
18392 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18393 ignoring leap seconds. */
18394 unsigned long int answer = 2527315200UL;
18395
18396 struct tm tm;
18397 time_t t;
18398 tm.tm_year = 2050 - 1900;
18399 tm.tm_mon = 2 - 1;
18400 tm.tm_mday = 1;
18401 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18402 tm.tm_isdst = -1;
18403
18404 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18405 instead of "TZ=America/Vancouver" in order to detect the bug even
18406 on systems that don't support the Olson extension, or don't have the
18407 full zoneinfo tables installed. */
18408 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18409
18410 t = mktime (&tm);
18411
18412 /* Check that the result is either a failure, or close enough
18413 to the correct answer that we can assume the discrepancy is
18414 due to leap seconds. */
18415 return (t == (time_t) -1
18416 || (0 < t && answer - 120 <= t && t <= answer + 120));
18417 }
18418
18419 int
18420 main ()
18421 {
18422 time_t t, delta;
18423 int i, j;
18424
18425 /* This test makes some buggy mktime implementations loop.
18426 Give up after 60 seconds; a mktime slower than that
18427 isn't worth using anyway. */
18428 alarm (60);
18429
18430 for (;;)
18431 {
18432 t = (time_t_max << 1) + 1;
18433 if (t <= time_t_max)
18434 break;
18435 time_t_max = t;
18436 }
18437 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18438
18439 delta = time_t_max / 997; /* a suitable prime number */
18440 for (i = 0; i < N_STRINGS; i++)
18441 {
18442 if (tz_strings[i])
18443 putenv (tz_strings[i]);
18444
18445 for (t = 0; t <= time_t_max - delta; t += delta)
18446 if (! mktime_test (t))
18447 return 1;
18448 if (! (mktime_test ((time_t) 1)
18449 && mktime_test ((time_t) (60 * 60))
18450 && mktime_test ((time_t) (60 * 60 * 24))))
18451 return 1;
18452
18453 for (j = 1; ; j <<= 1)
18454 if (! bigtime_test (j))
18455 return 1;
18456 else if (INT_MAX / 2 < j)
18457 break;
18458 if (! bigtime_test (INT_MAX))
18459 return 1;
18460 }
18461 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18462 }
18463 _ACEOF
18464 rm -f conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469 esac
18470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_try") 2>&5
18483 ac_status=$?
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_func_working_mktime=yes
18487 else
18488 $as_echo "$as_me: program exited with status $ac_status" >&5
18489 $as_echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 ( exit $ac_status )
18493 ac_cv_func_working_mktime=no
18494 fi
18495 rm -rf conftest.dSYM
18496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18497 fi
18498
18499
18500 fi
18501 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18502 $as_echo "$ac_cv_func_working_mktime" >&6; }
18503 if test $ac_cv_func_working_mktime = no; then
18504 case " $LIBOBJS " in
18505 *" mktime.$ac_objext "* ) ;;
18506 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18507 ;;
18508 esac
18509
18510 fi
18511
18512 if test "$ac_cv_func_working_mktime" = no; then
18513
18514 cat >>confdefs.h <<\_ACEOF
18515 #define BROKEN_MKTIME 1
18516 _ACEOF
18517
18518 fi
18519
18520 ac_have_func=no # yes means we've found a way to get the load average.
18521
18522 # Make sure getloadavg.c is where it belongs, at configure-time.
18523 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18524 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18525 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18526 { (exit 1); exit 1; }; }
18527
18528 ac_save_LIBS=$LIBS
18529
18530 # Check for getloadavg, but be sure not to touch the cache variable.
18531 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18532 $as_echo_n "checking for getloadavg... " >&6; }
18533 if test "${ac_cv_func_getloadavg+set}" = set; then
18534 $as_echo_n "(cached) " >&6
18535 else
18536 cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h. */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18544 #define getloadavg innocuous_getloadavg
18545
18546 /* System header to define __stub macros and hopefully few prototypes,
18547 which can conflict with char getloadavg (); below.
18548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18549 <limits.h> exists even on freestanding compilers. */
18550
18551 #ifdef __STDC__
18552 # include <limits.h>
18553 #else
18554 # include <assert.h>
18555 #endif
18556
18557 #undef getloadavg
18558
18559 /* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18562 #ifdef __cplusplus
18563 extern "C"
18564 #endif
18565 char getloadavg ();
18566 /* The GNU C library defines this for functions which it implements
18567 to always fail with ENOSYS. Some functions are actually named
18568 something starting with __ and the normal name is an alias. */
18569 #if defined __stub_getloadavg || defined __stub___getloadavg
18570 choke me
18571 #endif
18572
18573 int
18574 main ()
18575 {
18576 return getloadavg ();
18577 ;
18578 return 0;
18579 }
18580 _ACEOF
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18586 esac
18587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18588 $as_echo "$ac_try_echo") >&5
18589 (eval "$ac_link") 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } && {
18596 test -z "$ac_c_werror_flag" ||
18597 test ! -s conftest.err
18598 } && test -s conftest$ac_exeext && {
18599 test "$cross_compiling" = yes ||
18600 $as_test_x conftest$ac_exeext
18601 }; then
18602 ac_cv_func_getloadavg=yes
18603 else
18604 $as_echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607 ac_cv_func_getloadavg=no
18608 fi
18609
18610 rm -rf conftest.dSYM
18611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18612 conftest$ac_exeext conftest.$ac_ext
18613 fi
18614 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18615 $as_echo "$ac_cv_func_getloadavg" >&6; }
18616 if test $ac_cv_func_getloadavg = yes; then
18617 exit 0
18618 else
18619 exit 1
18620 fi
18621 ) && ac_have_func=yes
18622
18623 # On HPUX9, an unprivileged user can get load averages through this function.
18624
18625 for ac_func in pstat_getdynamic
18626 do
18627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18628 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18629 $as_echo_n "checking for $ac_func... " >&6; }
18630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18631 $as_echo_n "(cached) " >&6
18632 else
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18641 #define $ac_func innocuous_$ac_func
18642
18643 /* System header to define __stub macros and hopefully few prototypes,
18644 which can conflict with char $ac_func (); below.
18645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18646 <limits.h> exists even on freestanding compilers. */
18647
18648 #ifdef __STDC__
18649 # include <limits.h>
18650 #else
18651 # include <assert.h>
18652 #endif
18653
18654 #undef $ac_func
18655
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 char $ac_func ();
18663 /* The GNU C library defines this for functions which it implements
18664 to always fail with ENOSYS. Some functions are actually named
18665 something starting with __ and the normal name is an alias. */
18666 #if defined __stub_$ac_func || defined __stub___$ac_func
18667 choke me
18668 #endif
18669
18670 int
18671 main ()
18672 {
18673 return $ac_func ();
18674 ;
18675 return 0;
18676 }
18677 _ACEOF
18678 rm -f conftest.$ac_objext conftest$ac_exeext
18679 if { (ac_try="$ac_link"
18680 case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18683 esac
18684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18685 $as_echo "$ac_try_echo") >&5
18686 (eval "$ac_link") 2>conftest.er1
18687 ac_status=$?
18688 grep -v '^ *+' conftest.er1 >conftest.err
18689 rm -f conftest.er1
18690 cat conftest.err >&5
18691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest$ac_exeext && {
18696 test "$cross_compiling" = yes ||
18697 $as_test_x conftest$ac_exeext
18698 }; then
18699 eval "$as_ac_var=yes"
18700 else
18701 $as_echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 eval "$as_ac_var=no"
18705 fi
18706
18707 rm -rf conftest.dSYM
18708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18709 conftest$ac_exeext conftest.$ac_ext
18710 fi
18711 ac_res=`eval 'as_val=${'$as_ac_var'}
18712 $as_echo "$as_val"'`
18713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18714 $as_echo "$ac_res" >&6; }
18715 if test `eval 'as_val=${'$as_ac_var'}
18716 $as_echo "$as_val"'` = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18719 _ACEOF
18720
18721 fi
18722 done
18723
18724
18725 # Solaris has libkstat which does not require root.
18726
18727 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18728 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18729 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18730 $as_echo_n "(cached) " >&6
18731 else
18732 ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-lkstat $LIBS"
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18744 #ifdef __cplusplus
18745 extern "C"
18746 #endif
18747 char kstat_open ();
18748 int
18749 main ()
18750 {
18751 return kstat_open ();
18752 ;
18753 return 0;
18754 }
18755 _ACEOF
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761 esac
18762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18763 $as_echo "$ac_try_echo") >&5
18764 (eval "$ac_link") 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest$ac_exeext && {
18774 test "$cross_compiling" = yes ||
18775 $as_test_x conftest$ac_exeext
18776 }; then
18777 ac_cv_lib_kstat_kstat_open=yes
18778 else
18779 $as_echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 ac_cv_lib_kstat_kstat_open=no
18783 fi
18784
18785 rm -rf conftest.dSYM
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18789 fi
18790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18791 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18792 if test $ac_cv_lib_kstat_kstat_open = yes; then
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_LIBKSTAT 1
18795 _ACEOF
18796
18797 LIBS="-lkstat $LIBS"
18798
18799 fi
18800
18801 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18802
18803 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18804 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18805 # to get the right answer into the cache.
18806 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18807 if test $ac_have_func = no; then
18808 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18809 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18810 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18811 $as_echo_n "(cached) " >&6
18812 else
18813 ac_check_lib_save_LIBS=$LIBS
18814 LIBS="-lelf $LIBS"
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h. */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18825 #ifdef __cplusplus
18826 extern "C"
18827 #endif
18828 char elf_begin ();
18829 int
18830 main ()
18831 {
18832 return elf_begin ();
18833 ;
18834 return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842 esac
18843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18844 $as_echo "$ac_try_echo") >&5
18845 (eval "$ac_link") 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext && {
18855 test "$cross_compiling" = yes ||
18856 $as_test_x conftest$ac_exeext
18857 }; then
18858 ac_cv_lib_elf_elf_begin=yes
18859 else
18860 $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 ac_cv_lib_elf_elf_begin=no
18864 fi
18865
18866 rm -rf conftest.dSYM
18867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18870 fi
18871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18872 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18873 if test $ac_cv_lib_elf_elf_begin = yes; then
18874 LIBS="-lelf $LIBS"
18875 fi
18876
18877 fi
18878 if test $ac_have_func = no; then
18879 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18880 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18881 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18882 $as_echo_n "(cached) " >&6
18883 else
18884 ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lkvm $LIBS"
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18896 #ifdef __cplusplus
18897 extern "C"
18898 #endif
18899 char kvm_open ();
18900 int
18901 main ()
18902 {
18903 return kvm_open ();
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916 (eval "$ac_link") 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest$ac_exeext && {
18926 test "$cross_compiling" = yes ||
18927 $as_test_x conftest$ac_exeext
18928 }; then
18929 ac_cv_lib_kvm_kvm_open=yes
18930 else
18931 $as_echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934 ac_cv_lib_kvm_kvm_open=no
18935 fi
18936
18937 rm -rf conftest.dSYM
18938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18941 fi
18942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18943 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18944 if test $ac_cv_lib_kvm_kvm_open = yes; then
18945 LIBS="-lkvm $LIBS"
18946 fi
18947
18948 # Check for the 4.4BSD definition of getloadavg.
18949 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18950 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18951 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18952 $as_echo_n "(cached) " >&6
18953 else
18954 ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lutil $LIBS"
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h. */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18966 #ifdef __cplusplus
18967 extern "C"
18968 #endif
18969 char getloadavg ();
18970 int
18971 main ()
18972 {
18973 return getloadavg ();
18974 ;
18975 return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983 esac
18984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18985 $as_echo "$ac_try_echo") >&5
18986 (eval "$ac_link") 2>conftest.er1
18987 ac_status=$?
18988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext && {
18996 test "$cross_compiling" = yes ||
18997 $as_test_x conftest$ac_exeext
18998 }; then
18999 ac_cv_lib_util_getloadavg=yes
19000 else
19001 $as_echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19003
19004 ac_cv_lib_util_getloadavg=no
19005 fi
19006
19007 rm -rf conftest.dSYM
19008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19011 fi
19012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19013 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19014 if test $ac_cv_lib_util_getloadavg = yes; then
19015 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19016 fi
19017
19018 fi
19019
19020 if test $ac_have_func = no; then
19021 # There is a commonly available library for RS/6000 AIX.
19022 # Since it is not a standard part of AIX, it might be installed locally.
19023 ac_getloadavg_LIBS=$LIBS
19024 LIBS="-L/usr/local/lib $LIBS"
19025 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19026 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19027 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19028 $as_echo_n "(cached) " >&6
19029 else
19030 ac_check_lib_save_LIBS=$LIBS
19031 LIBS="-lgetloadavg $LIBS"
19032 cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h. */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19038
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19042 #ifdef __cplusplus
19043 extern "C"
19044 #endif
19045 char getloadavg ();
19046 int
19047 main ()
19048 {
19049 return getloadavg ();
19050 ;
19051 return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19061 $as_echo "$ac_try_echo") >&5
19062 (eval "$ac_link") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext && {
19072 test "$cross_compiling" = yes ||
19073 $as_test_x conftest$ac_exeext
19074 }; then
19075 ac_cv_lib_getloadavg_getloadavg=yes
19076 else
19077 $as_echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19079
19080 ac_cv_lib_getloadavg_getloadavg=no
19081 fi
19082
19083 rm -rf conftest.dSYM
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19087 fi
19088 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19089 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19090 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19091 LIBS="-lgetloadavg $LIBS"
19092 else
19093 LIBS=$ac_getloadavg_LIBS
19094 fi
19095
19096 fi
19097
19098 # Make sure it is really in the library, if we think we found it,
19099 # otherwise set up the replacement function.
19100
19101 for ac_func in getloadavg
19102 do
19103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19105 $as_echo_n "checking for $ac_func... " >&6; }
19106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19107 $as_echo_n "(cached) " >&6
19108 else
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19117 #define $ac_func innocuous_$ac_func
19118
19119 /* System header to define __stub macros and hopefully few prototypes,
19120 which can conflict with char $ac_func (); below.
19121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19122 <limits.h> exists even on freestanding compilers. */
19123
19124 #ifdef __STDC__
19125 # include <limits.h>
19126 #else
19127 # include <assert.h>
19128 #endif
19129
19130 #undef $ac_func
19131
19132 /* Override any GCC internal prototype to avoid an error.
19133 Use char because int might match the return type of a GCC
19134 builtin and then its argument prototype would still apply. */
19135 #ifdef __cplusplus
19136 extern "C"
19137 #endif
19138 char $ac_func ();
19139 /* The GNU C library defines this for functions which it implements
19140 to always fail with ENOSYS. Some functions are actually named
19141 something starting with __ and the normal name is an alias. */
19142 #if defined __stub_$ac_func || defined __stub___$ac_func
19143 choke me
19144 #endif
19145
19146 int
19147 main ()
19148 {
19149 return $ac_func ();
19150 ;
19151 return 0;
19152 }
19153 _ACEOF
19154 rm -f conftest.$ac_objext conftest$ac_exeext
19155 if { (ac_try="$ac_link"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159 esac
19160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19161 $as_echo "$ac_try_echo") >&5
19162 (eval "$ac_link") 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest$ac_exeext && {
19172 test "$cross_compiling" = yes ||
19173 $as_test_x conftest$ac_exeext
19174 }; then
19175 eval "$as_ac_var=yes"
19176 else
19177 $as_echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180 eval "$as_ac_var=no"
19181 fi
19182
19183 rm -rf conftest.dSYM
19184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19185 conftest$ac_exeext conftest.$ac_ext
19186 fi
19187 ac_res=`eval 'as_val=${'$as_ac_var'}
19188 $as_echo "$as_val"'`
19189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19190 $as_echo "$ac_res" >&6; }
19191 if test `eval 'as_val=${'$as_ac_var'}
19192 $as_echo "$as_val"'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19195 _ACEOF
19196
19197 else
19198 case " $LIBOBJS " in
19199 *" getloadavg.$ac_objext "* ) ;;
19200 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19201 ;;
19202 esac
19203
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define C_GETLOADAVG 1
19207 _ACEOF
19208
19209 # Figure out what our getloadavg.c needs.
19210 ac_have_func=no
19211 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19212 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19213 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19214 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19215 $as_echo_n "(cached) " >&6
19216 fi
19217 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19218 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19219 else
19220 # Is the header compilable?
19221 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19222 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h. */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 $ac_includes_default
19230 #include <sys/dg_sys_info.h>
19231 _ACEOF
19232 rm -f conftest.$ac_objext
19233 if { (ac_try="$ac_compile"
19234 case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19237 esac
19238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19239 $as_echo "$ac_try_echo") >&5
19240 (eval "$ac_compile") 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest.$ac_objext; then
19250 ac_header_compiler=yes
19251 else
19252 $as_echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_header_compiler=no
19256 fi
19257
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19260 $as_echo "$ac_header_compiler" >&6; }
19261
19262 # Is the header present?
19263 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19264 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #include <sys/dg_sys_info.h>
19272 _ACEOF
19273 if { (ac_try="$ac_cpp conftest.$ac_ext"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19277 esac
19278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19279 $as_echo "$ac_try_echo") >&5
19280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } >/dev/null && {
19287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 }; then
19290 ac_header_preproc=yes
19291 else
19292 $as_echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 ac_header_preproc=no
19296 fi
19297
19298 rm -f conftest.err conftest.$ac_ext
19299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19300 $as_echo "$ac_header_preproc" >&6; }
19301
19302 # So? What about this header?
19303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19304 yes:no: )
19305 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19306 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19309 ac_header_preproc=yes
19310 ;;
19311 no:yes:* )
19312 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19313 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19315 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19316 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19317 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19319 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19320 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19321 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19322 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19323 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19324
19325 ;;
19326 esac
19327 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19328 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19329 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19330 $as_echo_n "(cached) " >&6
19331 else
19332 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19333 fi
19334 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19335 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19336
19337 fi
19338 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19339 ac_have_func=yes
19340
19341 cat >>confdefs.h <<\_ACEOF
19342 #define DGUX 1
19343 _ACEOF
19344
19345
19346 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19347 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19348 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19349 $as_echo_n "(cached) " >&6
19350 else
19351 ac_check_lib_save_LIBS=$LIBS
19352 LIBS="-ldgc $LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19363 #ifdef __cplusplus
19364 extern "C"
19365 #endif
19366 char dg_sys_info ();
19367 int
19368 main ()
19369 {
19370 return dg_sys_info ();
19371 ;
19372 return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (ac_try="$ac_link"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380 esac
19381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19382 $as_echo "$ac_try_echo") >&5
19383 (eval "$ac_link") 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest$ac_exeext && {
19393 test "$cross_compiling" = yes ||
19394 $as_test_x conftest$ac_exeext
19395 }; then
19396 ac_cv_lib_dgc_dg_sys_info=yes
19397 else
19398 $as_echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_cv_lib_dgc_dg_sys_info=no
19402 fi
19403
19404 rm -rf conftest.dSYM
19405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19408 fi
19409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19410 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19411 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19412 cat >>confdefs.h <<_ACEOF
19413 #define HAVE_LIBDGC 1
19414 _ACEOF
19415
19416 LIBS="-ldgc $LIBS"
19417
19418 fi
19419
19420 fi
19421
19422
19423
19424 if test "${ac_cv_header_locale_h+set}" = set; then
19425 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19426 $as_echo_n "checking for locale.h... " >&6; }
19427 if test "${ac_cv_header_locale_h+set}" = set; then
19428 $as_echo_n "(cached) " >&6
19429 fi
19430 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19431 $as_echo "$ac_cv_header_locale_h" >&6; }
19432 else
19433 # Is the header compilable?
19434 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19435 $as_echo_n "checking locale.h usability... " >&6; }
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h. */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 $ac_includes_default
19443 #include <locale.h>
19444 _ACEOF
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19450 esac
19451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19452 $as_echo "$ac_try_echo") >&5
19453 (eval "$ac_compile") 2>conftest.er1
19454 ac_status=$?
19455 grep -v '^ *+' conftest.er1 >conftest.err
19456 rm -f conftest.er1
19457 cat conftest.err >&5
19458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); } && {
19460 test -z "$ac_c_werror_flag" ||
19461 test ! -s conftest.err
19462 } && test -s conftest.$ac_objext; then
19463 ac_header_compiler=yes
19464 else
19465 $as_echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19467
19468 ac_header_compiler=no
19469 fi
19470
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19473 $as_echo "$ac_header_compiler" >&6; }
19474
19475 # Is the header present?
19476 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19477 $as_echo_n "checking locale.h presence... " >&6; }
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <locale.h>
19485 _ACEOF
19486 if { (ac_try="$ac_cpp conftest.$ac_ext"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19490 esac
19491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19492 $as_echo "$ac_try_echo") >&5
19493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } >/dev/null && {
19500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 }; then
19503 ac_header_preproc=yes
19504 else
19505 $as_echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ac_header_preproc=no
19509 fi
19510
19511 rm -f conftest.err conftest.$ac_ext
19512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19513 $as_echo "$ac_header_preproc" >&6; }
19514
19515 # So? What about this header?
19516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19517 yes:no: )
19518 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19519 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19521 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19522 ac_header_preproc=yes
19523 ;;
19524 no:yes:* )
19525 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19526 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19527 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19528 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19529 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19530 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19531 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19532 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19533 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19534 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19536 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19537
19538 ;;
19539 esac
19540 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19541 $as_echo_n "checking for locale.h... " >&6; }
19542 if test "${ac_cv_header_locale_h+set}" = set; then
19543 $as_echo_n "(cached) " >&6
19544 else
19545 ac_cv_header_locale_h=$ac_header_preproc
19546 fi
19547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19548 $as_echo "$ac_cv_header_locale_h" >&6; }
19549
19550 fi
19551
19552
19553
19554 for ac_func in setlocale
19555 do
19556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19558 $as_echo_n "checking for $ac_func... " >&6; }
19559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19560 $as_echo_n "(cached) " >&6
19561 else
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19570 #define $ac_func innocuous_$ac_func
19571
19572 /* System header to define __stub macros and hopefully few prototypes,
19573 which can conflict with char $ac_func (); below.
19574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19575 <limits.h> exists even on freestanding compilers. */
19576
19577 #ifdef __STDC__
19578 # include <limits.h>
19579 #else
19580 # include <assert.h>
19581 #endif
19582
19583 #undef $ac_func
19584
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char $ac_func ();
19592 /* The GNU C library defines this for functions which it implements
19593 to always fail with ENOSYS. Some functions are actually named
19594 something starting with __ and the normal name is an alias. */
19595 #if defined __stub_$ac_func || defined __stub___$ac_func
19596 choke me
19597 #endif
19598
19599 int
19600 main ()
19601 {
19602 return $ac_func ();
19603 ;
19604 return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19614 $as_echo "$ac_try_echo") >&5
19615 (eval "$ac_link") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest$ac_exeext && {
19625 test "$cross_compiling" = yes ||
19626 $as_test_x conftest$ac_exeext
19627 }; then
19628 eval "$as_ac_var=yes"
19629 else
19630 $as_echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633 eval "$as_ac_var=no"
19634 fi
19635
19636 rm -rf conftest.dSYM
19637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19638 conftest$ac_exeext conftest.$ac_ext
19639 fi
19640 ac_res=`eval 'as_val=${'$as_ac_var'}
19641 $as_echo "$as_val"'`
19642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19643 $as_echo "$ac_res" >&6; }
19644 if test `eval 'as_val=${'$as_ac_var'}
19645 $as_echo "$as_val"'` = yes; then
19646 cat >>confdefs.h <<_ACEOF
19647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19648 _ACEOF
19649
19650 fi
19651 done
19652
19653
19654 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19655 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19656 # Irix 4.0.5F has the header but not the library.
19657 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19658 ac_have_func=yes
19659
19660 cat >>confdefs.h <<\_ACEOF
19661 #define SVR4 1
19662 _ACEOF
19663
19664 fi
19665
19666 if test $ac_have_func = no; then
19667 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19668 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19669 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19670 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19671 $as_echo_n "(cached) " >&6
19672 fi
19673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19674 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19675 else
19676 # Is the header compilable?
19677 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19678 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 $ac_includes_default
19686 #include <inq_stats/cpustats.h>
19687 _ACEOF
19688 rm -f conftest.$ac_objext
19689 if { (ac_try="$ac_compile"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693 esac
19694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19695 $as_echo "$ac_try_echo") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19697 ac_status=$?
19698 grep -v '^ *+' conftest.er1 >conftest.err
19699 rm -f conftest.er1
19700 cat conftest.err >&5
19701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19706 ac_header_compiler=yes
19707 else
19708 $as_echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_header_compiler=no
19712 fi
19713
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19716 $as_echo "$ac_header_compiler" >&6; }
19717
19718 # Is the header present?
19719 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19720 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <inq_stats/cpustats.h>
19728 _ACEOF
19729 if { (ac_try="$ac_cpp conftest.$ac_ext"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19735 $as_echo "$ac_try_echo") >&5
19736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19737 ac_status=$?
19738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
19741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } >/dev/null && {
19743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19745 }; then
19746 ac_header_preproc=yes
19747 else
19748 $as_echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 ac_header_preproc=no
19752 fi
19753
19754 rm -f conftest.err conftest.$ac_ext
19755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19756 $as_echo "$ac_header_preproc" >&6; }
19757
19758 # So? What about this header?
19759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19760 yes:no: )
19761 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19762 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19764 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19765 ac_header_preproc=yes
19766 ;;
19767 no:yes:* )
19768 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19769 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19770 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19771 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19772 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19773 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19774 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19775 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19777 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19779 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19780
19781 ;;
19782 esac
19783 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19784 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19785 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19786 $as_echo_n "(cached) " >&6
19787 else
19788 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19789 fi
19790 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19791 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19792
19793 fi
19794 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19795 ac_have_func=yes
19796
19797 cat >>confdefs.h <<\_ACEOF
19798 #define UMAX 1
19799 _ACEOF
19800
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define UMAX4_3 1
19804 _ACEOF
19805
19806 fi
19807
19808
19809 fi
19810
19811 if test $ac_have_func = no; then
19812 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19813 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19814 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19815 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19816 $as_echo_n "(cached) " >&6
19817 fi
19818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19819 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19820 else
19821 # Is the header compilable?
19822 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19823 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19824 cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 $ac_includes_default
19831 #include <sys/cpustats.h>
19832 _ACEOF
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest.$ac_objext; then
19851 ac_header_compiler=yes
19852 else
19853 $as_echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856 ac_header_compiler=no
19857 fi
19858
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19861 $as_echo "$ac_header_compiler" >&6; }
19862
19863 # Is the header present?
19864 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19865 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h. */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <sys/cpustats.h>
19873 _ACEOF
19874 if { (ac_try="$ac_cpp conftest.$ac_ext"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19880 $as_echo "$ac_try_echo") >&5
19881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } >/dev/null && {
19888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19890 }; then
19891 ac_header_preproc=yes
19892 else
19893 $as_echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_header_preproc=no
19897 fi
19898
19899 rm -f conftest.err conftest.$ac_ext
19900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19901 $as_echo "$ac_header_preproc" >&6; }
19902
19903 # So? What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19905 yes:no: )
19906 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19907 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19909 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19910 ac_header_preproc=yes
19911 ;;
19912 no:yes:* )
19913 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19914 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19915 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19916 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19917 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19918 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19919 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19920 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19921 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19922 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19923 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19924 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19925
19926 ;;
19927 esac
19928 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19929 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19930 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19931 $as_echo_n "(cached) " >&6
19932 else
19933 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19934 fi
19935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19936 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19937
19938 fi
19939 if test $ac_cv_header_sys_cpustats_h = yes; then
19940 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19941 #define UMAX 1
19942 _ACEOF
19943
19944 fi
19945
19946
19947 fi
19948
19949 if test $ac_have_func = no; then
19950
19951 for ac_header in mach/mach.h
19952 do
19953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19956 $as_echo_n "checking for $ac_header... " >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19958 $as_echo_n "(cached) " >&6
19959 fi
19960 ac_res=`eval 'as_val=${'$as_ac_Header'}
19961 $as_echo "$as_val"'`
19962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19963 $as_echo "$ac_res" >&6; }
19964 else
19965 # Is the header compilable?
19966 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967 $as_echo_n "checking $ac_header usability... " >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <$ac_header>
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19984 $as_echo "$ac_try_echo") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_header_compiler=yes
19996 else
19997 $as_echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000 ac_header_compiler=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 $as_echo "$ac_header_compiler" >&6; }
20006
20007 # Is the header present?
20008 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009 $as_echo_n "checking $ac_header presence... " >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <$ac_header>
20017 _ACEOF
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022 esac
20023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } >/dev/null && {
20032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 }; then
20035 ac_header_preproc=yes
20036 else
20037 $as_echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040 ac_header_preproc=no
20041 fi
20042
20043 rm -f conftest.err conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045 $as_echo "$ac_header_preproc" >&6; }
20046
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 yes:no: )
20050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20051 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20054 ac_header_preproc=yes
20055 ;;
20056 no:yes:* )
20057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20058 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20060 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20062 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20064 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20068 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20069
20070 ;;
20071 esac
20072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 $as_echo_n "checking for $ac_header... " >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20075 $as_echo_n "(cached) " >&6
20076 else
20077 eval "$as_ac_Header=\$ac_header_preproc"
20078 fi
20079 ac_res=`eval 'as_val=${'$as_ac_Header'}
20080 $as_echo "$as_val"'`
20081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20082 $as_echo "$ac_res" >&6; }
20083
20084 fi
20085 if test `eval 'as_val=${'$as_ac_Header'}
20086 $as_echo "$as_val"'` = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20089 _ACEOF
20090
20091 fi
20092
20093 done
20094
20095 fi
20096
20097
20098 for ac_header in nlist.h
20099 do
20100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20103 $as_echo_n "checking for $ac_header... " >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20105 $as_echo_n "(cached) " >&6
20106 fi
20107 ac_res=`eval 'as_val=${'$as_ac_Header'}
20108 $as_echo "$as_val"'`
20109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20110 $as_echo "$ac_res" >&6; }
20111 else
20112 # Is the header compilable?
20113 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20114 $as_echo_n "checking $ac_header usability... " >&6; }
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h. */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 $ac_includes_default
20122 #include <$ac_header>
20123 _ACEOF
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20129 esac
20130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_header_compiler=yes
20143 else
20144 $as_echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ac_header_compiler=no
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20152 $as_echo "$ac_header_compiler" >&6; }
20153
20154 # Is the header present?
20155 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20156 $as_echo_n "checking $ac_header presence... " >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <$ac_header>
20164 _ACEOF
20165 if { (ac_try="$ac_cpp conftest.$ac_ext"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169 esac
20170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20171 $as_echo "$ac_try_echo") >&5
20172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20173 ac_status=$?
20174 grep -v '^ *+' conftest.er1 >conftest.err
20175 rm -f conftest.er1
20176 cat conftest.err >&5
20177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } >/dev/null && {
20179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 }; then
20182 ac_header_preproc=yes
20183 else
20184 $as_echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_header_preproc=no
20188 fi
20189
20190 rm -f conftest.err conftest.$ac_ext
20191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20192 $as_echo "$ac_header_preproc" >&6; }
20193
20194 # So? What about this header?
20195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20196 yes:no: )
20197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20198 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20201 ac_header_preproc=yes
20202 ;;
20203 no:yes:* )
20204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20205 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20207 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20209 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20211 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20215 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20216
20217 ;;
20218 esac
20219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20220 $as_echo_n "checking for $ac_header... " >&6; }
20221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20222 $as_echo_n "(cached) " >&6
20223 else
20224 eval "$as_ac_Header=\$ac_header_preproc"
20225 fi
20226 ac_res=`eval 'as_val=${'$as_ac_Header'}
20227 $as_echo "$as_val"'`
20228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20229 $as_echo "$ac_res" >&6; }
20230
20231 fi
20232 if test `eval 'as_val=${'$as_ac_Header'}
20233 $as_echo "$as_val"'` = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20236 _ACEOF
20237 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20238 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20239 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20240 $as_echo_n "(cached) " >&6
20241 else
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h. */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 #include <nlist.h>
20249
20250 int
20251 main ()
20252 {
20253 static struct nlist ac_aggr;
20254 if (ac_aggr.n_un.n_name)
20255 return 0;
20256 ;
20257 return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20267 $as_echo "$ac_try_echo") >&5
20268 (eval "$ac_compile") 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } && {
20275 test -z "$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20277 } && test -s conftest.$ac_objext; then
20278 ac_cv_member_struct_nlist_n_un_n_name=yes
20279 else
20280 $as_echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <nlist.h>
20290
20291 int
20292 main ()
20293 {
20294 static struct nlist ac_aggr;
20295 if (sizeof ac_aggr.n_un.n_name)
20296 return 0;
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext
20302 if { (ac_try="$ac_compile"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308 $as_echo "$ac_try_echo") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 ac_cv_member_struct_nlist_n_un_n_name=yes
20320 else
20321 $as_echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_cv_member_struct_nlist_n_un_n_name=no
20325 fi
20326
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328 fi
20329
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 fi
20332 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20333 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20334 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20335
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20338 _ACEOF
20339
20340
20341 cat >>confdefs.h <<\_ACEOF
20342 #define NLIST_NAME_UNION 1
20343 _ACEOF
20344
20345 fi
20346
20347
20348 fi
20349
20350 done
20351
20352 fi
20353 done
20354
20355
20356 # Some definitions of getloadavg require that the program be installed setgid.
20357 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20358 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20359 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20360 $as_echo_n "(cached) " >&6
20361 else
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h. */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20369 #ifdef LDAV_PRIVILEGED
20370 Yowza Am I SETGID yet
20371 #endif
20372 _ACEOF
20373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20374 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20375 ac_cv_func_getloadavg_setgid=yes
20376 else
20377 ac_cv_func_getloadavg_setgid=no
20378 fi
20379 rm -f conftest*
20380
20381 fi
20382 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20383 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20384 if test $ac_cv_func_getloadavg_setgid = yes; then
20385 NEED_SETGID=true
20386
20387 cat >>confdefs.h <<\_ACEOF
20388 #define GETLOADAVG_PRIVILEGED 1
20389 _ACEOF
20390
20391 else
20392 NEED_SETGID=false
20393 fi
20394
20395 if test $ac_cv_func_getloadavg_setgid = yes; then
20396 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20397 $as_echo_n "checking group of /dev/kmem... " >&6; }
20398 if test "${ac_cv_group_kmem+set}" = set; then
20399 $as_echo_n "(cached) " >&6
20400 else
20401 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20402 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20403 # If we got an error (system does not support symlinks), try without -L.
20404 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20405 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20406 | sed -ne 's/[ ][ ]*/ /g;
20407 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20408 / /s/.* //;p;'`
20409
20410 fi
20411 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20412 $as_echo "$ac_cv_group_kmem" >&6; }
20413 KMEM_GROUP=$ac_cv_group_kmem
20414 fi
20415 if test "x$ac_save_LIBS" = x; then
20416 GETLOADAVG_LIBS=$LIBS
20417 else
20418 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20419 fi
20420 LIBS=$ac_save_LIBS
20421
20422
20423
20424 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20425 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20426 if test "${ac_cv_sys_largefile_source+set}" = set; then
20427 $as_echo_n "(cached) " >&6
20428 else
20429 while :; do
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <sys/types.h> /* for off_t */
20437 #include <stdio.h>
20438 int
20439 main ()
20440 {
20441 int (*fp) (FILE *, off_t, int) = fseeko;
20442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20443 ;
20444 return 0;
20445 }
20446 _ACEOF
20447 rm -f conftest.$ac_objext conftest$ac_exeext
20448 if { (ac_try="$ac_link"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20454 $as_echo "$ac_try_echo") >&5
20455 (eval "$ac_link") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext && {
20465 test "$cross_compiling" = yes ||
20466 $as_test_x conftest$ac_exeext
20467 }; then
20468 ac_cv_sys_largefile_source=no; break
20469 else
20470 $as_echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473
20474 fi
20475
20476 rm -rf conftest.dSYM
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478 conftest$ac_exeext conftest.$ac_ext
20479 cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h. */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 #define _LARGEFILE_SOURCE 1
20486 #include <sys/types.h> /* for off_t */
20487 #include <stdio.h>
20488 int
20489 main ()
20490 {
20491 int (*fp) (FILE *, off_t, int) = fseeko;
20492 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20493 ;
20494 return 0;
20495 }
20496 _ACEOF
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502 esac
20503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20504 $as_echo "$ac_try_echo") >&5
20505 (eval "$ac_link") 2>conftest.er1
20506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest$ac_exeext && {
20515 test "$cross_compiling" = yes ||
20516 $as_test_x conftest$ac_exeext
20517 }; then
20518 ac_cv_sys_largefile_source=1; break
20519 else
20520 $as_echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20522
20523
20524 fi
20525
20526 rm -rf conftest.dSYM
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20529 ac_cv_sys_largefile_source=unknown
20530 break
20531 done
20532 fi
20533 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20534 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20535 case $ac_cv_sys_largefile_source in #(
20536 no | unknown) ;;
20537 *)
20538 cat >>confdefs.h <<_ACEOF
20539 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20540 _ACEOF
20541 ;;
20542 esac
20543 rm -rf conftest*
20544
20545 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20546 # in glibc 2.1.3, but that breaks too many other things.
20547 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20548 if test $ac_cv_sys_largefile_source != unknown; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_FSEEKO 1
20552 _ACEOF
20553
20554 fi
20555
20556
20557 # Configure getopt.
20558 # getopt.m4 serial 10
20559
20560 # The getopt module assume you want GNU getopt, with getopt_long etc,
20561 # rather than vanilla POSIX getopt. This means your your code should
20562 # always include <getopt.h> for the getopt prototypes.
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574 # Prerequisites of lib/getopt*.
20575
20576
20577
20578
20579 GETOPT_H=
20580
20581 for ac_header in getopt.h
20582 do
20583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20586 $as_echo_n "checking for $ac_header... " >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20588 $as_echo_n "(cached) " >&6
20589 fi
20590 ac_res=`eval 'as_val=${'$as_ac_Header'}
20591 $as_echo "$as_val"'`
20592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20593 $as_echo "$ac_res" >&6; }
20594 else
20595 # Is the header compilable?
20596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20597 $as_echo_n "checking $ac_header usability... " >&6; }
20598 cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h. */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 $ac_includes_default
20605 #include <$ac_header>
20606 _ACEOF
20607 rm -f conftest.$ac_objext
20608 if { (ac_try="$ac_compile"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612 esac
20613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20614 $as_echo "$ac_try_echo") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_header_compiler=yes
20626 else
20627 $as_echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630 ac_header_compiler=no
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20635 $as_echo "$ac_header_compiler" >&6; }
20636
20637 # Is the header present?
20638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20639 $as_echo_n "checking $ac_header presence... " >&6; }
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h. */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #include <$ac_header>
20647 _ACEOF
20648 if { (ac_try="$ac_cpp conftest.$ac_ext"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20654 $as_echo "$ac_try_echo") >&5
20655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } >/dev/null && {
20662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20664 }; then
20665 ac_header_preproc=yes
20666 else
20667 $as_echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_header_preproc=no
20671 fi
20672
20673 rm -f conftest.err conftest.$ac_ext
20674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20675 $as_echo "$ac_header_preproc" >&6; }
20676
20677 # So? What about this header?
20678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20679 yes:no: )
20680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20684 ac_header_preproc=yes
20685 ;;
20686 no:yes:* )
20687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20699
20700 ;;
20701 esac
20702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20703 $as_echo_n "checking for $ac_header... " >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20705 $as_echo_n "(cached) " >&6
20706 else
20707 eval "$as_ac_Header=\$ac_header_preproc"
20708 fi
20709 ac_res=`eval 'as_val=${'$as_ac_Header'}
20710 $as_echo "$as_val"'`
20711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20712 $as_echo "$ac_res" >&6; }
20713
20714 fi
20715 if test `eval 'as_val=${'$as_ac_Header'}
20716 $as_echo "$as_val"'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20719 _ACEOF
20720
20721 else
20722 GETOPT_H=getopt.h
20723 fi
20724
20725 done
20726
20727 if test -z "$GETOPT_H"; then
20728
20729 for ac_func in getopt_long_only
20730 do
20731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20732 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20733 $as_echo_n "checking for $ac_func... " >&6; }
20734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20735 $as_echo_n "(cached) " >&6
20736 else
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h. */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20745 #define $ac_func innocuous_$ac_func
20746
20747 /* System header to define __stub macros and hopefully few prototypes,
20748 which can conflict with char $ac_func (); below.
20749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20750 <limits.h> exists even on freestanding compilers. */
20751
20752 #ifdef __STDC__
20753 # include <limits.h>
20754 #else
20755 # include <assert.h>
20756 #endif
20757
20758 #undef $ac_func
20759
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20763 #ifdef __cplusplus
20764 extern "C"
20765 #endif
20766 char $ac_func ();
20767 /* The GNU C library defines this for functions which it implements
20768 to always fail with ENOSYS. Some functions are actually named
20769 something starting with __ and the normal name is an alias. */
20770 #if defined __stub_$ac_func || defined __stub___$ac_func
20771 choke me
20772 #endif
20773
20774 int
20775 main ()
20776 {
20777 return $ac_func ();
20778 ;
20779 return 0;
20780 }
20781 _ACEOF
20782 rm -f conftest.$ac_objext conftest$ac_exeext
20783 if { (ac_try="$ac_link"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790 (eval "$ac_link") 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest$ac_exeext && {
20800 test "$cross_compiling" = yes ||
20801 $as_test_x conftest$ac_exeext
20802 }; then
20803 eval "$as_ac_var=yes"
20804 else
20805 $as_echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20807
20808 eval "$as_ac_var=no"
20809 fi
20810
20811 rm -rf conftest.dSYM
20812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20813 conftest$ac_exeext conftest.$ac_ext
20814 fi
20815 ac_res=`eval 'as_val=${'$as_ac_var'}
20816 $as_echo "$as_val"'`
20817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20818 $as_echo "$ac_res" >&6; }
20819 if test `eval 'as_val=${'$as_ac_var'}
20820 $as_echo "$as_val"'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20823 _ACEOF
20824
20825 else
20826 GETOPT_H=getopt.h
20827 fi
20828 done
20829
20830 fi
20831
20832 if test -z "$GETOPT_H"; then
20833 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20834 $as_echo_n "checking whether optreset is declared... " >&6; }
20835 if test "${ac_cv_have_decl_optreset+set}" = set; then
20836 $as_echo_n "(cached) " >&6
20837 else
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h. */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 #include <getopt.h>
20845
20846 int
20847 main ()
20848 {
20849 #ifndef optreset
20850 (void) optreset;
20851 #endif
20852
20853 ;
20854 return 0;
20855 }
20856 _ACEOF
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20862 esac
20863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20864 $as_echo "$ac_try_echo") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20866 ac_status=$?
20867 grep -v '^ *+' conftest.er1 >conftest.err
20868 rm -f conftest.er1
20869 cat conftest.err >&5
20870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_cv_have_decl_optreset=yes
20876 else
20877 $as_echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 ac_cv_have_decl_optreset=no
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 fi
20885 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20886 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20887 if test $ac_cv_have_decl_optreset = yes; then
20888 GETOPT_H=getopt.h
20889 fi
20890
20891 fi
20892
20893 if test -z "$GETOPT_H"; then
20894 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20895 $as_echo_n "checking for working GNU getopt function... " >&6; }
20896 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20897 $as_echo_n "(cached) " >&6
20898 else
20899 if test "$cross_compiling" = yes; then
20900 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20901 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20902 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20903 $as_echo_n "(cached) " >&6
20904 else
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <getopt.h>
20912
20913 int
20914 main ()
20915 {
20916 #ifndef getopt_clip
20917 (void) getopt_clip;
20918 #endif
20919
20920 ;
20921 return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929 esac
20930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20931 $as_echo "$ac_try_echo") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 ac_cv_have_decl_getopt_clip=yes
20943 else
20944 $as_echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ac_cv_have_decl_getopt_clip=no
20948 fi
20949
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 fi
20952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20953 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20954 if test $ac_cv_have_decl_getopt_clip = yes; then
20955 gl_cv_func_gnu_getopt=no
20956 else
20957 gl_cv_func_gnu_getopt=yes
20958 fi
20959
20960 else
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 #include <getopt.h>
20968 int
20969 main ()
20970 {
20971
20972 char *myargv[3];
20973 myargv[0] = "conftest";
20974 myargv[1] = "-+";
20975 myargv[2] = 0;
20976 return getopt (2, myargv, "+a") != '?';
20977
20978 ;
20979 return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20989 $as_echo "$ac_try_echo") >&5
20990 (eval "$ac_link") 2>&5
20991 ac_status=$?
20992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20994 { (case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20997 esac
20998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20999 $as_echo "$ac_try_echo") >&5
21000 (eval "$ac_try") 2>&5
21001 ac_status=$?
21002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 gl_cv_func_gnu_getopt=yes
21005 else
21006 $as_echo "$as_me: program exited with status $ac_status" >&5
21007 $as_echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ( exit $ac_status )
21011 gl_cv_func_gnu_getopt=no
21012 fi
21013 rm -rf conftest.dSYM
21014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017
21018 fi
21019 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21020 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21021 if test "$gl_cv_func_gnu_getopt" = "no"; then
21022 GETOPT_H=getopt.h
21023 fi
21024 fi
21025
21026
21027
21028 if test -n "$GETOPT_H"; then
21029
21030
21031 GETOPT_H=getopt.h
21032
21033 cat >>confdefs.h <<\_ACEOF
21034 #define __GETOPT_PREFIX rpl_
21035 _ACEOF
21036
21037
21038
21039 :
21040 GETOPTOBJS='getopt.o getopt1.o'
21041
21042 fi
21043
21044
21045
21046
21047 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21048 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21049 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21050 $as_echo_n "(cached) " >&6
21051 else
21052 # Use it with a single arg.
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21060 int
21061 main ()
21062 {
21063 getpgrp (0);
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext
21069 if { (ac_try="$ac_compile"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21073 esac
21074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21077 ac_status=$?
21078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
21081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21086 ac_cv_func_getpgrp_void=no
21087 else
21088 $as_echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_func_getpgrp_void=yes
21092 fi
21093
21094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095
21096 fi
21097 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21098 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21099 if test $ac_cv_func_getpgrp_void = yes; then
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define GETPGRP_VOID 1
21103 _ACEOF
21104
21105 fi
21106
21107
21108
21109 for ac_func in strftime
21110 do
21111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21112 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21113 $as_echo_n "checking for $ac_func... " >&6; }
21114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21115 $as_echo_n "(cached) " >&6
21116 else
21117 cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h. */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21125 #define $ac_func innocuous_$ac_func
21126
21127 /* System header to define __stub macros and hopefully few prototypes,
21128 which can conflict with char $ac_func (); below.
21129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21130 <limits.h> exists even on freestanding compilers. */
21131
21132 #ifdef __STDC__
21133 # include <limits.h>
21134 #else
21135 # include <assert.h>
21136 #endif
21137
21138 #undef $ac_func
21139
21140 /* Override any GCC internal prototype to avoid an error.
21141 Use char because int might match the return type of a GCC
21142 builtin and then its argument prototype would still apply. */
21143 #ifdef __cplusplus
21144 extern "C"
21145 #endif
21146 char $ac_func ();
21147 /* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150 #if defined __stub_$ac_func || defined __stub___$ac_func
21151 choke me
21152 #endif
21153
21154 int
21155 main ()
21156 {
21157 return $ac_func ();
21158 ;
21159 return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (ac_try="$ac_link"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21167 esac
21168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21169 $as_echo "$ac_try_echo") >&5
21170 (eval "$ac_link") 2>conftest.er1
21171 ac_status=$?
21172 grep -v '^ *+' conftest.er1 >conftest.err
21173 rm -f conftest.er1
21174 cat conftest.err >&5
21175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } && {
21177 test -z "$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21179 } && test -s conftest$ac_exeext && {
21180 test "$cross_compiling" = yes ||
21181 $as_test_x conftest$ac_exeext
21182 }; then
21183 eval "$as_ac_var=yes"
21184 else
21185 $as_echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 eval "$as_ac_var=no"
21189 fi
21190
21191 rm -rf conftest.dSYM
21192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21193 conftest$ac_exeext conftest.$ac_ext
21194 fi
21195 ac_res=`eval 'as_val=${'$as_ac_var'}
21196 $as_echo "$as_val"'`
21197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21198 $as_echo "$ac_res" >&6; }
21199 if test `eval 'as_val=${'$as_ac_var'}
21200 $as_echo "$as_val"'` = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21203 _ACEOF
21204
21205 else
21206 # strftime is in -lintl on SCO UNIX.
21207 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21208 $as_echo_n "checking for strftime in -lintl... " >&6; }
21209 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21210 $as_echo_n "(cached) " >&6
21211 else
21212 ac_check_lib_save_LIBS=$LIBS
21213 LIBS="-lintl $LIBS"
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h. */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21220
21221 /* Override any GCC internal prototype to avoid an error.
21222 Use char because int might match the return type of a GCC
21223 builtin and then its argument prototype would still apply. */
21224 #ifdef __cplusplus
21225 extern "C"
21226 #endif
21227 char strftime ();
21228 int
21229 main ()
21230 {
21231 return strftime ();
21232 ;
21233 return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21243 $as_echo "$ac_try_echo") >&5
21244 (eval "$ac_link") 2>conftest.er1
21245 ac_status=$?
21246 grep -v '^ *+' conftest.er1 >conftest.err
21247 rm -f conftest.er1
21248 cat conftest.err >&5
21249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest$ac_exeext && {
21254 test "$cross_compiling" = yes ||
21255 $as_test_x conftest$ac_exeext
21256 }; then
21257 ac_cv_lib_intl_strftime=yes
21258 else
21259 $as_echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ac_cv_lib_intl_strftime=no
21263 fi
21264
21265 rm -rf conftest.dSYM
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267 conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21269 fi
21270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21271 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21272 if test $ac_cv_lib_intl_strftime = yes; then
21273 cat >>confdefs.h <<\_ACEOF
21274 #define HAVE_STRFTIME 1
21275 _ACEOF
21276
21277 LIBS="-lintl $LIBS"
21278 fi
21279
21280 fi
21281 done
21282
21283
21284 # UNIX98 PTYs.
21285
21286 for ac_func in grantpt
21287 do
21288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21289 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21290 $as_echo_n "checking for $ac_func... " >&6; }
21291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21292 $as_echo_n "(cached) " >&6
21293 else
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h. */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21302 #define $ac_func innocuous_$ac_func
21303
21304 /* System header to define __stub macros and hopefully few prototypes,
21305 which can conflict with char $ac_func (); below.
21306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21307 <limits.h> exists even on freestanding compilers. */
21308
21309 #ifdef __STDC__
21310 # include <limits.h>
21311 #else
21312 # include <assert.h>
21313 #endif
21314
21315 #undef $ac_func
21316
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 char $ac_func ();
21324 /* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327 #if defined __stub_$ac_func || defined __stub___$ac_func
21328 choke me
21329 #endif
21330
21331 int
21332 main ()
21333 {
21334 return $ac_func ();
21335 ;
21336 return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21344 esac
21345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21346 $as_echo "$ac_try_echo") >&5
21347 (eval "$ac_link") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext && {
21357 test "$cross_compiling" = yes ||
21358 $as_test_x conftest$ac_exeext
21359 }; then
21360 eval "$as_ac_var=yes"
21361 else
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 eval "$as_ac_var=no"
21366 fi
21367
21368 rm -rf conftest.dSYM
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 fi
21372 ac_res=`eval 'as_val=${'$as_ac_var'}
21373 $as_echo "$as_val"'`
21374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21375 $as_echo "$ac_res" >&6; }
21376 if test `eval 'as_val=${'$as_ac_var'}
21377 $as_echo "$as_val"'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21380 _ACEOF
21381
21382 fi
21383 done
21384
21385
21386 # PTY-related GNU extensions.
21387
21388 for ac_func in getpt
21389 do
21390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21392 $as_echo_n "checking for $ac_func... " >&6; }
21393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21394 $as_echo_n "(cached) " >&6
21395 else
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21404 #define $ac_func innocuous_$ac_func
21405
21406 /* System header to define __stub macros and hopefully few prototypes,
21407 which can conflict with char $ac_func (); below.
21408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21409 <limits.h> exists even on freestanding compilers. */
21410
21411 #ifdef __STDC__
21412 # include <limits.h>
21413 #else
21414 # include <assert.h>
21415 #endif
21416
21417 #undef $ac_func
21418
21419 /* Override any GCC internal prototype to avoid an error.
21420 Use char because int might match the return type of a GCC
21421 builtin and then its argument prototype would still apply. */
21422 #ifdef __cplusplus
21423 extern "C"
21424 #endif
21425 char $ac_func ();
21426 /* The GNU C library defines this for functions which it implements
21427 to always fail with ENOSYS. Some functions are actually named
21428 something starting with __ and the normal name is an alias. */
21429 #if defined __stub_$ac_func || defined __stub___$ac_func
21430 choke me
21431 #endif
21432
21433 int
21434 main ()
21435 {
21436 return $ac_func ();
21437 ;
21438 return 0;
21439 }
21440 _ACEOF
21441 rm -f conftest.$ac_objext conftest$ac_exeext
21442 if { (ac_try="$ac_link"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446 esac
21447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21448 $as_echo "$ac_try_echo") >&5
21449 (eval "$ac_link") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext && {
21459 test "$cross_compiling" = yes ||
21460 $as_test_x conftest$ac_exeext
21461 }; then
21462 eval "$as_ac_var=yes"
21463 else
21464 $as_echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 eval "$as_ac_var=no"
21468 fi
21469
21470 rm -rf conftest.dSYM
21471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21472 conftest$ac_exeext conftest.$ac_ext
21473 fi
21474 ac_res=`eval 'as_val=${'$as_ac_var'}
21475 $as_echo "$as_val"'`
21476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21477 $as_echo "$ac_res" >&6; }
21478 if test `eval 'as_val=${'$as_ac_var'}
21479 $as_echo "$as_val"'` = yes; then
21480 cat >>confdefs.h <<_ACEOF
21481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21482 _ACEOF
21483
21484 fi
21485 done
21486
21487
21488 # Check this now, so that we will NOT find the above functions in ncurses.
21489 # That is because we have not set up to link ncurses in lib-src.
21490 # It's better to believe a function is not available
21491 # than to expect to find it in ncurses.
21492 # Also we need tputs and friends to be able to build at all.
21493 have_tputs_et_al=true
21494 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21495 $as_echo_n "checking for library containing tputs... " >&6; }
21496 if test "${ac_cv_search_tputs+set}" = set; then
21497 $as_echo_n "(cached) " >&6
21498 else
21499 ac_func_search_save_LIBS=$LIBS
21500 cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h. */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506
21507 /* Override any GCC internal prototype to avoid an error.
21508 Use char because int might match the return type of a GCC
21509 builtin and then its argument prototype would still apply. */
21510 #ifdef __cplusplus
21511 extern "C"
21512 #endif
21513 char tputs ();
21514 int
21515 main ()
21516 {
21517 return tputs ();
21518 ;
21519 return 0;
21520 }
21521 _ACEOF
21522 for ac_lib in '' ncurses terminfo termcap; do
21523 if test -z "$ac_lib"; then
21524 ac_res="none required"
21525 else
21526 ac_res=-l$ac_lib
21527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21528 fi
21529 rm -f conftest.$ac_objext conftest$ac_exeext
21530 if { (ac_try="$ac_link"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21536 $as_echo "$ac_try_echo") >&5
21537 (eval "$ac_link") 2>conftest.er1
21538 ac_status=$?
21539 grep -v '^ *+' conftest.er1 >conftest.err
21540 rm -f conftest.er1
21541 cat conftest.err >&5
21542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } && {
21544 test -z "$ac_c_werror_flag" ||
21545 test ! -s conftest.err
21546 } && test -s conftest$ac_exeext && {
21547 test "$cross_compiling" = yes ||
21548 $as_test_x conftest$ac_exeext
21549 }; then
21550 ac_cv_search_tputs=$ac_res
21551 else
21552 $as_echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555
21556 fi
21557
21558 rm -rf conftest.dSYM
21559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21560 conftest$ac_exeext
21561 if test "${ac_cv_search_tputs+set}" = set; then
21562 break
21563 fi
21564 done
21565 if test "${ac_cv_search_tputs+set}" = set; then
21566 :
21567 else
21568 ac_cv_search_tputs=no
21569 fi
21570 rm conftest.$ac_ext
21571 LIBS=$ac_func_search_save_LIBS
21572 fi
21573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21574 $as_echo "$ac_cv_search_tputs" >&6; }
21575 ac_res=$ac_cv_search_tputs
21576 if test "$ac_res" != no; then
21577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21578
21579 else
21580 have_tputs_et_al=false
21581 fi
21582
21583 if test "$have_tputs_et_al" != true; then
21584 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21585 Maybe some development libraries/packages are missing? Try installing
21586 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21587 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21588 Maybe some development libraries/packages are missing? Try installing
21589 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21590 { (exit 1); exit 1; }; }
21591 fi
21592 # Must define this when any termcap library is found.
21593
21594 cat >>confdefs.h <<\_ACEOF
21595 #define HAVE_LIBNCURSES 1
21596 _ACEOF
21597
21598 ## FIXME This was the cpp logic, but I am not sure it is right.
21599 ## The above test has not necessarily found libncurses.
21600 HAVE_LIBNCURSES=yes
21601
21602 ## Use terminfo instead of termcap?
21603 ## Note only system files NOT using terminfo are:
21604 ## freebsd < 40000, ms-w32, msdos, netbsd, and
21605 ## darwin|gnu without ncurses.
21606 TERMINFO=no
21607 LIBS_TERMCAP=
21608 case "$opsys" in
21609 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21610 ## hpux10-20: Use the system provided termcap(3) library.
21611 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21612 ## is necessary. Otherwise Emacs dumps core when run -nw.
21613 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21614
21615 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21616 ## The ncurses library has been moved out of the System framework in
21617 ## Mac OS X 10.2. So if configure detects it, set the command-line
21618 ## option to use it.
21619 darwin|gnu*)
21620 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21621 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21622 TERMINFO=yes
21623 LIBS_TERMCAP="-lncurses"
21624 fi
21625 ;;
21626
21627 freebsd)
21628 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21629 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21630 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21631 $as_echo_n "(cached) " >&6
21632 else
21633 cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h. */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 #include <osreldate.h>
21640 int
21641 main ()
21642 {
21643 #if __FreeBSD_version < 400000
21644 fail;
21645 #endif
21646
21647 ;
21648 return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (ac_try="$ac_link"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21656 esac
21657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659 (eval "$ac_link") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest$ac_exeext && {
21669 test "$cross_compiling" = yes ||
21670 $as_test_x conftest$ac_exeext
21671 }; then
21672 emacs_cv_freebsd_terminfo=yes
21673 else
21674 $as_echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 emacs_cv_freebsd_terminfo=no
21678 fi
21679
21680 rm -rf conftest.dSYM
21681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21682 conftest$ac_exeext conftest.$ac_ext
21683 fi
21684
21685
21686 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21687 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21688
21689 if test $emacs_cv_freebsd_terminfo = yes; then
21690 TERMINFO=yes
21691 LIBS_TERMCAP="-lncurses"
21692 else
21693 LIBS_TERMCAP="-ltermcap"
21694 fi
21695 ;;
21696
21697 esac
21698
21699 case "$opsys" in
21700 ## hpux: Make sure we get select from libc rather than from libcurses
21701 ## because libcurses on HPUX 10.10 has a broken version of select.
21702 ## We used to use -lc -lcurses, but this may be cleaner.
21703 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21704
21705 openbsd) LIBS_TERMCAP="-lncurses" ;;
21706
21707 ## Must use system termcap, if we use any termcap. It does special things.
21708 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21709 esac
21710
21711 TERMCAP_OBJ=tparam.o
21712 if test $TERMINFO = yes; then
21713
21714 cat >>confdefs.h <<\_ACEOF
21715 #define TERMINFO 1
21716 _ACEOF
21717
21718
21719 ## Default used to be -ltermcap. Add a case above if need something else.
21720 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21721
21722 TERMCAP_OBJ=terminfo.o
21723 fi
21724
21725
21726
21727
21728 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21729 resolv=no
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 #include <netinet/in.h>
21737 #include <arpa/nameser.h>
21738 #include <resolv.h>
21739 int
21740 main ()
21741 {
21742 return res_init();
21743 ;
21744 return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752 esac
21753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21754 $as_echo "$ac_try_echo") >&5
21755 (eval "$ac_link") 2>conftest.er1
21756 ac_status=$?
21757 grep -v '^ *+' conftest.er1 >conftest.err
21758 rm -f conftest.er1
21759 cat conftest.err >&5
21760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest$ac_exeext && {
21765 test "$cross_compiling" = yes ||
21766 $as_test_x conftest$ac_exeext
21767 }; then
21768 have_res_init=yes
21769 else
21770 $as_echo "$as_me: failed program was:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21772
21773 have_res_init=no
21774 fi
21775
21776 rm -rf conftest.dSYM
21777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778 conftest$ac_exeext conftest.$ac_ext
21779 if test "$have_res_init" = no; then
21780 OLIBS="$LIBS"
21781 LIBS="$LIBS -lresolv"
21782 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21783 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <netinet/in.h>
21791 #include <arpa/nameser.h>
21792 #include <resolv.h>
21793 int
21794 main ()
21795 {
21796 return res_init();
21797 ;
21798 return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21808 $as_echo "$ac_try_echo") >&5
21809 (eval "$ac_link") 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && {
21816 test -z "$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21818 } && test -s conftest$ac_exeext && {
21819 test "$cross_compiling" = yes ||
21820 $as_test_x conftest$ac_exeext
21821 }; then
21822 have_res_init=yes
21823 else
21824 $as_echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827 have_res_init=no
21828 fi
21829
21830 rm -rf conftest.dSYM
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21833 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21834 $as_echo "$have_res_init" >&6; }
21835 if test "$have_res_init" = yes ; then
21836 resolv=yes
21837 fi
21838 LIBS="$OLIBS"
21839 fi
21840
21841 if test "$have_res_init" = yes; then
21842
21843 cat >>confdefs.h <<\_ACEOF
21844 #define HAVE_RES_INIT 1
21845 _ACEOF
21846
21847 fi
21848
21849 # Do we need the Hesiod library to provide the support routines?
21850 LIBHESIOD=
21851 if test "$with_hesiod" != no ; then
21852 # Don't set $LIBS here -- see comments above. FIXME which comments?
21853 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21854 $as_echo_n "checking for res_send... " >&6; }
21855 if test "${ac_cv_func_res_send+set}" = set; then
21856 $as_echo_n "(cached) " >&6
21857 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21866 #define res_send innocuous_res_send
21867
21868 /* System header to define __stub macros and hopefully few prototypes,
21869 which can conflict with char res_send (); below.
21870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21871 <limits.h> exists even on freestanding compilers. */
21872
21873 #ifdef __STDC__
21874 # include <limits.h>
21875 #else
21876 # include <assert.h>
21877 #endif
21878
21879 #undef res_send
21880
21881 /* Override any GCC internal prototype to avoid an error.
21882 Use char because int might match the return type of a GCC
21883 builtin and then its argument prototype would still apply. */
21884 #ifdef __cplusplus
21885 extern "C"
21886 #endif
21887 char res_send ();
21888 /* The GNU C library defines this for functions which it implements
21889 to always fail with ENOSYS. Some functions are actually named
21890 something starting with __ and the normal name is an alias. */
21891 #if defined __stub_res_send || defined __stub___res_send
21892 choke me
21893 #endif
21894
21895 int
21896 main ()
21897 {
21898 return res_send ();
21899 ;
21900 return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21923 }; then
21924 ac_cv_func_res_send=yes
21925 else
21926 $as_echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929 ac_cv_func_res_send=no
21930 fi
21931
21932 rm -rf conftest.dSYM
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935 fi
21936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21937 $as_echo "$ac_cv_func_res_send" >&6; }
21938 if test $ac_cv_func_res_send = yes; then
21939 :
21940 else
21941 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21942 $as_echo_n "checking for __res_send... " >&6; }
21943 if test "${ac_cv_func___res_send+set}" = set; then
21944 $as_echo_n "(cached) " >&6
21945 else
21946 cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h. */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21954 #define __res_send innocuous___res_send
21955
21956 /* System header to define __stub macros and hopefully few prototypes,
21957 which can conflict with char __res_send (); below.
21958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21959 <limits.h> exists even on freestanding compilers. */
21960
21961 #ifdef __STDC__
21962 # include <limits.h>
21963 #else
21964 # include <assert.h>
21965 #endif
21966
21967 #undef __res_send
21968
21969 /* Override any GCC internal prototype to avoid an error.
21970 Use char because int might match the return type of a GCC
21971 builtin and then its argument prototype would still apply. */
21972 #ifdef __cplusplus
21973 extern "C"
21974 #endif
21975 char __res_send ();
21976 /* The GNU C library defines this for functions which it implements
21977 to always fail with ENOSYS. Some functions are actually named
21978 something starting with __ and the normal name is an alias. */
21979 #if defined __stub___res_send || defined __stub_____res_send
21980 choke me
21981 #endif
21982
21983 int
21984 main ()
21985 {
21986 return __res_send ();
21987 ;
21988 return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (ac_try="$ac_link"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21996 esac
21997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21998 $as_echo "$ac_try_echo") >&5
21999 (eval "$ac_link") 2>conftest.er1
22000 ac_status=$?
22001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
22004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext && {
22009 test "$cross_compiling" = yes ||
22010 $as_test_x conftest$ac_exeext
22011 }; then
22012 ac_cv_func___res_send=yes
22013 else
22014 $as_echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017 ac_cv_func___res_send=no
22018 fi
22019
22020 rm -rf conftest.dSYM
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22023 fi
22024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22025 $as_echo "$ac_cv_func___res_send" >&6; }
22026 if test $ac_cv_func___res_send = yes; then
22027 :
22028 else
22029 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22030 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22031 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22032 $as_echo_n "(cached) " >&6
22033 else
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lresolv $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h. */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22042
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22046 #ifdef __cplusplus
22047 extern "C"
22048 #endif
22049 char res_send ();
22050 int
22051 main ()
22052 {
22053 return res_send ();
22054 ;
22055 return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22065 $as_echo "$ac_try_echo") >&5
22066 (eval "$ac_link") 2>conftest.er1
22067 ac_status=$?
22068 grep -v '^ *+' conftest.er1 >conftest.err
22069 rm -f conftest.er1
22070 cat conftest.err >&5
22071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest$ac_exeext && {
22076 test "$cross_compiling" = yes ||
22077 $as_test_x conftest$ac_exeext
22078 }; then
22079 ac_cv_lib_resolv_res_send=yes
22080 else
22081 $as_echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084 ac_cv_lib_resolv_res_send=no
22085 fi
22086
22087 rm -rf conftest.dSYM
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22091 fi
22092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22093 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22094 if test $ac_cv_lib_resolv_res_send = yes; then
22095 resolv=yes
22096 else
22097 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22098 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22099 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22100 $as_echo_n "(cached) " >&6
22101 else
22102 ac_check_lib_save_LIBS=$LIBS
22103 LIBS="-lresolv $LIBS"
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110
22111 /* Override any GCC internal prototype to avoid an error.
22112 Use char because int might match the return type of a GCC
22113 builtin and then its argument prototype would still apply. */
22114 #ifdef __cplusplus
22115 extern "C"
22116 #endif
22117 char __res_send ();
22118 int
22119 main ()
22120 {
22121 return __res_send ();
22122 ;
22123 return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext conftest$ac_exeext
22127 if { (ac_try="$ac_link"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22131 esac
22132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22133 $as_echo "$ac_try_echo") >&5
22134 (eval "$ac_link") 2>conftest.er1
22135 ac_status=$?
22136 grep -v '^ *+' conftest.er1 >conftest.err
22137 rm -f conftest.er1
22138 cat conftest.err >&5
22139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext && {
22144 test "$cross_compiling" = yes ||
22145 $as_test_x conftest$ac_exeext
22146 }; then
22147 ac_cv_lib_resolv___res_send=yes
22148 else
22149 $as_echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ac_cv_lib_resolv___res_send=no
22153 fi
22154
22155 rm -rf conftest.dSYM
22156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22157 conftest$ac_exeext conftest.$ac_ext
22158 LIBS=$ac_check_lib_save_LIBS
22159 fi
22160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22161 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22162 if test $ac_cv_lib_resolv___res_send = yes; then
22163 resolv=yes
22164 fi
22165
22166 fi
22167
22168 fi
22169
22170 fi
22171
22172 if test "$resolv" = yes ; then
22173 RESOLVLIB=-lresolv
22174 else
22175 RESOLVLIB=
22176 fi
22177 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22178 $as_echo_n "checking for hes_getmailhost... " >&6; }
22179 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22180 $as_echo_n "(cached) " >&6
22181 else
22182 cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h. */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22190 #define hes_getmailhost innocuous_hes_getmailhost
22191
22192 /* System header to define __stub macros and hopefully few prototypes,
22193 which can conflict with char hes_getmailhost (); below.
22194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22195 <limits.h> exists even on freestanding compilers. */
22196
22197 #ifdef __STDC__
22198 # include <limits.h>
22199 #else
22200 # include <assert.h>
22201 #endif
22202
22203 #undef hes_getmailhost
22204
22205 /* Override any GCC internal prototype to avoid an error.
22206 Use char because int might match the return type of a GCC
22207 builtin and then its argument prototype would still apply. */
22208 #ifdef __cplusplus
22209 extern "C"
22210 #endif
22211 char hes_getmailhost ();
22212 /* The GNU C library defines this for functions which it implements
22213 to always fail with ENOSYS. Some functions are actually named
22214 something starting with __ and the normal name is an alias. */
22215 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22216 choke me
22217 #endif
22218
22219 int
22220 main ()
22221 {
22222 return hes_getmailhost ();
22223 ;
22224 return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232 esac
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235 (eval "$ac_link") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest$ac_exeext && {
22245 test "$cross_compiling" = yes ||
22246 $as_test_x conftest$ac_exeext
22247 }; then
22248 ac_cv_func_hes_getmailhost=yes
22249 else
22250 $as_echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253 ac_cv_func_hes_getmailhost=no
22254 fi
22255
22256 rm -rf conftest.dSYM
22257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22258 conftest$ac_exeext conftest.$ac_ext
22259 fi
22260 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22261 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22262 if test $ac_cv_func_hes_getmailhost = yes; then
22263 :
22264 else
22265 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22266 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22267 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22268 $as_echo_n "(cached) " >&6
22269 else
22270 ac_check_lib_save_LIBS=$LIBS
22271 LIBS="-lhesiod $RESOLVLIB $LIBS"
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h. */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22278
22279 /* Override any GCC internal prototype to avoid an error.
22280 Use char because int might match the return type of a GCC
22281 builtin and then its argument prototype would still apply. */
22282 #ifdef __cplusplus
22283 extern "C"
22284 #endif
22285 char hes_getmailhost ();
22286 int
22287 main ()
22288 {
22289 return hes_getmailhost ();
22290 ;
22291 return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22299 esac
22300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22301 $as_echo "$ac_try_echo") >&5
22302 (eval "$ac_link") 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest$ac_exeext && {
22312 test "$cross_compiling" = yes ||
22313 $as_test_x conftest$ac_exeext
22314 }; then
22315 ac_cv_lib_hesiod_hes_getmailhost=yes
22316 else
22317 $as_echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22319
22320 ac_cv_lib_hesiod_hes_getmailhost=no
22321 fi
22322
22323 rm -rf conftest.dSYM
22324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS
22327 fi
22328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22329 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22330 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22331 hesiod=yes
22332 else
22333 :
22334 fi
22335
22336 fi
22337
22338
22339 if test x"$hesiod" = xyes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_LIBHESIOD 1
22343 _ACEOF
22344
22345 LIBHESIOD=-lhesiod
22346 fi
22347 fi
22348
22349
22350 # Do we need libresolv (due to res_init or Hesiod)?
22351 if test "$resolv" = yes ; then
22352
22353 cat >>confdefs.h <<\_ACEOF
22354 #define HAVE_LIBRESOLV 1
22355 _ACEOF
22356
22357 LIBRESOLV=-lresolv
22358 else
22359 LIBRESOLV=
22360 fi
22361
22362
22363 # These tell us which Kerberos-related libraries to use.
22364 COM_ERRLIB=
22365 CRYPTOLIB=
22366 KRB5LIB=
22367 DESLIB=
22368 KRB4LIB=
22369
22370 if test "${with_kerberos}" != no; then
22371 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22372 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22373 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22374 $as_echo_n "(cached) " >&6
22375 else
22376 ac_check_lib_save_LIBS=$LIBS
22377 LIBS="-lcom_err $LIBS"
22378 cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h. */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384
22385 /* Override any GCC internal prototype to avoid an error.
22386 Use char because int might match the return type of a GCC
22387 builtin and then its argument prototype would still apply. */
22388 #ifdef __cplusplus
22389 extern "C"
22390 #endif
22391 char com_err ();
22392 int
22393 main ()
22394 {
22395 return com_err ();
22396 ;
22397 return 0;
22398 }
22399 _ACEOF
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22405 esac
22406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22407 $as_echo "$ac_try_echo") >&5
22408 (eval "$ac_link") 2>conftest.er1
22409 ac_status=$?
22410 grep -v '^ *+' conftest.er1 >conftest.err
22411 rm -f conftest.er1
22412 cat conftest.err >&5
22413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest$ac_exeext && {
22418 test "$cross_compiling" = yes ||
22419 $as_test_x conftest$ac_exeext
22420 }; then
22421 ac_cv_lib_com_err_com_err=yes
22422 else
22423 $as_echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_cv_lib_com_err_com_err=no
22427 fi
22428
22429 rm -rf conftest.dSYM
22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431 conftest$ac_exeext conftest.$ac_ext
22432 LIBS=$ac_check_lib_save_LIBS
22433 fi
22434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22435 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22436 if test $ac_cv_lib_com_err_com_err = yes; then
22437 have_com_err=yes
22438 else
22439 have_com_err=no
22440 fi
22441
22442 if test $have_com_err = yes; then
22443 COM_ERRLIB=-lcom_err
22444 LIBS="$COM_ERRLIB $LIBS"
22445
22446 cat >>confdefs.h <<\_ACEOF
22447 #define HAVE_LIBCOM_ERR 1
22448 _ACEOF
22449
22450 fi
22451 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22452 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22453 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22454 $as_echo_n "(cached) " >&6
22455 else
22456 ac_check_lib_save_LIBS=$LIBS
22457 LIBS="-lcrypto $LIBS"
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464
22465 /* Override any GCC internal prototype to avoid an error.
22466 Use char because int might match the return type of a GCC
22467 builtin and then its argument prototype would still apply. */
22468 #ifdef __cplusplus
22469 extern "C"
22470 #endif
22471 char mit_des_cbc_encrypt ();
22472 int
22473 main ()
22474 {
22475 return mit_des_cbc_encrypt ();
22476 ;
22477 return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext conftest$ac_exeext
22481 if { (ac_try="$ac_link"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22485 esac
22486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22487 $as_echo "$ac_try_echo") >&5
22488 (eval "$ac_link") 2>conftest.er1
22489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest$ac_exeext && {
22498 test "$cross_compiling" = yes ||
22499 $as_test_x conftest$ac_exeext
22500 }; then
22501 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22502 else
22503 $as_echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22507 fi
22508
22509 rm -rf conftest.dSYM
22510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22511 conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22513 fi
22514 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22515 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22516 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22517 have_crypto=yes
22518 else
22519 have_crypto=no
22520 fi
22521
22522 if test $have_crypto = yes; then
22523 CRYPTOLIB=-lcrypto
22524 LIBS="$CRYPTOLIB $LIBS"
22525
22526 cat >>confdefs.h <<\_ACEOF
22527 #define HAVE_LIBCRYPTO 1
22528 _ACEOF
22529
22530 fi
22531 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22532 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22533 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22534 $as_echo_n "(cached) " >&6
22535 else
22536 ac_check_lib_save_LIBS=$LIBS
22537 LIBS="-lk5crypto $LIBS"
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544
22545 /* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22548 #ifdef __cplusplus
22549 extern "C"
22550 #endif
22551 char mit_des_cbc_encrypt ();
22552 int
22553 main ()
22554 {
22555 return mit_des_cbc_encrypt ();
22556 ;
22557 return 0;
22558 }
22559 _ACEOF
22560 rm -f conftest.$ac_objext conftest$ac_exeext
22561 if { (ac_try="$ac_link"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22565 esac
22566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22567 $as_echo "$ac_try_echo") >&5
22568 (eval "$ac_link") 2>conftest.er1
22569 ac_status=$?
22570 grep -v '^ *+' conftest.er1 >conftest.err
22571 rm -f conftest.er1
22572 cat conftest.err >&5
22573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext && {
22578 test "$cross_compiling" = yes ||
22579 $as_test_x conftest$ac_exeext
22580 }; then
22581 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22582 else
22583 $as_echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22587 fi
22588
22589 rm -rf conftest.dSYM
22590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22591 conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22593 fi
22594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22595 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22596 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22597 have_k5crypto=yes
22598 else
22599 have_k5crypto=no
22600 fi
22601
22602 if test $have_k5crypto = yes; then
22603 CRYPTOLIB=-lk5crypto
22604 LIBS="$CRYPTOLIB $LIBS"
22605
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_LIBK5CRYPTO 1
22608 _ACEOF
22609
22610 fi
22611 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22612 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22613 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22614 $as_echo_n "(cached) " >&6
22615 else
22616 ac_check_lib_save_LIBS=$LIBS
22617 LIBS="-lkrb5 $LIBS"
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624
22625 /* Override any GCC internal prototype to avoid an error.
22626 Use char because int might match the return type of a GCC
22627 builtin and then its argument prototype would still apply. */
22628 #ifdef __cplusplus
22629 extern "C"
22630 #endif
22631 char krb5_init_context ();
22632 int
22633 main ()
22634 {
22635 return krb5_init_context ();
22636 ;
22637 return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext conftest$ac_exeext
22641 if { (ac_try="$ac_link"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22645 esac
22646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22647 $as_echo "$ac_try_echo") >&5
22648 (eval "$ac_link") 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest$ac_exeext && {
22658 test "$cross_compiling" = yes ||
22659 $as_test_x conftest$ac_exeext
22660 }; then
22661 ac_cv_lib_krb5_krb5_init_context=yes
22662 else
22663 $as_echo "$as_me: failed program was:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22665
22666 ac_cv_lib_krb5_krb5_init_context=no
22667 fi
22668
22669 rm -rf conftest.dSYM
22670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22671 conftest$ac_exeext conftest.$ac_ext
22672 LIBS=$ac_check_lib_save_LIBS
22673 fi
22674 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22675 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22676 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22677 have_krb5=yes
22678 else
22679 have_krb5=no
22680 fi
22681
22682 if test $have_krb5=yes; then
22683 KRB5LIB=-lkrb5
22684 LIBS="$KRB5LIB $LIBS"
22685
22686 cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_LIBKRB5 1
22688 _ACEOF
22689
22690 fi
22691 if test "${with_kerberos5}" = no; then
22692 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22693 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22694 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22695 $as_echo_n "(cached) " >&6
22696 else
22697 ac_check_lib_save_LIBS=$LIBS
22698 LIBS="-ldes425 $LIBS"
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22709 #ifdef __cplusplus
22710 extern "C"
22711 #endif
22712 char des_cbc_encrypt ();
22713 int
22714 main ()
22715 {
22716 return des_cbc_encrypt ();
22717 ;
22718 return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22726 esac
22727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22728 $as_echo "$ac_try_echo") >&5
22729 (eval "$ac_link") 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest$ac_exeext && {
22739 test "$cross_compiling" = yes ||
22740 $as_test_x conftest$ac_exeext
22741 }; then
22742 ac_cv_lib_des425_des_cbc_encrypt=yes
22743 else
22744 $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_lib_des425_des_cbc_encrypt=no
22748 fi
22749
22750 rm -rf conftest.dSYM
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22754 fi
22755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22756 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22757 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22758 have_des425=yes
22759 else
22760 have_des425=no
22761 fi
22762
22763 if test $have_des425 = yes; then
22764 DESLIB=-ldes425
22765 LIBS="$DESLIB $LIBS"
22766
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_LIBDES425 1
22769 _ACEOF
22770
22771 else
22772 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22773 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22774 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22775 $as_echo_n "(cached) " >&6
22776 else
22777 ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-ldes $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h. */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char des_cbc_encrypt ();
22793 int
22794 main ()
22795 {
22796 return des_cbc_encrypt ();
22797 ;
22798 return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22806 esac
22807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809 (eval "$ac_link") 2>conftest.er1
22810 ac_status=$?
22811 grep -v '^ *+' conftest.er1 >conftest.err
22812 rm -f conftest.er1
22813 cat conftest.err >&5
22814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest$ac_exeext && {
22819 test "$cross_compiling" = yes ||
22820 $as_test_x conftest$ac_exeext
22821 }; then
22822 ac_cv_lib_des_des_cbc_encrypt=yes
22823 else
22824 $as_echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827 ac_cv_lib_des_des_cbc_encrypt=no
22828 fi
22829
22830 rm -rf conftest.dSYM
22831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22832 conftest$ac_exeext conftest.$ac_ext
22833 LIBS=$ac_check_lib_save_LIBS
22834 fi
22835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22836 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22837 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22838 have_des=yes
22839 else
22840 have_des=no
22841 fi
22842
22843 if test $have_des = yes; then
22844 DESLIB=-ldes
22845 LIBS="$DESLIB $LIBS"
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_LIBDES 1
22849 _ACEOF
22850
22851 fi
22852 fi
22853 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22854 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22855 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22856 $as_echo_n "(cached) " >&6
22857 else
22858 ac_check_lib_save_LIBS=$LIBS
22859 LIBS="-lkrb4 $LIBS"
22860 cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h. */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866
22867 /* Override any GCC internal prototype to avoid an error.
22868 Use char because int might match the return type of a GCC
22869 builtin and then its argument prototype would still apply. */
22870 #ifdef __cplusplus
22871 extern "C"
22872 #endif
22873 char krb_get_cred ();
22874 int
22875 main ()
22876 {
22877 return krb_get_cred ();
22878 ;
22879 return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext conftest$ac_exeext
22883 if { (ac_try="$ac_link"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22887 esac
22888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22889 $as_echo "$ac_try_echo") >&5
22890 (eval "$ac_link") 2>conftest.er1
22891 ac_status=$?
22892 grep -v '^ *+' conftest.er1 >conftest.err
22893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest$ac_exeext && {
22900 test "$cross_compiling" = yes ||
22901 $as_test_x conftest$ac_exeext
22902 }; then
22903 ac_cv_lib_krb4_krb_get_cred=yes
22904 else
22905 $as_echo "$as_me: failed program was:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22907
22908 ac_cv_lib_krb4_krb_get_cred=no
22909 fi
22910
22911 rm -rf conftest.dSYM
22912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22913 conftest$ac_exeext conftest.$ac_ext
22914 LIBS=$ac_check_lib_save_LIBS
22915 fi
22916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22917 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22918 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22919 have_krb4=yes
22920 else
22921 have_krb4=no
22922 fi
22923
22924 if test $have_krb4 = yes; then
22925 KRB4LIB=-lkrb4
22926 LIBS="$KRB4LIB $LIBS"
22927
22928 cat >>confdefs.h <<\_ACEOF
22929 #define HAVE_LIBKRB4 1
22930 _ACEOF
22931
22932 else
22933 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22934 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22935 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22936 $as_echo_n "(cached) " >&6
22937 else
22938 ac_check_lib_save_LIBS=$LIBS
22939 LIBS="-lkrb $LIBS"
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22950 #ifdef __cplusplus
22951 extern "C"
22952 #endif
22953 char krb_get_cred ();
22954 int
22955 main ()
22956 {
22957 return krb_get_cred ();
22958 ;
22959 return 0;
22960 }
22961 _ACEOF
22962 rm -f conftest.$ac_objext conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967 esac
22968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970 (eval "$ac_link") 2>conftest.er1
22971 ac_status=$?
22972 grep -v '^ *+' conftest.er1 >conftest.err
22973 rm -f conftest.er1
22974 cat conftest.err >&5
22975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } && {
22977 test -z "$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 } && test -s conftest$ac_exeext && {
22980 test "$cross_compiling" = yes ||
22981 $as_test_x conftest$ac_exeext
22982 }; then
22983 ac_cv_lib_krb_krb_get_cred=yes
22984 else
22985 $as_echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988 ac_cv_lib_krb_krb_get_cred=no
22989 fi
22990
22991 rm -rf conftest.dSYM
22992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22993 conftest$ac_exeext conftest.$ac_ext
22994 LIBS=$ac_check_lib_save_LIBS
22995 fi
22996 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22997 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22998 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22999 have_krb=yes
23000 else
23001 have_krb=no
23002 fi
23003
23004 if test $have_krb = yes; then
23005 KRB4LIB=-lkrb
23006 LIBS="$KRB4LIB $LIBS"
23007
23008 cat >>confdefs.h <<\_ACEOF
23009 #define HAVE_LIBKRB 1
23010 _ACEOF
23011
23012 fi
23013 fi
23014 fi
23015
23016 if test "${with_kerberos5}" != no; then
23017
23018 for ac_header in krb5.h
23019 do
23020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23023 $as_echo_n "checking for $ac_header... " >&6; }
23024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23025 $as_echo_n "(cached) " >&6
23026 fi
23027 ac_res=`eval 'as_val=${'$as_ac_Header'}
23028 $as_echo "$as_val"'`
23029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23030 $as_echo "$ac_res" >&6; }
23031 else
23032 # Is the header compilable?
23033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23034 $as_echo_n "checking $ac_header usability... " >&6; }
23035 cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h. */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 $ac_includes_default
23042 #include <$ac_header>
23043 _ACEOF
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23049 esac
23050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23051 $as_echo "$ac_try_echo") >&5
23052 (eval "$ac_compile") 2>conftest.er1
23053 ac_status=$?
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
23057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest.$ac_objext; then
23062 ac_header_compiler=yes
23063 else
23064 $as_echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067 ac_header_compiler=no
23068 fi
23069
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23072 $as_echo "$ac_header_compiler" >&6; }
23073
23074 # Is the header present?
23075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23076 $as_echo_n "checking $ac_header presence... " >&6; }
23077 cat >conftest.$ac_ext <<_ACEOF
23078 /* confdefs.h. */
23079 _ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <$ac_header>
23084 _ACEOF
23085 if { (ac_try="$ac_cpp conftest.$ac_ext"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23089 esac
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } >/dev/null && {
23099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 }; then
23102 ac_header_preproc=yes
23103 else
23104 $as_echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23106
23107 ac_header_preproc=no
23108 fi
23109
23110 rm -f conftest.err conftest.$ac_ext
23111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23112 $as_echo "$ac_header_preproc" >&6; }
23113
23114 # So? What about this header?
23115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23116 yes:no: )
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23121 ac_header_preproc=yes
23122 ;;
23123 no:yes:* )
23124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23127 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23136
23137 ;;
23138 esac
23139 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23140 $as_echo_n "checking for $ac_header... " >&6; }
23141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23142 $as_echo_n "(cached) " >&6
23143 else
23144 eval "$as_ac_Header=\$ac_header_preproc"
23145 fi
23146 ac_res=`eval 'as_val=${'$as_ac_Header'}
23147 $as_echo "$as_val"'`
23148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23149 $as_echo "$ac_res" >&6; }
23150
23151 fi
23152 if test `eval 'as_val=${'$as_ac_Header'}
23153 $as_echo "$as_val"'` = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23156 _ACEOF
23157 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23158 $as_echo_n "checking for krb5_error.text... " >&6; }
23159 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23160 $as_echo_n "(cached) " >&6
23161 else
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h. */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168 #include <krb5.h>
23169
23170 int
23171 main ()
23172 {
23173 static krb5_error ac_aggr;
23174 if (ac_aggr.text)
23175 return 0;
23176 ;
23177 return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext
23181 if { (ac_try="$ac_compile"
23182 case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23185 esac
23186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23187 $as_echo "$ac_try_echo") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23189 ac_status=$?
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
23193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23198 ac_cv_member_krb5_error_text=yes
23199 else
23200 $as_echo "$as_me: failed program was:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23202
23203 cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h. */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 #include <krb5.h>
23210
23211 int
23212 main ()
23213 {
23214 static krb5_error ac_aggr;
23215 if (sizeof ac_aggr.text)
23216 return 0;
23217 ;
23218 return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_cv_member_krb5_error_text=yes
23240 else
23241 $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 ac_cv_member_krb5_error_text=no
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 fi
23249
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 fi
23252 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23253 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23254 if test $ac_cv_member_krb5_error_text = yes; then
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define HAVE_KRB5_ERROR_TEXT 1
23258 _ACEOF
23259
23260
23261 fi
23262 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23263 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23264 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23265 $as_echo_n "(cached) " >&6
23266 else
23267 cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h. */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 #include <krb5.h>
23274
23275 int
23276 main ()
23277 {
23278 static krb5_error ac_aggr;
23279 if (ac_aggr.e_text)
23280 return 0;
23281 ;
23282 return 0;
23283 }
23284 _ACEOF
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23290 esac
23291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23292 $as_echo "$ac_try_echo") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23294 ac_status=$?
23295 grep -v '^ *+' conftest.er1 >conftest.err
23296 rm -f conftest.er1
23297 cat conftest.err >&5
23298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_cv_member_krb5_error_e_text=yes
23304 else
23305 $as_echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308 cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h. */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23314 #include <krb5.h>
23315
23316 int
23317 main ()
23318 {
23319 static krb5_error ac_aggr;
23320 if (sizeof ac_aggr.e_text)
23321 return 0;
23322 ;
23323 return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_member_krb5_error_e_text=yes
23345 else
23346 $as_echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 ac_cv_member_krb5_error_e_text=no
23350 fi
23351
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 fi
23357 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23358 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23359 if test $ac_cv_member_krb5_error_e_text = yes; then
23360
23361 cat >>confdefs.h <<_ACEOF
23362 #define HAVE_KRB5_ERROR_E_TEXT 1
23363 _ACEOF
23364
23365
23366 fi
23367
23368 fi
23369
23370 done
23371
23372 else
23373
23374 for ac_header in des.h
23375 do
23376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23379 $as_echo_n "checking for $ac_header... " >&6; }
23380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23381 $as_echo_n "(cached) " >&6
23382 fi
23383 ac_res=`eval 'as_val=${'$as_ac_Header'}
23384 $as_echo "$as_val"'`
23385 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23386 $as_echo "$ac_res" >&6; }
23387 else
23388 # Is the header compilable?
23389 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23390 $as_echo_n "checking $ac_header usability... " >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h. */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 #include <$ac_header>
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23405 esac
23406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23407 $as_echo "$ac_try_echo") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_header_compiler=yes
23419 else
23420 $as_echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 ac_header_compiler=no
23424 fi
23425
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23428 $as_echo "$ac_header_compiler" >&6; }
23429
23430 # Is the header present?
23431 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23432 $as_echo_n "checking $ac_header presence... " >&6; }
23433 cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h. */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23439 #include <$ac_header>
23440 _ACEOF
23441 if { (ac_try="$ac_cpp conftest.$ac_ext"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445 esac
23446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23447 $as_echo "$ac_try_echo") >&5
23448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } >/dev/null && {
23455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23457 }; then
23458 ac_header_preproc=yes
23459 else
23460 $as_echo "$as_me: failed program was:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23462
23463 ac_header_preproc=no
23464 fi
23465
23466 rm -f conftest.err conftest.$ac_ext
23467 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23468 $as_echo "$ac_header_preproc" >&6; }
23469
23470 # So? What about this header?
23471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23472 yes:no: )
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23477 ac_header_preproc=yes
23478 ;;
23479 no:yes:* )
23480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23481 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23483 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23485 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23487 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23491 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23492
23493 ;;
23494 esac
23495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23496 $as_echo_n "checking for $ac_header... " >&6; }
23497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23498 $as_echo_n "(cached) " >&6
23499 else
23500 eval "$as_ac_Header=\$ac_header_preproc"
23501 fi
23502 ac_res=`eval 'as_val=${'$as_ac_Header'}
23503 $as_echo "$as_val"'`
23504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23505 $as_echo "$ac_res" >&6; }
23506
23507 fi
23508 if test `eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'` = yes; then
23510 cat >>confdefs.h <<_ACEOF
23511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23512 _ACEOF
23513
23514 else
23515
23516 for ac_header in kerberosIV/des.h
23517 do
23518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23521 $as_echo_n "checking for $ac_header... " >&6; }
23522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23523 $as_echo_n "(cached) " >&6
23524 fi
23525 ac_res=`eval 'as_val=${'$as_ac_Header'}
23526 $as_echo "$as_val"'`
23527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23528 $as_echo "$ac_res" >&6; }
23529 else
23530 # Is the header compilable?
23531 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23532 $as_echo_n "checking $ac_header usability... " >&6; }
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h. */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23540 #include <$ac_header>
23541 _ACEOF
23542 rm -f conftest.$ac_objext
23543 if { (ac_try="$ac_compile"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23547 esac
23548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23549 $as_echo "$ac_try_echo") >&5
23550 (eval "$ac_compile") 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest.$ac_objext; then
23560 ac_header_compiler=yes
23561 else
23562 $as_echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23564
23565 ac_header_compiler=no
23566 fi
23567
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23570 $as_echo "$ac_header_compiler" >&6; }
23571
23572 # Is the header present?
23573 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23574 $as_echo_n "checking $ac_header presence... " >&6; }
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h. */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <$ac_header>
23582 _ACEOF
23583 if { (ac_try="$ac_cpp conftest.$ac_ext"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587 esac
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } >/dev/null && {
23597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 }; then
23600 ac_header_preproc=yes
23601 else
23602 $as_echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 ac_header_preproc=no
23606 fi
23607
23608 rm -f conftest.err conftest.$ac_ext
23609 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23610 $as_echo "$ac_header_preproc" >&6; }
23611
23612 # So? What about this header?
23613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23614 yes:no: )
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23619 ac_header_preproc=yes
23620 ;;
23621 no:yes:* )
23622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23623 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23625 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23627 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23629 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23634
23635 ;;
23636 esac
23637 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23638 $as_echo_n "checking for $ac_header... " >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23640 $as_echo_n "(cached) " >&6
23641 else
23642 eval "$as_ac_Header=\$ac_header_preproc"
23643 fi
23644 ac_res=`eval 'as_val=${'$as_ac_Header'}
23645 $as_echo "$as_val"'`
23646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23647 $as_echo "$ac_res" >&6; }
23648
23649 fi
23650 if test `eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'` = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23654 _ACEOF
23655
23656 else
23657
23658 for ac_header in kerberos/des.h
23659 do
23660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23663 $as_echo_n "checking for $ac_header... " >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached) " >&6
23666 fi
23667 ac_res=`eval 'as_val=${'$as_ac_Header'}
23668 $as_echo "$as_val"'`
23669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23670 $as_echo "$ac_res" >&6; }
23671 else
23672 # Is the header compilable?
23673 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23674 $as_echo_n "checking $ac_header usability... " >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 #include <$ac_header>
23683 _ACEOF
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23689 esac
23690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23693 ac_status=$?
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23703 else
23704 $as_echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ac_header_compiler=no
23708 fi
23709
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23712 $as_echo "$ac_header_compiler" >&6; }
23713
23714 # Is the header present?
23715 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23716 $as_echo_n "checking $ac_header presence... " >&6; }
23717 cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h. */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
23724 _ACEOF
23725 if { (ac_try="$ac_cpp conftest.$ac_ext"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23729 esac
23730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23731 $as_echo "$ac_try_echo") >&5
23732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23733 ac_status=$?
23734 grep -v '^ *+' conftest.er1 >conftest.err
23735 rm -f conftest.er1
23736 cat conftest.err >&5
23737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } >/dev/null && {
23739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 }; then
23742 ac_header_preproc=yes
23743 else
23744 $as_echo "$as_me: failed program was:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23746
23747 ac_header_preproc=no
23748 fi
23749
23750 rm -f conftest.err conftest.$ac_ext
23751 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23752 $as_echo "$ac_header_preproc" >&6; }
23753
23754 # So? What about this header?
23755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23756 yes:no: )
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23761 ac_header_preproc=yes
23762 ;;
23763 no:yes:* )
23764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23765 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23767 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23769 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23771 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23775 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23776
23777 ;;
23778 esac
23779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23780 $as_echo_n "checking for $ac_header... " >&6; }
23781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23782 $as_echo_n "(cached) " >&6
23783 else
23784 eval "$as_ac_Header=\$ac_header_preproc"
23785 fi
23786 ac_res=`eval 'as_val=${'$as_ac_Header'}
23787 $as_echo "$as_val"'`
23788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23789 $as_echo "$ac_res" >&6; }
23790
23791 fi
23792 if test `eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'` = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23796 _ACEOF
23797
23798 fi
23799
23800 done
23801
23802 fi
23803
23804 done
23805
23806 fi
23807
23808 done
23809
23810
23811 for ac_header in krb.h
23812 do
23813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23816 $as_echo_n "checking for $ac_header... " >&6; }
23817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23818 $as_echo_n "(cached) " >&6
23819 fi
23820 ac_res=`eval 'as_val=${'$as_ac_Header'}
23821 $as_echo "$as_val"'`
23822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23823 $as_echo "$ac_res" >&6; }
23824 else
23825 # Is the header compilable?
23826 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23827 $as_echo_n "checking $ac_header usability... " >&6; }
23828 cat >conftest.$ac_ext <<_ACEOF
23829 /* confdefs.h. */
23830 _ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 $ac_includes_default
23835 #include <$ac_header>
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23842 esac
23843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23844 $as_echo "$ac_try_echo") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23846 ac_status=$?
23847 grep -v '^ *+' conftest.er1 >conftest.err
23848 rm -f conftest.er1
23849 cat conftest.err >&5
23850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } && {
23852 test -z "$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 } && test -s conftest.$ac_objext; then
23855 ac_header_compiler=yes
23856 else
23857 $as_echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860 ac_header_compiler=no
23861 fi
23862
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23865 $as_echo "$ac_header_compiler" >&6; }
23866
23867 # Is the header present?
23868 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23869 $as_echo_n "checking $ac_header presence... " >&6; }
23870 cat >conftest.$ac_ext <<_ACEOF
23871 /* confdefs.h. */
23872 _ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h. */
23876 #include <$ac_header>
23877 _ACEOF
23878 if { (ac_try="$ac_cpp conftest.$ac_ext"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23882 esac
23883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23884 $as_echo "$ac_try_echo") >&5
23885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23886 ac_status=$?
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
23890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } >/dev/null && {
23892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 }; then
23895 ac_header_preproc=yes
23896 else
23897 $as_echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900 ac_header_preproc=no
23901 fi
23902
23903 rm -f conftest.err conftest.$ac_ext
23904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23905 $as_echo "$ac_header_preproc" >&6; }
23906
23907 # So? What about this header?
23908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23909 yes:no: )
23910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23911 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23914 ac_header_preproc=yes
23915 ;;
23916 no:yes:* )
23917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23918 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23919 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23920 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23921 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23922 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23924 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23928 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23929
23930 ;;
23931 esac
23932 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23933 $as_echo_n "checking for $ac_header... " >&6; }
23934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23935 $as_echo_n "(cached) " >&6
23936 else
23937 eval "$as_ac_Header=\$ac_header_preproc"
23938 fi
23939 ac_res=`eval 'as_val=${'$as_ac_Header'}
23940 $as_echo "$as_val"'`
23941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23942 $as_echo "$ac_res" >&6; }
23943
23944 fi
23945 if test `eval 'as_val=${'$as_ac_Header'}
23946 $as_echo "$as_val"'` = yes; then
23947 cat >>confdefs.h <<_ACEOF
23948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23949 _ACEOF
23950
23951 else
23952
23953 for ac_header in kerberosIV/krb.h
23954 do
23955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23958 $as_echo_n "checking for $ac_header... " >&6; }
23959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23960 $as_echo_n "(cached) " >&6
23961 fi
23962 ac_res=`eval 'as_val=${'$as_ac_Header'}
23963 $as_echo "$as_val"'`
23964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23965 $as_echo "$ac_res" >&6; }
23966 else
23967 # Is the header compilable?
23968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23969 $as_echo_n "checking $ac_header usability... " >&6; }
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 $ac_includes_default
23977 #include <$ac_header>
23978 _ACEOF
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23984 esac
23985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23986 $as_echo "$ac_try_echo") >&5
23987 (eval "$ac_compile") 2>conftest.er1
23988 ac_status=$?
23989 grep -v '^ *+' conftest.er1 >conftest.err
23990 rm -f conftest.er1
23991 cat conftest.err >&5
23992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } && {
23994 test -z "$ac_c_werror_flag" ||
23995 test ! -s conftest.err
23996 } && test -s conftest.$ac_objext; then
23997 ac_header_compiler=yes
23998 else
23999 $as_echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ac_header_compiler=no
24003 fi
24004
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24007 $as_echo "$ac_header_compiler" >&6; }
24008
24009 # Is the header present?
24010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24011 $as_echo_n "checking $ac_header presence... " >&6; }
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 #include <$ac_header>
24019 _ACEOF
24020 if { (ac_try="$ac_cpp conftest.$ac_ext"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24024 esac
24025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24026 $as_echo "$ac_try_echo") >&5
24027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24028 ac_status=$?
24029 grep -v '^ *+' conftest.er1 >conftest.err
24030 rm -f conftest.er1
24031 cat conftest.err >&5
24032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033 (exit $ac_status); } >/dev/null && {
24034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24036 }; then
24037 ac_header_preproc=yes
24038 else
24039 $as_echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042 ac_header_preproc=no
24043 fi
24044
24045 rm -f conftest.err conftest.$ac_ext
24046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24047 $as_echo "$ac_header_preproc" >&6; }
24048
24049 # So? What about this header?
24050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24051 yes:no: )
24052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24056 ac_header_preproc=yes
24057 ;;
24058 no:yes:* )
24059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24071
24072 ;;
24073 esac
24074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24075 $as_echo_n "checking for $ac_header... " >&6; }
24076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24077 $as_echo_n "(cached) " >&6
24078 else
24079 eval "$as_ac_Header=\$ac_header_preproc"
24080 fi
24081 ac_res=`eval 'as_val=${'$as_ac_Header'}
24082 $as_echo "$as_val"'`
24083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24084 $as_echo "$ac_res" >&6; }
24085
24086 fi
24087 if test `eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'` = yes; then
24089 cat >>confdefs.h <<_ACEOF
24090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24091 _ACEOF
24092
24093 else
24094
24095 for ac_header in kerberos/krb.h
24096 do
24097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24100 $as_echo_n "checking for $ac_header... " >&6; }
24101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24102 $as_echo_n "(cached) " >&6
24103 fi
24104 ac_res=`eval 'as_val=${'$as_ac_Header'}
24105 $as_echo "$as_val"'`
24106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24107 $as_echo "$ac_res" >&6; }
24108 else
24109 # Is the header compilable?
24110 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24111 $as_echo_n "checking $ac_header usability... " >&6; }
24112 cat >conftest.$ac_ext <<_ACEOF
24113 /* confdefs.h. */
24114 _ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h. */
24118 $ac_includes_default
24119 #include <$ac_header>
24120 _ACEOF
24121 rm -f conftest.$ac_objext
24122 if { (ac_try="$ac_compile"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24126 esac
24127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_compile") 2>conftest.er1
24130 ac_status=$?
24131 grep -v '^ *+' conftest.er1 >conftest.err
24132 rm -f conftest.er1
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24139 ac_header_compiler=yes
24140 else
24141 $as_echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144 ac_header_compiler=no
24145 fi
24146
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24149 $as_echo "$ac_header_compiler" >&6; }
24150
24151 # Is the header present?
24152 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24153 $as_echo_n "checking $ac_header presence... " >&6; }
24154 cat >conftest.$ac_ext <<_ACEOF
24155 /* confdefs.h. */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24160 #include <$ac_header>
24161 _ACEOF
24162 if { (ac_try="$ac_cpp conftest.$ac_ext"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166 esac
24167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24170 ac_status=$?
24171 grep -v '^ *+' conftest.er1 >conftest.err
24172 rm -f conftest.er1
24173 cat conftest.err >&5
24174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } >/dev/null && {
24176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 }; then
24179 ac_header_preproc=yes
24180 else
24181 $as_echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184 ac_header_preproc=no
24185 fi
24186
24187 rm -f conftest.err conftest.$ac_ext
24188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24189 $as_echo "$ac_header_preproc" >&6; }
24190
24191 # So? What about this header?
24192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24193 yes:no: )
24194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24195 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24198 ac_header_preproc=yes
24199 ;;
24200 no:yes:* )
24201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24202 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24204 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24206 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24208 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24212 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24213
24214 ;;
24215 esac
24216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24217 $as_echo_n "checking for $ac_header... " >&6; }
24218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24219 $as_echo_n "(cached) " >&6
24220 else
24221 eval "$as_ac_Header=\$ac_header_preproc"
24222 fi
24223 ac_res=`eval 'as_val=${'$as_ac_Header'}
24224 $as_echo "$as_val"'`
24225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24226 $as_echo "$ac_res" >&6; }
24227
24228 fi
24229 if test `eval 'as_val=${'$as_ac_Header'}
24230 $as_echo "$as_val"'` = yes; then
24231 cat >>confdefs.h <<_ACEOF
24232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24233 _ACEOF
24234
24235 fi
24236
24237 done
24238
24239 fi
24240
24241 done
24242
24243 fi
24244
24245 done
24246
24247 fi
24248
24249 for ac_header in com_err.h
24250 do
24251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24254 $as_echo_n "checking for $ac_header... " >&6; }
24255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24256 $as_echo_n "(cached) " >&6
24257 fi
24258 ac_res=`eval 'as_val=${'$as_ac_Header'}
24259 $as_echo "$as_val"'`
24260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24262 else
24263 # Is the header compilable?
24264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24265 $as_echo_n "checking $ac_header usability... " >&6; }
24266 cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h. */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24273 #include <$ac_header>
24274 _ACEOF
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24280 esac
24281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24284 ac_status=$?
24285 grep -v '^ *+' conftest.er1 >conftest.err
24286 rm -f conftest.er1
24287 cat conftest.err >&5
24288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_header_compiler=yes
24294 else
24295 $as_echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24297
24298 ac_header_compiler=no
24299 fi
24300
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24303 $as_echo "$ac_header_compiler" >&6; }
24304
24305 # Is the header present?
24306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24307 $as_echo_n "checking $ac_header presence... " >&6; }
24308 cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h. */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 #include <$ac_header>
24315 _ACEOF
24316 if { (ac_try="$ac_cpp conftest.$ac_ext"
24317 case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24320 esac
24321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24322 $as_echo "$ac_try_echo") >&5
24323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24324 ac_status=$?
24325 grep -v '^ *+' conftest.er1 >conftest.err
24326 rm -f conftest.er1
24327 cat conftest.err >&5
24328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); } >/dev/null && {
24330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24332 }; then
24333 ac_header_preproc=yes
24334 else
24335 $as_echo "$as_me: failed program was:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24337
24338 ac_header_preproc=no
24339 fi
24340
24341 rm -f conftest.err conftest.$ac_ext
24342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24343 $as_echo "$ac_header_preproc" >&6; }
24344
24345 # So? What about this header?
24346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24347 yes:no: )
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24352 ac_header_preproc=yes
24353 ;;
24354 no:yes:* )
24355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24367
24368 ;;
24369 esac
24370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24371 $as_echo_n "checking for $ac_header... " >&6; }
24372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24373 $as_echo_n "(cached) " >&6
24374 else
24375 eval "$as_ac_Header=\$ac_header_preproc"
24376 fi
24377 ac_res=`eval 'as_val=${'$as_ac_Header'}
24378 $as_echo "$as_val"'`
24379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24380 $as_echo "$ac_res" >&6; }
24381
24382 fi
24383 if test `eval 'as_val=${'$as_ac_Header'}
24384 $as_echo "$as_val"'` = yes; then
24385 cat >>confdefs.h <<_ACEOF
24386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24387 _ACEOF
24388
24389 fi
24390
24391 done
24392
24393 fi
24394
24395
24396
24397
24398
24399
24400
24401 # Solaris requires -lintl if you want strerror (which calls dgettext)
24402 # to return localized messages.
24403
24404 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24405 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24406 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24407 $as_echo_n "(cached) " >&6
24408 else
24409 ac_check_lib_save_LIBS=$LIBS
24410 LIBS="-lintl $LIBS"
24411 cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h. */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417
24418 /* Override any GCC internal prototype to avoid an error.
24419 Use char because int might match the return type of a GCC
24420 builtin and then its argument prototype would still apply. */
24421 #ifdef __cplusplus
24422 extern "C"
24423 #endif
24424 char dgettext ();
24425 int
24426 main ()
24427 {
24428 return dgettext ();
24429 ;
24430 return 0;
24431 }
24432 _ACEOF
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_link") 2>conftest.er1
24442 ac_status=$?
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest$ac_exeext && {
24451 test "$cross_compiling" = yes ||
24452 $as_test_x conftest$ac_exeext
24453 }; then
24454 ac_cv_lib_intl_dgettext=yes
24455 else
24456 $as_echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459 ac_cv_lib_intl_dgettext=no
24460 fi
24461
24462 rm -rf conftest.dSYM
24463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24464 conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24466 fi
24467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24468 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24469 if test $ac_cv_lib_intl_dgettext = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define HAVE_LIBINTL 1
24472 _ACEOF
24473
24474 LIBS="-lintl $LIBS"
24475
24476 fi
24477
24478
24479 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24480 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24481 if test "${emacs_cv_localtime_cache+set}" = set; then
24482 $as_echo_n "(cached) " >&6
24483 else
24484 if test x$ac_cv_func_tzset = xyes; then
24485 if test "$cross_compiling" = yes; then
24486 # If we have tzset, assume the worst when cross-compiling.
24487 emacs_cv_localtime_cache=yes
24488 else
24489 cat >conftest.$ac_ext <<_ACEOF
24490 /* confdefs.h. */
24491 _ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24495 #include <time.h>
24496 extern char **environ;
24497 unset_TZ ()
24498 {
24499 char **from, **to;
24500 for (to = from = environ; (*to = *from); from++)
24501 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24502 to++;
24503 }
24504 char TZ_GMT0[] = "TZ=GMT0";
24505 char TZ_PST8[] = "TZ=PST8";
24506 main()
24507 {
24508 time_t now = time ((time_t *) 0);
24509 int hour_GMT0, hour_unset;
24510 if (putenv (TZ_GMT0) != 0)
24511 exit (1);
24512 hour_GMT0 = localtime (&now)->tm_hour;
24513 unset_TZ ();
24514 hour_unset = localtime (&now)->tm_hour;
24515 if (putenv (TZ_PST8) != 0)
24516 exit (1);
24517 if (localtime (&now)->tm_hour == hour_GMT0)
24518 exit (1);
24519 unset_TZ ();
24520 if (localtime (&now)->tm_hour != hour_unset)
24521 exit (1);
24522 exit (0);
24523 }
24524 _ACEOF
24525 rm -f conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24530 esac
24531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24532 $as_echo "$ac_try_echo") >&5
24533 (eval "$ac_link") 2>&5
24534 ac_status=$?
24535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24537 { (case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540 esac
24541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24542 $as_echo "$ac_try_echo") >&5
24543 (eval "$ac_try") 2>&5
24544 ac_status=$?
24545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 emacs_cv_localtime_cache=no
24548 else
24549 $as_echo "$as_me: program exited with status $ac_status" >&5
24550 $as_echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 ( exit $ac_status )
24554 emacs_cv_localtime_cache=yes
24555 fi
24556 rm -rf conftest.dSYM
24557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24558 fi
24559
24560
24561 else
24562 # If we lack tzset, report that localtime does not cache TZ,
24563 # since we can't invalidate the cache if we don't have tzset.
24564 emacs_cv_localtime_cache=no
24565 fi
24566 fi
24567 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24568 $as_echo "$emacs_cv_localtime_cache" >&6; }
24569 if test $emacs_cv_localtime_cache = yes; then
24570
24571 cat >>confdefs.h <<\_ACEOF
24572 #define LOCALTIME_CACHE 1
24573 _ACEOF
24574
24575 fi
24576
24577 if test "x$HAVE_TIMEVAL" = xyes; then
24578
24579 for ac_func in gettimeofday
24580 do
24581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24582 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24583 $as_echo_n "checking for $ac_func... " >&6; }
24584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24585 $as_echo_n "(cached) " >&6
24586 else
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24595 #define $ac_func innocuous_$ac_func
24596
24597 /* System header to define __stub macros and hopefully few prototypes,
24598 which can conflict with char $ac_func (); below.
24599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24600 <limits.h> exists even on freestanding compilers. */
24601
24602 #ifdef __STDC__
24603 # include <limits.h>
24604 #else
24605 # include <assert.h>
24606 #endif
24607
24608 #undef $ac_func
24609
24610 /* Override any GCC internal prototype to avoid an error.
24611 Use char because int might match the return type of a GCC
24612 builtin and then its argument prototype would still apply. */
24613 #ifdef __cplusplus
24614 extern "C"
24615 #endif
24616 char $ac_func ();
24617 /* The GNU C library defines this for functions which it implements
24618 to always fail with ENOSYS. Some functions are actually named
24619 something starting with __ and the normal name is an alias. */
24620 #if defined __stub_$ac_func || defined __stub___$ac_func
24621 choke me
24622 #endif
24623
24624 int
24625 main ()
24626 {
24627 return $ac_func ();
24628 ;
24629 return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24637 esac
24638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640 (eval "$ac_link") 2>conftest.er1
24641 ac_status=$?
24642 grep -v '^ *+' conftest.er1 >conftest.err
24643 rm -f conftest.er1
24644 cat conftest.err >&5
24645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext && {
24650 test "$cross_compiling" = yes ||
24651 $as_test_x conftest$ac_exeext
24652 }; then
24653 eval "$as_ac_var=yes"
24654 else
24655 $as_echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24657
24658 eval "$as_ac_var=no"
24659 fi
24660
24661 rm -rf conftest.dSYM
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24663 conftest$ac_exeext conftest.$ac_ext
24664 fi
24665 ac_res=`eval 'as_val=${'$as_ac_var'}
24666 $as_echo "$as_val"'`
24667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24668 $as_echo "$ac_res" >&6; }
24669 if test `eval 'as_val=${'$as_ac_var'}
24670 $as_echo "$as_val"'` = yes; then
24671 cat >>confdefs.h <<_ACEOF
24672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24673 _ACEOF
24674
24675 fi
24676 done
24677
24678 if test $ac_cv_func_gettimeofday = yes; then
24679 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24680 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24681 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24682 $as_echo_n "(cached) " >&6
24683 else
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690
24691 #ifdef TIME_WITH_SYS_TIME
24692 #include <sys/time.h>
24693 #include <time.h>
24694 #else
24695 #ifdef HAVE_SYS_TIME_H
24696 #include <sys/time.h>
24697 #else
24698 #include <time.h>
24699 #endif
24700 #endif
24701 int
24702 main ()
24703 {
24704 struct timeval time;
24705 gettimeofday (&time, 0);
24706 ;
24707 return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715 esac
24716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24717 $as_echo "$ac_try_echo") >&5
24718 (eval "$ac_compile") 2>conftest.er1
24719 ac_status=$?
24720 grep -v '^ *+' conftest.er1 >conftest.err
24721 rm -f conftest.er1
24722 cat conftest.err >&5
24723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest.$ac_objext; then
24728 emacs_cv_gettimeofday_two_arguments=yes
24729 else
24730 $as_echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24732
24733 emacs_cv_gettimeofday_two_arguments=no
24734 fi
24735
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 fi
24738 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24739 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24740 if test $emacs_cv_gettimeofday_two_arguments = no; then
24741
24742 cat >>confdefs.h <<\_ACEOF
24743 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24744 _ACEOF
24745
24746 fi
24747 fi
24748 fi
24749
24750 ok_so_far=yes
24751 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24752 $as_echo_n "checking for socket... " >&6; }
24753 if test "${ac_cv_func_socket+set}" = set; then
24754 $as_echo_n "(cached) " >&6
24755 else
24756 cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h. */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764 #define socket innocuous_socket
24765
24766 /* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char socket (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24770
24771 #ifdef __STDC__
24772 # include <limits.h>
24773 #else
24774 # include <assert.h>
24775 #endif
24776
24777 #undef socket
24778
24779 /* Override any GCC internal prototype to avoid an error.
24780 Use char because int might match the return type of a GCC
24781 builtin and then its argument prototype would still apply. */
24782 #ifdef __cplusplus
24783 extern "C"
24784 #endif
24785 char socket ();
24786 /* The GNU C library defines this for functions which it implements
24787 to always fail with ENOSYS. Some functions are actually named
24788 something starting with __ and the normal name is an alias. */
24789 #if defined __stub_socket || defined __stub___socket
24790 choke me
24791 #endif
24792
24793 int
24794 main ()
24795 {
24796 return socket ();
24797 ;
24798 return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806 esac
24807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_link") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest$ac_exeext && {
24819 test "$cross_compiling" = yes ||
24820 $as_test_x conftest$ac_exeext
24821 }; then
24822 ac_cv_func_socket=yes
24823 else
24824 $as_echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ac_cv_func_socket=no
24828 fi
24829
24830 rm -rf conftest.dSYM
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832 conftest$ac_exeext conftest.$ac_ext
24833 fi
24834 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24835 $as_echo "$ac_cv_func_socket" >&6; }
24836 if test $ac_cv_func_socket = yes; then
24837 :
24838 else
24839 ok_so_far=no
24840 fi
24841
24842 if test $ok_so_far = yes; then
24843 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24844 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24845 $as_echo_n "checking for netinet/in.h... " >&6; }
24846 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24847 $as_echo_n "(cached) " >&6
24848 fi
24849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24850 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24851 else
24852 # Is the header compilable?
24853 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24854 $as_echo_n "checking netinet/in.h usability... " >&6; }
24855 cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h. */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 $ac_includes_default
24862 #include <netinet/in.h>
24863 _ACEOF
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869 esac
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24873 ac_status=$?
24874 grep -v '^ *+' conftest.er1 >conftest.err
24875 rm -f conftest.er1
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24882 ac_header_compiler=yes
24883 else
24884 $as_echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24886
24887 ac_header_compiler=no
24888 fi
24889
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24892 $as_echo "$ac_header_compiler" >&6; }
24893
24894 # Is the header present?
24895 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24896 $as_echo_n "checking netinet/in.h presence... " >&6; }
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h. */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 #include <netinet/in.h>
24904 _ACEOF
24905 if { (ac_try="$ac_cpp conftest.$ac_ext"
24906 case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24909 esac
24910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24911 $as_echo "$ac_try_echo") >&5
24912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24913 ac_status=$?
24914 grep -v '^ *+' conftest.er1 >conftest.err
24915 rm -f conftest.er1
24916 cat conftest.err >&5
24917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } >/dev/null && {
24919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24921 }; then
24922 ac_header_preproc=yes
24923 else
24924 $as_echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927 ac_header_preproc=no
24928 fi
24929
24930 rm -f conftest.err conftest.$ac_ext
24931 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24932 $as_echo "$ac_header_preproc" >&6; }
24933
24934 # So? What about this header?
24935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24936 yes:no: )
24937 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24938 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24940 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24941 ac_header_preproc=yes
24942 ;;
24943 no:yes:* )
24944 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24945 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24946 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24947 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24948 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24949 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24950 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24951 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24953 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24954 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24955 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24956
24957 ;;
24958 esac
24959 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24960 $as_echo_n "checking for netinet/in.h... " >&6; }
24961 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24962 $as_echo_n "(cached) " >&6
24963 else
24964 ac_cv_header_netinet_in_h=$ac_header_preproc
24965 fi
24966 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24967 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24968
24969 fi
24970 if test $ac_cv_header_netinet_in_h = yes; then
24971 :
24972 else
24973 ok_so_far=no
24974 fi
24975
24976
24977 fi
24978 if test $ok_so_far = yes; then
24979 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24980 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24981 $as_echo_n "checking for arpa/inet.h... " >&6; }
24982 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24983 $as_echo_n "(cached) " >&6
24984 fi
24985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24986 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24987 else
24988 # Is the header compilable?
24989 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24990 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h. */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
24998 #include <arpa/inet.h>
24999 _ACEOF
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25005 esac
25006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25007 $as_echo "$ac_try_echo") >&5
25008 (eval "$ac_compile") 2>conftest.er1
25009 ac_status=$?
25010 grep -v '^ *+' conftest.er1 >conftest.err
25011 rm -f conftest.er1
25012 cat conftest.err >&5
25013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); } && {
25015 test -z "$ac_c_werror_flag" ||
25016 test ! -s conftest.err
25017 } && test -s conftest.$ac_objext; then
25018 ac_header_compiler=yes
25019 else
25020 $as_echo "$as_me: failed program was:" >&5
25021 sed 's/^/| /' conftest.$ac_ext >&5
25022
25023 ac_header_compiler=no
25024 fi
25025
25026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25028 $as_echo "$ac_header_compiler" >&6; }
25029
25030 # Is the header present?
25031 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25032 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25033 cat >conftest.$ac_ext <<_ACEOF
25034 /* confdefs.h. */
25035 _ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25039 #include <arpa/inet.h>
25040 _ACEOF
25041 if { (ac_try="$ac_cpp conftest.$ac_ext"
25042 case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25045 esac
25046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25047 $as_echo "$ac_try_echo") >&5
25048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25049 ac_status=$?
25050 grep -v '^ *+' conftest.er1 >conftest.err
25051 rm -f conftest.er1
25052 cat conftest.err >&5
25053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } >/dev/null && {
25055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25057 }; then
25058 ac_header_preproc=yes
25059 else
25060 $as_echo "$as_me: failed program was:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25062
25063 ac_header_preproc=no
25064 fi
25065
25066 rm -f conftest.err conftest.$ac_ext
25067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25068 $as_echo "$ac_header_preproc" >&6; }
25069
25070 # So? What about this header?
25071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25072 yes:no: )
25073 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25074 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25076 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25077 ac_header_preproc=yes
25078 ;;
25079 no:yes:* )
25080 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25081 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25082 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25083 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25084 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25085 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25086 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25087 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25088 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25089 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25090 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25091 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25092
25093 ;;
25094 esac
25095 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25096 $as_echo_n "checking for arpa/inet.h... " >&6; }
25097 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25098 $as_echo_n "(cached) " >&6
25099 else
25100 ac_cv_header_arpa_inet_h=$ac_header_preproc
25101 fi
25102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25103 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25104
25105 fi
25106 if test $ac_cv_header_arpa_inet_h = yes; then
25107 :
25108 else
25109 ok_so_far=no
25110 fi
25111
25112
25113 fi
25114 if test $ok_so_far = yes; then
25115
25116 cat >>confdefs.h <<\_ACEOF
25117 #define HAVE_INET_SOCKETS 1
25118 _ACEOF
25119
25120 fi
25121
25122
25123 for ac_header in sys/ioctl.h
25124 do
25125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25128 $as_echo_n "checking for $ac_header... " >&6; }
25129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25130 $as_echo_n "(cached) " >&6
25131 fi
25132 ac_res=`eval 'as_val=${'$as_ac_Header'}
25133 $as_echo "$as_val"'`
25134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25135 $as_echo "$ac_res" >&6; }
25136 else
25137 # Is the header compilable?
25138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25139 $as_echo_n "checking $ac_header usability... " >&6; }
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h. */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25147 #include <$ac_header>
25148 _ACEOF
25149 rm -f conftest.$ac_objext
25150 if { (ac_try="$ac_compile"
25151 case "(($ac_try" in
25152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153 *) ac_try_echo=$ac_try;;
25154 esac
25155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25156 $as_echo "$ac_try_echo") >&5
25157 (eval "$ac_compile") 2>conftest.er1
25158 ac_status=$?
25159 grep -v '^ *+' conftest.er1 >conftest.err
25160 rm -f conftest.er1
25161 cat conftest.err >&5
25162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest.$ac_objext; then
25167 ac_header_compiler=yes
25168 else
25169 $as_echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25171
25172 ac_header_compiler=no
25173 fi
25174
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25177 $as_echo "$ac_header_compiler" >&6; }
25178
25179 # Is the header present?
25180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25181 $as_echo_n "checking $ac_header presence... " >&6; }
25182 cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h. */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 #include <$ac_header>
25189 _ACEOF
25190 if { (ac_try="$ac_cpp conftest.$ac_ext"
25191 case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25194 esac
25195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25196 $as_echo "$ac_try_echo") >&5
25197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25198 ac_status=$?
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
25202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } >/dev/null && {
25204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25206 }; then
25207 ac_header_preproc=yes
25208 else
25209 $as_echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212 ac_header_preproc=no
25213 fi
25214
25215 rm -f conftest.err conftest.$ac_ext
25216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25217 $as_echo "$ac_header_preproc" >&6; }
25218
25219 # So? What about this header?
25220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25221 yes:no: )
25222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25226 ac_header_preproc=yes
25227 ;;
25228 no:yes:* )
25229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25241
25242 ;;
25243 esac
25244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25245 $as_echo_n "checking for $ac_header... " >&6; }
25246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25247 $as_echo_n "(cached) " >&6
25248 else
25249 eval "$as_ac_Header=\$ac_header_preproc"
25250 fi
25251 ac_res=`eval 'as_val=${'$as_ac_Header'}
25252 $as_echo "$as_val"'`
25253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25254 $as_echo "$ac_res" >&6; }
25255
25256 fi
25257 if test `eval 'as_val=${'$as_ac_Header'}
25258 $as_echo "$as_val"'` = yes; then
25259 cat >>confdefs.h <<_ACEOF
25260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25261 _ACEOF
25262
25263 fi
25264
25265 done
25266
25267
25268 if test -f /usr/lpp/X11/bin/smt.exp; then
25269
25270 cat >>confdefs.h <<\_ACEOF
25271 #define HAVE_AIX_SMT_EXP 1
25272 _ACEOF
25273
25274 fi
25275
25276 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25277 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25278 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25279 { $as_echo "$as_me:$LINENO: result: yes" >&5
25280 $as_echo "yes" >&6; }
25281
25282 cat >>confdefs.h <<\_ACEOF
25283 #define HAVE_DEV_PTMX 1
25284 _ACEOF
25285
25286 else
25287 { $as_echo "$as_me:$LINENO: result: no" >&5
25288 $as_echo "no" >&6; }
25289 fi
25290
25291 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25292 $as_echo_n "checking for pid_t... " >&6; }
25293 if test "${ac_cv_type_pid_t+set}" = set; then
25294 $as_echo_n "(cached) " >&6
25295 else
25296 ac_cv_type_pid_t=no
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h. */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25303 $ac_includes_default
25304 int
25305 main ()
25306 {
25307 if (sizeof (pid_t))
25308 return 0;
25309 ;
25310 return 0;
25311 }
25312 _ACEOF
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25318 esac
25319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25320 $as_echo "$ac_try_echo") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25322 ac_status=$?
25323 grep -v '^ *+' conftest.er1 >conftest.err
25324 rm -f conftest.er1
25325 cat conftest.err >&5
25326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h. */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 $ac_includes_default
25338 int
25339 main ()
25340 {
25341 if (sizeof ((pid_t)))
25342 return 0;
25343 ;
25344 return 0;
25345 }
25346 _ACEOF
25347 rm -f conftest.$ac_objext
25348 if { (ac_try="$ac_compile"
25349 case "(($ac_try" in
25350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351 *) ac_try_echo=$ac_try;;
25352 esac
25353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25354 $as_echo "$ac_try_echo") >&5
25355 (eval "$ac_compile") 2>conftest.er1
25356 ac_status=$?
25357 grep -v '^ *+' conftest.er1 >conftest.err
25358 rm -f conftest.er1
25359 cat conftest.err >&5
25360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); } && {
25362 test -z "$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25364 } && test -s conftest.$ac_objext; then
25365 :
25366 else
25367 $as_echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370 ac_cv_type_pid_t=yes
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 else
25375 $as_echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25377
25378
25379 fi
25380
25381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382 fi
25383 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25384 $as_echo "$ac_cv_type_pid_t" >&6; }
25385 if test $ac_cv_type_pid_t = yes; then
25386 :
25387 else
25388
25389 cat >>confdefs.h <<_ACEOF
25390 #define pid_t int
25391 _ACEOF
25392
25393 fi
25394
25395
25396 for ac_header in vfork.h
25397 do
25398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25400 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25401 $as_echo_n "checking for $ac_header... " >&6; }
25402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25403 $as_echo_n "(cached) " >&6
25404 fi
25405 ac_res=`eval 'as_val=${'$as_ac_Header'}
25406 $as_echo "$as_val"'`
25407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25408 $as_echo "$ac_res" >&6; }
25409 else
25410 # Is the header compilable?
25411 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25412 $as_echo_n "checking $ac_header usability... " >&6; }
25413 cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h. */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25420 #include <$ac_header>
25421 _ACEOF
25422 rm -f conftest.$ac_objext
25423 if { (ac_try="$ac_compile"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427 esac
25428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25440 ac_header_compiler=yes
25441 else
25442 $as_echo "$as_me: failed program was:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25444
25445 ac_header_compiler=no
25446 fi
25447
25448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25449 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25450 $as_echo "$ac_header_compiler" >&6; }
25451
25452 # Is the header present?
25453 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25454 $as_echo_n "checking $ac_header presence... " >&6; }
25455 cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h. */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 #include <$ac_header>
25462 _ACEOF
25463 if { (ac_try="$ac_cpp conftest.$ac_ext"
25464 case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25467 esac
25468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25469 $as_echo "$ac_try_echo") >&5
25470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } >/dev/null && {
25477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 }; then
25480 ac_header_preproc=yes
25481 else
25482 $as_echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25484
25485 ac_header_preproc=no
25486 fi
25487
25488 rm -f conftest.err conftest.$ac_ext
25489 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490 $as_echo "$ac_header_preproc" >&6; }
25491
25492 # So? What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25494 yes:no: )
25495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25496 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25498 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25499 ac_header_preproc=yes
25500 ;;
25501 no:yes:* )
25502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25503 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25505 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25507 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25509 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25511 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25513 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25514
25515 ;;
25516 esac
25517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25518 $as_echo_n "checking for $ac_header... " >&6; }
25519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25520 $as_echo_n "(cached) " >&6
25521 else
25522 eval "$as_ac_Header=\$ac_header_preproc"
25523 fi
25524 ac_res=`eval 'as_val=${'$as_ac_Header'}
25525 $as_echo "$as_val"'`
25526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25527 $as_echo "$ac_res" >&6; }
25528
25529 fi
25530 if test `eval 'as_val=${'$as_ac_Header'}
25531 $as_echo "$as_val"'` = yes; then
25532 cat >>confdefs.h <<_ACEOF
25533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25534 _ACEOF
25535
25536 fi
25537
25538 done
25539
25540
25541
25542 for ac_func in fork vfork
25543 do
25544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25546 $as_echo_n "checking for $ac_func... " >&6; }
25547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25548 $as_echo_n "(cached) " >&6
25549 else
25550 cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h. */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25558 #define $ac_func innocuous_$ac_func
25559
25560 /* System header to define __stub macros and hopefully few prototypes,
25561 which can conflict with char $ac_func (); below.
25562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25563 <limits.h> exists even on freestanding compilers. */
25564
25565 #ifdef __STDC__
25566 # include <limits.h>
25567 #else
25568 # include <assert.h>
25569 #endif
25570
25571 #undef $ac_func
25572
25573 /* Override any GCC internal prototype to avoid an error.
25574 Use char because int might match the return type of a GCC
25575 builtin and then its argument prototype would still apply. */
25576 #ifdef __cplusplus
25577 extern "C"
25578 #endif
25579 char $ac_func ();
25580 /* The GNU C library defines this for functions which it implements
25581 to always fail with ENOSYS. Some functions are actually named
25582 something starting with __ and the normal name is an alias. */
25583 #if defined __stub_$ac_func || defined __stub___$ac_func
25584 choke me
25585 #endif
25586
25587 int
25588 main ()
25589 {
25590 return $ac_func ();
25591 ;
25592 return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (ac_try="$ac_link"
25597 case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25600 esac
25601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25602 $as_echo "$ac_try_echo") >&5
25603 (eval "$ac_link") 2>conftest.er1
25604 ac_status=$?
25605 grep -v '^ *+' conftest.er1 >conftest.err
25606 rm -f conftest.er1
25607 cat conftest.err >&5
25608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } && {
25610 test -z "$ac_c_werror_flag" ||
25611 test ! -s conftest.err
25612 } && test -s conftest$ac_exeext && {
25613 test "$cross_compiling" = yes ||
25614 $as_test_x conftest$ac_exeext
25615 }; then
25616 eval "$as_ac_var=yes"
25617 else
25618 $as_echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25620
25621 eval "$as_ac_var=no"
25622 fi
25623
25624 rm -rf conftest.dSYM
25625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25626 conftest$ac_exeext conftest.$ac_ext
25627 fi
25628 ac_res=`eval 'as_val=${'$as_ac_var'}
25629 $as_echo "$as_val"'`
25630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25631 $as_echo "$ac_res" >&6; }
25632 if test `eval 'as_val=${'$as_ac_var'}
25633 $as_echo "$as_val"'` = yes; then
25634 cat >>confdefs.h <<_ACEOF
25635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25636 _ACEOF
25637
25638 fi
25639 done
25640
25641 if test "x$ac_cv_func_fork" = xyes; then
25642 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25643 $as_echo_n "checking for working fork... " >&6; }
25644 if test "${ac_cv_func_fork_works+set}" = set; then
25645 $as_echo_n "(cached) " >&6
25646 else
25647 if test "$cross_compiling" = yes; then
25648 ac_cv_func_fork_works=cross
25649 else
25650 cat >conftest.$ac_ext <<_ACEOF
25651 /* confdefs.h. */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 $ac_includes_default
25657 int
25658 main ()
25659 {
25660
25661 /* By Ruediger Kuhlmann. */
25662 return fork () < 0;
25663
25664 ;
25665 return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest$ac_exeext
25669 if { (ac_try="$ac_link"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25673 esac
25674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25675 $as_echo "$ac_try_echo") >&5
25676 (eval "$ac_link") 2>&5
25677 ac_status=$?
25678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25680 { (case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25683 esac
25684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25685 $as_echo "$ac_try_echo") >&5
25686 (eval "$ac_try") 2>&5
25687 ac_status=$?
25688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_func_fork_works=yes
25691 else
25692 $as_echo "$as_me: program exited with status $ac_status" >&5
25693 $as_echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ( exit $ac_status )
25697 ac_cv_func_fork_works=no
25698 fi
25699 rm -rf conftest.dSYM
25700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25701 fi
25702
25703
25704 fi
25705 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25706 $as_echo "$ac_cv_func_fork_works" >&6; }
25707
25708 else
25709 ac_cv_func_fork_works=$ac_cv_func_fork
25710 fi
25711 if test "x$ac_cv_func_fork_works" = xcross; then
25712 case $host in
25713 *-*-amigaos* | *-*-msdosdjgpp*)
25714 # Override, as these systems have only a dummy fork() stub
25715 ac_cv_func_fork_works=no
25716 ;;
25717 *)
25718 ac_cv_func_fork_works=yes
25719 ;;
25720 esac
25721 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25722 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25723 fi
25724 ac_cv_func_vfork_works=$ac_cv_func_vfork
25725 if test "x$ac_cv_func_vfork" = xyes; then
25726 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25727 $as_echo_n "checking for working vfork... " >&6; }
25728 if test "${ac_cv_func_vfork_works+set}" = set; then
25729 $as_echo_n "(cached) " >&6
25730 else
25731 if test "$cross_compiling" = yes; then
25732 ac_cv_func_vfork_works=cross
25733 else
25734 cat >conftest.$ac_ext <<_ACEOF
25735 /* confdefs.h. */
25736 _ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 /* Thanks to Paul Eggert for this test. */
25741 $ac_includes_default
25742 #include <sys/wait.h>
25743 #ifdef HAVE_VFORK_H
25744 # include <vfork.h>
25745 #endif
25746 /* On some sparc systems, changes by the child to local and incoming
25747 argument registers are propagated back to the parent. The compiler
25748 is told about this with #include <vfork.h>, but some compilers
25749 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25750 static variable whose address is put into a register that is
25751 clobbered by the vfork. */
25752 static void
25753 #ifdef __cplusplus
25754 sparc_address_test (int arg)
25755 # else
25756 sparc_address_test (arg) int arg;
25757 #endif
25758 {
25759 static pid_t child;
25760 if (!child) {
25761 child = vfork ();
25762 if (child < 0) {
25763 perror ("vfork");
25764 _exit(2);
25765 }
25766 if (!child) {
25767 arg = getpid();
25768 write(-1, "", 0);
25769 _exit (arg);
25770 }
25771 }
25772 }
25773
25774 int
25775 main ()
25776 {
25777 pid_t parent = getpid ();
25778 pid_t child;
25779
25780 sparc_address_test (0);
25781
25782 child = vfork ();
25783
25784 if (child == 0) {
25785 /* Here is another test for sparc vfork register problems. This
25786 test uses lots of local variables, at least as many local
25787 variables as main has allocated so far including compiler
25788 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25789 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25790 reuse the register of parent for one of the local variables,
25791 since it will think that parent can't possibly be used any more
25792 in this routine. Assigning to the local variable will thus
25793 munge parent in the parent process. */
25794 pid_t
25795 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25796 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25797 /* Convince the compiler that p..p7 are live; otherwise, it might
25798 use the same hardware register for all 8 local variables. */
25799 if (p != p1 || p != p2 || p != p3 || p != p4
25800 || p != p5 || p != p6 || p != p7)
25801 _exit(1);
25802
25803 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25804 from child file descriptors. If the child closes a descriptor
25805 before it execs or exits, this munges the parent's descriptor
25806 as well. Test for this by closing stdout in the child. */
25807 _exit(close(fileno(stdout)) != 0);
25808 } else {
25809 int status;
25810 struct stat st;
25811
25812 while (wait(&status) != child)
25813 ;
25814 return (
25815 /* Was there some problem with vforking? */
25816 child < 0
25817
25818 /* Did the child fail? (This shouldn't happen.) */
25819 || status
25820
25821 /* Did the vfork/compiler bug occur? */
25822 || parent != getpid()
25823
25824 /* Did the file descriptor bug occur? */
25825 || fstat(fileno(stdout), &st) != 0
25826 );
25827 }
25828 }
25829 _ACEOF
25830 rm -f conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25835 esac
25836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25837 $as_echo "$ac_try_echo") >&5
25838 (eval "$ac_link") 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25842 { (case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25845 esac
25846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25847 $as_echo "$ac_try_echo") >&5
25848 (eval "$ac_try") 2>&5
25849 ac_status=$?
25850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 ac_cv_func_vfork_works=yes
25853 else
25854 $as_echo "$as_me: program exited with status $ac_status" >&5
25855 $as_echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25857
25858 ( exit $ac_status )
25859 ac_cv_func_vfork_works=no
25860 fi
25861 rm -rf conftest.dSYM
25862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25863 fi
25864
25865
25866 fi
25867 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25868 $as_echo "$ac_cv_func_vfork_works" >&6; }
25869
25870 fi;
25871 if test "x$ac_cv_func_fork_works" = xcross; then
25872 ac_cv_func_vfork_works=$ac_cv_func_vfork
25873 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25874 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25875 fi
25876
25877 if test "x$ac_cv_func_vfork_works" = xyes; then
25878
25879 cat >>confdefs.h <<\_ACEOF
25880 #define HAVE_WORKING_VFORK 1
25881 _ACEOF
25882
25883 else
25884
25885 cat >>confdefs.h <<\_ACEOF
25886 #define vfork fork
25887 _ACEOF
25888
25889 fi
25890 if test "x$ac_cv_func_fork_works" = xyes; then
25891
25892 cat >>confdefs.h <<\_ACEOF
25893 #define HAVE_WORKING_FORK 1
25894 _ACEOF
25895
25896 fi
25897
25898
25899 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25900 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25901 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25902 $as_echo_n "(cached) " >&6
25903 else
25904 cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h. */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 #include <langinfo.h>
25911 int
25912 main ()
25913 {
25914 char* cs = nl_langinfo(CODESET);
25915 ;
25916 return 0;
25917 }
25918 _ACEOF
25919 rm -f conftest.$ac_objext conftest$ac_exeext
25920 if { (ac_try="$ac_link"
25921 case "(($ac_try" in
25922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923 *) ac_try_echo=$ac_try;;
25924 esac
25925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25926 $as_echo "$ac_try_echo") >&5
25927 (eval "$ac_link") 2>conftest.er1
25928 ac_status=$?
25929 grep -v '^ *+' conftest.er1 >conftest.err
25930 rm -f conftest.er1
25931 cat conftest.err >&5
25932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } && {
25934 test -z "$ac_c_werror_flag" ||
25935 test ! -s conftest.err
25936 } && test -s conftest$ac_exeext && {
25937 test "$cross_compiling" = yes ||
25938 $as_test_x conftest$ac_exeext
25939 }; then
25940 emacs_cv_langinfo_codeset=yes
25941 else
25942 $as_echo "$as_me: failed program was:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25944
25945 emacs_cv_langinfo_codeset=no
25946 fi
25947
25948 rm -rf conftest.dSYM
25949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25950 conftest$ac_exeext conftest.$ac_ext
25951
25952 fi
25953 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25954 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25955 if test $emacs_cv_langinfo_codeset = yes; then
25956
25957 cat >>confdefs.h <<\_ACEOF
25958 #define HAVE_LANGINFO_CODESET 1
25959 _ACEOF
25960
25961 fi
25962
25963 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25964 $as_echo_n "checking for size_t... " >&6; }
25965 if test "${ac_cv_type_size_t+set}" = set; then
25966 $as_echo_n "(cached) " >&6
25967 else
25968 ac_cv_type_size_t=no
25969 cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h. */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 $ac_includes_default
25976 int
25977 main ()
25978 {
25979 if (sizeof (size_t))
25980 return 0;
25981 ;
25982 return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext
25986 if { (ac_try="$ac_compile"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990 esac
25991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25992 $as_echo "$ac_try_echo") >&5
25993 (eval "$ac_compile") 2>conftest.er1
25994 ac_status=$?
25995 grep -v '^ *+' conftest.er1 >conftest.err
25996 rm -f conftest.er1
25997 cat conftest.err >&5
25998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } && {
26000 test -z "$ac_c_werror_flag" ||
26001 test ! -s conftest.err
26002 } && test -s conftest.$ac_objext; then
26003 cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h. */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 $ac_includes_default
26010 int
26011 main ()
26012 {
26013 if (sizeof ((size_t)))
26014 return 0;
26015 ;
26016 return 0;
26017 }
26018 _ACEOF
26019 rm -f conftest.$ac_objext
26020 if { (ac_try="$ac_compile"
26021 case "(($ac_try" in
26022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023 *) ac_try_echo=$ac_try;;
26024 esac
26025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26026 $as_echo "$ac_try_echo") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } && {
26034 test -z "$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 } && test -s conftest.$ac_objext; then
26037 :
26038 else
26039 $as_echo "$as_me: failed program was:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26041
26042 ac_cv_type_size_t=yes
26043 fi
26044
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26046 else
26047 $as_echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26049
26050
26051 fi
26052
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26054 fi
26055 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26056 $as_echo "$ac_cv_type_size_t" >&6; }
26057 if test $ac_cv_type_size_t = yes; then
26058
26059 cat >>confdefs.h <<_ACEOF
26060 #define HAVE_SIZE_T 1
26061 _ACEOF
26062
26063
26064 fi
26065
26066
26067 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26068 $as_echo_n "checking for mbstate_t... " >&6; }
26069 if test "${ac_cv_type_mbstate_t+set}" = set; then
26070 $as_echo_n "(cached) " >&6
26071 else
26072 cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h. */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h. */
26078 $ac_includes_default
26079 # include <wchar.h>
26080 int
26081 main ()
26082 {
26083 mbstate_t x; return sizeof x;
26084 ;
26085 return 0;
26086 }
26087 _ACEOF
26088 rm -f conftest.$ac_objext
26089 if { (ac_try="$ac_compile"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26093 esac
26094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26095 $as_echo "$ac_try_echo") >&5
26096 (eval "$ac_compile") 2>conftest.er1
26097 ac_status=$?
26098 grep -v '^ *+' conftest.er1 >conftest.err
26099 rm -f conftest.er1
26100 cat conftest.err >&5
26101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } && {
26103 test -z "$ac_c_werror_flag" ||
26104 test ! -s conftest.err
26105 } && test -s conftest.$ac_objext; then
26106 ac_cv_type_mbstate_t=yes
26107 else
26108 $as_echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111 ac_cv_type_mbstate_t=no
26112 fi
26113
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26115 fi
26116 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26117 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26118 if test $ac_cv_type_mbstate_t = yes; then
26119
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_MBSTATE_T 1
26122 _ACEOF
26123
26124 else
26125
26126 cat >>confdefs.h <<\_ACEOF
26127 #define mbstate_t int
26128 _ACEOF
26129
26130 fi
26131
26132 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26133 $as_echo_n "checking for C restrict keyword... " >&6; }
26134 if test "${emacs_cv_c_restrict+set}" = set; then
26135 $as_echo_n "(cached) " >&6
26136 else
26137 cat >conftest.$ac_ext <<_ACEOF
26138 /* confdefs.h. */
26139 _ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h. */
26143 void fred (int *restrict x);
26144 int
26145 main ()
26146 {
26147
26148 ;
26149 return 0;
26150 }
26151 _ACEOF
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26157 esac
26158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26159 $as_echo "$ac_try_echo") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26161 ac_status=$?
26162 grep -v '^ *+' conftest.er1 >conftest.err
26163 rm -f conftest.er1
26164 cat conftest.err >&5
26165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 emacs_cv_c_restrict=yes
26171 else
26172 $as_echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175 cat >conftest.$ac_ext <<_ACEOF
26176 /* confdefs.h. */
26177 _ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 void fred (int *__restrict x);
26182 int
26183 main ()
26184 {
26185
26186 ;
26187 return 0;
26188 }
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_compile") 2>conftest.er1
26199 ac_status=$?
26200 grep -v '^ *+' conftest.er1 >conftest.err
26201 rm -f conftest.er1
26202 cat conftest.err >&5
26203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } && {
26205 test -z "$ac_c_werror_flag" ||
26206 test ! -s conftest.err
26207 } && test -s conftest.$ac_objext; then
26208 emacs_cv_c_restrict=__restrict
26209 else
26210 $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 emacs_cv_c_restrict=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 fi
26218
26219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26220 fi
26221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26222 $as_echo "$emacs_cv_c_restrict" >&6; }
26223 case "$emacs_cv_c_restrict" in
26224 yes) emacs_restrict=restrict;;
26225 no) emacs_restrict="";;
26226 *) emacs_restrict="$emacs_cv_c_restrict";;
26227 esac
26228 if test "$emacs_restrict" != __restrict; then
26229
26230 cat >>confdefs.h <<_ACEOF
26231 #define __restrict $emacs_restrict
26232 _ACEOF
26233
26234 fi
26235
26236 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26237 $as_echo_n "checking for C restricted array declarations... " >&6; }
26238 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26239 $as_echo_n "(cached) " >&6
26240 else
26241 cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h. */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 void fred (int x[__restrict]);
26248 int
26249 main ()
26250 {
26251
26252 ;
26253 return 0;
26254 }
26255 _ACEOF
26256 rm -f conftest.$ac_objext
26257 if { (ac_try="$ac_compile"
26258 case "(($ac_try" in
26259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260 *) ac_try_echo=$ac_try;;
26261 esac
26262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26263 $as_echo "$ac_try_echo") >&5
26264 (eval "$ac_compile") 2>conftest.er1
26265 ac_status=$?
26266 grep -v '^ *+' conftest.er1 >conftest.err
26267 rm -f conftest.er1
26268 cat conftest.err >&5
26269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } && {
26271 test -z "$ac_c_werror_flag" ||
26272 test ! -s conftest.err
26273 } && test -s conftest.$ac_objext; then
26274 emacs_cv_c_restrict_arr=yes
26275 else
26276 $as_echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26278
26279 emacs_cv_c_restrict_arr=no
26280 fi
26281
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26283 fi
26284 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26285 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26286 if test "$emacs_cv_c_restrict_arr" = yes; then
26287
26288 cat >>confdefs.h <<\_ACEOF
26289 #define __restrict_arr __restrict
26290 _ACEOF
26291
26292 fi
26293
26294
26295
26296 # Set up the CFLAGS for real compilation, so we can substitute it.
26297 CFLAGS="$REAL_CFLAGS"
26298 CPPFLAGS="$REAL_CPPFLAGS"
26299
26300 ## Hack to detect a buggy GCC version.
26301 if test "x$GCC" = xyes \
26302 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26303 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26304 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26305 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26306 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26307 { (exit 1); exit 1; }; }
26308 fi
26309
26310 #### Find out which version of Emacs this is.
26311 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26312 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26313 if test x"${version}" = x; then
26314 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&5
26315 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/src/emacs.c'." >&2;}
26316 { (exit 1); exit 1; }; }
26317 fi
26318 if test x"${version}" != x"$PACKAGE_VERSION"; then
26319 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
26320 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26321 fi
26322
26323 ### Specify what sort of things we'll be editing into Makefile and config.h.
26324 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26325
26326
26327 ## Unused?
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26350 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26351 ## end of LIBX_BASE, but nothing ever set it.
26352
26353
26354
26355
26356 ## Used in lwlib/Makefile.in.
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369 cat >>confdefs.h <<_ACEOF
26370 #define EMACS_CONFIGURATION "${canonical}"
26371 _ACEOF
26372
26373
26374 cat >>confdefs.h <<_ACEOF
26375 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26376 _ACEOF
26377
26378
26379 cat >>confdefs.h <<_ACEOF
26380 #define config_machfile "${machfile}"
26381 _ACEOF
26382
26383
26384 cat >>confdefs.h <<_ACEOF
26385 #define config_opsysfile "${opsysfile}"
26386 _ACEOF
26387
26388
26389 XMENU_OBJ=
26390 XOBJ=
26391 FONT_OBJ=
26392 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26393
26394 cat >>confdefs.h <<\_ACEOF
26395 #define HAVE_X_WINDOWS 1
26396 _ACEOF
26397
26398 XMENU_OBJ=xmenu.o
26399 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26400 FONT_OBJ=xfont.o
26401 if test "$HAVE_XFT" = "yes"; then
26402 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26403 elif test "$HAVE_FREETYPE" = "yes"; then
26404 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
26405 fi
26406
26407 fi
26408
26409
26410
26411
26412 WIDGET_OBJ=
26413 MOTIF_LIBW=
26414 if test "${USE_X_TOOLKIT}" != "none" ; then
26415 WIDGET_OBJ=widget.o
26416
26417 cat >>confdefs.h <<\_ACEOF
26418 #define USE_X_TOOLKIT 1
26419 _ACEOF
26420
26421 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26422
26423 cat >>confdefs.h <<\_ACEOF
26424 #define USE_LUCID 1
26425 _ACEOF
26426
26427 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26428
26429 cat >>confdefs.h <<\_ACEOF
26430 #define USE_MOTIF 1
26431 _ACEOF
26432
26433 MOTIF_LIBW=-lXm
26434 case "$opsys" in
26435 gnu-linux)
26436 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26437 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26438 ;;
26439
26440 unixware)
26441 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26442 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26443 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26444 ;;
26445
26446 aix4-2)
26447 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26448 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26449 ;;
26450 esac
26451 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26452 fi
26453 fi
26454
26455
26456 TOOLKIT_LIBW=
26457 case "$USE_X_TOOLKIT" in
26458 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26459 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26460 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26461 esac
26462
26463
26464 if test "$USE_X_TOOLKIT" = "none"; then
26465 LIBXT_OTHER="\$(LIBXSM)"
26466 OLDXMENU_TARGET="really-oldXMenu"
26467 else
26468 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26469 OLDXMENU_TARGET="really-lwlib"
26470 fi
26471
26472
26473
26474 ## The X Menu stuff is present in the X10 distribution, but missing
26475 ## from X11. If we have X10, just use the installed library;
26476 ## otherwise, use our own copy.
26477 if test "${HAVE_X11}" = "yes" ; then
26478
26479 cat >>confdefs.h <<\_ACEOF
26480 #define HAVE_X11 1
26481 _ACEOF
26482
26483
26484 if test "$USE_X_TOOLKIT" = "none"; then
26485 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26486 else
26487 OLDXMENU="\${lwlibdir}liblw.a"
26488 fi
26489 LIBXMENU="\$(OLDXMENU)"
26490 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26491 else
26492 OLDXMENU=
26493 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26494 if test "${HAVE_X_WINDOWS}" = "yes"; then
26495 LIBXMENU="-lXMenu"
26496 else
26497 LIBXMENU=
26498 fi
26499 LIBX_OTHER=
26500 fi
26501
26502 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
26503 OLDXMENU=
26504 LIBXMENU=
26505 fi
26506
26507
26508
26509
26510
26511 if test "${HAVE_MENUS}" = "yes" ; then
26512
26513 cat >>confdefs.h <<\_ACEOF
26514 #define HAVE_MENUS 1
26515 _ACEOF
26516
26517 fi
26518 if test "${GNU_MALLOC}" = "yes" ; then
26519
26520 cat >>confdefs.h <<\_ACEOF
26521 #define GNU_MALLOC 1
26522 _ACEOF
26523
26524 fi
26525 if test "${REL_ALLOC}" = "yes" ; then
26526
26527 cat >>confdefs.h <<\_ACEOF
26528 #define REL_ALLOC 1
26529 _ACEOF
26530
26531 fi
26532
26533
26534 if test "$opsys" = "cygwin"; then
26535 CYGWIN_OBJ="sheap.o"
26536 ## Cygwin differs because of its unexec().
26537 PRE_ALLOC_OBJ=
26538 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26539 else
26540 CYGWIN_OBJ=
26541 PRE_ALLOC_OBJ=lastfile.o
26542 POST_ALLOC_OBJ="\$(vmlimitobj)"
26543 fi
26544
26545
26546
26547
26548
26549 case "$opsys" in
26550 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26551
26552 darwin)
26553 ## The -headerpad option tells ld (see man page) to leave room at the
26554 ## end of the header for adding load commands. Needed for dumping.
26555 ## 0x690 is the total size of 30 segment load commands (at 56
26556 ## each); under Cocoa 31 commands are required.
26557 if test "$HAVE_NS" = "yes"; then
26558 libs_nsgui="-framework AppKit"
26559 headerpad_extra=6C8
26560 else
26561 libs_nsgui=
26562 headerpad_extra=690
26563 fi
26564 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26565 ;;
26566
26567 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26568 esac
26569
26570
26571
26572 ## This exists because src/Makefile.in did some extra fiddling around
26573 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26574 ## #ifndef LD_SWITCH_SYSTEM
26575 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26576 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26577 ## not using gcc, darwin system not on an alpha (ie darwin, since
26578 ## darwin + alpha does not occur).
26579 ## Note that unlike L_S_S, this is not used in ac_link.
26580 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26581 test "$opsys" = "darwin"; then
26582 LD_SWITCH_SYSTEM_EXTRA="-X"
26583 else
26584 LD_SWITCH_SYSTEM_EXTRA=
26585 fi
26586
26587
26588
26589 LIB_GCC=
26590 if test "x$GCC" = "xyes"; then
26591
26592 case "$opsys" in
26593 ## cygwin: don't link against static libgcc.
26594 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26595
26596 gnu-*)
26597 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26598 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26599 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26600 if test "$machine" = "arm"; then
26601 LIB_GCC="-lgcc_s"
26602 else
26603 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26604 ## immediately undefine it again and redefine it to empty.
26605 ## Was the C_SWITCH_X_SITE part really necessary?
26606 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26607 LIB_GCC=
26608 fi
26609 ;;
26610
26611 ## Ask GCC where to find libgcc.a.
26612 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26613 esac
26614 fi
26615
26616
26617 TOOLTIP_SUPPORT=
26618 WINDOW_SUPPORT=
26619 ## If we're using X11/GNUstep, define some consequences.
26620 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
26621
26622 cat >>confdefs.h <<\_ACEOF
26623 #define HAVE_WINDOW_SYSTEM 1
26624 _ACEOF
26625
26626
26627 cat >>confdefs.h <<\_ACEOF
26628 #define HAVE_MOUSE 1
26629 _ACEOF
26630
26631 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
26632 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
26633
26634 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
26635 test "$HAVE_X_WINDOWS" = "yes" && \
26636 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26637
26638 fi
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648 #### Report on what we decided to do.
26649 #### Report GTK as a toolkit, even if it doesn't use Xt.
26650 #### It makes printing result more understandable as using GTK sets
26651 #### toolkit_scroll_bars to yes by default.
26652 if test "${HAVE_GTK}" = "yes"; then
26653 USE_X_TOOLKIT=GTK
26654 fi
26655
26656 echo "
26657 Configured for \`${canonical}'.
26658
26659 Where should the build process find the source code? ${srcdir}
26660 What operating system and machine description files should Emacs use?
26661 \`${opsysfile}' and \`${machfile}'
26662 What compiler should emacs be built with? ${CC} ${CFLAGS}
26663 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26664 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26665 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26666 What window system should Emacs use? ${window_system}
26667 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26668
26669 if test -n "${x_includes}"; then
26670 echo " Where do we find X Windows header files? ${x_includes}"
26671 else
26672 echo " Where do we find X Windows header files? Standard dirs"
26673 fi
26674 if test -n "${x_libraries}"; then
26675 echo " Where do we find X Windows libraries? ${x_libraries}"
26676 else
26677 echo " Where do we find X Windows libraries? Standard dirs"
26678 fi
26679
26680 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26681 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26682 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26683 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26684 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26685 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26686 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26687 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26688 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26689 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26690 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26691
26692 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26693 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26694 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26695 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26696
26697 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26698 echo
26699
26700 if test $USE_XASSERTS = yes; then
26701 echo " Compiling with asserts turned on."
26702 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26703 fi
26704
26705 echo
26706
26707 if test "$HAVE_NS" = "yes"; then
26708 echo
26709 echo "You must run \"make install\" in order to test the built application.
26710 The installed application will go to nextstep/Emacs.app and can be
26711 run or moved from there."
26712 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26713 echo "The application will be fully self-contained."
26714 else
26715 echo "The lisp resources for the application will be installed under ${prefix}.
26716 You may need to run \"make install\" with sudo. The application will fail
26717 to run if these resources are not installed."
26718 fi
26719 echo
26720 fi
26721
26722 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26723 echo "D-Bus integration has been tested for GNU/Linux only."
26724 echo
26725 fi
26726
26727
26728 # Remove any trailing slashes in these variables.
26729 test "${prefix}" != NONE &&
26730 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26731 test "${exec_prefix}" != NONE &&
26732 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26733
26734 # Now get this: Some word that is part of the ${srcdir} directory name
26735 # or the ${configuration} value might, just might, happen to be an
26736 # identifier like `sun4' or `i386' or something, and be predefined by
26737 # the C preprocessor to some helpful value like 1, or maybe the empty
26738 # string. Needless to say consequent macro substitutions are less
26739 # than conducive to the makefile finding the correct directory.
26740 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26741 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26742 # so that cannot have been doing anything.
26743 cpp_undefs="`echo $srcdir $configuration $canonical unix mktime register X11 |
26744 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26745 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26746
26747 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26748 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26749 ## from Makefile.c can correctly provide the arg `-traditional' to the
26750 ## C preprocessor.
26751
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h. */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 yes..yes
26759 _ACEOF
26760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26761 $EGREP "yes..yes" >/dev/null 2>&1; then
26762 CPP_NEED_TRADITIONAL=no
26763 else
26764 CPP_NEED_TRADITIONAL=yes
26765 fi
26766 rm -f conftest*
26767
26768
26769 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"
26770
26771 ac_config_commands="$ac_config_commands default"
26772
26773 cat >confcache <<\_ACEOF
26774 # This file is a shell script that caches the results of configure
26775 # tests run on this system so they can be shared between configure
26776 # scripts and configure runs, see configure's option --config-cache.
26777 # It is not useful on other systems. If it contains results you don't
26778 # want to keep, you may remove or edit it.
26779 #
26780 # config.status only pays attention to the cache file if you give it
26781 # the --recheck option to rerun configure.
26782 #
26783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26785 # following values.
26786
26787 _ACEOF
26788
26789 # The following way of writing the cache mishandles newlines in values,
26790 # but we know of no workaround that is simple, portable, and efficient.
26791 # So, we kill variables containing newlines.
26792 # Ultrix sh set writes to stderr and can't be redirected directly,
26793 # and sets the high bit in the cache file unless we assign to the vars.
26794 (
26795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26796 eval ac_val=\$$ac_var
26797 case $ac_val in #(
26798 *${as_nl}*)
26799 case $ac_var in #(
26800 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26801 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26802 esac
26803 case $ac_var in #(
26804 _ | IFS | as_nl) ;; #(
26805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26806 *) $as_unset $ac_var ;;
26807 esac ;;
26808 esac
26809 done
26810
26811 (set) 2>&1 |
26812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26813 *${as_nl}ac_space=\ *)
26814 # `set' does not quote correctly, so add quotes (double-quote
26815 # substitution turns \\\\ into \\, and sed turns \\ into \).
26816 sed -n \
26817 "s/'/'\\\\''/g;
26818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26819 ;; #(
26820 *)
26821 # `set' quotes correctly as required by POSIX, so do not add quotes.
26822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26823 ;;
26824 esac |
26825 sort
26826 ) |
26827 sed '
26828 /^ac_cv_env_/b end
26829 t clear
26830 :clear
26831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26832 t end
26833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26834 :end' >>confcache
26835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26836 if test -w "$cache_file"; then
26837 test "x$cache_file" != "x/dev/null" &&
26838 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26839 $as_echo "$as_me: updating cache $cache_file" >&6;}
26840 cat confcache >$cache_file
26841 else
26842 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26844 fi
26845 fi
26846 rm -f confcache
26847
26848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26849 # Let make expand exec_prefix.
26850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26851
26852 DEFS=-DHAVE_CONFIG_H
26853
26854 ac_libobjs=
26855 ac_ltlibobjs=
26856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26857 # 1. Remove the extension, and $U if already installed.
26858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26859 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26861 # will be set to the directory where LIBOBJS objects are built.
26862 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26863 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26864 done
26865 LIBOBJS=$ac_libobjs
26866
26867 LTLIBOBJS=$ac_ltlibobjs
26868
26869
26870
26871 : ${CONFIG_STATUS=./config.status}
26872 ac_write_fail=0
26873 ac_clean_files_save=$ac_clean_files
26874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26875 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26877 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26878 #! $SHELL
26879 # Generated by $as_me.
26880 # Run this file to recreate the current configuration.
26881 # Compiler output produced by configure, useful for debugging
26882 # configure, is in config.log if it exists.
26883
26884 debug=false
26885 ac_cs_recheck=false
26886 ac_cs_silent=false
26887 SHELL=\${CONFIG_SHELL-$SHELL}
26888 _ACEOF
26889
26890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26891 ## --------------------- ##
26892 ## M4sh Initialization. ##
26893 ## --------------------- ##
26894
26895 # Be more Bourne compatible
26896 DUALCASE=1; export DUALCASE # for MKS sh
26897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26898 emulate sh
26899 NULLCMD=:
26900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26901 # is contrary to our usage. Disable this feature.
26902 alias -g '${1+"$@"}'='"$@"'
26903 setopt NO_GLOB_SUBST
26904 else
26905 case `(set -o) 2>/dev/null` in
26906 *posix*) set -o posix ;;
26907 esac
26908
26909 fi
26910
26911
26912
26913
26914 # PATH needs CR
26915 # Avoid depending upon Character Ranges.
26916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26919 as_cr_digits='0123456789'
26920 as_cr_alnum=$as_cr_Letters$as_cr_digits
26921
26922 as_nl='
26923 '
26924 export as_nl
26925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26926 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26929 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26930 as_echo='printf %s\n'
26931 as_echo_n='printf %s'
26932 else
26933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26934 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26935 as_echo_n='/usr/ucb/echo -n'
26936 else
26937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26938 as_echo_n_body='eval
26939 arg=$1;
26940 case $arg in
26941 *"$as_nl"*)
26942 expr "X$arg" : "X\\(.*\\)$as_nl";
26943 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26944 esac;
26945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26946 '
26947 export as_echo_n_body
26948 as_echo_n='sh -c $as_echo_n_body as_echo'
26949 fi
26950 export as_echo_body
26951 as_echo='sh -c $as_echo_body as_echo'
26952 fi
26953
26954 # The user is always right.
26955 if test "${PATH_SEPARATOR+set}" != set; then
26956 PATH_SEPARATOR=:
26957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26959 PATH_SEPARATOR=';'
26960 }
26961 fi
26962
26963 # Support unset when possible.
26964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26965 as_unset=unset
26966 else
26967 as_unset=false
26968 fi
26969
26970
26971 # IFS
26972 # We need space, tab and new line, in precisely that order. Quoting is
26973 # there to prevent editors from complaining about space-tab.
26974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26975 # splitting by setting IFS to empty value.)
26976 IFS=" "" $as_nl"
26977
26978 # Find who we are. Look in the path if we contain no directory separator.
26979 case $0 in
26980 *[\\/]* ) as_myself=$0 ;;
26981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26982 for as_dir in $PATH
26983 do
26984 IFS=$as_save_IFS
26985 test -z "$as_dir" && as_dir=.
26986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26987 done
26988 IFS=$as_save_IFS
26989
26990 ;;
26991 esac
26992 # We did not find ourselves, most probably we were run as `sh COMMAND'
26993 # in which case we are not to be found in the path.
26994 if test "x$as_myself" = x; then
26995 as_myself=$0
26996 fi
26997 if test ! -f "$as_myself"; then
26998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26999 { (exit 1); exit 1; }
27000 fi
27001
27002 # Work around bugs in pre-3.0 UWIN ksh.
27003 for as_var in ENV MAIL MAILPATH
27004 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27005 done
27006 PS1='$ '
27007 PS2='> '
27008 PS4='+ '
27009
27010 # NLS nuisances.
27011 LC_ALL=C
27012 export LC_ALL
27013 LANGUAGE=C
27014 export LANGUAGE
27015
27016 # Required to use basename.
27017 if expr a : '\(a\)' >/dev/null 2>&1 &&
27018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27019 as_expr=expr
27020 else
27021 as_expr=false
27022 fi
27023
27024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27025 as_basename=basename
27026 else
27027 as_basename=false
27028 fi
27029
27030
27031 # Name of the executable.
27032 as_me=`$as_basename -- "$0" ||
27033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27034 X"$0" : 'X\(//\)$' \| \
27035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27036 $as_echo X/"$0" |
27037 sed '/^.*\/\([^/][^/]*\)\/*$/{
27038 s//\1/
27039 q
27040 }
27041 /^X\/\(\/\/\)$/{
27042 s//\1/
27043 q
27044 }
27045 /^X\/\(\/\).*/{
27046 s//\1/
27047 q
27048 }
27049 s/.*/./; q'`
27050
27051 # CDPATH.
27052 $as_unset CDPATH
27053
27054
27055
27056 as_lineno_1=$LINENO
27057 as_lineno_2=$LINENO
27058 test "x$as_lineno_1" != "x$as_lineno_2" &&
27059 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27060
27061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27062 # uniformly replaced by the line number. The first 'sed' inserts a
27063 # line-number line after each line using $LINENO; the second 'sed'
27064 # does the real work. The second script uses 'N' to pair each
27065 # line-number line with the line containing $LINENO, and appends
27066 # trailing '-' during substitution so that $LINENO is not a special
27067 # case at line end.
27068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27069 # scripts with optimization help from Paolo Bonzini. Blame Lee
27070 # E. McMahon (1931-1989) for sed's syntax. :-)
27071 sed -n '
27072 p
27073 /[$]LINENO/=
27074 ' <$as_myself |
27075 sed '
27076 s/[$]LINENO.*/&-/
27077 t lineno
27078 b
27079 :lineno
27080 N
27081 :loop
27082 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27083 t loop
27084 s/-\n.*//
27085 ' >$as_me.lineno &&
27086 chmod +x "$as_me.lineno" ||
27087 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27088 { (exit 1); exit 1; }; }
27089
27090 # Don't try to exec as it changes $[0], causing all sort of problems
27091 # (the dirname of $[0] is not the place where we might find the
27092 # original and so on. Autoconf is especially sensitive to this).
27093 . "./$as_me.lineno"
27094 # Exit status is that of the last command.
27095 exit
27096 }
27097
27098
27099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27100 as_dirname=dirname
27101 else
27102 as_dirname=false
27103 fi
27104
27105 ECHO_C= ECHO_N= ECHO_T=
27106 case `echo -n x` in
27107 -n*)
27108 case `echo 'x\c'` in
27109 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27110 *) ECHO_C='\c';;
27111 esac;;
27112 *)
27113 ECHO_N='-n';;
27114 esac
27115 if expr a : '\(a\)' >/dev/null 2>&1 &&
27116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27117 as_expr=expr
27118 else
27119 as_expr=false
27120 fi
27121
27122 rm -f conf$$ conf$$.exe conf$$.file
27123 if test -d conf$$.dir; then
27124 rm -f conf$$.dir/conf$$.file
27125 else
27126 rm -f conf$$.dir
27127 mkdir conf$$.dir 2>/dev/null
27128 fi
27129 if (echo >conf$$.file) 2>/dev/null; then
27130 if ln -s conf$$.file conf$$ 2>/dev/null; then
27131 as_ln_s='ln -s'
27132 # ... but there are two gotchas:
27133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27135 # In both cases, we have to default to `cp -p'.
27136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27137 as_ln_s='cp -p'
27138 elif ln conf$$.file conf$$ 2>/dev/null; then
27139 as_ln_s=ln
27140 else
27141 as_ln_s='cp -p'
27142 fi
27143 else
27144 as_ln_s='cp -p'
27145 fi
27146 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27147 rmdir conf$$.dir 2>/dev/null
27148
27149 if mkdir -p . 2>/dev/null; then
27150 as_mkdir_p=:
27151 else
27152 test -d ./-p && rmdir ./-p
27153 as_mkdir_p=false
27154 fi
27155
27156 if test -x / >/dev/null 2>&1; then
27157 as_test_x='test -x'
27158 else
27159 if ls -dL / >/dev/null 2>&1; then
27160 as_ls_L_option=L
27161 else
27162 as_ls_L_option=
27163 fi
27164 as_test_x='
27165 eval sh -c '\''
27166 if test -d "$1"; then
27167 test -d "$1/.";
27168 else
27169 case $1 in
27170 -*)set "./$1";;
27171 esac;
27172 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27173 ???[sx]*):;;*)false;;esac;fi
27174 '\'' sh
27175 '
27176 fi
27177 as_executable_p=$as_test_x
27178
27179 # Sed expression to map a string onto a valid CPP name.
27180 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27181
27182 # Sed expression to map a string onto a valid variable name.
27183 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27184
27185
27186 exec 6>&1
27187
27188 # Save the log message, to keep $[0] and so on meaningful, and to
27189 # report actual input values of CONFIG_FILES etc. instead of their
27190 # values after options handling.
27191 ac_log="
27192 This file was extended by emacs $as_me 24.0.50, which was
27193 generated by GNU Autoconf 2.62. Invocation command line was
27194
27195 CONFIG_FILES = $CONFIG_FILES
27196 CONFIG_HEADERS = $CONFIG_HEADERS
27197 CONFIG_LINKS = $CONFIG_LINKS
27198 CONFIG_COMMANDS = $CONFIG_COMMANDS
27199 $ $0 $@
27200
27201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27202 "
27203
27204 _ACEOF
27205
27206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27207 # Files that config.status was made for.
27208 config_files="$ac_config_files"
27209 config_headers="$ac_config_headers"
27210 config_commands="$ac_config_commands"
27211
27212 _ACEOF
27213
27214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27215 ac_cs_usage="\
27216 \`$as_me' instantiates files from templates according to the
27217 current configuration.
27218
27219 Usage: $0 [OPTIONS] [FILE]...
27220
27221 -h, --help print this help, then exit
27222 -V, --version print version number and configuration settings, then exit
27223 -q, --quiet do not print progress messages
27224 -d, --debug don't remove temporary files
27225 --recheck update $as_me by reconfiguring in the same conditions
27226 --file=FILE[:TEMPLATE]
27227 instantiate the configuration file FILE
27228 --header=FILE[:TEMPLATE]
27229 instantiate the configuration header FILE
27230
27231 Configuration files:
27232 $config_files
27233
27234 Configuration headers:
27235 $config_headers
27236
27237 Configuration commands:
27238 $config_commands
27239
27240 Report bugs to <bug-autoconf@gnu.org>."
27241
27242 _ACEOF
27243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27244 ac_cs_version="\\
27245 emacs config.status 24.0.50
27246 configured by $0, generated by GNU Autoconf 2.62,
27247 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27248
27249 Copyright (C) 2008 Free Software Foundation, Inc.
27250 This config.status script is free software; the Free Software Foundation
27251 gives unlimited permission to copy, distribute and modify it."
27252
27253 ac_pwd='$ac_pwd'
27254 srcdir='$srcdir'
27255 INSTALL='$INSTALL'
27256 test -n "\$AWK" || AWK=awk
27257 _ACEOF
27258
27259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27260 # The default lists apply if the user does not specify any file.
27261 ac_need_defaults=:
27262 while test $# != 0
27263 do
27264 case $1 in
27265 --*=*)
27266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27268 ac_shift=:
27269 ;;
27270 *)
27271 ac_option=$1
27272 ac_optarg=$2
27273 ac_shift=shift
27274 ;;
27275 esac
27276
27277 case $ac_option in
27278 # Handling of the options.
27279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27280 ac_cs_recheck=: ;;
27281 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27282 $as_echo "$ac_cs_version"; exit ;;
27283 --debug | --debu | --deb | --de | --d | -d )
27284 debug=: ;;
27285 --file | --fil | --fi | --f )
27286 $ac_shift
27287 case $ac_optarg in
27288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27289 esac
27290 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27291 ac_need_defaults=false;;
27292 --header | --heade | --head | --hea )
27293 $ac_shift
27294 case $ac_optarg in
27295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27296 esac
27297 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27298 ac_need_defaults=false;;
27299 --he | --h)
27300 # Conflict between --help and --header
27301 { $as_echo "$as_me: error: ambiguous option: $1
27302 Try \`$0 --help' for more information." >&2
27303 { (exit 1); exit 1; }; };;
27304 --help | --hel | -h )
27305 $as_echo "$ac_cs_usage"; exit ;;
27306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27308 ac_cs_silent=: ;;
27309
27310 # This is an error.
27311 -*) { $as_echo "$as_me: error: unrecognized option: $1
27312 Try \`$0 --help' for more information." >&2
27313 { (exit 1); exit 1; }; } ;;
27314
27315 *) ac_config_targets="$ac_config_targets $1"
27316 ac_need_defaults=false ;;
27317
27318 esac
27319 shift
27320 done
27321
27322 ac_configure_extra_args=
27323
27324 if $ac_cs_silent; then
27325 exec 6>/dev/null
27326 ac_configure_extra_args="$ac_configure_extra_args --silent"
27327 fi
27328
27329 _ACEOF
27330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27331 if \$ac_cs_recheck; then
27332 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27333 shift
27334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27335 CONFIG_SHELL='$SHELL'
27336 export CONFIG_SHELL
27337 exec "\$@"
27338 fi
27339
27340 _ACEOF
27341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27342 exec 5>>config.log
27343 {
27344 echo
27345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27346 ## Running $as_me. ##
27347 _ASBOX
27348 $as_echo "$ac_log"
27349 } >&5
27350
27351 _ACEOF
27352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27353 #
27354 # INIT-COMMANDS
27355 #
27356 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27357
27358 _ACEOF
27359
27360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27361
27362 # Handling of arguments.
27363 for ac_config_target in $ac_config_targets
27364 do
27365 case $ac_config_target in
27366 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27367 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27368 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27369 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27370 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27371 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27372 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27373 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27374 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27375 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27376 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27377 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27378 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27379
27380 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27381 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27382 { (exit 1); exit 1; }; };;
27383 esac
27384 done
27385
27386
27387 # If the user did not use the arguments to specify the items to instantiate,
27388 # then the envvar interface is used. Set only those that are not.
27389 # We use the long form for the default assignment because of an extremely
27390 # bizarre bug on SunOS 4.1.3.
27391 if $ac_need_defaults; then
27392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27395 fi
27396
27397 # Have a temporary directory for convenience. Make it in the build tree
27398 # simply because there is no reason against having it here, and in addition,
27399 # creating and moving files from /tmp can sometimes cause problems.
27400 # Hook for its removal unless debugging.
27401 # Note that there is a small window in which the directory will not be cleaned:
27402 # after its creation but before its name has been assigned to `$tmp'.
27403 $debug ||
27404 {
27405 tmp=
27406 trap 'exit_status=$?
27407 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27408 ' 0
27409 trap '{ (exit 1); exit 1; }' 1 2 13 15
27410 }
27411 # Create a (secure) tmp directory for tmp files.
27412
27413 {
27414 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27415 test -n "$tmp" && test -d "$tmp"
27416 } ||
27417 {
27418 tmp=./conf$$-$RANDOM
27419 (umask 077 && mkdir "$tmp")
27420 } ||
27421 {
27422 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27423 { (exit 1); exit 1; }
27424 }
27425
27426 # Set up the scripts for CONFIG_FILES section.
27427 # No need to generate them if there are no CONFIG_FILES.
27428 # This happens for instance with `./config.status config.h'.
27429 if test -n "$CONFIG_FILES"; then
27430
27431
27432 ac_cr=' '
27433 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27434 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27435 ac_cs_awk_cr='\\r'
27436 else
27437 ac_cs_awk_cr=$ac_cr
27438 fi
27439
27440 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27441 _ACEOF
27442
27443
27444 {
27445 echo "cat >conf$$subs.awk <<_ACEOF" &&
27446 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27447 echo "_ACEOF"
27448 } >conf$$subs.sh ||
27449 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27450 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27451 { (exit 1); exit 1; }; }
27452 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27453 ac_delim='%!_!# '
27454 for ac_last_try in false false false false false :; do
27455 . ./conf$$subs.sh ||
27456 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27457 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27458 { (exit 1); exit 1; }; }
27459
27460 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27461 break
27462 elif $ac_last_try; then
27463 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27464 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27465 { (exit 1); exit 1; }; }
27466 else
27467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27468 fi
27469 done
27470 rm -f conf$$subs.sh
27471
27472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27473 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27474 _ACEOF
27475 sed -n '
27476 h
27477 s/^/S["/; s/!.*/"]=/
27478 p
27479 g
27480 s/^[^!]*!//
27481 :repl
27482 t repl
27483 s/'"$ac_delim"'$//
27484 t delim
27485 :nl
27486 h
27487 s/\(.\{148\}\).*/\1/
27488 t more1
27489 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27490 p
27491 n
27492 b repl
27493 :more1
27494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27495 p
27496 g
27497 s/.\{148\}//
27498 t nl
27499 :delim
27500 h
27501 s/\(.\{148\}\).*/\1/
27502 t more2
27503 s/["\\]/\\&/g; s/^/"/; s/$/"/
27504 p
27505 b
27506 :more2
27507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27508 p
27509 g
27510 s/.\{148\}//
27511 t delim
27512 ' <conf$$subs.awk | sed '
27513 /^[^""]/{
27514 N
27515 s/\n//
27516 }
27517 ' >>$CONFIG_STATUS || ac_write_fail=1
27518 rm -f conf$$subs.awk
27519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27520 _ACAWK
27521 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27522 for (key in S) S_is_set[key] = 1
27523 FS = "\a"
27524
27525 }
27526 {
27527 line = $ 0
27528 nfields = split(line, field, "@")
27529 substed = 0
27530 len = length(field[1])
27531 for (i = 2; i < nfields; i++) {
27532 key = field[i]
27533 keylen = length(key)
27534 if (S_is_set[key]) {
27535 value = S[key]
27536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27537 len += length(value) + length(field[++i])
27538 substed = 1
27539 } else
27540 len += 1 + keylen
27541 }
27542
27543 print line
27544 }
27545
27546 _ACAWK
27547 _ACEOF
27548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27549 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27550 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27551 else
27552 cat
27553 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27554 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27555 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27556 { (exit 1); exit 1; }; }
27557 _ACEOF
27558
27559 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27560 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27561 # trailing colons and then remove the whole line if VPATH becomes empty
27562 # (actually we leave an empty line to preserve line numbers).
27563 if test "x$srcdir" = x.; then
27564 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27565 s/:*\$(srcdir):*/:/
27566 s/:*\${srcdir}:*/:/
27567 s/:*@srcdir@:*/:/
27568 s/^\([^=]*=[ ]*\):*/\1/
27569 s/:*$//
27570 s/^[^=]*=[ ]*$//
27571 }'
27572 fi
27573
27574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27575 fi # test -n "$CONFIG_FILES"
27576
27577 # Set up the scripts for CONFIG_HEADERS section.
27578 # No need to generate them if there are no CONFIG_HEADERS.
27579 # This happens for instance with `./config.status Makefile'.
27580 if test -n "$CONFIG_HEADERS"; then
27581 cat >"$tmp/defines.awk" <<\_ACAWK ||
27582 BEGIN {
27583 _ACEOF
27584
27585 # Transform confdefs.h into an awk script `defines.awk', embedded as
27586 # here-document in config.status, that substitutes the proper values into
27587 # config.h.in to produce config.h.
27588
27589 # Create a delimiter string that does not exist in confdefs.h, to ease
27590 # handling of long lines.
27591 ac_delim='%!_!# '
27592 for ac_last_try in false false :; do
27593 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27594 if test -z "$ac_t"; then
27595 break
27596 elif $ac_last_try; then
27597 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27598 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27599 { (exit 1); exit 1; }; }
27600 else
27601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27602 fi
27603 done
27604
27605 # For the awk script, D is an array of macro values keyed by name,
27606 # likewise P contains macro parameters if any. Preserve backslash
27607 # newline sequences.
27608
27609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27610 sed -n '
27611 s/.\{148\}/&'"$ac_delim"'/g
27612 t rset
27613 :rset
27614 s/^[ ]*#[ ]*define[ ][ ]*/ /
27615 t def
27616 d
27617 :def
27618 s/\\$//
27619 t bsnl
27620 s/["\\]/\\&/g
27621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27622 D["\1"]=" \3"/p
27623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27624 d
27625 :bsnl
27626 s/["\\]/\\&/g
27627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27628 D["\1"]=" \3\\\\\\n"\\/p
27629 t cont
27630 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27631 t cont
27632 d
27633 :cont
27634 n
27635 s/.\{148\}/&'"$ac_delim"'/g
27636 t clear
27637 :clear
27638 s/\\$//
27639 t bsnlc
27640 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27641 d
27642 :bsnlc
27643 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27644 b cont
27645 ' <confdefs.h | sed '
27646 s/'"$ac_delim"'/"\\\
27647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27648
27649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27650 for (key in D) D_is_set[key] = 1
27651 FS = "\a"
27652 }
27653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27654 line = \$ 0
27655 split(line, arg, " ")
27656 if (arg[1] == "#") {
27657 defundef = arg[2]
27658 mac1 = arg[3]
27659 } else {
27660 defundef = substr(arg[1], 2)
27661 mac1 = arg[2]
27662 }
27663 split(mac1, mac2, "(") #)
27664 macro = mac2[1]
27665 if (D_is_set[macro]) {
27666 # Preserve the white space surrounding the "#".
27667 prefix = substr(line, 1, index(line, defundef) - 1)
27668 print prefix "define", macro P[macro] D[macro]
27669 next
27670 } else {
27671 # Replace #undef with comments. This is necessary, for example,
27672 # in the case of _POSIX_SOURCE, which is predefined and required
27673 # on some systems where configure will not decide to define it.
27674 if (defundef == "undef") {
27675 print "/*", line, "*/"
27676 next
27677 }
27678 }
27679 }
27680 { print }
27681 _ACAWK
27682 _ACEOF
27683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27684 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27685 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27686 { (exit 1); exit 1; }; }
27687 fi # test -n "$CONFIG_HEADERS"
27688
27689
27690 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27691 shift
27692 for ac_tag
27693 do
27694 case $ac_tag in
27695 :[FHLC]) ac_mode=$ac_tag; continue;;
27696 esac
27697 case $ac_mode$ac_tag in
27698 :[FHL]*:*);;
27699 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27700 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27701 { (exit 1); exit 1; }; };;
27702 :[FH]-) ac_tag=-:-;;
27703 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27704 esac
27705 ac_save_IFS=$IFS
27706 IFS=:
27707 set x $ac_tag
27708 IFS=$ac_save_IFS
27709 shift
27710 ac_file=$1
27711 shift
27712
27713 case $ac_mode in
27714 :L) ac_source=$1;;
27715 :[FH])
27716 ac_file_inputs=
27717 for ac_f
27718 do
27719 case $ac_f in
27720 -) ac_f="$tmp/stdin";;
27721 *) # Look for the file first in the build tree, then in the source tree
27722 # (if the path is not absolute). The absolute path cannot be DOS-style,
27723 # because $ac_f cannot contain `:'.
27724 test -f "$ac_f" ||
27725 case $ac_f in
27726 [\\/$]*) false;;
27727 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27728 esac ||
27729 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27730 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27731 { (exit 1); exit 1; }; };;
27732 esac
27733 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27734 ac_file_inputs="$ac_file_inputs '$ac_f'"
27735 done
27736
27737 # Let's still pretend it is `configure' which instantiates (i.e., don't
27738 # use $as_me), people would be surprised to read:
27739 # /* config.h. Generated by config.status. */
27740 configure_input='Generated from '`
27741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27742 `' by configure.'
27743 if test x"$ac_file" != x-; then
27744 configure_input="$ac_file. $configure_input"
27745 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27746 $as_echo "$as_me: creating $ac_file" >&6;}
27747 fi
27748 # Neutralize special characters interpreted by sed in replacement strings.
27749 case $configure_input in #(
27750 *\&* | *\|* | *\\* )
27751 ac_sed_conf_input=`$as_echo "$configure_input" |
27752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27753 *) ac_sed_conf_input=$configure_input;;
27754 esac
27755
27756 case $ac_tag in
27757 *:-:* | *:-) cat >"$tmp/stdin" \
27758 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27759 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27760 { (exit 1); exit 1; }; } ;;
27761 esac
27762 ;;
27763 esac
27764
27765 ac_dir=`$as_dirname -- "$ac_file" ||
27766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27767 X"$ac_file" : 'X\(//\)[^/]' \| \
27768 X"$ac_file" : 'X\(//\)$' \| \
27769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27770 $as_echo X"$ac_file" |
27771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27772 s//\1/
27773 q
27774 }
27775 /^X\(\/\/\)[^/].*/{
27776 s//\1/
27777 q
27778 }
27779 /^X\(\/\/\)$/{
27780 s//\1/
27781 q
27782 }
27783 /^X\(\/\).*/{
27784 s//\1/
27785 q
27786 }
27787 s/.*/./; q'`
27788 { as_dir="$ac_dir"
27789 case $as_dir in #(
27790 -*) as_dir=./$as_dir;;
27791 esac
27792 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27793 as_dirs=
27794 while :; do
27795 case $as_dir in #(
27796 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27797 *) as_qdir=$as_dir;;
27798 esac
27799 as_dirs="'$as_qdir' $as_dirs"
27800 as_dir=`$as_dirname -- "$as_dir" ||
27801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27802 X"$as_dir" : 'X\(//\)[^/]' \| \
27803 X"$as_dir" : 'X\(//\)$' \| \
27804 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27805 $as_echo X"$as_dir" |
27806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27807 s//\1/
27808 q
27809 }
27810 /^X\(\/\/\)[^/].*/{
27811 s//\1/
27812 q
27813 }
27814 /^X\(\/\/\)$/{
27815 s//\1/
27816 q
27817 }
27818 /^X\(\/\).*/{
27819 s//\1/
27820 q
27821 }
27822 s/.*/./; q'`
27823 test -d "$as_dir" && break
27824 done
27825 test -z "$as_dirs" || eval "mkdir $as_dirs"
27826 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27827 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27828 { (exit 1); exit 1; }; }; }
27829 ac_builddir=.
27830
27831 case "$ac_dir" in
27832 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27833 *)
27834 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27835 # A ".." for each directory in $ac_dir_suffix.
27836 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27837 case $ac_top_builddir_sub in
27838 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27839 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27840 esac ;;
27841 esac
27842 ac_abs_top_builddir=$ac_pwd
27843 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27844 # for backward compatibility:
27845 ac_top_builddir=$ac_top_build_prefix
27846
27847 case $srcdir in
27848 .) # We are building in place.
27849 ac_srcdir=.
27850 ac_top_srcdir=$ac_top_builddir_sub
27851 ac_abs_top_srcdir=$ac_pwd ;;
27852 [\\/]* | ?:[\\/]* ) # Absolute name.
27853 ac_srcdir=$srcdir$ac_dir_suffix;
27854 ac_top_srcdir=$srcdir
27855 ac_abs_top_srcdir=$srcdir ;;
27856 *) # Relative name.
27857 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27858 ac_top_srcdir=$ac_top_build_prefix$srcdir
27859 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27860 esac
27861 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27862
27863
27864 case $ac_mode in
27865 :F)
27866 #
27867 # CONFIG_FILE
27868 #
27869
27870 case $INSTALL in
27871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27872 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27873 esac
27874 _ACEOF
27875
27876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27877 # If the template does not know about datarootdir, expand it.
27878 # FIXME: This hack should be removed a few years after 2.60.
27879 ac_datarootdir_hack=; ac_datarootdir_seen=
27880
27881 ac_sed_dataroot='
27882 /datarootdir/ {
27883 p
27884 q
27885 }
27886 /@datadir@/p
27887 /@docdir@/p
27888 /@infodir@/p
27889 /@localedir@/p
27890 /@mandir@/p
27891 '
27892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27893 *datarootdir*) ac_datarootdir_seen=yes;;
27894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27895 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27896 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27897 _ACEOF
27898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27899 ac_datarootdir_hack='
27900 s&@datadir@&$datadir&g
27901 s&@docdir@&$docdir&g
27902 s&@infodir@&$infodir&g
27903 s&@localedir@&$localedir&g
27904 s&@mandir@&$mandir&g
27905 s&\\\${datarootdir}&$datarootdir&g' ;;
27906 esac
27907 _ACEOF
27908
27909 # Neutralize VPATH when `$srcdir' = `.'.
27910 # Shell code in configure.ac might set extrasub.
27911 # FIXME: do we really want to maintain this feature?
27912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27913 ac_sed_extra="$ac_vpsub
27914 $extrasub
27915 _ACEOF
27916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27917 :t
27918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27919 s|@configure_input@|$ac_sed_conf_input|;t t
27920 s&@top_builddir@&$ac_top_builddir_sub&;t t
27921 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27922 s&@srcdir@&$ac_srcdir&;t t
27923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27924 s&@top_srcdir@&$ac_top_srcdir&;t t
27925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27926 s&@builddir@&$ac_builddir&;t t
27927 s&@abs_builddir@&$ac_abs_builddir&;t t
27928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27929 s&@INSTALL@&$ac_INSTALL&;t t
27930 $ac_datarootdir_hack
27931 "
27932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27933 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27934 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27935 { (exit 1); exit 1; }; }
27936
27937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27938 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27940 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27941 which seems to be undefined. Please make sure it is defined." >&5
27942 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27943 which seems to be undefined. Please make sure it is defined." >&2;}
27944
27945 rm -f "$tmp/stdin"
27946 case $ac_file in
27947 -) cat "$tmp/out" && rm -f "$tmp/out";;
27948 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27949 esac \
27950 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27951 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27952 { (exit 1); exit 1; }; }
27953 ;;
27954 :H)
27955 #
27956 # CONFIG_HEADER
27957 #
27958 if test x"$ac_file" != x-; then
27959 {
27960 $as_echo "/* $configure_input */" \
27961 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27962 } >"$tmp/config.h" \
27963 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27964 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27965 { (exit 1); exit 1; }; }
27966 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27967 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27968 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27969 else
27970 rm -f "$ac_file"
27971 mv "$tmp/config.h" "$ac_file" \
27972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27974 { (exit 1); exit 1; }; }
27975 fi
27976 else
27977 $as_echo "/* $configure_input */" \
27978 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27979 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27980 $as_echo "$as_me: error: could not create -" >&2;}
27981 { (exit 1); exit 1; }; }
27982 fi
27983 ;;
27984
27985 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27986 $as_echo "$as_me: executing $ac_file commands" >&6;}
27987 ;;
27988 esac
27989
27990
27991 case $ac_file$ac_mode in
27992 "default":C)
27993
27994 ### Make the necessary directories, if they don't exist.
27995 for dir in etc lisp ; do
27996 test -d ${dir} || mkdir ${dir}
27997 done
27998
27999 # Build src/Makefile from ${srcdir}/src/Makefile.c
28000 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28001 # This must be done after src/config.h is built, since we rely on that file.
28002
28003 echo creating src/epaths.h
28004 ${MAKE-make} epaths-force
28005
28006 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28007 # `..' to `. .' unless invoked with -traditional
28008
28009 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28010 CPPFLAGS="$CPPFLAGS -traditional"
28011 fi
28012
28013 echo creating src/Makefile
28014 ( cd src
28015 rm -f junk.c junk1.c junk2.c
28016 sed -e '/start of cpp stuff/q' \
28017 < Makefile.c > junk1.c
28018 sed -e '1,/start of cpp stuff/d'\
28019 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28020 < Makefile.c > junk.c
28021 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28022 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28023 cat junk1.c junk2.c > Makefile.new
28024 rm -f junk.c junk1.c junk2.c
28025 chmod 444 Makefile.new
28026 mv -f Makefile.new Makefile
28027 )
28028
28029 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28030 echo creating src/.gdbinit
28031 echo source $srcdir/src/.gdbinit > src/.gdbinit
28032 fi
28033
28034 ;;
28035
28036 esac
28037 done # for ac_tag
28038
28039
28040 { (exit 0); exit 0; }
28041 _ACEOF
28042 chmod +x $CONFIG_STATUS
28043 ac_clean_files=$ac_clean_files_save
28044
28045 test $ac_write_fail = 0 ||
28046 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28047 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28048 { (exit 1); exit 1; }; }
28049
28050
28051 # configure is writing to config.log, and then calls config.status.
28052 # config.status does its own redirection, appending to config.log.
28053 # Unfortunately, on DOS this fails, as config.log is still kept open
28054 # by configure, so config.status won't be able to write to it; its
28055 # output is simply discarded. So we exec the FD to /dev/null,
28056 # effectively closing config.log, so it can be properly (re)opened and
28057 # appended to by config.status. When coming back to configure, we
28058 # need to make the FD available again.
28059 if test "$no_create" != yes; then
28060 ac_cs_success=:
28061 ac_config_status_args=
28062 test "$silent" = yes &&
28063 ac_config_status_args="$ac_config_status_args --quiet"
28064 exec 5>/dev/null
28065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28066 exec 5>>config.log
28067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28068 # would make configure fail if this is the last instruction.
28069 $ac_cs_success || { (exit 1); exit 1; }
28070 fi
28071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28072 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28073 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
28074 fi
28075
28076